diff --git a/packages/google-cloud-vmwareengine/.OwlBot.yaml b/packages/google-cloud-vmwareengine/.OwlBot.yaml
new file mode 100644
index 00000000000..02ce9cf634b
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.OwlBot.yaml
@@ -0,0 +1,17 @@
+# Copyright 2022 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# 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/vmwareengine/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-vmwareengine/$1
\ No newline at end of file
diff --git a/packages/google-cloud-vmwareengine/.eslintignore b/packages/google-cloud-vmwareengine/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-vmwareengine/.eslintrc.json b/packages/google-cloud-vmwareengine/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-vmwareengine/.gitattributes b/packages/google-cloud-vmwareengine/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.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-vmwareengine/.gitignore b/packages/google-cloud-vmwareengine/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.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-vmwareengine/.jsdoc.js b/packages/google-cloud-vmwareengine/.jsdoc.js
new file mode 100644
index 00000000000..9b65af15875
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2022 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/vmwareengine',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-vmwareengine/.mocharc.js b/packages/google-cloud-vmwareengine/.mocharc.js
new file mode 100644
index 00000000000..cdb7b752160
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-vmwareengine/.nycrc b/packages/google-cloud-vmwareengine/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.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-vmwareengine/.prettierignore b/packages/google-cloud-vmwareengine/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-vmwareengine/.prettierrc.js b/packages/google-cloud-vmwareengine/.prettierrc.js
new file mode 100644
index 00000000000..d546a4ad546
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-vmwareengine/.repo-metadata.json b/packages/google-cloud-vmwareengine/.repo-metadata.json
new file mode 100644
index 00000000000..c8f7524ac10
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "name": "vmwareengine",
+ "name_pretty": "VMware Engine API",
+ "product_documentation": "cloud.google.com/vmware-engine/",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/vmwareengine/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "beta",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/vmwareengine",
+ "api_id": "vmwareengine.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO"
+}
+
diff --git a/packages/google-cloud-vmwareengine/CODE_OF_CONDUCT.md b/packages/google-cloud-vmwareengine/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/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-vmwareengine/CONTRIBUTING.md b/packages/google-cloud-vmwareengine/CONTRIBUTING.md
new file mode 100644
index 00000000000..9824f0e8a60
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/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 VMware Engine 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=vmwareengine.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-vmwareengine/LICENSE b/packages/google-cloud-vmwareengine/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/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-vmwareengine/README.md b/packages/google-cloud-vmwareengine/README.md
new file mode 100644
index 00000000000..9b299df3a4e
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/README.md
@@ -0,0 +1,256 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [VMware Engine API: Node.js Client](https://github.com/googleapis/google-cloud-node)
+
+[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
+[![npm version](https://img.shields.io/npm/v/@google-cloud/vmwareengine.svg)](https://www.npmjs.org/package/@google-cloud/vmwareengine)
+
+
+
+
+VMware Engine 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-vmwareengine/CHANGELOG.md).
+
+* [VMware Engine API Node.js Client API Reference][client-docs]
+* [VMware Engine API Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-vmwareengine](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-vmwareengine)
+
+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 VMware Engine 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/vmwareengine
+```
+
+
+### 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. The resource name of the location to query for
+ * VMware Engine networks. Resource names are schemeless URIs that follow the
+ * conventions in https://cloud.google.com/apis/design/resource_names. For
+ * example: `projects/my-project/locations/global`
+ */
+// const parent = 'abc123'
+/**
+ * The maximum number of results to return in one page.
+ * The maximum value is coerced to 1000.
+ * The default value of this field is 500.
+ */
+// const pageSize = 1234
+/**
+ * A page token, received from a previous `ListVmwareEngineNetworks` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListVmwareEngineNetworks` must match the call that provided the page
+ * token.
+ */
+// const pageToken = 'abc123'
+/**
+ * A filter expression that matches resources returned in the response.
+ * The expression must specify the field name, a comparison
+ * operator, and the value that you want to use for filtering. The value
+ * must be a string, a number, or a boolean. The comparison operator
+ * must be `=`, `!=`, `>`, or `<`.
+ * For example, if you are filtering a list of network peerings, you can
+ * exclude the ones named `example-network` by specifying
+ * `name != "example-network"`.
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example:
+ * ```
+ * (name = "example-network")
+ * (createTime > "2021-04-12T08:15:10.40Z")
+ * ```
+ * By default, each expression is an `AND` expression. However, you
+ * can include `AND` and `OR` expressions explicitly.
+ * For example:
+ * ```
+ * (name = "example-network-1") AND
+ * (createTime > "2021-04-12T08:15:10.40Z") OR
+ * (name = "example-network-2")
+ * ```
+ */
+// const filter = 'abc123'
+/**
+ * Sorts list results by a certain order. By default, returned results
+ * are ordered by `name` in ascending order.
+ * You can also sort results in descending order based on the `name` value
+ * using `orderBy="name desc"`.
+ * Currently, only ordering by `name` is supported.
+ */
+// const orderBy = 'abc123'
+
+// Imports the Vmwareengine library
+const {VmwareEngineClient} = require('@google-cloud/vmwareengine').v1;
+
+// Instantiates a client
+const vmwareengineClient = new VmwareEngineClient();
+
+async function callListVmwareEngineNetworks() {
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ const iterable = await vmwareengineClient.listVmwareEngineNetworksAsync(
+ request
+ );
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListVmwareEngineNetworks();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Vmware_engine.create_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.create_cluster.js,samples/README.md) |
+| Vmware_engine.create_hcx_activation_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.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-vmwareengine/samples/generated/v1/vmware_engine.create_hcx_activation_key.js,samples/README.md) |
+| Vmware_engine.create_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.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-vmwareengine/samples/generated/v1/vmware_engine.create_network_policy.js,samples/README.md) |
+| Vmware_engine.create_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.create_private_cloud.js,samples/README.md) |
+| Vmware_engine.create_vmware_engine_network | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.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-vmwareengine/samples/generated/v1/vmware_engine.create_vmware_engine_network.js,samples/README.md) |
+| Vmware_engine.delete_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.delete_cluster.js,samples/README.md) |
+| Vmware_engine.delete_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.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-vmwareengine/samples/generated/v1/vmware_engine.delete_network_policy.js,samples/README.md) |
+| Vmware_engine.delete_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.delete_private_cloud.js,samples/README.md) |
+| Vmware_engine.delete_vmware_engine_network | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.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-vmwareengine/samples/generated/v1/vmware_engine.delete_vmware_engine_network.js,samples/README.md) |
+| Vmware_engine.get_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.get_cluster.js,samples/README.md) |
+| Vmware_engine.get_hcx_activation_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.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-vmwareengine/samples/generated/v1/vmware_engine.get_hcx_activation_key.js,samples/README.md) |
+| Vmware_engine.get_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.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-vmwareengine/samples/generated/v1/vmware_engine.get_network_policy.js,samples/README.md) |
+| Vmware_engine.get_node_type | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.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-vmwareengine/samples/generated/v1/vmware_engine.get_node_type.js,samples/README.md) |
+| Vmware_engine.get_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.get_private_cloud.js,samples/README.md) |
+| Vmware_engine.get_vmware_engine_network | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.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-vmwareengine/samples/generated/v1/vmware_engine.get_vmware_engine_network.js,samples/README.md) |
+| Vmware_engine.list_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.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-vmwareengine/samples/generated/v1/vmware_engine.list_clusters.js,samples/README.md) |
+| Vmware_engine.list_hcx_activation_keys | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.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-vmwareengine/samples/generated/v1/vmware_engine.list_hcx_activation_keys.js,samples/README.md) |
+| Vmware_engine.list_network_policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.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-vmwareengine/samples/generated/v1/vmware_engine.list_network_policies.js,samples/README.md) |
+| Vmware_engine.list_node_types | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.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-vmwareengine/samples/generated/v1/vmware_engine.list_node_types.js,samples/README.md) |
+| Vmware_engine.list_private_clouds | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.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-vmwareengine/samples/generated/v1/vmware_engine.list_private_clouds.js,samples/README.md) |
+| Vmware_engine.list_subnets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.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-vmwareengine/samples/generated/v1/vmware_engine.list_subnets.js,samples/README.md) |
+| Vmware_engine.list_vmware_engine_networks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.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-vmwareengine/samples/generated/v1/vmware_engine.list_vmware_engine_networks.js,samples/README.md) |
+| Vmware_engine.reset_nsx_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.reset_nsx_credentials.js,samples/README.md) |
+| Vmware_engine.reset_vcenter_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.reset_vcenter_credentials.js,samples/README.md) |
+| Vmware_engine.show_nsx_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.show_nsx_credentials.js,samples/README.md) |
+| Vmware_engine.show_vcenter_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.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-vmwareengine/samples/generated/v1/vmware_engine.show_vcenter_credentials.js,samples/README.md) |
+| Vmware_engine.undelete_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.undelete_private_cloud.js,samples/README.md) |
+| Vmware_engine.update_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.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-vmwareengine/samples/generated/v1/vmware_engine.update_cluster.js,samples/README.md) |
+| Vmware_engine.update_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.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-vmwareengine/samples/generated/v1/vmware_engine.update_network_policy.js,samples/README.md) |
+| Vmware_engine.update_private_cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.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-vmwareengine/samples/generated/v1/vmware_engine.update_private_cloud.js,samples/README.md) |
+| Vmware_engine.update_vmware_engine_network | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/generated/v1/vmware_engine.update_vmware_engine_network.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-vmwareengine/samples/generated/v1/vmware_engine.update_vmware_engine_network.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/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-vmwareengine/samples/quickstart.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-vmwareengine/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-vmwareengine/samples/test/quickstart.js,samples/README.md) |
+
+
+
+The [VMware Engine 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://nodejs.org/en/about/releases/).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/vmwareengine@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 **beta**. This means it is expected to be
+mostly stable while we work toward a general availability release; however,
+complete stability is not guaranteed. We will address issues and requests
+against beta libraries with a high priority.
+
+
+
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/vmwareengine/latest
+[product-docs]: cloud.google.com/vmware-engine/
+[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=vmwareengine.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-vmwareengine/linkinator.config.json b/packages/google-cloud-vmwareengine/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/linkinator.config.json
@@ -0,0 +1,16 @@
+{
+ "recurse": true,
+ "skip": [
+ "https://codecov.io/gh/googleapis/",
+ "www.googleapis.com",
+ "img.shields.io",
+ "https://console.cloud.google.com/cloudshell",
+ "https://support.google.com"
+ ],
+ "silent": true,
+ "concurrency": 5,
+ "retry": true,
+ "retryErrors": true,
+ "retryErrorsCount": 5,
+ "retryErrorsJitter": 3000
+}
diff --git a/packages/google-cloud-vmwareengine/package.json b/packages/google-cloud-vmwareengine/package.json
new file mode 100644
index 00000000000..4bff21b6a5a
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/package.json
@@ -0,0 +1,71 @@
+{
+ "name": "@google-cloud/vmwareengine",
+ "version": "0.0.0",
+ "description": "VMware Engine API client for Node.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/googleapis/google-cloud-node.git",
+ "directory": "packages/google-cloud-vmwareengine"
+ },
+ "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-vmwareengine",
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google vmwareengine",
+ "vmwareengine",
+ "VMware Engine 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",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.3.5",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.9.0",
+ "webpack-cli": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto
new file mode 100644
index 00000000000..695006cf2e2
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/protos/google/cloud/vmwareengine/v1/vmwareengine.proto
@@ -0,0 +1,2194 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.vmwareengine.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.VmwareEngine.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/vmwareengine/v1;vmwareengine";
+option java_multiple_files = true;
+option java_outer_classname = "VmwareengineProto";
+option java_package = "com.google.cloud.vmwareengine.v1";
+option php_namespace = "Google\\Cloud\\VmwareEngine\\V1";
+option ruby_package = "Google::Cloud::VmwareEngine::V1";
+option (google.api.resource_definition) = {
+ type: "compute.googleapis.com/Network"
+ pattern: "projects/{project}/global/networks/{network}"
+};
+
+// VMwareEngine manages VMware's private clusters in the Cloud.
+service VmwareEngine {
+ option (google.api.default_host) = "vmwareengine.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists `PrivateCloud` resources in a given project and location.
+ rpc ListPrivateClouds(ListPrivateCloudsRequest) returns (ListPrivateCloudsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/privateClouds"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Retrieves a `PrivateCloud` resource by its resource name.
+ rpc GetPrivateCloud(GetPrivateCloudRequest) returns (PrivateCloud) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/privateClouds/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new `PrivateCloud` resource in a given project and location.
+ // Private clouds can only be created in zones, regional private clouds are
+ // not supported.
+ //
+ // Creating a private cloud also creates a [management
+ // cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components)
+ // for that private cloud.
+ rpc CreatePrivateCloud(CreatePrivateCloudRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/privateClouds"
+ body: "private_cloud"
+ };
+ option (google.api.method_signature) = "parent,private_cloud,private_cloud_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "PrivateCloud"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Modifies a `PrivateCloud` resource. Only the following fields can be
+ // updated: `description`.
+ // Only fields specified in `updateMask` are applied.
+ //
+ // During operation processing, the resource is temporarily in the `ACTIVE`
+ // state before the operation fully completes. For that period of time, you
+ // can't update the resource. Use the operation status to determine when the
+ // processing fully completes.
+ rpc UpdatePrivateCloud(UpdatePrivateCloudRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{private_cloud.name=projects/*/locations/*/privateClouds/*}"
+ body: "private_cloud"
+ };
+ option (google.api.method_signature) = "private_cloud,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "PrivateCloud"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Schedules a `PrivateCloud` resource for deletion.
+ //
+ // A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state`
+ // set to `DELETED` and `expireTime` set to the time when deletion is final
+ // and can no longer be reversed. The delete operation is marked as done
+ // as soon as the `PrivateCloud` is successfully scheduled for deletion
+ // (this also applies when `delayHours` is set to zero), and the operation is
+ // not kept in pending state until `PrivateCloud` is purged.
+ // `PrivateCloud` can be restored using `UndeletePrivateCloud` method before
+ // the `expireTime` elapses. When `expireTime` is reached, deletion is final
+ // and all private cloud resources are irreversibly removed and billing stops.
+ // During the final removal process, `PrivateCloud.state` is set to `PURGING`.
+ // `PrivateCloud` can be polled using standard `GET` method for the whole
+ // period of deletion and purging. It will not be returned only
+ // when it is completely purged.
+ rpc DeletePrivateCloud(DeletePrivateCloudRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/privateClouds/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "PrivateCloud"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Restores a private cloud that was previously scheduled for deletion by
+ // `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has
+ // `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to
+ // the time when deletion can no longer be reversed.
+ rpc UndeletePrivateCloud(UndeletePrivateCloudRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/privateClouds/*}:undelete"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "PrivateCloud"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists `Cluster` resources in a given private cloud.
+ rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/clusters"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Retrieves a `Cluster` resource by its resource name.
+ rpc GetCluster(GetClusterRequest) returns (Cluster) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new cluster in a given private cloud.
+ // Creating a new cluster provides additional nodes for
+ // use in the parent private cloud and requires sufficient [node
+ // quota](https://cloud.google.com/vmware-engine/quotas).
+ rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/clusters"
+ body: "cluster"
+ };
+ option (google.api.method_signature) = "parent,cluster,cluster_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Cluster"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Modifies a `Cluster` resource. Only the following fields can be updated:
+ // `node_type_configs.*.node_count`. Only fields specified in `updateMask` are
+ // applied.
+ //
+ // During operation processing, the resource is temporarily in the `ACTIVE`
+ // state before the operation fully completes. For that period of time, you
+ // can't update the resource. Use the operation status to determine when the
+ // processing fully completes.
+ rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{cluster.name=projects/*/locations/*/privateClouds/*/clusters/*}"
+ body: "cluster"
+ };
+ option (google.api.method_signature) = "cluster,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Cluster"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a `Cluster` resource. To avoid unintended data loss, migrate or
+ // gracefully shut down any workloads running on the cluster before deletion.
+ // You cannot delete the management cluster of a private cloud using this
+ // method.
+ rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/privateClouds/*/clusters/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists subnets in a given private cloud.
+ rpc ListSubnets(ListSubnetsRequest) returns (ListSubnetsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/subnets"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Lists node types
+ rpc ListNodeTypes(ListNodeTypesRequest) returns (ListNodeTypesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/nodeTypes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single `NodeType`.
+ rpc GetNodeType(GetNodeTypeRequest) returns (NodeType) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/nodeTypes/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets details of credentials for NSX appliance.
+ rpc ShowNsxCredentials(ShowNsxCredentialsRequest) returns (Credentials) {
+ option (google.api.http) = {
+ get: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showNsxCredentials"
+ };
+ option (google.api.method_signature) = "private_cloud";
+ }
+
+ // Gets details of credentials for Vcenter appliance.
+ rpc ShowVcenterCredentials(ShowVcenterCredentialsRequest) returns (Credentials) {
+ option (google.api.http) = {
+ get: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:showVcenterCredentials"
+ };
+ option (google.api.method_signature) = "private_cloud";
+ }
+
+ // Resets credentials of the NSX appliance.
+ rpc ResetNsxCredentials(ResetNsxCredentialsRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetNsxCredentials"
+ body: "*"
+ };
+ option (google.api.method_signature) = "private_cloud";
+ option (google.longrunning.operation_info) = {
+ response_type: "PrivateCloud"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Resets credentials of the Vcenter appliance.
+ rpc ResetVcenterCredentials(ResetVcenterCredentialsRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{private_cloud=projects/*/locations/*/privateClouds/*}:resetVcenterCredentials"
+ body: "*"
+ };
+ option (google.api.method_signature) = "private_cloud";
+ option (google.longrunning.operation_info) = {
+ response_type: "PrivateCloud"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Creates a new HCX activation key in a given private cloud.
+ rpc CreateHcxActivationKey(CreateHcxActivationKeyRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys"
+ body: "hcx_activation_key"
+ };
+ option (google.api.method_signature) = "parent,hcx_activation_key,hcx_activation_key_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "HcxActivationKey"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists `HcxActivationKey` resources in a given private cloud.
+ rpc ListHcxActivationKeys(ListHcxActivationKeysRequest) returns (ListHcxActivationKeysResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/privateClouds/*}/hcxActivationKeys"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Retrieves a `HcxActivationKey` resource by its resource name.
+ rpc GetHcxActivationKey(GetHcxActivationKeyRequest) returns (HcxActivationKey) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/privateClouds/*/hcxActivationKeys/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Retrieves a `NetworkPolicy` resource by its resource name.
+ rpc GetNetworkPolicy(GetNetworkPolicyRequest) returns (NetworkPolicy) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/networkPolicies/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists `NetworkPolicy` resources in a specified project and location.
+ rpc ListNetworkPolicies(ListNetworkPoliciesRequest) returns (ListNetworkPoliciesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/networkPolicies"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates a new network policy in a given VMware Engine network of a
+ // project and location (region). A new network policy cannot be created if
+ // another network policy already exists in the same scope.
+ rpc CreateNetworkPolicy(CreateNetworkPolicyRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/networkPolicies"
+ body: "network_policy"
+ };
+ option (google.api.method_signature) = "parent,network_policy,network_policy_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "NetworkPolicy"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Modifies a `NetworkPolicy` resource. Only the following fields can be
+ // updated: `internet_access`, `external_ip`, `edge_services_cidr`.
+ // Only fields specified in `updateMask` are applied. When updating a network
+ // policy, the external IP network service can only be disabled if there are
+ // no external IP addresses present in the scope of the policy. Also, a
+ // `NetworkService` cannot be updated when `NetworkService.state` is set
+ // to `RECONCILING`.
+ //
+ // During operation processing, the resource is temporarily in the `ACTIVE`
+ // state before the operation fully completes. For that period of time, you
+ // can't update the resource. Use the operation status to determine when the
+ // processing fully completes.
+ rpc UpdateNetworkPolicy(UpdateNetworkPolicyRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{network_policy.name=projects/*/locations/*/networkPolicies/*}"
+ body: "network_policy"
+ };
+ option (google.api.method_signature) = "network_policy,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "NetworkPolicy"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a `NetworkPolicy` resource. A network policy cannot be deleted
+ // when `NetworkService.state` is set to `RECONCILING` for either its external
+ // IP or internet access service.
+ rpc DeleteNetworkPolicy(DeleteNetworkPolicyRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/networkPolicies/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Creates a new VMware Engine network that can be used by a private cloud.
+ rpc CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks"
+ body: "vmware_engine_network"
+ };
+ option (google.api.method_signature) = "parent,vmware_engine_network,vmware_engine_network_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "VmwareEngineNetwork"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Modifies a VMware Engine network resource. Only the following fields can be
+ // updated: `description`. Only fields specified in `updateMask` are
+ // applied.
+ rpc UpdateVmwareEngineNetwork(UpdateVmwareEngineNetworkRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{vmware_engine_network.name=projects/*/locations/*/vmwareEngineNetworks/*}"
+ body: "vmware_engine_network"
+ };
+ option (google.api.method_signature) = "vmware_engine_network,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "VmwareEngineNetwork"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware
+ // Engine network after all resources that refer to it are deleted. For
+ // example, a private cloud, a network peering, and a network policy can all
+ // refer to the same VMware Engine network.
+ rpc DeleteVmwareEngineNetwork(DeleteVmwareEngineNetworkRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Retrieves a `VmwareEngineNetwork` resource by its resource name. The
+ // resource contains details of the VMware Engine network, such as its VMware
+ // Engine network type, peered networks in a service project, and state
+ // (for example, `CREATING`, `ACTIVE`, `DELETING`).
+ rpc GetVmwareEngineNetwork(GetVmwareEngineNetworkRequest) returns (VmwareEngineNetwork) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/vmwareEngineNetworks/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists `VmwareEngineNetwork` resources in a given project and location.
+ rpc ListVmwareEngineNetworks(ListVmwareEngineNetworksRequest) returns (ListVmwareEngineNetworksResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/vmwareEngineNetworks"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Network configuration in the consumer project
+// with which the peering has to be done.
+message NetworkConfig {
+ // Required. Management CIDR used by VMware management appliances.
+ string management_cidr = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The relative resource name of the VMware Engine network attached
+ // to the private cloud. Specify the name in the following form:
+ // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+ // where `{project}` can either be a project number or a project ID.
+ string vmware_engine_network = 5 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ }
+ ];
+
+ // Output only. The canonical name of the VMware Engine network in the form:
+ // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+ string vmware_engine_network_canonical = 6 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ }
+ ];
+
+ // Output only. The IP address layout version of the management IP address
+ // range. Possible versions include:
+ // * `managementIpAddressLayoutVersion=1`: Indicates the legacy IP address
+ // layout used by some existing private clouds. This is no longer supported
+ // for new private clouds as it does not support all features.
+ // * `managementIpAddressLayoutVersion=2`: Indicates the latest IP address
+ // layout used by all newly created private clouds. This version supports all
+ // current features.
+ int32 management_ip_address_layout_version = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Information about the type and number of nodes associated with the cluster.
+message NodeTypeConfig {
+ // Required. The number of nodes of this type in the cluster
+ int32 node_count = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Customized number of cores available to each node of the type.
+ // This number must always be one of `nodeType.availableCustomCoreCounts`.
+ // If zero is provided max value from `nodeType.availableCustomCoreCounts`
+ // will be used.
+ int32 custom_core_count = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents a private cloud resource. Private clouds are zonal resources.
+message PrivateCloud {
+ option (google.api.resource) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}"
+ };
+
+ // Enum State defines possible states of private clouds.
+ enum State {
+ // The default value. This value should never be used.
+ STATE_UNSPECIFIED = 0;
+
+ // The private cloud is ready.
+ ACTIVE = 1;
+
+ // The private cloud is being created.
+ CREATING = 2;
+
+ // The private cloud is being updated.
+ UPDATING = 3;
+
+ // The private cloud is in failed state.
+ FAILED = 5;
+
+ // The private cloud is scheduled for deletion. The deletion process can be
+ // cancelled by using the corresponding undelete method.
+ DELETED = 6;
+
+ // The private cloud is irreversibly deleted and is being removed from the
+ // system.
+ PURGING = 7;
+ }
+
+ // Management cluster configuration.
+ message ManagementCluster {
+ // Required. The user-provided identifier of the new `Cluster`.
+ // The identifier must meet the following requirements:
+ //
+ // * Only contains 1-63 alphanumeric characters and hyphens
+ // * Begins with an alphabetical character
+ // * Ends with a non-hyphen character
+ // * Not formatted as a UUID
+ // * Complies with [RFC
+ // 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+ string cluster_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The map of cluster node types in this cluster, where the key is canonical
+ // identifier of the node type (corresponds to the `NodeType`).
+ map node_type_configs = 7 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Output only. The resource name of this private cloud.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Creation time of this resource.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update time of this resource.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Time when the resource was scheduled for deletion.
+ google.protobuf.Timestamp delete_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Time when the resource will be irreversibly deleted.
+ google.protobuf.Timestamp expire_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the resource. New values may be added to this enum
+ // when appropriate.
+ State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Network configuration of the private cloud.
+ NetworkConfig network_config = 9 [(google.api.field_behavior) = REQUIRED];
+
+ // Input only. The management cluster for this private cloud.
+ // This field is required during creation of the private cloud to provide
+ // details for the default cluster.
+ //
+ // The following fields can't be changed after private cloud creation:
+ // `ManagementCluster.clusterId`, `ManagementCluster.nodeTypeId`.
+ ManagementCluster management_cluster = 10 [(google.api.field_behavior) = INPUT_ONLY];
+
+ // User-provided description for this private cloud.
+ string description = 11;
+
+ // Output only. HCX appliance.
+ Hcx hcx = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. NSX appliance.
+ Nsx nsx = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Vcenter appliance.
+ Vcenter vcenter = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. System-generated unique identifier for the resource.
+ string uid = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds]
+message ListPrivateCloudsRequest {
+ // Required. The resource name of the private cloud to be queried for
+ // clusters. Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of private clouds to return in one page.
+ // The service may return fewer than this value.
+ // The maximum value is coerced to 1000.
+ // The default value of this field is 500.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListPrivateClouds` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListPrivateClouds` must
+ // match the call that provided the page token.
+ string page_token = 3;
+
+ // A filter expression that matches resources returned in the response.
+ // The expression must specify the field name, a comparison operator, and the
+ // value that you want to use for filtering. The value must be a string, a
+ // number, or a boolean. The comparison operator must be `=`, `!=`, `>`, or
+ // `<`.
+ //
+ // For example, if you are filtering a list of private clouds, you can exclude
+ // the ones named `example-pc` by specifying `name != "example-pc"`.
+ //
+ // You can also filter nested fields. For example, you could specify
+ // `networkConfig.managementCidr = "192.168.0.0/24"` to include private clouds
+ // only if they have a matching address in their network configuration.
+ //
+ // To filter on multiple expressions, provide each separate expression within
+ // parentheses. For example:
+ // ```
+ // (name = "example-pc")
+ // (createTime > "2021-04-12T08:15:10.40Z")
+ // ```
+ //
+ // By default, each expression is an `AND` expression. However, you can
+ // include `AND` and `OR` expressions explicitly. For example:
+ // ```
+ // (name = "private-cloud-1") AND
+ // (createTime > "2021-04-12T08:15:10.40Z") OR
+ // (name = "private-cloud-2")
+ // ```
+ string filter = 4;
+
+ // Sorts list results by a certain order. By default, returned results are
+ // ordered by `name` in ascending order. You can also sort results in
+ // descending order based on the `name` value using `orderBy="name desc"`.
+ // Currently, only ordering by `name` is supported.
+ string order_by = 5;
+}
+
+// Response message for [VmwareEngine.ListPrivateClouds][google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds]
+message ListPrivateCloudsResponse {
+ // A list of private clouds.
+ repeated PrivateCloud private_clouds = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached when making an aggregated query using
+ // wildcards.
+ repeated string unreachable = 3;
+}
+
+// Request message for [VmwareEngine.GetPrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloud]
+message GetPrivateCloudRequest {
+ // Required. The resource name of the private cloud to retrieve.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.CreatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloud]
+message CreatePrivateCloudRequest {
+ // Required. The resource name of the location to create the new
+ // private cloud in. Resource names are schemeless URIs that follow the
+ // conventions in https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. The user-provided identifier of the private cloud to be created.
+ // This identifier must be unique among each `PrivateCloud` within the parent
+ // and becomes the final token in the name URI.
+ // The identifier must meet the following requirements:
+ //
+ // * Only contains 1-63 alphanumeric characters and hyphens
+ // * Begins with an alphabetical character
+ // * Ends with a non-hyphen character
+ // * Not formatted as a UUID
+ // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+ // (section 3.5)
+ string private_cloud_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The initial description of the new private cloud.
+ PrivateCloud private_cloud = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. True if you want the request to be validated and not executed; false
+ // otherwise.
+ bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.UpdatePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloud]
+message UpdatePrivateCloudRequest {
+ // Required. Private cloud description.
+ PrivateCloud private_cloud = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // `PrivateCloud` resource by the update. The fields specified in `updateMask`
+ // 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 = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.DeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloud]
+message DeletePrivateCloudRequest {
+ // Required. The resource name of the private cloud to delete.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // Optional. The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set to true, cascade delete is enabled and all children of this private
+ // cloud resource are also deleted. When this flag is set to false, the
+ // private cloud will not be deleted if there are any children other than the
+ // management cluster. The management cluster is always deleted.
+ bool force = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Time delay of the deletion specified in hours. The default value
+ // is `3`. Specifying a non-zero value for this field changes the value of
+ // `PrivateCloud.state` to `DELETED` and sets `expire_time` to the planned
+ // deletion time. Deletion can be cancelled before `expire_time` elapses using
+ // [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]. Specifying a value of `0` for
+ // this field instead begins the deletion process and ceases billing
+ // immediately. During the final deletion process, the value of
+ // `PrivateCloud.state` becomes `PURGING`.
+ optional int32 delay_hours = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.UndeletePrivateCloud][google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud]
+message UndeletePrivateCloudRequest {
+ // Required. The resource name of the private cloud scheduled for deletion.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // Optional. The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A cluster in a private cloud.
+message Cluster {
+ option (google.api.resource) = {
+ type: "vmwareengine.googleapis.com/Cluster"
+ pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}"
+ };
+
+ // Enum State defines possible states of private cloud clusters.
+ enum State {
+ // The default value. This value should never be used.
+ STATE_UNSPECIFIED = 0;
+
+ // The Cluster is operational and can be used by the user.
+ ACTIVE = 1;
+
+ // The Cluster is being deployed.
+ CREATING = 2;
+
+ // Adding or removing of a node to the cluster, any other cluster specific
+ // updates.
+ UPDATING = 3;
+
+ // The Cluster is being deleted.
+ DELETING = 4;
+
+ // The Cluster is undergoing maintenance, for example: a failed node is
+ // getting replaced.
+ REPAIRING = 5;
+ }
+
+ // Output only. The resource name of this cluster.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Creation time of this resource.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update time of this resource.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the resource.
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. True if the cluster is a management cluster; false otherwise.
+ // There can only be one management cluster in a private cloud
+ // and it has to be the first one.
+ bool management = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. System-generated unique identifier for the resource.
+ string uid = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. The map of cluster node types in this cluster, where the key is canonical
+ // identifier of the node type (corresponds to the `NodeType`).
+ map node_type_configs = 16 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters]
+message ListClustersRequest {
+ // Required. The resource name of the private cloud to query for clusters.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // The maximum number of clusters to return in one page.
+ // The service may return fewer than this value.
+ // The maximum value is coerced to 1000.
+ // The default value of this field is 500.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListClusters` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListClusters`
+ // must match the call that provided the page token.
+ string page_token = 3;
+
+ //
+ // To filter on multiple expressions, provide each separate expression within
+ // parentheses. For example:
+ // ```
+ // (name = "example-cluster")
+ // (nodeCount = "3")
+ // ```
+ //
+ // By default, each expression is an `AND` expression. However, you can
+ // include `AND` and `OR` expressions explicitly. For example:
+ // ```
+ // (name = "example-cluster-1") AND
+ // (createTime > "2021-04-12T08:15:10.40Z") OR
+ // (name = "example-cluster-2")
+ // ```
+ string filter = 4;
+
+ // Sorts list results by a certain order. By default, returned results are
+ // ordered by `name` in ascending order. You can also sort results in
+ // descending order based on the `name` value using `orderBy="name desc"`.
+ // Currently, only ordering by `name` is supported.
+ string order_by = 5;
+}
+
+// Response message for [VmwareEngine.ListClusters][google.cloud.vmwareengine.v1.VmwareEngine.ListClusters]
+message ListClustersResponse {
+ // A list of private cloud clusters.
+ repeated Cluster clusters = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached when making an aggregated query using
+ // wildcards.
+ repeated string unreachable = 3;
+}
+
+// Request message for [VmwareEngine.GetCluster][google.cloud.vmwareengine.v1.VmwareEngine.GetCluster]
+message GetClusterRequest {
+ // Required. The cluster resource name to retrieve.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/Cluster"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.CreateCluster][google.cloud.vmwareengine.v1.VmwareEngine.CreateCluster]
+message CreateClusterRequest {
+ // Required. The resource name of the private cloud to create a new cluster
+ // in. Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // Required. The user-provided identifier of the new `Cluster`.
+ // This identifier must be unique among clusters within the parent and becomes
+ // the final token in the name URI.
+ // The identifier must meet the following requirements:
+ //
+ // * Only contains 1-63 alphanumeric characters and hyphens
+ // * Begins with an alphabetical character
+ // * Ends with a non-hyphen character
+ // * Not formatted as a UUID
+ // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+ // (section 3.5)
+ string cluster_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The initial description of the new cluster.
+ Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. True if you want the request to be validated and not executed; false
+ // otherwise.
+ bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.UpdateCluster][google.cloud.vmwareengine.v1.VmwareEngine.UpdateCluster]
+message UpdateClusterRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // `Cluster` resource by the update. The fields specified in the `updateMask`
+ // 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 description of the cluster.
+ Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The request ID must be a valid UUID with the exception that
+ // zero UUID is not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. True if you want the request to be validated and not executed; false
+ // otherwise.
+ bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.DeleteCluster][google.cloud.vmwareengine.v1.VmwareEngine.DeleteCluster]
+message DeleteClusterRequest {
+ // Required. The resource name of the cluster to delete.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/clusters/my-cluster`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/Cluster"
+ }
+ ];
+
+ // Optional. The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Subnet in a private cloud. Either `management` subnets (such as vMotion) that
+// are read-only, or `userDefined`, which can also be updated.
+message Subnet {
+ option (google.api.resource) = {
+ type: "vmwareengine.googleapis.com/Subnet"
+ pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}"
+ };
+
+ // Defines possible states of subnets.
+ enum State {
+ // The default value. This value should never be used.
+ STATE_UNSPECIFIED = 0;
+
+ // The subnet is ready.
+ ACTIVE = 1;
+
+ // The subnet is being created.
+ CREATING = 2;
+
+ // The subnet is being updated.
+ UPDATING = 3;
+
+ // The subnet is being deleted.
+ DELETING = 4;
+ }
+
+ // Output only. The resource name of this subnet.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/subnets/my-subnet`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The IP address range of the subnet in CIDR format '10.0.0.0/24'.
+ string ip_cidr_range = 7;
+
+ // The IP address of the gateway of this subnet.
+ // Must fall within the IP prefix defined above.
+ string gateway_ip = 8;
+
+ // Output only. The type of the subnet. For example "management" or "userDefined".
+ string type = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The state of the resource.
+ State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets]
+message ListSubnetsRequest {
+ // Required. The resource name of the private cloud to be queried for
+ // subnets.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // The maximum number of subnets to return in one page.
+ // The service may return fewer than this value.
+ // The maximum value is coerced to 1000.
+ // The default value of this field is 500.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListSubnetsRequest` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to
+ // `ListSubnetsRequest` must match the call that provided the page token.
+ string page_token = 3;
+}
+
+// Response message for [VmwareEngine.ListSubnets][google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets]
+message ListSubnetsResponse {
+ // A list of subnets.
+ repeated Subnet subnets = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// 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. True if the user has requested cancellation
+ // of the operation; false otherwise.
+ // Operations that have successfully been cancelled
+ // 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];
+}
+
+// Describes node type.
+message NodeType {
+ option (google.api.resource) = {
+ type: "vmwareengine.googleapis.com/NodeType"
+ pattern: "projects/{project}/locations/{location}/nodeTypes/{node_type}"
+ };
+
+ // Output only. The resource name of this node type.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The canonical identifier of the node type
+ // (corresponds to the `NodeType`). For example: standard-72.
+ string node_type_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The friendly name for this node type.
+ // For example: ve1-standard-72
+ string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The total number of virtual CPUs in a single node.
+ int32 virtual_cpu_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The total number of CPU cores in a single node.
+ int32 total_core_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The amount of physical memory available, defined in GB.
+ int32 memory_gb = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The amount of storage available, defined in GB.
+ int32 disk_size_gb = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of possible values of custom core count.
+ repeated int32 available_custom_core_counts = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes]
+message ListNodeTypesRequest {
+ // Required. The resource name of the location to be queried for node types.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of node types to return in one page.
+ // The service may return fewer than this value.
+ // The maximum value is coerced to 1000.
+ // The default value of this field is 500.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListNodeTypes` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to
+ // `ListNodeTypes` must match the call that provided the page token.
+ string page_token = 3;
+
+ // A filter expression that matches resources returned in the response.
+ // The expression must specify the field name, a comparison
+ // operator, and the value that you want to use for filtering. The value
+ // must be a string, a number, or a boolean. The comparison operator
+ // must be `=`, `!=`, `>`, or `<`.
+ //
+ // For example, if you are filtering a list of node types, you can
+ // exclude the ones named `standard-72` by specifying
+ // `name != "standard-72"`.
+ //
+ // To filter on multiple expressions, provide each separate expression within
+ // parentheses. For example:
+ // ```
+ // (name = "standard-72")
+ // (virtual_cpu_count > 2)
+ // ```
+ //
+ // By default, each expression is an `AND` expression. However, you
+ // can include `AND` and `OR` expressions explicitly.
+ // For example:
+ // ```
+ // (name = "standard-96") AND
+ // (virtual_cpu_count > 2) OR
+ // (name = "standard-72")
+ // ```
+ string filter = 4;
+}
+
+// Response message for [VmwareEngine.ListNodeTypes][google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes]
+message ListNodeTypesResponse {
+ // A list of Node Types.
+ repeated NodeType node_types = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached when making an aggregated query using
+ // wildcards.
+ repeated string unreachable = 3;
+}
+
+// Request message for [VmwareEngine.GetNodeType][google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType]
+message GetNodeTypeRequest {
+ // Required. The resource name of the node type to retrieve.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-proj/locations/us-west1-a/nodeTypes/standard-72`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/NodeType"
+ }
+ ];
+}
+
+// Credentials for a private cloud.
+message Credentials {
+ // Initial username.
+ string username = 1;
+
+ // Initial password.
+ string password = 2;
+}
+
+// Request message for [VmwareEngine.ShowNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials]
+message ShowNsxCredentialsRequest {
+ // Required. The resource name of the private cloud
+ // to be queried for credentials.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string private_cloud = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.ShowVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials]
+message ShowVcenterCredentialsRequest {
+ // Required. The resource name of the private cloud
+ // to be queried for credentials.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string private_cloud = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.ResetNsxCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials]
+message ResetNsxCredentialsRequest {
+ // Required. The resource name of the private cloud
+ // to reset credentials for.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string private_cloud = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.ResetVcenterCredentials][google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials]
+message ResetVcenterCredentialsRequest {
+ // Required. The resource name of the private cloud
+ // to reset credentials for.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1-a/privateClouds/my-cloud`
+ string private_cloud = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys]
+message ListHcxActivationKeysResponse {
+ // List of HCX activation keys.
+ repeated HcxActivationKey hcx_activation_keys = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached when making an aggregated query using
+ // wildcards.
+ repeated string unreachable = 3;
+}
+
+// HCX activation key. A default key is created during
+// private cloud provisioning, but this behavior is subject to change
+// and you should always verify active keys.
+// Use [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys] to retrieve existing keys
+// and [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey] to create new ones.
+message HcxActivationKey {
+ option (google.api.resource) = {
+ type: "vmwareengine.googleapis.com/HcxActivationKey"
+ pattern: "projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}"
+ };
+
+ // State of HCX activation key
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // State of a newly generated activation key.
+ AVAILABLE = 1;
+
+ // State of key when it has been used to activate HCX appliance.
+ CONSUMED = 2;
+
+ // State of key when it is being created.
+ CREATING = 3;
+ }
+
+ // Output only. The resource name of this HcxActivationKey.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Creation time of HCX activation key.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of HCX activation key.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. HCX activation key.
+ string activation_key = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. System-generated unique identifier for the resource.
+ string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for [VmwareEngine.ListHcxActivationKeys][google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys]
+message ListHcxActivationKeysRequest {
+ // Required. The resource name of the private cloud
+ // to be queried for HCX activation keys.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // The maximum number of HCX activation keys to return in one page.
+ // The service may return fewer than this value.
+ // The maximum value is coerced to 1000.
+ // The default value of this field is 500.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListHcxActivationKeys` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to
+ // `ListHcxActivationKeys` must match the call that provided the page
+ // token.
+ string page_token = 3;
+}
+
+// Request message for [VmwareEngine.GetHcxActivationKeys][]
+message GetHcxActivationKeyRequest {
+ // Required. The resource name of the HCX activation key to retrieve.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-west1/privateClouds/my-cloud/hcxActivationKeys/my-key`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/HcxActivationKey"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.CreateHcxActivationKey][google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey]
+message CreateHcxActivationKeyRequest {
+ // Required. The resource name of the private cloud to create the key for.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-central1/privateClouds/my-cloud`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/PrivateCloud"
+ }
+ ];
+
+ // Required. The initial description of a new HCX activation key. When
+ // creating a new key, this field must be an empty object.
+ HcxActivationKey hcx_activation_key = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The user-provided identifier of the `HcxActivationKey` to be
+ // created. This identifier must be unique among `HcxActivationKey` resources
+ // within the parent and becomes the final token in the name URI.
+ // The identifier must meet the following requirements:
+ //
+ // * Only contains 1-63 alphanumeric characters and hyphens
+ // * Begins with an alphabetical character
+ // * Ends with a non-hyphen character
+ // * Not formatted as a UUID
+ // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+ // (section 3.5)
+ string hcx_activation_key_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request ID,
+ // the server can check if original operation with the same request ID was
+ // received, and if so, will ignore the second request. This prevents clients
+ // from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4;
+}
+
+// Details about a HCX Cloud Manager appliance.
+message Hcx {
+ // State of the appliance
+ enum State {
+ // Unspecified appliance state. This is the default value.
+ STATE_UNSPECIFIED = 0;
+
+ // The appliance is operational and can be used.
+ ACTIVE = 1;
+
+ // The appliance is being deployed.
+ CREATING = 2;
+ }
+
+ // Internal IP address of the appliance.
+ string internal_ip = 2;
+
+ // Version of the appliance.
+ string version = 4;
+
+ // Output only. The state of the appliance.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Fully qualified domain name of the appliance.
+ string fqdn = 6;
+}
+
+// Details about a NSX Manager appliance.
+message Nsx {
+ // State of the appliance
+ enum State {
+ // Unspecified appliance state. This is the default value.
+ STATE_UNSPECIFIED = 0;
+
+ // The appliance is operational and can be used.
+ ACTIVE = 1;
+
+ // The appliance is being deployed.
+ CREATING = 2;
+ }
+
+ // Internal IP address of the appliance.
+ string internal_ip = 2;
+
+ // Version of the appliance.
+ string version = 4;
+
+ // Output only. The state of the appliance.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Fully qualified domain name of the appliance.
+ string fqdn = 6;
+}
+
+// Details about a vCenter Server management appliance.
+message Vcenter {
+ // State of the appliance
+ enum State {
+ // Unspecified appliance state. This is the default value.
+ STATE_UNSPECIFIED = 0;
+
+ // The appliance is operational and can be used.
+ ACTIVE = 1;
+
+ // The appliance is being deployed.
+ CREATING = 2;
+ }
+
+ // Internal IP address of the appliance.
+ string internal_ip = 2;
+
+ // Version of the appliance.
+ string version = 4;
+
+ // Output only. The state of the appliance.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Fully qualified domain name of the appliance.
+ string fqdn = 6;
+}
+
+// Represents a network policy resource. Network policies are regional
+// resources. You can use a network policy to enable or disable internet access
+// and external IP access. Network policies are associated with a VMware Engine
+// network, which might span across regions. For a given region, a network
+// policy applies to all private clouds in the VMware Engine network associated
+// with the policy.
+message NetworkPolicy {
+ option (google.api.resource) = {
+ type: "vmwareengine.googleapis.com/NetworkPolicy"
+ pattern: "projects/{project}/locations/{location}/networkPolicies/{network_policy}"
+ };
+
+ // Represents a network service that is managed by a `NetworkPolicy` resource.
+ // A network service provides a way to control an aspect of external access to
+ // VMware workloads. For example, whether the VMware workloads in the
+ // private clouds governed by a network policy can access or be accessed from
+ // the internet.
+ message NetworkService {
+ // Enum State defines possible states of a network policy controlled
+ // service.
+ enum State {
+ // Unspecified service state. This is the default value.
+ STATE_UNSPECIFIED = 0;
+
+ // Service is not provisioned.
+ UNPROVISIONED = 1;
+
+ // Service is in the process of being provisioned/deprovisioned.
+ RECONCILING = 2;
+
+ // Service is active.
+ ACTIVE = 3;
+ }
+
+ // True if the service is enabled; false otherwise.
+ bool enabled = 1;
+
+ // Output only. State of the service. New values may be added to this enum
+ // when appropriate.
+ State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. The resource name of this network policy.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Creation time of this resource.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update time of this resource.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Network service that allows VMware workloads to access the internet.
+ NetworkService internet_access = 6;
+
+ // Network service that allows External IP addresses to be assigned to VMware
+ // workloads. This service can only be enabled when `internet_access` is also
+ // enabled.
+ NetworkService external_ip = 7;
+
+ // Required. IP address range in CIDR notation used to create internet access
+ // and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
+ // required. The range cannot overlap with any prefixes either in the consumer
+ // VPC network or in use by the private clouds attached to that VPC network.
+ string edge_services_cidr = 9 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. System-generated unique identifier for the resource.
+ string uid = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The relative resource name of the VMware Engine network.
+ // Specify the name in the following form:
+ // `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+ // where `{project}` can either be a project number or a project ID.
+ string vmware_engine_network = 12 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ }
+ ];
+
+ // Optional. User-provided description for this network policy.
+ string description = 13 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The canonical name of the VMware Engine network in the form:
+ // `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
+ string vmware_engine_network_canonical = 14 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies]
+message ListNetworkPoliciesRequest {
+ // Required. The resource name of the location (region) to query for
+ // network policies. Resource names are schemeless URIs that follow the
+ // conventions in https://cloud.google.com/apis/design/resource_names. For
+ // example: `projects/my-project/locations/us-central1`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmwareengine.googleapis.com/NetworkPolicy"
+ }
+ ];
+
+ // The maximum number of network policies to return in one page.
+ // The service may return fewer than this value.
+ // The maximum value is coerced to 1000.
+ // The default value of this field is 500.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListNetworkPolicies` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to
+ // `ListNetworkPolicies` must match the call that provided the page
+ // token.
+ string page_token = 3;
+
+ // A filter expression that matches resources returned in the response.
+ // The expression must specify the field name, a comparison
+ // operator, and the value that you want to use for filtering. The value
+ // must be a string, a number, or a boolean. The comparison operator
+ // must be `=`, `!=`, `>`, or `<`.
+ //
+ // For example, if you are filtering a list of network policies, you can
+ // exclude the ones named `example-policy` by specifying
+ // `name != "example-policy"`.
+ //
+ // To filter on multiple expressions, provide each separate expression within
+ // parentheses. For example:
+ // ```
+ // (name = "example-policy")
+ // (createTime > "2021-04-12T08:15:10.40Z")
+ // ```
+ //
+ // By default, each expression is an `AND` expression. However, you
+ // can include `AND` and `OR` expressions explicitly.
+ // For example:
+ // ```
+ // (name = "example-policy-1") AND
+ // (createTime > "2021-04-12T08:15:10.40Z") OR
+ // (name = "example-policy-2")
+ // ```
+ string filter = 4;
+
+ // Sorts list results by a certain order. By default, returned results
+ // are ordered by `name` in ascending order.
+ // You can also sort results in descending order based on the `name` value
+ // using `orderBy="name desc"`.
+ // Currently, only ordering by `name` is supported.
+ string order_by = 5;
+}
+
+// Response message for [VmwareEngine.ListNetworkPolicies][google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies]
+message ListNetworkPoliciesResponse {
+ // A list of network policies.
+ repeated NetworkPolicy network_policies = 1;
+
+ // A token, which can be send as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached when making an aggregated query using
+ // wildcards.
+ repeated string unreachable = 3;
+}
+
+// Request message for [VmwareEngine.GetNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy]
+message GetNetworkPolicyRequest {
+ // Required. The resource name of the network policy to retrieve.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/NetworkPolicy"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.UpdateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy]
+message UpdateNetworkPolicyRequest {
+ // Required. Network policy description.
+ NetworkPolicy network_policy = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // `NetworkPolicy` 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 = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.CreateNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy]
+message CreateNetworkPolicyRequest {
+ // Required. The resource name of the location (region)
+ // to create the new network policy in.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-central1`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmwareengine.googleapis.com/NetworkPolicy"
+ }
+ ];
+
+ // Required. The user-provided identifier of the network policy to be created.
+ // This identifier must be unique within parent
+ // `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
+ // the final token in the name URI.
+ // The identifier must meet the following requirements:
+ //
+ // * Only contains 1-63 alphanumeric characters and hyphens
+ // * Begins with an alphabetical character
+ // * Ends with a non-hyphen character
+ // * Not formatted as a UUID
+ // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+ // (section 3.5)
+ string network_policy_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The network policy configuration to use in the request.
+ NetworkPolicy network_policy = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.DeleteNetworkPolicy][google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy]
+message DeleteNetworkPolicyRequest {
+ // Required. The resource name of the network policy to delete.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/us-central1/networkPolicies/my-network-policy`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/NetworkPolicy"
+ }
+ ];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// VMware Engine network resource that provides connectivity for VMware Engine
+// private clouds.
+message VmwareEngineNetwork {
+ option (google.api.resource) = {
+ type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ pattern: "projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}"
+ };
+
+ // Represents a VMware Engine VPC network that is managed by a
+ // VMware Engine network resource.
+ message VpcNetwork {
+ // Enum Type defines possible types of a VMware Engine network controlled
+ // service.
+ enum Type {
+ // The default value. This value should never be used.
+ TYPE_UNSPECIFIED = 0;
+
+ // VPC network that will be peered with a consumer VPC network or the
+ // intranet VPC of another VMware Engine network. Access a private cloud
+ // through Compute Engine VMs on a peered VPC network or an on-premises
+ // resource connected to a peered consumer VPC network.
+ INTRANET = 1;
+
+ // VPC network used for internet access to and from a private cloud.
+ INTERNET = 2;
+
+ // VPC network used for access to Google Cloud services like
+ // Cloud Storage.
+ GOOGLE_CLOUD = 3;
+ }
+
+ // Output only. Type of VPC network (INTRANET, INTERNET, or
+ // GOOGLE_CLOUD)
+ Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The relative resource name of the service VPC network this
+ // VMware Engine network is attached to. For example:
+ // `projects/123123/global/networks/my-network`
+ string network = 2 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "compute.googleapis.com/Network"
+ }
+ ];
+ }
+
+ // Enum State defines possible states of VMware Engine network.
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // The VMware Engine network is being created.
+ CREATING = 1;
+
+ // The VMware Engine network is ready.
+ ACTIVE = 2;
+
+ // The VMware Engine network is being updated.
+ UPDATING = 3;
+
+ // The VMware Engine network is being deleted.
+ DELETING = 4;
+ }
+
+ // Enum Type defines possible types of VMware Engine network.
+ enum Type {
+ // The default value. This value should never be used.
+ TYPE_UNSPECIFIED = 0;
+
+ // Network type used by private clouds created in projects without a network
+ // of type `STANDARD`. This network type is no longer used for new VMware
+ // Engine private cloud deployments.
+ LEGACY = 1;
+ }
+
+ // Output only. The resource name of the VMware Engine network.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Creation time of this resource.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update time of this resource.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // User-provided description for this VMware Engine network.
+ string description = 5;
+
+ // Output only. VMware Engine service VPC networks that provide connectivity
+ // from a private cloud to customer projects, the internet, and other Google
+ // Cloud services.
+ repeated VpcNetwork vpc_networks = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the VMware Engine network.
+ State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. VMware Engine network type.
+ Type type = 8 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. System-generated unique identifier for the resource.
+ string uid = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Checksum that may be sent on update and delete requests to ensure that the
+ // user-provided value is up to date before the server processes a request.
+ // The server computes checksums based on the value of other fields in the
+ // request.
+ string etag = 10;
+}
+
+// Request message for [VmwareEngine.CreateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork]
+message CreateVmwareEngineNetworkRequest {
+ // Required. The resource name of the location to create the new VMware Engine
+ // network in. A VMware Engine network of type
+ // `LEGACY` is a regional resource, and a VMware
+ // Engine network of type `STANDARD` is a global resource.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names. For example:
+ // `projects/my-project/locations/global`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ }
+ ];
+
+ // Required. The user-provided identifier of the new VMware Engine network.
+ // This identifier must be unique among VMware Engine network resources
+ // within the parent and becomes the final token in the name URI. The
+ // identifier must meet the following requirements:
+ //
+ // * For networks of type LEGACY, adheres to the format:
+ // `{region-id}-default`. Replace `{region-id}` with the region where you want
+ // to create the VMware Engine network. For example, "us-west1-default".
+ // * Only contains 1-63 alphanumeric characters and hyphens
+ // * Begins with an alphabetical character
+ // * Ends with a non-hyphen character
+ // * Not formatted as a UUID
+ // * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
+ // (section 3.5)
+ string vmware_engine_network_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The initial description of the new VMware Engine network.
+ VmwareEngineNetwork vmware_engine_network = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.UpdateVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetwork]
+message UpdateVmwareEngineNetworkRequest {
+ // Required. VMware Engine network description.
+ VmwareEngineNetwork vmware_engine_network = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // VMware Engine network 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. Only the
+ // following fields can be updated: `description`.
+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.DeleteVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetwork]
+message DeleteVmwareEngineNetworkRequest {
+ // Required. The resource name of the VMware Engine network to be deleted.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ }
+ ];
+
+ // Optional. A request ID to identify requests. Specify a unique request ID
+ // so that if you must retry your request, the server will know to ignore
+ // the request if it has already been completed. The server guarantees that a
+ // request doesn't result in creation of duplicate commitments for at least 60
+ // minutes.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Checksum used to ensure that the user-provided value is up to date before
+ // the server processes the request. The server compares provided checksum
+ // with the current checksum of the resource. If the user-provided value is
+ // out of date, this request returns an `ABORTED` error.
+ string etag = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [VmwareEngine.GetVmwareEngineNetwork][google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetwork]
+message GetVmwareEngineNetworkRequest {
+ // Required. The resource name of the VMware Engine network to retrieve.
+ // Resource names are schemeless URIs that follow the conventions in
+ // https://cloud.google.com/apis/design/resource_names.
+ // For example:
+ // `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmwareengine.googleapis.com/VmwareEngineNetwork"
+ }
+ ];
+}
+
+// Request message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks]
+message ListVmwareEngineNetworksRequest {
+ // Required. The resource name of the location to query for
+ // VMware Engine networks. Resource names are schemeless URIs that follow the
+ // conventions in https://cloud.google.com/apis/design/resource_names. For
+ // example: `projects/my-project/locations/global`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The maximum number of results to return in one page.
+ // The maximum value is coerced to 1000.
+ // The default value of this field is 500.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListVmwareEngineNetworks` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to
+ // `ListVmwareEngineNetworks` must match the call that provided the page
+ // token.
+ string page_token = 3;
+
+ // A filter expression that matches resources returned in the response.
+ // The expression must specify the field name, a comparison
+ // operator, and the value that you want to use for filtering. The value
+ // must be a string, a number, or a boolean. The comparison operator
+ // must be `=`, `!=`, `>`, or `<`.
+ //
+ // For example, if you are filtering a list of network peerings, you can
+ // exclude the ones named `example-network` by specifying
+ // `name != "example-network"`.
+ //
+ // To filter on multiple expressions, provide each separate expression within
+ // parentheses. For example:
+ // ```
+ // (name = "example-network")
+ // (createTime > "2021-04-12T08:15:10.40Z")
+ // ```
+ //
+ // By default, each expression is an `AND` expression. However, you
+ // can include `AND` and `OR` expressions explicitly.
+ // For example:
+ // ```
+ // (name = "example-network-1") AND
+ // (createTime > "2021-04-12T08:15:10.40Z") OR
+ // (name = "example-network-2")
+ // ```
+ string filter = 4;
+
+ // Sorts list results by a certain order. By default, returned results
+ // are ordered by `name` in ascending order.
+ // You can also sort results in descending order based on the `name` value
+ // using `orderBy="name desc"`.
+ // Currently, only ordering by `name` is supported.
+ string order_by = 5;
+}
+
+// Response message for [VmwareEngine.ListVmwareEngineNetworks][google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks]
+message ListVmwareEngineNetworksResponse {
+ // A list of VMware Engine networks.
+ repeated VmwareEngineNetwork vmware_engine_networks = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Unreachable resources.
+ repeated string unreachable = 3;
+}
diff --git a/packages/google-cloud-vmwareengine/protos/protos.d.ts b/packages/google-cloud-vmwareengine/protos/protos.d.ts
new file mode 100644
index 00000000000..11afddcacbc
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/protos/protos.d.ts
@@ -0,0 +1,12597 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace vmwareengine. */
+ namespace vmwareengine {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a VmwareEngine */
+ class VmwareEngine extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new VmwareEngine 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 VmwareEngine 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): VmwareEngine;
+
+ /**
+ * Calls ListPrivateClouds.
+ * @param request ListPrivateCloudsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListPrivateCloudsResponse
+ */
+ public listPrivateClouds(request: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateCloudsCallback): void;
+
+ /**
+ * Calls ListPrivateClouds.
+ * @param request ListPrivateCloudsRequest message or plain object
+ * @returns Promise
+ */
+ public listPrivateClouds(request: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest): Promise;
+
+ /**
+ * Calls GetPrivateCloud.
+ * @param request GetPrivateCloudRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and PrivateCloud
+ */
+ public getPrivateCloud(request: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloudCallback): void;
+
+ /**
+ * Calls GetPrivateCloud.
+ * @param request GetPrivateCloudRequest message or plain object
+ * @returns Promise
+ */
+ public getPrivateCloud(request: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest): Promise;
+
+ /**
+ * Calls CreatePrivateCloud.
+ * @param request CreatePrivateCloudRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createPrivateCloud(request: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloudCallback): void;
+
+ /**
+ * Calls CreatePrivateCloud.
+ * @param request CreatePrivateCloudRequest message or plain object
+ * @returns Promise
+ */
+ public createPrivateCloud(request: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest): Promise;
+
+ /**
+ * Calls UpdatePrivateCloud.
+ * @param request UpdatePrivateCloudRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updatePrivateCloud(request: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloudCallback): void;
+
+ /**
+ * Calls UpdatePrivateCloud.
+ * @param request UpdatePrivateCloudRequest message or plain object
+ * @returns Promise
+ */
+ public updatePrivateCloud(request: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest): Promise;
+
+ /**
+ * Calls DeletePrivateCloud.
+ * @param request DeletePrivateCloudRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deletePrivateCloud(request: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloudCallback): void;
+
+ /**
+ * Calls DeletePrivateCloud.
+ * @param request DeletePrivateCloudRequest message or plain object
+ * @returns Promise
+ */
+ public deletePrivateCloud(request: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest): Promise;
+
+ /**
+ * Calls UndeletePrivateCloud.
+ * @param request UndeletePrivateCloudRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public undeletePrivateCloud(request: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloudCallback): void;
+
+ /**
+ * Calls UndeletePrivateCloud.
+ * @param request UndeletePrivateCloudRequest message or plain object
+ * @returns Promise
+ */
+ public undeletePrivateCloud(request: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest): Promise;
+
+ /**
+ * Calls ListClusters.
+ * @param request ListClustersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListClustersResponse
+ */
+ public listClusters(request: google.cloud.vmwareengine.v1.IListClustersRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListClustersCallback): void;
+
+ /**
+ * Calls ListClusters.
+ * @param request ListClustersRequest message or plain object
+ * @returns Promise
+ */
+ public listClusters(request: google.cloud.vmwareengine.v1.IListClustersRequest): Promise;
+
+ /**
+ * Calls GetCluster.
+ * @param request GetClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Cluster
+ */
+ public getCluster(request: google.cloud.vmwareengine.v1.IGetClusterRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetClusterCallback): void;
+
+ /**
+ * Calls GetCluster.
+ * @param request GetClusterRequest message or plain object
+ * @returns Promise
+ */
+ public getCluster(request: google.cloud.vmwareengine.v1.IGetClusterRequest): Promise;
+
+ /**
+ * Calls CreateCluster.
+ * @param request CreateClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createCluster(request: google.cloud.vmwareengine.v1.ICreateClusterRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateClusterCallback): void;
+
+ /**
+ * Calls CreateCluster.
+ * @param request CreateClusterRequest message or plain object
+ * @returns Promise
+ */
+ public createCluster(request: google.cloud.vmwareengine.v1.ICreateClusterRequest): Promise;
+
+ /**
+ * Calls UpdateCluster.
+ * @param request UpdateClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateCluster(request: google.cloud.vmwareengine.v1.IUpdateClusterRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateClusterCallback): void;
+
+ /**
+ * Calls UpdateCluster.
+ * @param request UpdateClusterRequest message or plain object
+ * @returns Promise
+ */
+ public updateCluster(request: google.cloud.vmwareengine.v1.IUpdateClusterRequest): Promise;
+
+ /**
+ * Calls DeleteCluster.
+ * @param request DeleteClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteCluster(request: google.cloud.vmwareengine.v1.IDeleteClusterRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteClusterCallback): void;
+
+ /**
+ * Calls DeleteCluster.
+ * @param request DeleteClusterRequest message or plain object
+ * @returns Promise
+ */
+ public deleteCluster(request: google.cloud.vmwareengine.v1.IDeleteClusterRequest): Promise;
+
+ /**
+ * Calls ListSubnets.
+ * @param request ListSubnetsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListSubnetsResponse
+ */
+ public listSubnets(request: google.cloud.vmwareengine.v1.IListSubnetsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListSubnetsCallback): void;
+
+ /**
+ * Calls ListSubnets.
+ * @param request ListSubnetsRequest message or plain object
+ * @returns Promise
+ */
+ public listSubnets(request: google.cloud.vmwareengine.v1.IListSubnetsRequest): Promise;
+
+ /**
+ * Calls ListNodeTypes.
+ * @param request ListNodeTypesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListNodeTypesResponse
+ */
+ public listNodeTypes(request: google.cloud.vmwareengine.v1.IListNodeTypesRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypesCallback): void;
+
+ /**
+ * Calls ListNodeTypes.
+ * @param request ListNodeTypesRequest message or plain object
+ * @returns Promise
+ */
+ public listNodeTypes(request: google.cloud.vmwareengine.v1.IListNodeTypesRequest): Promise;
+
+ /**
+ * Calls GetNodeType.
+ * @param request GetNodeTypeRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and NodeType
+ */
+ public getNodeType(request: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetNodeTypeCallback): void;
+
+ /**
+ * Calls GetNodeType.
+ * @param request GetNodeTypeRequest message or plain object
+ * @returns Promise
+ */
+ public getNodeType(request: google.cloud.vmwareengine.v1.IGetNodeTypeRequest): Promise;
+
+ /**
+ * Calls ShowNsxCredentials.
+ * @param request ShowNsxCredentialsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Credentials
+ */
+ public showNsxCredentials(request: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentialsCallback): void;
+
+ /**
+ * Calls ShowNsxCredentials.
+ * @param request ShowNsxCredentialsRequest message or plain object
+ * @returns Promise
+ */
+ public showNsxCredentials(request: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest): Promise;
+
+ /**
+ * Calls ShowVcenterCredentials.
+ * @param request ShowVcenterCredentialsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Credentials
+ */
+ public showVcenterCredentials(request: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentialsCallback): void;
+
+ /**
+ * Calls ShowVcenterCredentials.
+ * @param request ShowVcenterCredentialsRequest message or plain object
+ * @returns Promise
+ */
+ public showVcenterCredentials(request: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest): Promise;
+
+ /**
+ * Calls ResetNsxCredentials.
+ * @param request ResetNsxCredentialsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public resetNsxCredentials(request: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentialsCallback): void;
+
+ /**
+ * Calls ResetNsxCredentials.
+ * @param request ResetNsxCredentialsRequest message or plain object
+ * @returns Promise
+ */
+ public resetNsxCredentials(request: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest): Promise;
+
+ /**
+ * Calls ResetVcenterCredentials.
+ * @param request ResetVcenterCredentialsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public resetVcenterCredentials(request: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentialsCallback): void;
+
+ /**
+ * Calls ResetVcenterCredentials.
+ * @param request ResetVcenterCredentialsRequest message or plain object
+ * @returns Promise
+ */
+ public resetVcenterCredentials(request: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest): Promise;
+
+ /**
+ * Calls CreateHcxActivationKey.
+ * @param request CreateHcxActivationKeyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createHcxActivationKey(request: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKeyCallback): void;
+
+ /**
+ * Calls CreateHcxActivationKey.
+ * @param request CreateHcxActivationKeyRequest message or plain object
+ * @returns Promise
+ */
+ public createHcxActivationKey(request: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest): Promise;
+
+ /**
+ * Calls ListHcxActivationKeys.
+ * @param request ListHcxActivationKeysRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListHcxActivationKeysResponse
+ */
+ public listHcxActivationKeys(request: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeysCallback): void;
+
+ /**
+ * Calls ListHcxActivationKeys.
+ * @param request ListHcxActivationKeysRequest message or plain object
+ * @returns Promise
+ */
+ public listHcxActivationKeys(request: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest): Promise;
+
+ /**
+ * Calls GetHcxActivationKey.
+ * @param request GetHcxActivationKeyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and HcxActivationKey
+ */
+ public getHcxActivationKey(request: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKeyCallback): void;
+
+ /**
+ * Calls GetHcxActivationKey.
+ * @param request GetHcxActivationKeyRequest message or plain object
+ * @returns Promise
+ */
+ public getHcxActivationKey(request: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest): Promise;
+
+ /**
+ * Calls GetNetworkPolicy.
+ * @param request GetNetworkPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and NetworkPolicy
+ */
+ public getNetworkPolicy(request: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicyCallback): void;
+
+ /**
+ * Calls GetNetworkPolicy.
+ * @param request GetNetworkPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getNetworkPolicy(request: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest): Promise;
+
+ /**
+ * Calls ListNetworkPolicies.
+ * @param request ListNetworkPoliciesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListNetworkPoliciesResponse
+ */
+ public listNetworkPolicies(request: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPoliciesCallback): void;
+
+ /**
+ * Calls ListNetworkPolicies.
+ * @param request ListNetworkPoliciesRequest message or plain object
+ * @returns Promise
+ */
+ public listNetworkPolicies(request: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest): Promise;
+
+ /**
+ * Calls CreateNetworkPolicy.
+ * @param request CreateNetworkPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createNetworkPolicy(request: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicyCallback): void;
+
+ /**
+ * Calls CreateNetworkPolicy.
+ * @param request CreateNetworkPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public createNetworkPolicy(request: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest): Promise;
+
+ /**
+ * Calls UpdateNetworkPolicy.
+ * @param request UpdateNetworkPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateNetworkPolicy(request: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicyCallback): void;
+
+ /**
+ * Calls UpdateNetworkPolicy.
+ * @param request UpdateNetworkPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public updateNetworkPolicy(request: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest): Promise;
+
+ /**
+ * Calls DeleteNetworkPolicy.
+ * @param request DeleteNetworkPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteNetworkPolicy(request: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicyCallback): void;
+
+ /**
+ * Calls DeleteNetworkPolicy.
+ * @param request DeleteNetworkPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public deleteNetworkPolicy(request: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest): Promise;
+
+ /**
+ * Calls CreateVmwareEngineNetwork.
+ * @param request CreateVmwareEngineNetworkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetworkCallback): void;
+
+ /**
+ * Calls CreateVmwareEngineNetwork.
+ * @param request CreateVmwareEngineNetworkRequest message or plain object
+ * @returns Promise
+ */
+ public createVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest): Promise;
+
+ /**
+ * Calls UpdateVmwareEngineNetwork.
+ * @param request UpdateVmwareEngineNetworkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetworkCallback): void;
+
+ /**
+ * Calls UpdateVmwareEngineNetwork.
+ * @param request UpdateVmwareEngineNetworkRequest message or plain object
+ * @returns Promise
+ */
+ public updateVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest): Promise;
+
+ /**
+ * Calls DeleteVmwareEngineNetwork.
+ * @param request DeleteVmwareEngineNetworkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetworkCallback): void;
+
+ /**
+ * Calls DeleteVmwareEngineNetwork.
+ * @param request DeleteVmwareEngineNetworkRequest message or plain object
+ * @returns Promise
+ */
+ public deleteVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest): Promise;
+
+ /**
+ * Calls GetVmwareEngineNetwork.
+ * @param request GetVmwareEngineNetworkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and VmwareEngineNetwork
+ */
+ public getVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetworkCallback): void;
+
+ /**
+ * Calls GetVmwareEngineNetwork.
+ * @param request GetVmwareEngineNetworkRequest message or plain object
+ * @returns Promise
+ */
+ public getVmwareEngineNetwork(request: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest): Promise;
+
+ /**
+ * Calls ListVmwareEngineNetworks.
+ * @param request ListVmwareEngineNetworksRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListVmwareEngineNetworksResponse
+ */
+ public listVmwareEngineNetworks(request: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, callback: google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworksCallback): void;
+
+ /**
+ * Calls ListVmwareEngineNetworks.
+ * @param request ListVmwareEngineNetworksRequest message or plain object
+ * @returns Promise
+ */
+ public listVmwareEngineNetworks(request: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest): Promise;
+ }
+
+ namespace VmwareEngine {
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateClouds}.
+ * @param error Error, if any
+ * @param [response] ListPrivateCloudsResponse
+ */
+ type ListPrivateCloudsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListPrivateCloudsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getPrivateCloud}.
+ * @param error Error, if any
+ * @param [response] PrivateCloud
+ */
+ type GetPrivateCloudCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.PrivateCloud) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createPrivateCloud}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreatePrivateCloudCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updatePrivateCloud}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdatePrivateCloudCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deletePrivateCloud}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeletePrivateCloudCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|undeletePrivateCloud}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UndeletePrivateCloudCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listClusters}.
+ * @param error Error, if any
+ * @param [response] ListClustersResponse
+ */
+ type ListClustersCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListClustersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getCluster}.
+ * @param error Error, if any
+ * @param [response] Cluster
+ */
+ type GetClusterCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.Cluster) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createCluster}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateCluster}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteCluster}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listSubnets}.
+ * @param error Error, if any
+ * @param [response] ListSubnetsResponse
+ */
+ type ListSubnetsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListSubnetsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNodeTypes}.
+ * @param error Error, if any
+ * @param [response] ListNodeTypesResponse
+ */
+ type ListNodeTypesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListNodeTypesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNodeType}.
+ * @param error Error, if any
+ * @param [response] NodeType
+ */
+ type GetNodeTypeCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.NodeType) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showNsxCredentials}.
+ * @param error Error, if any
+ * @param [response] Credentials
+ */
+ type ShowNsxCredentialsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.Credentials) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showVcenterCredentials}.
+ * @param error Error, if any
+ * @param [response] Credentials
+ */
+ type ShowVcenterCredentialsCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.Credentials) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetNsxCredentials}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ResetNsxCredentialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetVcenterCredentials}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ResetVcenterCredentialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createHcxActivationKey}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateHcxActivationKeyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listHcxActivationKeys}.
+ * @param error Error, if any
+ * @param [response] ListHcxActivationKeysResponse
+ */
+ type ListHcxActivationKeysCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getHcxActivationKey}.
+ * @param error Error, if any
+ * @param [response] HcxActivationKey
+ */
+ type GetHcxActivationKeyCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.HcxActivationKey) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNetworkPolicy}.
+ * @param error Error, if any
+ * @param [response] NetworkPolicy
+ */
+ type GetNetworkPolicyCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.NetworkPolicy) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNetworkPolicies}.
+ * @param error Error, if any
+ * @param [response] ListNetworkPoliciesResponse
+ */
+ type ListNetworkPoliciesCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createNetworkPolicy}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateNetworkPolicyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateNetworkPolicy}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateNetworkPolicyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteNetworkPolicy}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteNetworkPolicyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createVmwareEngineNetwork}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateVmwareEngineNetworkCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateVmwareEngineNetwork}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateVmwareEngineNetworkCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteVmwareEngineNetwork}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteVmwareEngineNetworkCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getVmwareEngineNetwork}.
+ * @param error Error, if any
+ * @param [response] VmwareEngineNetwork
+ */
+ type GetVmwareEngineNetworkCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.VmwareEngineNetwork) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listVmwareEngineNetworks}.
+ * @param error Error, if any
+ * @param [response] ListVmwareEngineNetworksResponse
+ */
+ type ListVmwareEngineNetworksCallback = (error: (Error|null), response?: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse) => void;
+ }
+
+ /** Properties of a NetworkConfig. */
+ interface INetworkConfig {
+
+ /** NetworkConfig managementCidr */
+ managementCidr?: (string|null);
+
+ /** NetworkConfig vmwareEngineNetwork */
+ vmwareEngineNetwork?: (string|null);
+
+ /** NetworkConfig vmwareEngineNetworkCanonical */
+ vmwareEngineNetworkCanonical?: (string|null);
+
+ /** NetworkConfig managementIpAddressLayoutVersion */
+ managementIpAddressLayoutVersion?: (number|null);
+ }
+
+ /** Represents a NetworkConfig. */
+ class NetworkConfig implements INetworkConfig {
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.INetworkConfig);
+
+ /** NetworkConfig managementCidr. */
+ public managementCidr: string;
+
+ /** NetworkConfig vmwareEngineNetwork. */
+ public vmwareEngineNetwork: string;
+
+ /** NetworkConfig vmwareEngineNetworkCanonical. */
+ public vmwareEngineNetworkCanonical: string;
+
+ /** NetworkConfig managementIpAddressLayoutVersion. */
+ public managementIpAddressLayoutVersion: number;
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkConfig instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.INetworkConfig): google.cloud.vmwareengine.v1.NetworkConfig;
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmwareengine.v1.NetworkConfig;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmwareengine.v1.NetworkConfig;
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkConfig;
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @param message NetworkConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeTypeConfig. */
+ interface INodeTypeConfig {
+
+ /** NodeTypeConfig nodeCount */
+ nodeCount?: (number|null);
+
+ /** NodeTypeConfig customCoreCount */
+ customCoreCount?: (number|null);
+ }
+
+ /** Represents a NodeTypeConfig. */
+ class NodeTypeConfig implements INodeTypeConfig {
+
+ /**
+ * Constructs a new NodeTypeConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig);
+
+ /** NodeTypeConfig nodeCount. */
+ public nodeCount: number;
+
+ /** NodeTypeConfig customCoreCount. */
+ public customCoreCount: number;
+
+ /**
+ * Creates a new NodeTypeConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeTypeConfig instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.INodeTypeConfig): google.cloud.vmwareengine.v1.NodeTypeConfig;
+
+ /**
+ * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages.
+ * @param message NodeTypeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages.
+ * @param message NodeTypeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeTypeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeTypeConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeTypeConfig
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.NodeTypeConfig;
+
+ /**
+ * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeTypeConfig
+ * @throws {Error} If the payload 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.vmwareengine.v1.NodeTypeConfig;
+
+ /**
+ * Verifies a NodeTypeConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeTypeConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeTypeConfig;
+
+ /**
+ * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified.
+ * @param message NodeTypeConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.NodeTypeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeTypeConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeTypeConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PrivateCloud. */
+ interface IPrivateCloud {
+
+ /** PrivateCloud name */
+ name?: (string|null);
+
+ /** PrivateCloud createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud deleteTime */
+ deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud expireTime */
+ expireTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud state */
+ state?: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State|null);
+
+ /** PrivateCloud networkConfig */
+ networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null);
+
+ /** PrivateCloud managementCluster */
+ managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null);
+
+ /** PrivateCloud description */
+ description?: (string|null);
+
+ /** PrivateCloud hcx */
+ hcx?: (google.cloud.vmwareengine.v1.IHcx|null);
+
+ /** PrivateCloud nsx */
+ nsx?: (google.cloud.vmwareengine.v1.INsx|null);
+
+ /** PrivateCloud vcenter */
+ vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null);
+
+ /** PrivateCloud uid */
+ uid?: (string|null);
+ }
+
+ /** Represents a PrivateCloud. */
+ class PrivateCloud implements IPrivateCloud {
+
+ /**
+ * Constructs a new PrivateCloud.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IPrivateCloud);
+
+ /** PrivateCloud name. */
+ public name: string;
+
+ /** PrivateCloud createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud deleteTime. */
+ public deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud expireTime. */
+ public expireTime?: (google.protobuf.ITimestamp|null);
+
+ /** PrivateCloud state. */
+ public state: (google.cloud.vmwareengine.v1.PrivateCloud.State|keyof typeof google.cloud.vmwareengine.v1.PrivateCloud.State);
+
+ /** PrivateCloud networkConfig. */
+ public networkConfig?: (google.cloud.vmwareengine.v1.INetworkConfig|null);
+
+ /** PrivateCloud managementCluster. */
+ public managementCluster?: (google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null);
+
+ /** PrivateCloud description. */
+ public description: string;
+
+ /** PrivateCloud hcx. */
+ public hcx?: (google.cloud.vmwareengine.v1.IHcx|null);
+
+ /** PrivateCloud nsx. */
+ public nsx?: (google.cloud.vmwareengine.v1.INsx|null);
+
+ /** PrivateCloud vcenter. */
+ public vcenter?: (google.cloud.vmwareengine.v1.IVcenter|null);
+
+ /** PrivateCloud uid. */
+ public uid: string;
+
+ /**
+ * Creates a new PrivateCloud instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrivateCloud instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IPrivateCloud): google.cloud.vmwareengine.v1.PrivateCloud;
+
+ /**
+ * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages.
+ * @param message PrivateCloud message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages.
+ * @param message PrivateCloud message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IPrivateCloud, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrivateCloud message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrivateCloud
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.PrivateCloud;
+
+ /**
+ * Decodes a PrivateCloud message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrivateCloud
+ * @throws {Error} If the payload 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.vmwareengine.v1.PrivateCloud;
+
+ /**
+ * Verifies a PrivateCloud message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrivateCloud
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud;
+
+ /**
+ * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified.
+ * @param message PrivateCloud
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrivateCloud to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrivateCloud
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PrivateCloud {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CREATING = 2,
+ UPDATING = 3,
+ FAILED = 5,
+ DELETED = 6,
+ PURGING = 7
+ }
+
+ /** Properties of a ManagementCluster. */
+ interface IManagementCluster {
+
+ /** ManagementCluster clusterId */
+ clusterId?: (string|null);
+
+ /** ManagementCluster nodeTypeConfigs */
+ nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null);
+ }
+
+ /** Represents a ManagementCluster. */
+ class ManagementCluster implements IManagementCluster {
+
+ /**
+ * Constructs a new ManagementCluster.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster);
+
+ /** ManagementCluster clusterId. */
+ public clusterId: string;
+
+ /** ManagementCluster nodeTypeConfigs. */
+ public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig };
+
+ /**
+ * Creates a new ManagementCluster instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ManagementCluster instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster;
+
+ /**
+ * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages.
+ * @param message ManagementCluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages.
+ * @param message ManagementCluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ManagementCluster message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ManagementCluster
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.PrivateCloud.ManagementCluster;
+
+ /**
+ * Decodes a ManagementCluster message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ManagementCluster
+ * @throws {Error} If the payload 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.vmwareengine.v1.PrivateCloud.ManagementCluster;
+
+ /**
+ * Verifies a ManagementCluster message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ManagementCluster
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster;
+
+ /**
+ * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified.
+ * @param message ManagementCluster
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ManagementCluster to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ManagementCluster
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a ListPrivateCloudsRequest. */
+ interface IListPrivateCloudsRequest {
+
+ /** ListPrivateCloudsRequest parent */
+ parent?: (string|null);
+
+ /** ListPrivateCloudsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListPrivateCloudsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListPrivateCloudsRequest filter */
+ filter?: (string|null);
+
+ /** ListPrivateCloudsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListPrivateCloudsRequest. */
+ class ListPrivateCloudsRequest implements IListPrivateCloudsRequest {
+
+ /**
+ * Constructs a new ListPrivateCloudsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest);
+
+ /** ListPrivateCloudsRequest parent. */
+ public parent: string;
+
+ /** ListPrivateCloudsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListPrivateCloudsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListPrivateCloudsRequest filter. */
+ public filter: string;
+
+ /** ListPrivateCloudsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListPrivateCloudsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPrivateCloudsRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
+
+ /**
+ * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages.
+ * @param message ListPrivateCloudsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages.
+ * @param message ListPrivateCloudsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateCloudsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPrivateCloudsRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListPrivateCloudsRequest;
+
+ /**
+ * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPrivateCloudsRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListPrivateCloudsRequest;
+
+ /**
+ * Verifies a ListPrivateCloudsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPrivateCloudsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
+
+ /**
+ * Creates a plain object from a ListPrivateCloudsRequest message. Also converts values to other types if specified.
+ * @param message ListPrivateCloudsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPrivateCloudsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPrivateCloudsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListPrivateCloudsResponse. */
+ interface IListPrivateCloudsResponse {
+
+ /** ListPrivateCloudsResponse privateClouds */
+ privateClouds?: (google.cloud.vmwareengine.v1.IPrivateCloud[]|null);
+
+ /** ListPrivateCloudsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListPrivateCloudsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListPrivateCloudsResponse. */
+ class ListPrivateCloudsResponse implements IListPrivateCloudsResponse {
+
+ /**
+ * Constructs a new ListPrivateCloudsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse);
+
+ /** ListPrivateCloudsResponse privateClouds. */
+ public privateClouds: google.cloud.vmwareengine.v1.IPrivateCloud[];
+
+ /** ListPrivateCloudsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListPrivateCloudsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListPrivateCloudsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListPrivateCloudsResponse instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+
+ /**
+ * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages.
+ * @param message ListPrivateCloudsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages.
+ * @param message ListPrivateCloudsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListPrivateCloudsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListPrivateCloudsResponse
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListPrivateCloudsResponse;
+
+ /**
+ * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListPrivateCloudsResponse
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListPrivateCloudsResponse;
+
+ /**
+ * Verifies a ListPrivateCloudsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListPrivateCloudsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+
+ /**
+ * Creates a plain object from a ListPrivateCloudsResponse message. Also converts values to other types if specified.
+ * @param message ListPrivateCloudsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListPrivateCloudsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListPrivateCloudsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListPrivateCloudsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetPrivateCloudRequest. */
+ interface IGetPrivateCloudRequest {
+
+ /** GetPrivateCloudRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetPrivateCloudRequest. */
+ class GetPrivateCloudRequest implements IGetPrivateCloudRequest {
+
+ /**
+ * Constructs a new GetPrivateCloudRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest);
+
+ /** GetPrivateCloudRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetPrivateCloudRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetPrivateCloudRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest): google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+
+ /**
+ * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages.
+ * @param message GetPrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages.
+ * @param message GetPrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetPrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetPrivateCloudRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetPrivateCloudRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.GetPrivateCloudRequest;
+
+ /**
+ * Decodes a GetPrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetPrivateCloudRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.GetPrivateCloudRequest;
+
+ /**
+ * Verifies a GetPrivateCloudRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetPrivateCloudRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+
+ /**
+ * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified.
+ * @param message GetPrivateCloudRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.GetPrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetPrivateCloudRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetPrivateCloudRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreatePrivateCloudRequest. */
+ interface ICreatePrivateCloudRequest {
+
+ /** CreatePrivateCloudRequest parent */
+ parent?: (string|null);
+
+ /** CreatePrivateCloudRequest privateCloudId */
+ privateCloudId?: (string|null);
+
+ /** CreatePrivateCloudRequest privateCloud */
+ privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null);
+
+ /** CreatePrivateCloudRequest requestId */
+ requestId?: (string|null);
+
+ /** CreatePrivateCloudRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a CreatePrivateCloudRequest. */
+ class CreatePrivateCloudRequest implements ICreatePrivateCloudRequest {
+
+ /**
+ * Constructs a new CreatePrivateCloudRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest);
+
+ /** CreatePrivateCloudRequest parent. */
+ public parent: string;
+
+ /** CreatePrivateCloudRequest privateCloudId. */
+ public privateCloudId: string;
+
+ /** CreatePrivateCloudRequest privateCloud. */
+ public privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null);
+
+ /** CreatePrivateCloudRequest requestId. */
+ public requestId: string;
+
+ /** CreatePrivateCloudRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new CreatePrivateCloudRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreatePrivateCloudRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+
+ /**
+ * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages.
+ * @param message CreatePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages.
+ * @param message CreatePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreatePrivateCloudRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.CreatePrivateCloudRequest;
+
+ /**
+ * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreatePrivateCloudRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.CreatePrivateCloudRequest;
+
+ /**
+ * Verifies a CreatePrivateCloudRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreatePrivateCloudRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+
+ /**
+ * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified.
+ * @param message CreatePrivateCloudRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreatePrivateCloudRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreatePrivateCloudRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdatePrivateCloudRequest. */
+ interface IUpdatePrivateCloudRequest {
+
+ /** UpdatePrivateCloudRequest privateCloud */
+ privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null);
+
+ /** UpdatePrivateCloudRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdatePrivateCloudRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdatePrivateCloudRequest. */
+ class UpdatePrivateCloudRequest implements IUpdatePrivateCloudRequest {
+
+ /**
+ * Constructs a new UpdatePrivateCloudRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest);
+
+ /** UpdatePrivateCloudRequest privateCloud. */
+ public privateCloud?: (google.cloud.vmwareengine.v1.IPrivateCloud|null);
+
+ /** UpdatePrivateCloudRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdatePrivateCloudRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdatePrivateCloudRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdatePrivateCloudRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+
+ /**
+ * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages.
+ * @param message UpdatePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages.
+ * @param message UpdatePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdatePrivateCloudRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.UpdatePrivateCloudRequest;
+
+ /**
+ * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdatePrivateCloudRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.UpdatePrivateCloudRequest;
+
+ /**
+ * Verifies an UpdatePrivateCloudRequest message.
+ * @param message Plain 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 UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdatePrivateCloudRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+
+ /**
+ * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified.
+ * @param message UpdatePrivateCloudRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdatePrivateCloudRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdatePrivateCloudRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeletePrivateCloudRequest. */
+ interface IDeletePrivateCloudRequest {
+
+ /** DeletePrivateCloudRequest name */
+ name?: (string|null);
+
+ /** DeletePrivateCloudRequest requestId */
+ requestId?: (string|null);
+
+ /** DeletePrivateCloudRequest force */
+ force?: (boolean|null);
+
+ /** DeletePrivateCloudRequest delayHours */
+ delayHours?: (number|null);
+ }
+
+ /** Represents a DeletePrivateCloudRequest. */
+ class DeletePrivateCloudRequest implements IDeletePrivateCloudRequest {
+
+ /**
+ * Constructs a new DeletePrivateCloudRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest);
+
+ /** DeletePrivateCloudRequest name. */
+ public name: string;
+
+ /** DeletePrivateCloudRequest requestId. */
+ public requestId: string;
+
+ /** DeletePrivateCloudRequest force. */
+ public force: boolean;
+
+ /** DeletePrivateCloudRequest delayHours. */
+ public delayHours?: (number|null);
+
+ /** DeletePrivateCloudRequest _delayHours. */
+ public _delayHours?: "delayHours";
+
+ /**
+ * Creates a new DeletePrivateCloudRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeletePrivateCloudRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+
+ /**
+ * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages.
+ * @param message DeletePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages.
+ * @param message DeletePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeletePrivateCloudRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.DeletePrivateCloudRequest;
+
+ /**
+ * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeletePrivateCloudRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.DeletePrivateCloudRequest;
+
+ /**
+ * Verifies a DeletePrivateCloudRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeletePrivateCloudRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+
+ /**
+ * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified.
+ * @param message DeletePrivateCloudRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeletePrivateCloudRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeletePrivateCloudRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeletePrivateCloudRequest. */
+ interface IUndeletePrivateCloudRequest {
+
+ /** UndeletePrivateCloudRequest name */
+ name?: (string|null);
+
+ /** UndeletePrivateCloudRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UndeletePrivateCloudRequest. */
+ class UndeletePrivateCloudRequest implements IUndeletePrivateCloudRequest {
+
+ /**
+ * Constructs a new UndeletePrivateCloudRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest);
+
+ /** UndeletePrivateCloudRequest name. */
+ public name: string;
+
+ /** UndeletePrivateCloudRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UndeletePrivateCloudRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeletePrivateCloudRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
+
+ /**
+ * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages.
+ * @param message UndeletePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages.
+ * @param message UndeletePrivateCloudRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeletePrivateCloudRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.UndeletePrivateCloudRequest;
+
+ /**
+ * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeletePrivateCloudRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.UndeletePrivateCloudRequest;
+
+ /**
+ * Verifies an UndeletePrivateCloudRequest message.
+ * @param message Plain 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 UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeletePrivateCloudRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
+
+ /**
+ * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified.
+ * @param message UndeletePrivateCloudRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeletePrivateCloudRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeletePrivateCloudRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Cluster. */
+ interface ICluster {
+
+ /** Cluster name */
+ name?: (string|null);
+
+ /** Cluster createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster state */
+ state?: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State|null);
+
+ /** Cluster management */
+ management?: (boolean|null);
+
+ /** Cluster uid */
+ uid?: (string|null);
+
+ /** Cluster nodeTypeConfigs */
+ nodeTypeConfigs?: ({ [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig }|null);
+ }
+
+ /** Represents a Cluster. */
+ class Cluster implements ICluster {
+
+ /**
+ * Constructs a new Cluster.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ICluster);
+
+ /** Cluster name. */
+ public name: string;
+
+ /** Cluster createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster state. */
+ public state: (google.cloud.vmwareengine.v1.Cluster.State|keyof typeof google.cloud.vmwareengine.v1.Cluster.State);
+
+ /** Cluster management. */
+ public management: boolean;
+
+ /** Cluster uid. */
+ public uid: string;
+
+ /** Cluster nodeTypeConfigs. */
+ public nodeTypeConfigs: { [k: string]: google.cloud.vmwareengine.v1.INodeTypeConfig };
+
+ /**
+ * Creates a new Cluster instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Cluster instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ICluster): google.cloud.vmwareengine.v1.Cluster;
+
+ /**
+ * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages.
+ * @param message Cluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages.
+ * @param message Cluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Cluster
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.Cluster;
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Cluster
+ * @throws {Error} If the payload 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.vmwareengine.v1.Cluster;
+
+ /**
+ * Verifies a Cluster message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Cluster message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Cluster
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Cluster;
+
+ /**
+ * Creates a plain object from a Cluster message. Also converts values to other types if specified.
+ * @param message Cluster
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Cluster to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Cluster
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Cluster {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CREATING = 2,
+ UPDATING = 3,
+ DELETING = 4,
+ REPAIRING = 5
+ }
+ }
+
+ /** Properties of a ListClustersRequest. */
+ interface IListClustersRequest {
+
+ /** ListClustersRequest parent */
+ parent?: (string|null);
+
+ /** ListClustersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListClustersRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListClustersRequest filter */
+ filter?: (string|null);
+
+ /** ListClustersRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListClustersRequest. */
+ class ListClustersRequest implements IListClustersRequest {
+
+ /**
+ * Constructs a new ListClustersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListClustersRequest);
+
+ /** ListClustersRequest parent. */
+ public parent: string;
+
+ /** ListClustersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListClustersRequest pageToken. */
+ public pageToken: string;
+
+ /** ListClustersRequest filter. */
+ public filter: string;
+
+ /** ListClustersRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListClustersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListClustersRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListClustersRequest): google.cloud.vmwareengine.v1.ListClustersRequest;
+
+ /**
+ * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages.
+ * @param message ListClustersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages.
+ * @param message ListClustersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListClustersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListClustersRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListClustersRequest;
+
+ /**
+ * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListClustersRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListClustersRequest;
+
+ /**
+ * Verifies a ListClustersRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListClustersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListClustersRequest;
+
+ /**
+ * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified.
+ * @param message ListClustersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListClustersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListClustersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListClustersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListClustersResponse. */
+ interface IListClustersResponse {
+
+ /** ListClustersResponse clusters */
+ clusters?: (google.cloud.vmwareengine.v1.ICluster[]|null);
+
+ /** ListClustersResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListClustersResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListClustersResponse. */
+ class ListClustersResponse implements IListClustersResponse {
+
+ /**
+ * Constructs a new ListClustersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListClustersResponse);
+
+ /** ListClustersResponse clusters. */
+ public clusters: google.cloud.vmwareengine.v1.ICluster[];
+
+ /** ListClustersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListClustersResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListClustersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListClustersResponse instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListClustersResponse): google.cloud.vmwareengine.v1.ListClustersResponse;
+
+ /**
+ * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages.
+ * @param message ListClustersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages.
+ * @param message ListClustersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListClustersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListClustersResponse
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListClustersResponse;
+
+ /**
+ * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListClustersResponse
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListClustersResponse;
+
+ /**
+ * Verifies a ListClustersResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListClustersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListClustersResponse;
+
+ /**
+ * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified.
+ * @param message ListClustersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListClustersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListClustersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListClustersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetClusterRequest. */
+ interface IGetClusterRequest {
+
+ /** GetClusterRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetClusterRequest. */
+ class GetClusterRequest implements IGetClusterRequest {
+
+ /**
+ * Constructs a new GetClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IGetClusterRequest);
+
+ /** GetClusterRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetClusterRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IGetClusterRequest): google.cloud.vmwareengine.v1.GetClusterRequest;
+
+ /**
+ * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages.
+ * @param message GetClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages.
+ * @param message GetClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetClusterRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.GetClusterRequest;
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetClusterRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.GetClusterRequest;
+
+ /**
+ * Verifies a GetClusterRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetClusterRequest;
+
+ /**
+ * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified.
+ * @param message GetClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.GetClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateClusterRequest. */
+ interface ICreateClusterRequest {
+
+ /** CreateClusterRequest parent */
+ parent?: (string|null);
+
+ /** CreateClusterRequest clusterId */
+ clusterId?: (string|null);
+
+ /** CreateClusterRequest cluster */
+ cluster?: (google.cloud.vmwareengine.v1.ICluster|null);
+
+ /** CreateClusterRequest requestId */
+ requestId?: (string|null);
+
+ /** CreateClusterRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a CreateClusterRequest. */
+ class CreateClusterRequest implements ICreateClusterRequest {
+
+ /**
+ * Constructs a new CreateClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ICreateClusterRequest);
+
+ /** CreateClusterRequest parent. */
+ public parent: string;
+
+ /** CreateClusterRequest clusterId. */
+ public clusterId: string;
+
+ /** CreateClusterRequest cluster. */
+ public cluster?: (google.cloud.vmwareengine.v1.ICluster|null);
+
+ /** CreateClusterRequest requestId. */
+ public requestId: string;
+
+ /** CreateClusterRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new CreateClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateClusterRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ICreateClusterRequest): google.cloud.vmwareengine.v1.CreateClusterRequest;
+
+ /**
+ * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages.
+ * @param message CreateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages.
+ * @param message CreateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateClusterRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.CreateClusterRequest;
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateClusterRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.CreateClusterRequest;
+
+ /**
+ * Verifies a CreateClusterRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateClusterRequest;
+
+ /**
+ * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified.
+ * @param message CreateClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.CreateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateClusterRequest. */
+ interface IUpdateClusterRequest {
+
+ /** UpdateClusterRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateClusterRequest cluster */
+ cluster?: (google.cloud.vmwareengine.v1.ICluster|null);
+
+ /** UpdateClusterRequest requestId */
+ requestId?: (string|null);
+
+ /** UpdateClusterRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents an UpdateClusterRequest. */
+ class UpdateClusterRequest implements IUpdateClusterRequest {
+
+ /**
+ * Constructs a new UpdateClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IUpdateClusterRequest);
+
+ /** UpdateClusterRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateClusterRequest cluster. */
+ public cluster?: (google.cloud.vmwareengine.v1.ICluster|null);
+
+ /** UpdateClusterRequest requestId. */
+ public requestId: string;
+
+ /** UpdateClusterRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new UpdateClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateClusterRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IUpdateClusterRequest): google.cloud.vmwareengine.v1.UpdateClusterRequest;
+
+ /**
+ * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages.
+ * @param message UpdateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages.
+ * @param message UpdateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateClusterRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.UpdateClusterRequest;
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateClusterRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.UpdateClusterRequest;
+
+ /**
+ * Verifies an UpdateClusterRequest message.
+ * @param message Plain 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 UpdateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateClusterRequest;
+
+ /**
+ * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified.
+ * @param message UpdateClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.UpdateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteClusterRequest. */
+ interface IDeleteClusterRequest {
+
+ /** DeleteClusterRequest name */
+ name?: (string|null);
+
+ /** DeleteClusterRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteClusterRequest. */
+ class DeleteClusterRequest implements IDeleteClusterRequest {
+
+ /**
+ * Constructs a new DeleteClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IDeleteClusterRequest);
+
+ /** DeleteClusterRequest name. */
+ public name: string;
+
+ /** DeleteClusterRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteClusterRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IDeleteClusterRequest): google.cloud.vmwareengine.v1.DeleteClusterRequest;
+
+ /**
+ * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages.
+ * @param message DeleteClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages.
+ * @param message DeleteClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteClusterRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.DeleteClusterRequest;
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteClusterRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.DeleteClusterRequest;
+
+ /**
+ * Verifies a DeleteClusterRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteClusterRequest;
+
+ /**
+ * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified.
+ * @param message DeleteClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.DeleteClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Subnet. */
+ interface ISubnet {
+
+ /** Subnet name */
+ name?: (string|null);
+
+ /** Subnet ipCidrRange */
+ ipCidrRange?: (string|null);
+
+ /** Subnet gatewayIp */
+ gatewayIp?: (string|null);
+
+ /** Subnet type */
+ type?: (string|null);
+
+ /** Subnet state */
+ state?: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State|null);
+ }
+
+ /** Represents a Subnet. */
+ class Subnet implements ISubnet {
+
+ /**
+ * Constructs a new Subnet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ISubnet);
+
+ /** Subnet name. */
+ public name: string;
+
+ /** Subnet ipCidrRange. */
+ public ipCidrRange: string;
+
+ /** Subnet gatewayIp. */
+ public gatewayIp: string;
+
+ /** Subnet type. */
+ public type: string;
+
+ /** Subnet state. */
+ public state: (google.cloud.vmwareengine.v1.Subnet.State|keyof typeof google.cloud.vmwareengine.v1.Subnet.State);
+
+ /**
+ * Creates a new Subnet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Subnet instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ISubnet): google.cloud.vmwareengine.v1.Subnet;
+
+ /**
+ * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages.
+ * @param message Subnet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages.
+ * @param message Subnet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ISubnet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Subnet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Subnet
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.Subnet;
+
+ /**
+ * Decodes a Subnet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Subnet
+ * @throws {Error} If the payload 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.vmwareengine.v1.Subnet;
+
+ /**
+ * Verifies a Subnet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Subnet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Subnet
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Subnet;
+
+ /**
+ * Creates a plain object from a Subnet message. Also converts values to other types if specified.
+ * @param message Subnet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.Subnet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Subnet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Subnet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Subnet {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CREATING = 2,
+ UPDATING = 3,
+ DELETING = 4
+ }
+ }
+
+ /** Properties of a ListSubnetsRequest. */
+ interface IListSubnetsRequest {
+
+ /** ListSubnetsRequest parent */
+ parent?: (string|null);
+
+ /** ListSubnetsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListSubnetsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListSubnetsRequest. */
+ class ListSubnetsRequest implements IListSubnetsRequest {
+
+ /**
+ * Constructs a new ListSubnetsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest);
+
+ /** ListSubnetsRequest parent. */
+ public parent: string;
+
+ /** ListSubnetsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListSubnetsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListSubnetsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSubnetsRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsRequest): google.cloud.vmwareengine.v1.ListSubnetsRequest;
+
+ /**
+ * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages.
+ * @param message ListSubnetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages.
+ * @param message ListSubnetsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSubnetsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSubnetsRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListSubnetsRequest;
+
+ /**
+ * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSubnetsRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListSubnetsRequest;
+
+ /**
+ * Verifies a ListSubnetsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSubnetsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsRequest;
+
+ /**
+ * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified.
+ * @param message ListSubnetsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSubnetsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSubnetsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSubnetsResponse. */
+ interface IListSubnetsResponse {
+
+ /** ListSubnetsResponse subnets */
+ subnets?: (google.cloud.vmwareengine.v1.ISubnet[]|null);
+
+ /** ListSubnetsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListSubnetsResponse. */
+ class ListSubnetsResponse implements IListSubnetsResponse {
+
+ /**
+ * Constructs a new ListSubnetsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse);
+
+ /** ListSubnetsResponse subnets. */
+ public subnets: google.cloud.vmwareengine.v1.ISubnet[];
+
+ /** ListSubnetsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListSubnetsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSubnetsResponse instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListSubnetsResponse): google.cloud.vmwareengine.v1.ListSubnetsResponse;
+
+ /**
+ * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages.
+ * @param message ListSubnetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages.
+ * @param message ListSubnetsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListSubnetsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSubnetsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSubnetsResponse
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListSubnetsResponse;
+
+ /**
+ * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSubnetsResponse
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListSubnetsResponse;
+
+ /**
+ * Verifies a ListSubnetsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSubnetsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListSubnetsResponse;
+
+ /**
+ * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified.
+ * @param message ListSubnetsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListSubnetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSubnetsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSubnetsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** 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.vmwareengine.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.vmwareengine.v1.IOperationMetadata): google.cloud.vmwareengine.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.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.vmwareengine.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.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.vmwareengine.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.vmwareengine.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.vmwareengine.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.vmwareengine.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.vmwareengine.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 NodeType. */
+ interface INodeType {
+
+ /** NodeType name */
+ name?: (string|null);
+
+ /** NodeType nodeTypeId */
+ nodeTypeId?: (string|null);
+
+ /** NodeType displayName */
+ displayName?: (string|null);
+
+ /** NodeType virtualCpuCount */
+ virtualCpuCount?: (number|null);
+
+ /** NodeType totalCoreCount */
+ totalCoreCount?: (number|null);
+
+ /** NodeType memoryGb */
+ memoryGb?: (number|null);
+
+ /** NodeType diskSizeGb */
+ diskSizeGb?: (number|null);
+
+ /** NodeType availableCustomCoreCounts */
+ availableCustomCoreCounts?: (number[]|null);
+ }
+
+ /** Represents a NodeType. */
+ class NodeType implements INodeType {
+
+ /**
+ * Constructs a new NodeType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.INodeType);
+
+ /** NodeType name. */
+ public name: string;
+
+ /** NodeType nodeTypeId. */
+ public nodeTypeId: string;
+
+ /** NodeType displayName. */
+ public displayName: string;
+
+ /** NodeType virtualCpuCount. */
+ public virtualCpuCount: number;
+
+ /** NodeType totalCoreCount. */
+ public totalCoreCount: number;
+
+ /** NodeType memoryGb. */
+ public memoryGb: number;
+
+ /** NodeType diskSizeGb. */
+ public diskSizeGb: number;
+
+ /** NodeType availableCustomCoreCounts. */
+ public availableCustomCoreCounts: number[];
+
+ /**
+ * Creates a new NodeType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeType instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.INodeType): google.cloud.vmwareengine.v1.NodeType;
+
+ /**
+ * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages.
+ * @param message NodeType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages.
+ * @param message NodeType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeType
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.NodeType;
+
+ /**
+ * Decodes a NodeType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeType
+ * @throws {Error} If the payload 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.vmwareengine.v1.NodeType;
+
+ /**
+ * Verifies a NodeType message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NodeType;
+
+ /**
+ * Creates a plain object from a NodeType message. Also converts values to other types if specified.
+ * @param message NodeType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.NodeType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListNodeTypesRequest. */
+ interface IListNodeTypesRequest {
+
+ /** ListNodeTypesRequest parent */
+ parent?: (string|null);
+
+ /** ListNodeTypesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListNodeTypesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListNodeTypesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListNodeTypesRequest. */
+ class ListNodeTypesRequest implements IListNodeTypesRequest {
+
+ /**
+ * Constructs a new ListNodeTypesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest);
+
+ /** ListNodeTypesRequest parent. */
+ public parent: string;
+
+ /** ListNodeTypesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListNodeTypesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListNodeTypesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListNodeTypesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListNodeTypesRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesRequest): google.cloud.vmwareengine.v1.ListNodeTypesRequest;
+
+ /**
+ * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages.
+ * @param message ListNodeTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages.
+ * @param message ListNodeTypesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListNodeTypesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListNodeTypesRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListNodeTypesRequest;
+
+ /**
+ * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListNodeTypesRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListNodeTypesRequest;
+
+ /**
+ * Verifies a ListNodeTypesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListNodeTypesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesRequest;
+
+ /**
+ * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified.
+ * @param message ListNodeTypesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListNodeTypesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListNodeTypesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListNodeTypesResponse. */
+ interface IListNodeTypesResponse {
+
+ /** ListNodeTypesResponse nodeTypes */
+ nodeTypes?: (google.cloud.vmwareengine.v1.INodeType[]|null);
+
+ /** ListNodeTypesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListNodeTypesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListNodeTypesResponse. */
+ class ListNodeTypesResponse implements IListNodeTypesResponse {
+
+ /**
+ * Constructs a new ListNodeTypesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse);
+
+ /** ListNodeTypesResponse nodeTypes. */
+ public nodeTypes: google.cloud.vmwareengine.v1.INodeType[];
+
+ /** ListNodeTypesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListNodeTypesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListNodeTypesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListNodeTypesResponse instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListNodeTypesResponse): google.cloud.vmwareengine.v1.ListNodeTypesResponse;
+
+ /**
+ * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages.
+ * @param message ListNodeTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages.
+ * @param message ListNodeTypesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNodeTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListNodeTypesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListNodeTypesResponse
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListNodeTypesResponse;
+
+ /**
+ * Decodes a ListNodeTypesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListNodeTypesResponse
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListNodeTypesResponse;
+
+ /**
+ * Verifies a ListNodeTypesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListNodeTypesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNodeTypesResponse;
+
+ /**
+ * Creates a plain object from a ListNodeTypesResponse message. Also converts values to other types if specified.
+ * @param message ListNodeTypesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListNodeTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListNodeTypesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListNodeTypesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetNodeTypeRequest. */
+ interface IGetNodeTypeRequest {
+
+ /** GetNodeTypeRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetNodeTypeRequest. */
+ class GetNodeTypeRequest implements IGetNodeTypeRequest {
+
+ /**
+ * Constructs a new GetNodeTypeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest);
+
+ /** GetNodeTypeRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetNodeTypeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetNodeTypeRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IGetNodeTypeRequest): google.cloud.vmwareengine.v1.GetNodeTypeRequest;
+
+ /**
+ * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages.
+ * @param message GetNodeTypeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages.
+ * @param message GetNodeTypeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNodeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetNodeTypeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetNodeTypeRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.GetNodeTypeRequest;
+
+ /**
+ * Decodes a GetNodeTypeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetNodeTypeRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.GetNodeTypeRequest;
+
+ /**
+ * Verifies a GetNodeTypeRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetNodeTypeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNodeTypeRequest;
+
+ /**
+ * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified.
+ * @param message GetNodeTypeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.GetNodeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetNodeTypeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetNodeTypeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Credentials. */
+ interface ICredentials {
+
+ /** Credentials username */
+ username?: (string|null);
+
+ /** Credentials password */
+ password?: (string|null);
+ }
+
+ /** Represents a Credentials. */
+ class Credentials implements ICredentials {
+
+ /**
+ * Constructs a new Credentials.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ICredentials);
+
+ /** Credentials username. */
+ public username: string;
+
+ /** Credentials password. */
+ public password: string;
+
+ /**
+ * Creates a new Credentials instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Credentials instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ICredentials): google.cloud.vmwareengine.v1.Credentials;
+
+ /**
+ * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages.
+ * @param message Credentials message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages.
+ * @param message Credentials message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Credentials message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Credentials
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.Credentials;
+
+ /**
+ * Decodes a Credentials message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Credentials
+ * @throws {Error} If the payload 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.vmwareengine.v1.Credentials;
+
+ /**
+ * Verifies a Credentials message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Credentials message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Credentials
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Credentials;
+
+ /**
+ * Creates a plain object from a Credentials message. Also converts values to other types if specified.
+ * @param message Credentials
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.Credentials, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Credentials to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Credentials
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ShowNsxCredentialsRequest. */
+ interface IShowNsxCredentialsRequest {
+
+ /** ShowNsxCredentialsRequest privateCloud */
+ privateCloud?: (string|null);
+ }
+
+ /** Represents a ShowNsxCredentialsRequest. */
+ class ShowNsxCredentialsRequest implements IShowNsxCredentialsRequest {
+
+ /**
+ * Constructs a new ShowNsxCredentialsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest);
+
+ /** ShowNsxCredentialsRequest privateCloud. */
+ public privateCloud: string;
+
+ /**
+ * Creates a new ShowNsxCredentialsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShowNsxCredentialsRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
+
+ /**
+ * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages.
+ * @param message ShowNsxCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages.
+ * @param message ShowNsxCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShowNsxCredentialsRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ShowNsxCredentialsRequest;
+
+ /**
+ * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShowNsxCredentialsRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ShowNsxCredentialsRequest;
+
+ /**
+ * Verifies a ShowNsxCredentialsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShowNsxCredentialsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
+
+ /**
+ * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified.
+ * @param message ShowNsxCredentialsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShowNsxCredentialsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShowNsxCredentialsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ShowVcenterCredentialsRequest. */
+ interface IShowVcenterCredentialsRequest {
+
+ /** ShowVcenterCredentialsRequest privateCloud */
+ privateCloud?: (string|null);
+ }
+
+ /** Represents a ShowVcenterCredentialsRequest. */
+ class ShowVcenterCredentialsRequest implements IShowVcenterCredentialsRequest {
+
+ /**
+ * Constructs a new ShowVcenterCredentialsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest);
+
+ /** ShowVcenterCredentialsRequest privateCloud. */
+ public privateCloud: string;
+
+ /**
+ * Creates a new ShowVcenterCredentialsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShowVcenterCredentialsRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+
+ /**
+ * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages.
+ * @param message ShowVcenterCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages.
+ * @param message ShowVcenterCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShowVcenterCredentialsRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ShowVcenterCredentialsRequest;
+
+ /**
+ * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShowVcenterCredentialsRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ShowVcenterCredentialsRequest;
+
+ /**
+ * Verifies a ShowVcenterCredentialsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShowVcenterCredentialsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+
+ /**
+ * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified.
+ * @param message ShowVcenterCredentialsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShowVcenterCredentialsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ShowVcenterCredentialsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResetNsxCredentialsRequest. */
+ interface IResetNsxCredentialsRequest {
+
+ /** ResetNsxCredentialsRequest privateCloud */
+ privateCloud?: (string|null);
+
+ /** ResetNsxCredentialsRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a ResetNsxCredentialsRequest. */
+ class ResetNsxCredentialsRequest implements IResetNsxCredentialsRequest {
+
+ /**
+ * Constructs a new ResetNsxCredentialsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest);
+
+ /** ResetNsxCredentialsRequest privateCloud. */
+ public privateCloud: string;
+
+ /** ResetNsxCredentialsRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new ResetNsxCredentialsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResetNsxCredentialsRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
+
+ /**
+ * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages.
+ * @param message ResetNsxCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages.
+ * @param message ResetNsxCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResetNsxCredentialsRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ResetNsxCredentialsRequest;
+
+ /**
+ * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResetNsxCredentialsRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ResetNsxCredentialsRequest;
+
+ /**
+ * Verifies a ResetNsxCredentialsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResetNsxCredentialsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
+
+ /**
+ * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified.
+ * @param message ResetNsxCredentialsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResetNsxCredentialsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResetNsxCredentialsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResetVcenterCredentialsRequest. */
+ interface IResetVcenterCredentialsRequest {
+
+ /** ResetVcenterCredentialsRequest privateCloud */
+ privateCloud?: (string|null);
+
+ /** ResetVcenterCredentialsRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a ResetVcenterCredentialsRequest. */
+ class ResetVcenterCredentialsRequest implements IResetVcenterCredentialsRequest {
+
+ /**
+ * Constructs a new ResetVcenterCredentialsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest);
+
+ /** ResetVcenterCredentialsRequest privateCloud. */
+ public privateCloud: string;
+
+ /** ResetVcenterCredentialsRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new ResetVcenterCredentialsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResetVcenterCredentialsRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
+
+ /**
+ * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages.
+ * @param message ResetVcenterCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages.
+ * @param message ResetVcenterCredentialsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResetVcenterCredentialsRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ResetVcenterCredentialsRequest;
+
+ /**
+ * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResetVcenterCredentialsRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ResetVcenterCredentialsRequest;
+
+ /**
+ * Verifies a ResetVcenterCredentialsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResetVcenterCredentialsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
+
+ /**
+ * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified.
+ * @param message ResetVcenterCredentialsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResetVcenterCredentialsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResetVcenterCredentialsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListHcxActivationKeysResponse. */
+ interface IListHcxActivationKeysResponse {
+
+ /** ListHcxActivationKeysResponse hcxActivationKeys */
+ hcxActivationKeys?: (google.cloud.vmwareengine.v1.IHcxActivationKey[]|null);
+
+ /** ListHcxActivationKeysResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListHcxActivationKeysResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListHcxActivationKeysResponse. */
+ class ListHcxActivationKeysResponse implements IListHcxActivationKeysResponse {
+
+ /**
+ * Constructs a new ListHcxActivationKeysResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse);
+
+ /** ListHcxActivationKeysResponse hcxActivationKeys. */
+ public hcxActivationKeys: google.cloud.vmwareengine.v1.IHcxActivationKey[];
+
+ /** ListHcxActivationKeysResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListHcxActivationKeysResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListHcxActivationKeysResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListHcxActivationKeysResponse instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse;
+
+ /**
+ * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages.
+ * @param message ListHcxActivationKeysResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages.
+ * @param message ListHcxActivationKeysResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListHcxActivationKeysResponse
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListHcxActivationKeysResponse;
+
+ /**
+ * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListHcxActivationKeysResponse
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListHcxActivationKeysResponse;
+
+ /**
+ * Verifies a ListHcxActivationKeysResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListHcxActivationKeysResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse;
+
+ /**
+ * Creates a plain object from a ListHcxActivationKeysResponse message. Also converts values to other types if specified.
+ * @param message ListHcxActivationKeysResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListHcxActivationKeysResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListHcxActivationKeysResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HcxActivationKey. */
+ interface IHcxActivationKey {
+
+ /** HcxActivationKey name */
+ name?: (string|null);
+
+ /** HcxActivationKey createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** HcxActivationKey state */
+ state?: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State|null);
+
+ /** HcxActivationKey activationKey */
+ activationKey?: (string|null);
+
+ /** HcxActivationKey uid */
+ uid?: (string|null);
+ }
+
+ /** Represents a HcxActivationKey. */
+ class HcxActivationKey implements IHcxActivationKey {
+
+ /**
+ * Constructs a new HcxActivationKey.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey);
+
+ /** HcxActivationKey name. */
+ public name: string;
+
+ /** HcxActivationKey createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** HcxActivationKey state. */
+ public state: (google.cloud.vmwareengine.v1.HcxActivationKey.State|keyof typeof google.cloud.vmwareengine.v1.HcxActivationKey.State);
+
+ /** HcxActivationKey activationKey. */
+ public activationKey: string;
+
+ /** HcxActivationKey uid. */
+ public uid: string;
+
+ /**
+ * Creates a new HcxActivationKey instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HcxActivationKey instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IHcxActivationKey): google.cloud.vmwareengine.v1.HcxActivationKey;
+
+ /**
+ * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages.
+ * @param message HcxActivationKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages.
+ * @param message HcxActivationKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcxActivationKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HcxActivationKey message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HcxActivationKey
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.HcxActivationKey;
+
+ /**
+ * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HcxActivationKey
+ * @throws {Error} If the payload 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.vmwareengine.v1.HcxActivationKey;
+
+ /**
+ * Verifies a HcxActivationKey message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HcxActivationKey
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.HcxActivationKey;
+
+ /**
+ * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified.
+ * @param message HcxActivationKey
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.HcxActivationKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HcxActivationKey to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HcxActivationKey
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HcxActivationKey {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ AVAILABLE = 1,
+ CONSUMED = 2,
+ CREATING = 3
+ }
+ }
+
+ /** Properties of a ListHcxActivationKeysRequest. */
+ interface IListHcxActivationKeysRequest {
+
+ /** ListHcxActivationKeysRequest parent */
+ parent?: (string|null);
+
+ /** ListHcxActivationKeysRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListHcxActivationKeysRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListHcxActivationKeysRequest. */
+ class ListHcxActivationKeysRequest implements IListHcxActivationKeysRequest {
+
+ /**
+ * Constructs a new ListHcxActivationKeysRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest);
+
+ /** ListHcxActivationKeysRequest parent. */
+ public parent: string;
+
+ /** ListHcxActivationKeysRequest pageSize. */
+ public pageSize: number;
+
+ /** ListHcxActivationKeysRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListHcxActivationKeysRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListHcxActivationKeysRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest;
+
+ /**
+ * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages.
+ * @param message ListHcxActivationKeysRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages.
+ * @param message ListHcxActivationKeysRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListHcxActivationKeysRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListHcxActivationKeysRequest;
+
+ /**
+ * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListHcxActivationKeysRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListHcxActivationKeysRequest;
+
+ /**
+ * Verifies a ListHcxActivationKeysRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListHcxActivationKeysRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest;
+
+ /**
+ * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified.
+ * @param message ListHcxActivationKeysRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListHcxActivationKeysRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListHcxActivationKeysRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetHcxActivationKeyRequest. */
+ interface IGetHcxActivationKeyRequest {
+
+ /** GetHcxActivationKeyRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetHcxActivationKeyRequest. */
+ class GetHcxActivationKeyRequest implements IGetHcxActivationKeyRequest {
+
+ /**
+ * Constructs a new GetHcxActivationKeyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest);
+
+ /** GetHcxActivationKeyRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetHcxActivationKeyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetHcxActivationKeyRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
+
+ /**
+ * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages.
+ * @param message GetHcxActivationKeyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages.
+ * @param message GetHcxActivationKeyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetHcxActivationKeyRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.GetHcxActivationKeyRequest;
+
+ /**
+ * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetHcxActivationKeyRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.GetHcxActivationKeyRequest;
+
+ /**
+ * Verifies a GetHcxActivationKeyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetHcxActivationKeyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
+
+ /**
+ * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified.
+ * @param message GetHcxActivationKeyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetHcxActivationKeyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetHcxActivationKeyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateHcxActivationKeyRequest. */
+ interface ICreateHcxActivationKeyRequest {
+
+ /** CreateHcxActivationKeyRequest parent */
+ parent?: (string|null);
+
+ /** CreateHcxActivationKeyRequest hcxActivationKey */
+ hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null);
+
+ /** CreateHcxActivationKeyRequest hcxActivationKeyId */
+ hcxActivationKeyId?: (string|null);
+
+ /** CreateHcxActivationKeyRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateHcxActivationKeyRequest. */
+ class CreateHcxActivationKeyRequest implements ICreateHcxActivationKeyRequest {
+
+ /**
+ * Constructs a new CreateHcxActivationKeyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest);
+
+ /** CreateHcxActivationKeyRequest parent. */
+ public parent: string;
+
+ /** CreateHcxActivationKeyRequest hcxActivationKey. */
+ public hcxActivationKey?: (google.cloud.vmwareengine.v1.IHcxActivationKey|null);
+
+ /** CreateHcxActivationKeyRequest hcxActivationKeyId. */
+ public hcxActivationKeyId: string;
+
+ /** CreateHcxActivationKeyRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateHcxActivationKeyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateHcxActivationKeyRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
+
+ /**
+ * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages.
+ * @param message CreateHcxActivationKeyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages.
+ * @param message CreateHcxActivationKeyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateHcxActivationKeyRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.CreateHcxActivationKeyRequest;
+
+ /**
+ * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateHcxActivationKeyRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.CreateHcxActivationKeyRequest;
+
+ /**
+ * Verifies a CreateHcxActivationKeyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateHcxActivationKeyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
+
+ /**
+ * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified.
+ * @param message CreateHcxActivationKeyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateHcxActivationKeyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateHcxActivationKeyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Hcx. */
+ interface IHcx {
+
+ /** Hcx internalIp */
+ internalIp?: (string|null);
+
+ /** Hcx version */
+ version?: (string|null);
+
+ /** Hcx state */
+ state?: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State|null);
+
+ /** Hcx fqdn */
+ fqdn?: (string|null);
+ }
+
+ /** Represents a Hcx. */
+ class Hcx implements IHcx {
+
+ /**
+ * Constructs a new Hcx.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IHcx);
+
+ /** Hcx internalIp. */
+ public internalIp: string;
+
+ /** Hcx version. */
+ public version: string;
+
+ /** Hcx state. */
+ public state: (google.cloud.vmwareengine.v1.Hcx.State|keyof typeof google.cloud.vmwareengine.v1.Hcx.State);
+
+ /** Hcx fqdn. */
+ public fqdn: string;
+
+ /**
+ * Creates a new Hcx instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Hcx instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IHcx): google.cloud.vmwareengine.v1.Hcx;
+
+ /**
+ * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages.
+ * @param message Hcx message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages.
+ * @param message Hcx message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IHcx, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Hcx message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Hcx
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.Hcx;
+
+ /**
+ * Decodes a Hcx message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Hcx
+ * @throws {Error} If the payload 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.vmwareengine.v1.Hcx;
+
+ /**
+ * Verifies a Hcx message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Hcx message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Hcx
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Hcx;
+
+ /**
+ * Creates a plain object from a Hcx message. Also converts values to other types if specified.
+ * @param message Hcx
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.Hcx, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Hcx to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Hcx
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Hcx {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CREATING = 2
+ }
+ }
+
+ /** Properties of a Nsx. */
+ interface INsx {
+
+ /** Nsx internalIp */
+ internalIp?: (string|null);
+
+ /** Nsx version */
+ version?: (string|null);
+
+ /** Nsx state */
+ state?: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State|null);
+
+ /** Nsx fqdn */
+ fqdn?: (string|null);
+ }
+
+ /** Represents a Nsx. */
+ class Nsx implements INsx {
+
+ /**
+ * Constructs a new Nsx.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.INsx);
+
+ /** Nsx internalIp. */
+ public internalIp: string;
+
+ /** Nsx version. */
+ public version: string;
+
+ /** Nsx state. */
+ public state: (google.cloud.vmwareengine.v1.Nsx.State|keyof typeof google.cloud.vmwareengine.v1.Nsx.State);
+
+ /** Nsx fqdn. */
+ public fqdn: string;
+
+ /**
+ * Creates a new Nsx instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Nsx instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.INsx): google.cloud.vmwareengine.v1.Nsx;
+
+ /**
+ * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages.
+ * @param message Nsx message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages.
+ * @param message Nsx message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.INsx, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Nsx message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Nsx
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.Nsx;
+
+ /**
+ * Decodes a Nsx message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Nsx
+ * @throws {Error} If the payload 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.vmwareengine.v1.Nsx;
+
+ /**
+ * Verifies a Nsx message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Nsx message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Nsx
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Nsx;
+
+ /**
+ * Creates a plain object from a Nsx message. Also converts values to other types if specified.
+ * @param message Nsx
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.Nsx, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Nsx to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Nsx
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Nsx {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CREATING = 2
+ }
+ }
+
+ /** Properties of a Vcenter. */
+ interface IVcenter {
+
+ /** Vcenter internalIp */
+ internalIp?: (string|null);
+
+ /** Vcenter version */
+ version?: (string|null);
+
+ /** Vcenter state */
+ state?: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State|null);
+
+ /** Vcenter fqdn */
+ fqdn?: (string|null);
+ }
+
+ /** Represents a Vcenter. */
+ class Vcenter implements IVcenter {
+
+ /**
+ * Constructs a new Vcenter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IVcenter);
+
+ /** Vcenter internalIp. */
+ public internalIp: string;
+
+ /** Vcenter version. */
+ public version: string;
+
+ /** Vcenter state. */
+ public state: (google.cloud.vmwareengine.v1.Vcenter.State|keyof typeof google.cloud.vmwareengine.v1.Vcenter.State);
+
+ /** Vcenter fqdn. */
+ public fqdn: string;
+
+ /**
+ * Creates a new Vcenter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Vcenter instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IVcenter): google.cloud.vmwareengine.v1.Vcenter;
+
+ /**
+ * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages.
+ * @param message Vcenter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages.
+ * @param message Vcenter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVcenter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Vcenter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Vcenter
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.Vcenter;
+
+ /**
+ * Decodes a Vcenter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Vcenter
+ * @throws {Error} If the payload 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.vmwareengine.v1.Vcenter;
+
+ /**
+ * Verifies a Vcenter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Vcenter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Vcenter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.Vcenter;
+
+ /**
+ * Creates a plain object from a Vcenter message. Also converts values to other types if specified.
+ * @param message Vcenter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.Vcenter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Vcenter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Vcenter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Vcenter {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CREATING = 2
+ }
+ }
+
+ /** Properties of a NetworkPolicy. */
+ interface INetworkPolicy {
+
+ /** NetworkPolicy name */
+ name?: (string|null);
+
+ /** NetworkPolicy createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** NetworkPolicy updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** NetworkPolicy internetAccess */
+ internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null);
+
+ /** NetworkPolicy externalIp */
+ externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null);
+
+ /** NetworkPolicy edgeServicesCidr */
+ edgeServicesCidr?: (string|null);
+
+ /** NetworkPolicy uid */
+ uid?: (string|null);
+
+ /** NetworkPolicy vmwareEngineNetwork */
+ vmwareEngineNetwork?: (string|null);
+
+ /** NetworkPolicy description */
+ description?: (string|null);
+
+ /** NetworkPolicy vmwareEngineNetworkCanonical */
+ vmwareEngineNetworkCanonical?: (string|null);
+ }
+
+ /** Represents a NetworkPolicy. */
+ class NetworkPolicy implements INetworkPolicy {
+
+ /**
+ * Constructs a new NetworkPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.INetworkPolicy);
+
+ /** NetworkPolicy name. */
+ public name: string;
+
+ /** NetworkPolicy createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** NetworkPolicy updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** NetworkPolicy internetAccess. */
+ public internetAccess?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null);
+
+ /** NetworkPolicy externalIp. */
+ public externalIp?: (google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null);
+
+ /** NetworkPolicy edgeServicesCidr. */
+ public edgeServicesCidr: string;
+
+ /** NetworkPolicy uid. */
+ public uid: string;
+
+ /** NetworkPolicy vmwareEngineNetwork. */
+ public vmwareEngineNetwork: string;
+
+ /** NetworkPolicy description. */
+ public description: string;
+
+ /** NetworkPolicy vmwareEngineNetworkCanonical. */
+ public vmwareEngineNetworkCanonical: string;
+
+ /**
+ * Creates a new NetworkPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkPolicy instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.INetworkPolicy): google.cloud.vmwareengine.v1.NetworkPolicy;
+
+ /**
+ * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages.
+ * @param message NetworkPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages.
+ * @param message NetworkPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkPolicy
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.NetworkPolicy;
+
+ /**
+ * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkPolicy
+ * @throws {Error} If the payload 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.vmwareengine.v1.NetworkPolicy;
+
+ /**
+ * Verifies a NetworkPolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy;
+
+ /**
+ * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified.
+ * @param message NetworkPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace NetworkPolicy {
+
+ /** Properties of a NetworkService. */
+ interface INetworkService {
+
+ /** NetworkService enabled */
+ enabled?: (boolean|null);
+
+ /** NetworkService state */
+ state?: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null);
+ }
+
+ /** Represents a NetworkService. */
+ class NetworkService implements INetworkService {
+
+ /**
+ * Constructs a new NetworkService.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService);
+
+ /** NetworkService enabled. */
+ public enabled: boolean;
+
+ /** NetworkService state. */
+ public state: (google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|keyof typeof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State);
+
+ /**
+ * Creates a new NetworkService instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkService instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService;
+
+ /**
+ * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages.
+ * @param message NetworkService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages.
+ * @param message NetworkService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkService message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkService
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.NetworkPolicy.NetworkService;
+
+ /**
+ * Decodes a NetworkService message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkService
+ * @throws {Error} If the payload 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.vmwareengine.v1.NetworkPolicy.NetworkService;
+
+ /**
+ * Verifies a NetworkService message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkService message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkService
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService;
+
+ /**
+ * Creates a plain object from a NetworkService message. Also converts values to other types if specified.
+ * @param message NetworkService
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkService to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkService
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace NetworkService {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ UNPROVISIONED = 1,
+ RECONCILING = 2,
+ ACTIVE = 3
+ }
+ }
+ }
+
+ /** Properties of a ListNetworkPoliciesRequest. */
+ interface IListNetworkPoliciesRequest {
+
+ /** ListNetworkPoliciesRequest parent */
+ parent?: (string|null);
+
+ /** ListNetworkPoliciesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListNetworkPoliciesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListNetworkPoliciesRequest filter */
+ filter?: (string|null);
+
+ /** ListNetworkPoliciesRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListNetworkPoliciesRequest. */
+ class ListNetworkPoliciesRequest implements IListNetworkPoliciesRequest {
+
+ /**
+ * Constructs a new ListNetworkPoliciesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest);
+
+ /** ListNetworkPoliciesRequest parent. */
+ public parent: string;
+
+ /** ListNetworkPoliciesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListNetworkPoliciesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListNetworkPoliciesRequest filter. */
+ public filter: string;
+
+ /** ListNetworkPoliciesRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListNetworkPoliciesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListNetworkPoliciesRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest;
+
+ /**
+ * Encodes the specified ListNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages.
+ * @param message ListNetworkPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest.verify|verify} messages.
+ * @param message ListNetworkPoliciesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListNetworkPoliciesRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListNetworkPoliciesRequest;
+
+ /**
+ * Decodes a ListNetworkPoliciesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListNetworkPoliciesRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListNetworkPoliciesRequest;
+
+ /**
+ * Verifies a ListNetworkPoliciesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListNetworkPoliciesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest;
+
+ /**
+ * Creates a plain object from a ListNetworkPoliciesRequest message. Also converts values to other types if specified.
+ * @param message ListNetworkPoliciesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListNetworkPoliciesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListNetworkPoliciesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListNetworkPoliciesResponse. */
+ interface IListNetworkPoliciesResponse {
+
+ /** ListNetworkPoliciesResponse networkPolicies */
+ networkPolicies?: (google.cloud.vmwareengine.v1.INetworkPolicy[]|null);
+
+ /** ListNetworkPoliciesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListNetworkPoliciesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListNetworkPoliciesResponse. */
+ class ListNetworkPoliciesResponse implements IListNetworkPoliciesResponse {
+
+ /**
+ * Constructs a new ListNetworkPoliciesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse);
+
+ /** ListNetworkPoliciesResponse networkPolicies. */
+ public networkPolicies: google.cloud.vmwareengine.v1.INetworkPolicy[];
+
+ /** ListNetworkPoliciesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListNetworkPoliciesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListNetworkPoliciesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListNetworkPoliciesResponse instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse;
+
+ /**
+ * Encodes the specified ListNetworkPoliciesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages.
+ * @param message ListNetworkPoliciesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListNetworkPoliciesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse.verify|verify} messages.
+ * @param message ListNetworkPoliciesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListNetworkPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListNetworkPoliciesResponse
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListNetworkPoliciesResponse;
+
+ /**
+ * Decodes a ListNetworkPoliciesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListNetworkPoliciesResponse
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListNetworkPoliciesResponse;
+
+ /**
+ * Verifies a ListNetworkPoliciesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListNetworkPoliciesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListNetworkPoliciesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse;
+
+ /**
+ * Creates a plain object from a ListNetworkPoliciesResponse message. Also converts values to other types if specified.
+ * @param message ListNetworkPoliciesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListNetworkPoliciesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListNetworkPoliciesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetNetworkPolicyRequest. */
+ interface IGetNetworkPolicyRequest {
+
+ /** GetNetworkPolicyRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetNetworkPolicyRequest. */
+ class GetNetworkPolicyRequest implements IGetNetworkPolicyRequest {
+
+ /**
+ * Constructs a new GetNetworkPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest);
+
+ /** GetNetworkPolicyRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetNetworkPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetNetworkPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
+
+ /**
+ * Encodes the specified GetNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages.
+ * @param message GetNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNetworkPolicyRequest.verify|verify} messages.
+ * @param message GetNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetNetworkPolicyRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.GetNetworkPolicyRequest;
+
+ /**
+ * Decodes a GetNetworkPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetNetworkPolicyRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.GetNetworkPolicyRequest;
+
+ /**
+ * Verifies a GetNetworkPolicyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetNetworkPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
+
+ /**
+ * Creates a plain object from a GetNetworkPolicyRequest message. Also converts values to other types if specified.
+ * @param message GetNetworkPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetNetworkPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetNetworkPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateNetworkPolicyRequest. */
+ interface IUpdateNetworkPolicyRequest {
+
+ /** UpdateNetworkPolicyRequest networkPolicy */
+ networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null);
+
+ /** UpdateNetworkPolicyRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateNetworkPolicyRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateNetworkPolicyRequest. */
+ class UpdateNetworkPolicyRequest implements IUpdateNetworkPolicyRequest {
+
+ /**
+ * Constructs a new UpdateNetworkPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest);
+
+ /** UpdateNetworkPolicyRequest networkPolicy. */
+ public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null);
+
+ /** UpdateNetworkPolicyRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateNetworkPolicyRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateNetworkPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateNetworkPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
+
+ /**
+ * Encodes the specified UpdateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages.
+ * @param message UpdateNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest.verify|verify} messages.
+ * @param message UpdateNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateNetworkPolicyRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.UpdateNetworkPolicyRequest;
+
+ /**
+ * Decodes an UpdateNetworkPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateNetworkPolicyRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.UpdateNetworkPolicyRequest;
+
+ /**
+ * Verifies an UpdateNetworkPolicyRequest message.
+ * @param message Plain 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 UpdateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateNetworkPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
+
+ /**
+ * Creates a plain object from an UpdateNetworkPolicyRequest message. Also converts values to other types if specified.
+ * @param message UpdateNetworkPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateNetworkPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateNetworkPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateNetworkPolicyRequest. */
+ interface ICreateNetworkPolicyRequest {
+
+ /** CreateNetworkPolicyRequest parent */
+ parent?: (string|null);
+
+ /** CreateNetworkPolicyRequest networkPolicyId */
+ networkPolicyId?: (string|null);
+
+ /** CreateNetworkPolicyRequest networkPolicy */
+ networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null);
+
+ /** CreateNetworkPolicyRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateNetworkPolicyRequest. */
+ class CreateNetworkPolicyRequest implements ICreateNetworkPolicyRequest {
+
+ /**
+ * Constructs a new CreateNetworkPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest);
+
+ /** CreateNetworkPolicyRequest parent. */
+ public parent: string;
+
+ /** CreateNetworkPolicyRequest networkPolicyId. */
+ public networkPolicyId: string;
+
+ /** CreateNetworkPolicyRequest networkPolicy. */
+ public networkPolicy?: (google.cloud.vmwareengine.v1.INetworkPolicy|null);
+
+ /** CreateNetworkPolicyRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateNetworkPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateNetworkPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
+
+ /**
+ * Encodes the specified CreateNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages.
+ * @param message CreateNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest.verify|verify} messages.
+ * @param message CreateNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateNetworkPolicyRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.CreateNetworkPolicyRequest;
+
+ /**
+ * Decodes a CreateNetworkPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateNetworkPolicyRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.CreateNetworkPolicyRequest;
+
+ /**
+ * Verifies a CreateNetworkPolicyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateNetworkPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
+
+ /**
+ * Creates a plain object from a CreateNetworkPolicyRequest message. Also converts values to other types if specified.
+ * @param message CreateNetworkPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateNetworkPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateNetworkPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteNetworkPolicyRequest. */
+ interface IDeleteNetworkPolicyRequest {
+
+ /** DeleteNetworkPolicyRequest name */
+ name?: (string|null);
+
+ /** DeleteNetworkPolicyRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteNetworkPolicyRequest. */
+ class DeleteNetworkPolicyRequest implements IDeleteNetworkPolicyRequest {
+
+ /**
+ * Constructs a new DeleteNetworkPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest);
+
+ /** DeleteNetworkPolicyRequest name. */
+ public name: string;
+
+ /** DeleteNetworkPolicyRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteNetworkPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteNetworkPolicyRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
+
+ /**
+ * Encodes the specified DeleteNetworkPolicyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages.
+ * @param message DeleteNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest.verify|verify} messages.
+ * @param message DeleteNetworkPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteNetworkPolicyRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.DeleteNetworkPolicyRequest;
+
+ /**
+ * Decodes a DeleteNetworkPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteNetworkPolicyRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.DeleteNetworkPolicyRequest;
+
+ /**
+ * Verifies a DeleteNetworkPolicyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteNetworkPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
+
+ /**
+ * Creates a plain object from a DeleteNetworkPolicyRequest message. Also converts values to other types if specified.
+ * @param message DeleteNetworkPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteNetworkPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteNetworkPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VmwareEngineNetwork. */
+ interface IVmwareEngineNetwork {
+
+ /** VmwareEngineNetwork name */
+ name?: (string|null);
+
+ /** VmwareEngineNetwork createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** VmwareEngineNetwork updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** VmwareEngineNetwork description */
+ description?: (string|null);
+
+ /** VmwareEngineNetwork vpcNetworks */
+ vpcNetworks?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[]|null);
+
+ /** VmwareEngineNetwork state */
+ state?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|null);
+
+ /** VmwareEngineNetwork type */
+ type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|null);
+
+ /** VmwareEngineNetwork uid */
+ uid?: (string|null);
+
+ /** VmwareEngineNetwork etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a VmwareEngineNetwork. */
+ class VmwareEngineNetwork implements IVmwareEngineNetwork {
+
+ /**
+ * Constructs a new VmwareEngineNetwork.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork);
+
+ /** VmwareEngineNetwork name. */
+ public name: string;
+
+ /** VmwareEngineNetwork createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** VmwareEngineNetwork updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** VmwareEngineNetwork description. */
+ public description: string;
+
+ /** VmwareEngineNetwork vpcNetworks. */
+ public vpcNetworks: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork[];
+
+ /** VmwareEngineNetwork state. */
+ public state: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.State|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.State);
+
+ /** VmwareEngineNetwork type. */
+ public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.Type);
+
+ /** VmwareEngineNetwork uid. */
+ public uid: string;
+
+ /** VmwareEngineNetwork etag. */
+ public etag: string;
+
+ /**
+ * Creates a new VmwareEngineNetwork instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VmwareEngineNetwork instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IVmwareEngineNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork;
+
+ /**
+ * Encodes the specified VmwareEngineNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages.
+ * @param message VmwareEngineNetwork message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VmwareEngineNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.verify|verify} messages.
+ * @param message VmwareEngineNetwork message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IVmwareEngineNetwork, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VmwareEngineNetwork message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VmwareEngineNetwork
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.VmwareEngineNetwork;
+
+ /**
+ * Decodes a VmwareEngineNetwork message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VmwareEngineNetwork
+ * @throws {Error} If the payload 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.vmwareengine.v1.VmwareEngineNetwork;
+
+ /**
+ * Verifies a VmwareEngineNetwork message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VmwareEngineNetwork message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VmwareEngineNetwork
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork;
+
+ /**
+ * Creates a plain object from a VmwareEngineNetwork message. Also converts values to other types if specified.
+ * @param message VmwareEngineNetwork
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VmwareEngineNetwork to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VmwareEngineNetwork
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VmwareEngineNetwork {
+
+ /** Properties of a VpcNetwork. */
+ interface IVpcNetwork {
+
+ /** VpcNetwork type */
+ type?: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|null);
+
+ /** VpcNetwork network */
+ network?: (string|null);
+ }
+
+ /** Represents a VpcNetwork. */
+ class VpcNetwork implements IVpcNetwork {
+
+ /**
+ * Constructs a new VpcNetwork.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork);
+
+ /** VpcNetwork type. */
+ public type: (google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type|keyof typeof google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.Type);
+
+ /** VpcNetwork network. */
+ public network: string;
+
+ /**
+ * Creates a new VpcNetwork instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VpcNetwork instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork;
+
+ /**
+ * Encodes the specified VpcNetwork message. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages.
+ * @param message VpcNetwork message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VpcNetwork message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork.verify|verify} messages.
+ * @param message VpcNetwork message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.IVpcNetwork, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VpcNetwork message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VpcNetwork
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork;
+
+ /**
+ * Decodes a VpcNetwork message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VpcNetwork
+ * @throws {Error} If the payload 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.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork;
+
+ /**
+ * Verifies a VpcNetwork message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VpcNetwork message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VpcNetwork
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork;
+
+ /**
+ * Creates a plain object from a VpcNetwork message. Also converts values to other types if specified.
+ * @param message VpcNetwork
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VpcNetwork to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VpcNetwork
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VpcNetwork {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ INTRANET = 1,
+ INTERNET = 2,
+ GOOGLE_CLOUD = 3
+ }
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ ACTIVE = 2,
+ UPDATING = 3,
+ DELETING = 4
+ }
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ LEGACY = 1
+ }
+ }
+
+ /** Properties of a CreateVmwareEngineNetworkRequest. */
+ interface ICreateVmwareEngineNetworkRequest {
+
+ /** CreateVmwareEngineNetworkRequest parent */
+ parent?: (string|null);
+
+ /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId */
+ vmwareEngineNetworkId?: (string|null);
+
+ /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork */
+ vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null);
+
+ /** CreateVmwareEngineNetworkRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateVmwareEngineNetworkRequest. */
+ class CreateVmwareEngineNetworkRequest implements ICreateVmwareEngineNetworkRequest {
+
+ /**
+ * Constructs a new CreateVmwareEngineNetworkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest);
+
+ /** CreateVmwareEngineNetworkRequest parent. */
+ public parent: string;
+
+ /** CreateVmwareEngineNetworkRequest vmwareEngineNetworkId. */
+ public vmwareEngineNetworkId: string;
+
+ /** CreateVmwareEngineNetworkRequest vmwareEngineNetwork. */
+ public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null);
+
+ /** CreateVmwareEngineNetworkRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateVmwareEngineNetworkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateVmwareEngineNetworkRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
+
+ /**
+ * Encodes the specified CreateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message CreateVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message CreateVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateVmwareEngineNetworkRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
+
+ /**
+ * Decodes a CreateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateVmwareEngineNetworkRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
+
+ /**
+ * Verifies a CreateVmwareEngineNetworkRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateVmwareEngineNetworkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
+
+ /**
+ * Creates a plain object from a CreateVmwareEngineNetworkRequest message. Also converts values to other types if specified.
+ * @param message CreateVmwareEngineNetworkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateVmwareEngineNetworkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateVmwareEngineNetworkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateVmwareEngineNetworkRequest. */
+ interface IUpdateVmwareEngineNetworkRequest {
+
+ /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork */
+ vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null);
+
+ /** UpdateVmwareEngineNetworkRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateVmwareEngineNetworkRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateVmwareEngineNetworkRequest. */
+ class UpdateVmwareEngineNetworkRequest implements IUpdateVmwareEngineNetworkRequest {
+
+ /**
+ * Constructs a new UpdateVmwareEngineNetworkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest);
+
+ /** UpdateVmwareEngineNetworkRequest vmwareEngineNetwork. */
+ public vmwareEngineNetwork?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork|null);
+
+ /** UpdateVmwareEngineNetworkRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateVmwareEngineNetworkRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateVmwareEngineNetworkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateVmwareEngineNetworkRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
+
+ /**
+ * Encodes the specified UpdateVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message UpdateVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateVmwareEngineNetworkRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
+
+ /**
+ * Decodes an UpdateVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateVmwareEngineNetworkRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
+
+ /**
+ * Verifies an UpdateVmwareEngineNetworkRequest message.
+ * @param message Plain 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 UpdateVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateVmwareEngineNetworkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
+
+ /**
+ * Creates a plain object from an UpdateVmwareEngineNetworkRequest message. Also converts values to other types if specified.
+ * @param message UpdateVmwareEngineNetworkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateVmwareEngineNetworkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateVmwareEngineNetworkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteVmwareEngineNetworkRequest. */
+ interface IDeleteVmwareEngineNetworkRequest {
+
+ /** DeleteVmwareEngineNetworkRequest name */
+ name?: (string|null);
+
+ /** DeleteVmwareEngineNetworkRequest requestId */
+ requestId?: (string|null);
+
+ /** DeleteVmwareEngineNetworkRequest etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a DeleteVmwareEngineNetworkRequest. */
+ class DeleteVmwareEngineNetworkRequest implements IDeleteVmwareEngineNetworkRequest {
+
+ /**
+ * Constructs a new DeleteVmwareEngineNetworkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest);
+
+ /** DeleteVmwareEngineNetworkRequest name. */
+ public name: string;
+
+ /** DeleteVmwareEngineNetworkRequest requestId. */
+ public requestId: string;
+
+ /** DeleteVmwareEngineNetworkRequest etag. */
+ public etag: string;
+
+ /**
+ * Creates a new DeleteVmwareEngineNetworkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteVmwareEngineNetworkRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
+
+ /**
+ * Encodes the specified DeleteVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message DeleteVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteVmwareEngineNetworkRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
+
+ /**
+ * Decodes a DeleteVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteVmwareEngineNetworkRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
+
+ /**
+ * Verifies a DeleteVmwareEngineNetworkRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteVmwareEngineNetworkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
+
+ /**
+ * Creates a plain object from a DeleteVmwareEngineNetworkRequest message. Also converts values to other types if specified.
+ * @param message DeleteVmwareEngineNetworkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteVmwareEngineNetworkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteVmwareEngineNetworkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetVmwareEngineNetworkRequest. */
+ interface IGetVmwareEngineNetworkRequest {
+
+ /** GetVmwareEngineNetworkRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetVmwareEngineNetworkRequest. */
+ class GetVmwareEngineNetworkRequest implements IGetVmwareEngineNetworkRequest {
+
+ /**
+ * Constructs a new GetVmwareEngineNetworkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest);
+
+ /** GetVmwareEngineNetworkRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetVmwareEngineNetworkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetVmwareEngineNetworkRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
+
+ /**
+ * Encodes the specified GetVmwareEngineNetworkRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message GetVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetVmwareEngineNetworkRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest.verify|verify} messages.
+ * @param message GetVmwareEngineNetworkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetVmwareEngineNetworkRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.GetVmwareEngineNetworkRequest;
+
+ /**
+ * Decodes a GetVmwareEngineNetworkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetVmwareEngineNetworkRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.GetVmwareEngineNetworkRequest;
+
+ /**
+ * Verifies a GetVmwareEngineNetworkRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetVmwareEngineNetworkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetVmwareEngineNetworkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
+
+ /**
+ * Creates a plain object from a GetVmwareEngineNetworkRequest message. Also converts values to other types if specified.
+ * @param message GetVmwareEngineNetworkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetVmwareEngineNetworkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetVmwareEngineNetworkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListVmwareEngineNetworksRequest. */
+ interface IListVmwareEngineNetworksRequest {
+
+ /** ListVmwareEngineNetworksRequest parent */
+ parent?: (string|null);
+
+ /** ListVmwareEngineNetworksRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListVmwareEngineNetworksRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListVmwareEngineNetworksRequest filter */
+ filter?: (string|null);
+
+ /** ListVmwareEngineNetworksRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListVmwareEngineNetworksRequest. */
+ class ListVmwareEngineNetworksRequest implements IListVmwareEngineNetworksRequest {
+
+ /**
+ * Constructs a new ListVmwareEngineNetworksRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest);
+
+ /** ListVmwareEngineNetworksRequest parent. */
+ public parent: string;
+
+ /** ListVmwareEngineNetworksRequest pageSize. */
+ public pageSize: number;
+
+ /** ListVmwareEngineNetworksRequest pageToken. */
+ public pageToken: string;
+
+ /** ListVmwareEngineNetworksRequest filter. */
+ public filter: string;
+
+ /** ListVmwareEngineNetworksRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListVmwareEngineNetworksRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVmwareEngineNetworksRequest instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
+
+ /**
+ * Encodes the specified ListVmwareEngineNetworksRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages.
+ * @param message ListVmwareEngineNetworksRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVmwareEngineNetworksRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest.verify|verify} messages.
+ * @param message ListVmwareEngineNetworksRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVmwareEngineNetworksRequest
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListVmwareEngineNetworksRequest;
+
+ /**
+ * Decodes a ListVmwareEngineNetworksRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVmwareEngineNetworksRequest
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListVmwareEngineNetworksRequest;
+
+ /**
+ * Verifies a ListVmwareEngineNetworksRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVmwareEngineNetworksRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVmwareEngineNetworksRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
+
+ /**
+ * Creates a plain object from a ListVmwareEngineNetworksRequest message. Also converts values to other types if specified.
+ * @param message ListVmwareEngineNetworksRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVmwareEngineNetworksRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVmwareEngineNetworksRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListVmwareEngineNetworksResponse. */
+ interface IListVmwareEngineNetworksResponse {
+
+ /** ListVmwareEngineNetworksResponse vmwareEngineNetworks */
+ vmwareEngineNetworks?: (google.cloud.vmwareengine.v1.IVmwareEngineNetwork[]|null);
+
+ /** ListVmwareEngineNetworksResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListVmwareEngineNetworksResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListVmwareEngineNetworksResponse. */
+ class ListVmwareEngineNetworksResponse implements IListVmwareEngineNetworksResponse {
+
+ /**
+ * Constructs a new ListVmwareEngineNetworksResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse);
+
+ /** ListVmwareEngineNetworksResponse vmwareEngineNetworks. */
+ public vmwareEngineNetworks: google.cloud.vmwareengine.v1.IVmwareEngineNetwork[];
+
+ /** ListVmwareEngineNetworksResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListVmwareEngineNetworksResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListVmwareEngineNetworksResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListVmwareEngineNetworksResponse instance
+ */
+ public static create(properties?: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse;
+
+ /**
+ * Encodes the specified ListVmwareEngineNetworksResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages.
+ * @param message ListVmwareEngineNetworksResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListVmwareEngineNetworksResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse.verify|verify} messages.
+ * @param message ListVmwareEngineNetworksResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmwareengine.v1.IListVmwareEngineNetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListVmwareEngineNetworksResponse
+ * @throws {Error} If the payload is not 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.vmwareengine.v1.ListVmwareEngineNetworksResponse;
+
+ /**
+ * Decodes a ListVmwareEngineNetworksResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListVmwareEngineNetworksResponse
+ * @throws {Error} If the payload 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.vmwareengine.v1.ListVmwareEngineNetworksResponse;
+
+ /**
+ * Verifies a ListVmwareEngineNetworksResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListVmwareEngineNetworksResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListVmwareEngineNetworksResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse;
+
+ /**
+ * Creates a plain object from a ListVmwareEngineNetworksResponse message. Also converts values to other types if specified.
+ * @param message ListVmwareEngineNetworksResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListVmwareEngineNetworksResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListVmwareEngineNetworksResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a 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;
+ }
+
+ /** 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;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a 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;
+ }
+ }
+
+ /** 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-vmwareengine/protos/protos.js b/packages/google-cloud-vmwareengine/protos/protos.js
new file mode 100644
index 00000000000..b71ae65a1c2
--- /dev/null
+++ b/packages/google-cloud-vmwareengine/protos/protos.js
@@ -0,0 +1,31415 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_cloud_vmwareengine_protos || ($protobuf.roots._google_cloud_vmwareengine_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.vmwareengine = (function() {
+
+ /**
+ * Namespace vmwareengine.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var vmwareengine = {};
+
+ vmwareengine.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.vmwareengine
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.VmwareEngine = (function() {
+
+ /**
+ * Constructs a new VmwareEngine service.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a VmwareEngine
+ * @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 VmwareEngine(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (VmwareEngine.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = VmwareEngine;
+
+ /**
+ * Creates new VmwareEngine service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @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 {VmwareEngine} RPC service. Useful where requests and/or responses are streamed.
+ */
+ VmwareEngine.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listPrivateClouds}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ListPrivateCloudsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} [response] ListPrivateCloudsResponse
+ */
+
+ /**
+ * Calls ListPrivateClouds.
+ * @function listPrivateClouds
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} request ListPrivateCloudsRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateCloudsCallback} callback Node-style callback called with the error, if any, and ListPrivateCloudsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.listPrivateClouds = function listPrivateClouds(request, callback) {
+ return this.rpcCall(listPrivateClouds, $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest, $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse, request, callback);
+ }, "name", { value: "ListPrivateClouds" });
+
+ /**
+ * Calls ListPrivateClouds.
+ * @function listPrivateClouds
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} request ListPrivateCloudsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getPrivateCloud}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef GetPrivateCloudCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.PrivateCloud} [response] PrivateCloud
+ */
+
+ /**
+ * Calls GetPrivateCloud.
+ * @function getPrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} request GetPrivateCloudRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloudCallback} callback Node-style callback called with the error, if any, and PrivateCloud
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.getPrivateCloud = function getPrivateCloud(request, callback) {
+ return this.rpcCall(getPrivateCloud, $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest, $root.google.cloud.vmwareengine.v1.PrivateCloud, request, callback);
+ }, "name", { value: "GetPrivateCloud" });
+
+ /**
+ * Calls GetPrivateCloud.
+ * @function getPrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} request GetPrivateCloudRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createPrivateCloud}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef CreatePrivateCloudCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreatePrivateCloud.
+ * @function createPrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} request CreatePrivateCloudRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloudCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.createPrivateCloud = function createPrivateCloud(request, callback) {
+ return this.rpcCall(createPrivateCloud, $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreatePrivateCloud" });
+
+ /**
+ * Calls CreatePrivateCloud.
+ * @function createPrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} request CreatePrivateCloudRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updatePrivateCloud}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef UpdatePrivateCloudCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdatePrivateCloud.
+ * @function updatePrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} request UpdatePrivateCloudRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloudCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.updatePrivateCloud = function updatePrivateCloud(request, callback) {
+ return this.rpcCall(updatePrivateCloud, $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdatePrivateCloud" });
+
+ /**
+ * Calls UpdatePrivateCloud.
+ * @function updatePrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} request UpdatePrivateCloudRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deletePrivateCloud}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef DeletePrivateCloudCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeletePrivateCloud.
+ * @function deletePrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} request DeletePrivateCloudRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloudCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.deletePrivateCloud = function deletePrivateCloud(request, callback) {
+ return this.rpcCall(deletePrivateCloud, $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeletePrivateCloud" });
+
+ /**
+ * Calls DeletePrivateCloud.
+ * @function deletePrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} request DeletePrivateCloudRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|undeletePrivateCloud}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef UndeletePrivateCloudCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UndeletePrivateCloud.
+ * @function undeletePrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} request UndeletePrivateCloudRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloudCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.undeletePrivateCloud = function undeletePrivateCloud(request, callback) {
+ return this.rpcCall(undeletePrivateCloud, $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UndeletePrivateCloud" });
+
+ /**
+ * Calls UndeletePrivateCloud.
+ * @function undeletePrivateCloud
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} request UndeletePrivateCloudRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listClusters}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ListClustersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.ListClustersResponse} [response] ListClustersResponse
+ */
+
+ /**
+ * Calls ListClusters.
+ * @function listClusters
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListClustersRequest} request ListClustersRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListClustersCallback} callback Node-style callback called with the error, if any, and ListClustersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.listClusters = function listClusters(request, callback) {
+ return this.rpcCall(listClusters, $root.google.cloud.vmwareengine.v1.ListClustersRequest, $root.google.cloud.vmwareengine.v1.ListClustersResponse, request, callback);
+ }, "name", { value: "ListClusters" });
+
+ /**
+ * Calls ListClusters.
+ * @function listClusters
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListClustersRequest} request ListClustersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getCluster}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef GetClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.Cluster} [response] Cluster
+ */
+
+ /**
+ * Calls GetCluster.
+ * @function getCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} request GetClusterRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetClusterCallback} callback Node-style callback called with the error, if any, and Cluster
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.getCluster = function getCluster(request, callback) {
+ return this.rpcCall(getCluster, $root.google.cloud.vmwareengine.v1.GetClusterRequest, $root.google.cloud.vmwareengine.v1.Cluster, request, callback);
+ }, "name", { value: "GetCluster" });
+
+ /**
+ * Calls GetCluster.
+ * @function getCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} request GetClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createCluster}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef CreateClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateCluster.
+ * @function createCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateClusterCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.createCluster = function createCluster(request, callback) {
+ return this.rpcCall(createCluster, $root.google.cloud.vmwareengine.v1.CreateClusterRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateCluster" });
+
+ /**
+ * Calls CreateCluster.
+ * @function createCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateCluster}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef UpdateClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateCluster.
+ * @function updateCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateClusterCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.updateCluster = function updateCluster(request, callback) {
+ return this.rpcCall(updateCluster, $root.google.cloud.vmwareengine.v1.UpdateClusterRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateCluster" });
+
+ /**
+ * Calls UpdateCluster.
+ * @function updateCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteCluster}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef DeleteClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteCluster.
+ * @function deleteCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteClusterCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.deleteCluster = function deleteCluster(request, callback) {
+ return this.rpcCall(deleteCluster, $root.google.cloud.vmwareengine.v1.DeleteClusterRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteCluster" });
+
+ /**
+ * Calls DeleteCluster.
+ * @function deleteCluster
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listSubnets}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ListSubnetsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} [response] ListSubnetsResponse
+ */
+
+ /**
+ * Calls ListSubnets.
+ * @function listSubnets
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} request ListSubnetsRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListSubnetsCallback} callback Node-style callback called with the error, if any, and ListSubnetsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.listSubnets = function listSubnets(request, callback) {
+ return this.rpcCall(listSubnets, $root.google.cloud.vmwareengine.v1.ListSubnetsRequest, $root.google.cloud.vmwareengine.v1.ListSubnetsResponse, request, callback);
+ }, "name", { value: "ListSubnets" });
+
+ /**
+ * Calls ListSubnets.
+ * @function listSubnets
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} request ListSubnetsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNodeTypes}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ListNodeTypesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} [response] ListNodeTypesResponse
+ */
+
+ /**
+ * Calls ListNodeTypes.
+ * @function listNodeTypes
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} request ListNodeTypesRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypesCallback} callback Node-style callback called with the error, if any, and ListNodeTypesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.listNodeTypes = function listNodeTypes(request, callback) {
+ return this.rpcCall(listNodeTypes, $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest, $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse, request, callback);
+ }, "name", { value: "ListNodeTypes" });
+
+ /**
+ * Calls ListNodeTypes.
+ * @function listNodeTypes
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} request ListNodeTypesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNodeType}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef GetNodeTypeCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.NodeType} [response] NodeType
+ */
+
+ /**
+ * Calls GetNodeType.
+ * @function getNodeType
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} request GetNodeTypeRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNodeTypeCallback} callback Node-style callback called with the error, if any, and NodeType
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.getNodeType = function getNodeType(request, callback) {
+ return this.rpcCall(getNodeType, $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest, $root.google.cloud.vmwareengine.v1.NodeType, request, callback);
+ }, "name", { value: "GetNodeType" });
+
+ /**
+ * Calls GetNodeType.
+ * @function getNodeType
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} request GetNodeTypeRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showNsxCredentials}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ShowNsxCredentialsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.Credentials} [response] Credentials
+ */
+
+ /**
+ * Calls ShowNsxCredentials.
+ * @function showNsxCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} request ShowNsxCredentialsRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentialsCallback} callback Node-style callback called with the error, if any, and Credentials
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.showNsxCredentials = function showNsxCredentials(request, callback) {
+ return this.rpcCall(showNsxCredentials, $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest, $root.google.cloud.vmwareengine.v1.Credentials, request, callback);
+ }, "name", { value: "ShowNsxCredentials" });
+
+ /**
+ * Calls ShowNsxCredentials.
+ * @function showNsxCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} request ShowNsxCredentialsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|showVcenterCredentials}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ShowVcenterCredentialsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.Credentials} [response] Credentials
+ */
+
+ /**
+ * Calls ShowVcenterCredentials.
+ * @function showVcenterCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} request ShowVcenterCredentialsRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentialsCallback} callback Node-style callback called with the error, if any, and Credentials
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.showVcenterCredentials = function showVcenterCredentials(request, callback) {
+ return this.rpcCall(showVcenterCredentials, $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest, $root.google.cloud.vmwareengine.v1.Credentials, request, callback);
+ }, "name", { value: "ShowVcenterCredentials" });
+
+ /**
+ * Calls ShowVcenterCredentials.
+ * @function showVcenterCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} request ShowVcenterCredentialsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetNsxCredentials}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ResetNsxCredentialsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ResetNsxCredentials.
+ * @function resetNsxCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} request ResetNsxCredentialsRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentialsCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.resetNsxCredentials = function resetNsxCredentials(request, callback) {
+ return this.rpcCall(resetNsxCredentials, $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ResetNsxCredentials" });
+
+ /**
+ * Calls ResetNsxCredentials.
+ * @function resetNsxCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} request ResetNsxCredentialsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|resetVcenterCredentials}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ResetVcenterCredentialsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ResetVcenterCredentials.
+ * @function resetVcenterCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} request ResetVcenterCredentialsRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentialsCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.resetVcenterCredentials = function resetVcenterCredentials(request, callback) {
+ return this.rpcCall(resetVcenterCredentials, $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ResetVcenterCredentials" });
+
+ /**
+ * Calls ResetVcenterCredentials.
+ * @function resetVcenterCredentials
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} request ResetVcenterCredentialsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createHcxActivationKey}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef CreateHcxActivationKeyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateHcxActivationKey.
+ * @function createHcxActivationKey
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} request CreateHcxActivationKeyRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKeyCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.createHcxActivationKey = function createHcxActivationKey(request, callback) {
+ return this.rpcCall(createHcxActivationKey, $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateHcxActivationKey" });
+
+ /**
+ * Calls CreateHcxActivationKey.
+ * @function createHcxActivationKey
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} request CreateHcxActivationKeyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listHcxActivationKeys}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ListHcxActivationKeysCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} [response] ListHcxActivationKeysResponse
+ */
+
+ /**
+ * Calls ListHcxActivationKeys.
+ * @function listHcxActivationKeys
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} request ListHcxActivationKeysRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeysCallback} callback Node-style callback called with the error, if any, and ListHcxActivationKeysResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.listHcxActivationKeys = function listHcxActivationKeys(request, callback) {
+ return this.rpcCall(listHcxActivationKeys, $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest, $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse, request, callback);
+ }, "name", { value: "ListHcxActivationKeys" });
+
+ /**
+ * Calls ListHcxActivationKeys.
+ * @function listHcxActivationKeys
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} request ListHcxActivationKeysRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getHcxActivationKey}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef GetHcxActivationKeyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.HcxActivationKey} [response] HcxActivationKey
+ */
+
+ /**
+ * Calls GetHcxActivationKey.
+ * @function getHcxActivationKey
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} request GetHcxActivationKeyRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKeyCallback} callback Node-style callback called with the error, if any, and HcxActivationKey
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.getHcxActivationKey = function getHcxActivationKey(request, callback) {
+ return this.rpcCall(getHcxActivationKey, $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest, $root.google.cloud.vmwareengine.v1.HcxActivationKey, request, callback);
+ }, "name", { value: "GetHcxActivationKey" });
+
+ /**
+ * Calls GetHcxActivationKey.
+ * @function getHcxActivationKey
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} request GetHcxActivationKeyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getNetworkPolicy}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef GetNetworkPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.NetworkPolicy} [response] NetworkPolicy
+ */
+
+ /**
+ * Calls GetNetworkPolicy.
+ * @function getNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} request GetNetworkPolicyRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicyCallback} callback Node-style callback called with the error, if any, and NetworkPolicy
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.getNetworkPolicy = function getNetworkPolicy(request, callback) {
+ return this.rpcCall(getNetworkPolicy, $root.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest, $root.google.cloud.vmwareengine.v1.NetworkPolicy, request, callback);
+ }, "name", { value: "GetNetworkPolicy" });
+
+ /**
+ * Calls GetNetworkPolicy.
+ * @function getNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetNetworkPolicyRequest} request GetNetworkPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listNetworkPolicies}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ListNetworkPoliciesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse} [response] ListNetworkPoliciesResponse
+ */
+
+ /**
+ * Calls ListNetworkPolicies.
+ * @function listNetworkPolicies
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} request ListNetworkPoliciesRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPoliciesCallback} callback Node-style callback called with the error, if any, and ListNetworkPoliciesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.listNetworkPolicies = function listNetworkPolicies(request, callback) {
+ return this.rpcCall(listNetworkPolicies, $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesRequest, $root.google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse, request, callback);
+ }, "name", { value: "ListNetworkPolicies" });
+
+ /**
+ * Calls ListNetworkPolicies.
+ * @function listNetworkPolicies
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListNetworkPoliciesRequest} request ListNetworkPoliciesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createNetworkPolicy}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef CreateNetworkPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateNetworkPolicy.
+ * @function createNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} request CreateNetworkPolicyRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.createNetworkPolicy = function createNetworkPolicy(request, callback) {
+ return this.rpcCall(createNetworkPolicy, $root.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateNetworkPolicy" });
+
+ /**
+ * Calls CreateNetworkPolicy.
+ * @function createNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateNetworkPolicyRequest} request CreateNetworkPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateNetworkPolicy}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef UpdateNetworkPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateNetworkPolicy.
+ * @function updateNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} request UpdateNetworkPolicyRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.updateNetworkPolicy = function updateNetworkPolicy(request, callback) {
+ return this.rpcCall(updateNetworkPolicy, $root.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateNetworkPolicy" });
+
+ /**
+ * Calls UpdateNetworkPolicy.
+ * @function updateNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdateNetworkPolicyRequest} request UpdateNetworkPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteNetworkPolicy}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef DeleteNetworkPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteNetworkPolicy.
+ * @function deleteNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} request DeleteNetworkPolicyRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.deleteNetworkPolicy = function deleteNetworkPolicy(request, callback) {
+ return this.rpcCall(deleteNetworkPolicy, $root.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteNetworkPolicy" });
+
+ /**
+ * Calls DeleteNetworkPolicy.
+ * @function deleteNetworkPolicy
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeleteNetworkPolicyRequest} request DeleteNetworkPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|createVmwareEngineNetwork}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef CreateVmwareEngineNetworkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateVmwareEngineNetwork.
+ * @function createVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} request CreateVmwareEngineNetworkRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.createVmwareEngineNetwork = function createVmwareEngineNetwork(request, callback) {
+ return this.rpcCall(createVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateVmwareEngineNetwork" });
+
+ /**
+ * Calls CreateVmwareEngineNetwork.
+ * @function createVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.ICreateVmwareEngineNetworkRequest} request CreateVmwareEngineNetworkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|updateVmwareEngineNetwork}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef UpdateVmwareEngineNetworkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateVmwareEngineNetwork.
+ * @function updateVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} request UpdateVmwareEngineNetworkRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.updateVmwareEngineNetwork = function updateVmwareEngineNetwork(request, callback) {
+ return this.rpcCall(updateVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateVmwareEngineNetwork" });
+
+ /**
+ * Calls UpdateVmwareEngineNetwork.
+ * @function updateVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IUpdateVmwareEngineNetworkRequest} request UpdateVmwareEngineNetworkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|deleteVmwareEngineNetwork}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef DeleteVmwareEngineNetworkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteVmwareEngineNetwork.
+ * @function deleteVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} request DeleteVmwareEngineNetworkRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.deleteVmwareEngineNetwork = function deleteVmwareEngineNetwork(request, callback) {
+ return this.rpcCall(deleteVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteVmwareEngineNetwork" });
+
+ /**
+ * Calls DeleteVmwareEngineNetwork.
+ * @function deleteVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IDeleteVmwareEngineNetworkRequest} request DeleteVmwareEngineNetworkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|getVmwareEngineNetwork}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef GetVmwareEngineNetworkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.VmwareEngineNetwork} [response] VmwareEngineNetwork
+ */
+
+ /**
+ * Calls GetVmwareEngineNetwork.
+ * @function getVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} request GetVmwareEngineNetworkRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetworkCallback} callback Node-style callback called with the error, if any, and VmwareEngineNetwork
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.getVmwareEngineNetwork = function getVmwareEngineNetwork(request, callback) {
+ return this.rpcCall(getVmwareEngineNetwork, $root.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest, $root.google.cloud.vmwareengine.v1.VmwareEngineNetwork, request, callback);
+ }, "name", { value: "GetVmwareEngineNetwork" });
+
+ /**
+ * Calls GetVmwareEngineNetwork.
+ * @function getVmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IGetVmwareEngineNetworkRequest} request GetVmwareEngineNetworkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmwareengine.v1.VmwareEngine|listVmwareEngineNetworks}.
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @typedef ListVmwareEngineNetworksCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse} [response] ListVmwareEngineNetworksResponse
+ */
+
+ /**
+ * Calls ListVmwareEngineNetworks.
+ * @function listVmwareEngineNetworks
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} request ListVmwareEngineNetworksRequest message or plain object
+ * @param {google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworksCallback} callback Node-style callback called with the error, if any, and ListVmwareEngineNetworksResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmwareEngine.prototype.listVmwareEngineNetworks = function listVmwareEngineNetworks(request, callback) {
+ return this.rpcCall(listVmwareEngineNetworks, $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest, $root.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse, request, callback);
+ }, "name", { value: "ListVmwareEngineNetworks" });
+
+ /**
+ * Calls ListVmwareEngineNetworks.
+ * @function listVmwareEngineNetworks
+ * @memberof google.cloud.vmwareengine.v1.VmwareEngine
+ * @instance
+ * @param {google.cloud.vmwareengine.v1.IListVmwareEngineNetworksRequest} request ListVmwareEngineNetworksRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return VmwareEngine;
+ })();
+
+ v1.NetworkConfig = (function() {
+
+ /**
+ * Properties of a NetworkConfig.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface INetworkConfig
+ * @property {string|null} [managementCidr] NetworkConfig managementCidr
+ * @property {string|null} [vmwareEngineNetwork] NetworkConfig vmwareEngineNetwork
+ * @property {string|null} [vmwareEngineNetworkCanonical] NetworkConfig vmwareEngineNetworkCanonical
+ * @property {number|null} [managementIpAddressLayoutVersion] NetworkConfig managementIpAddressLayoutVersion
+ */
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a NetworkConfig.
+ * @implements INetworkConfig
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set
+ */
+ function NetworkConfig(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]];
+ }
+
+ /**
+ * NetworkConfig managementCidr.
+ * @member {string} managementCidr
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.managementCidr = "";
+
+ /**
+ * NetworkConfig vmwareEngineNetwork.
+ * @member {string} vmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.vmwareEngineNetwork = "";
+
+ /**
+ * NetworkConfig vmwareEngineNetworkCanonical.
+ * @member {string} vmwareEngineNetworkCanonical
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.vmwareEngineNetworkCanonical = "";
+
+ /**
+ * NetworkConfig managementIpAddressLayoutVersion.
+ * @member {number} managementIpAddressLayoutVersion
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.managementIpAddressLayoutVersion = 0;
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INetworkConfig=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig instance
+ */
+ NetworkConfig.create = function create(properties) {
+ return new NetworkConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.managementCidr != null && Object.hasOwnProperty.call(message, "managementCidr"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.managementCidr);
+ if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.vmwareEngineNetwork);
+ if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.vmwareEngineNetworkCanonical);
+ if (message.managementIpAddressLayoutVersion != null && Object.hasOwnProperty.call(message, "managementIpAddressLayoutVersion"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.managementIpAddressLayoutVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vmwareengine.v1.NetworkConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 4: {
+ message.managementCidr = reader.string();
+ break;
+ }
+ case 5: {
+ message.vmwareEngineNetwork = reader.string();
+ break;
+ }
+ case 6: {
+ message.vmwareEngineNetworkCanonical = reader.string();
+ break;
+ }
+ case 8: {
+ message.managementIpAddressLayoutVersion = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NetworkConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.managementCidr != null && message.hasOwnProperty("managementCidr"))
+ if (!$util.isString(message.managementCidr))
+ return "managementCidr: string expected";
+ if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork"))
+ if (!$util.isString(message.vmwareEngineNetwork))
+ return "vmwareEngineNetwork: string expected";
+ if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical"))
+ if (!$util.isString(message.vmwareEngineNetworkCanonical))
+ return "vmwareEngineNetworkCanonical: string expected";
+ if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion"))
+ if (!$util.isInteger(message.managementIpAddressLayoutVersion))
+ return "managementIpAddressLayoutVersion: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.NetworkConfig} NetworkConfig
+ */
+ NetworkConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkConfig)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.NetworkConfig();
+ if (object.managementCidr != null)
+ message.managementCidr = String(object.managementCidr);
+ if (object.vmwareEngineNetwork != null)
+ message.vmwareEngineNetwork = String(object.vmwareEngineNetwork);
+ if (object.vmwareEngineNetworkCanonical != null)
+ message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical);
+ if (object.managementIpAddressLayoutVersion != null)
+ message.managementIpAddressLayoutVersion = object.managementIpAddressLayoutVersion | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.NetworkConfig} message NetworkConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NetworkConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.managementCidr = "";
+ object.vmwareEngineNetwork = "";
+ object.vmwareEngineNetworkCanonical = "";
+ object.managementIpAddressLayoutVersion = 0;
+ }
+ if (message.managementCidr != null && message.hasOwnProperty("managementCidr"))
+ object.managementCidr = message.managementCidr;
+ if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork"))
+ object.vmwareEngineNetwork = message.vmwareEngineNetwork;
+ if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical"))
+ object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical;
+ if (message.managementIpAddressLayoutVersion != null && message.hasOwnProperty("managementIpAddressLayoutVersion"))
+ object.managementIpAddressLayoutVersion = message.managementIpAddressLayoutVersion;
+ return object;
+ };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NetworkConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.NetworkConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkConfig";
+ };
+
+ return NetworkConfig;
+ })();
+
+ v1.NodeTypeConfig = (function() {
+
+ /**
+ * Properties of a NodeTypeConfig.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface INodeTypeConfig
+ * @property {number|null} [nodeCount] NodeTypeConfig nodeCount
+ * @property {number|null} [customCoreCount] NodeTypeConfig customCoreCount
+ */
+
+ /**
+ * Constructs a new NodeTypeConfig.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a NodeTypeConfig.
+ * @implements INodeTypeConfig
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set
+ */
+ function NodeTypeConfig(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]];
+ }
+
+ /**
+ * NodeTypeConfig nodeCount.
+ * @member {number} nodeCount
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @instance
+ */
+ NodeTypeConfig.prototype.nodeCount = 0;
+
+ /**
+ * NodeTypeConfig customCoreCount.
+ * @member {number} customCoreCount
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @instance
+ */
+ NodeTypeConfig.prototype.customCoreCount = 0;
+
+ /**
+ * Creates a new NodeTypeConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INodeTypeConfig=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig instance
+ */
+ NodeTypeConfig.create = function create(properties) {
+ return new NodeTypeConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NodeTypeConfig message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeTypeConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nodeCount);
+ if (message.customCoreCount != null && Object.hasOwnProperty.call(message, "customCoreCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.customCoreCount);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeTypeConfig message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeTypeConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INodeTypeConfig} message NodeTypeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeTypeConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeTypeConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeTypeConfig.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.vmwareengine.v1.NodeTypeConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.nodeCount = reader.int32();
+ break;
+ }
+ case 2: {
+ message.customCoreCount = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeTypeConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeTypeConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeTypeConfig message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeTypeConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.nodeCount != null && message.hasOwnProperty("nodeCount"))
+ if (!$util.isInteger(message.nodeCount))
+ return "nodeCount: integer expected";
+ if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount"))
+ if (!$util.isInteger(message.customCoreCount))
+ return "customCoreCount: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a NodeTypeConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.NodeTypeConfig} NodeTypeConfig
+ */
+ NodeTypeConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.NodeTypeConfig)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.NodeTypeConfig();
+ if (object.nodeCount != null)
+ message.nodeCount = object.nodeCount | 0;
+ if (object.customCoreCount != null)
+ message.customCoreCount = object.customCoreCount | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeTypeConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {google.cloud.vmwareengine.v1.NodeTypeConfig} message NodeTypeConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeTypeConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.nodeCount = 0;
+ object.customCoreCount = 0;
+ }
+ if (message.nodeCount != null && message.hasOwnProperty("nodeCount"))
+ object.nodeCount = message.nodeCount;
+ if (message.customCoreCount != null && message.hasOwnProperty("customCoreCount"))
+ object.customCoreCount = message.customCoreCount;
+ return object;
+ };
+
+ /**
+ * Converts this NodeTypeConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeTypeConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeTypeConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.NodeTypeConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeTypeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeTypeConfig";
+ };
+
+ return NodeTypeConfig;
+ })();
+
+ v1.PrivateCloud = (function() {
+
+ /**
+ * Properties of a PrivateCloud.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IPrivateCloud
+ * @property {string|null} [name] PrivateCloud name
+ * @property {google.protobuf.ITimestamp|null} [createTime] PrivateCloud createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] PrivateCloud updateTime
+ * @property {google.protobuf.ITimestamp|null} [deleteTime] PrivateCloud deleteTime
+ * @property {google.protobuf.ITimestamp|null} [expireTime] PrivateCloud expireTime
+ * @property {google.cloud.vmwareengine.v1.PrivateCloud.State|null} [state] PrivateCloud state
+ * @property {google.cloud.vmwareengine.v1.INetworkConfig|null} [networkConfig] PrivateCloud networkConfig
+ * @property {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null} [managementCluster] PrivateCloud managementCluster
+ * @property {string|null} [description] PrivateCloud description
+ * @property {google.cloud.vmwareengine.v1.IHcx|null} [hcx] PrivateCloud hcx
+ * @property {google.cloud.vmwareengine.v1.INsx|null} [nsx] PrivateCloud nsx
+ * @property {google.cloud.vmwareengine.v1.IVcenter|null} [vcenter] PrivateCloud vcenter
+ * @property {string|null} [uid] PrivateCloud uid
+ */
+
+ /**
+ * Constructs a new PrivateCloud.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a PrivateCloud.
+ * @implements IPrivateCloud
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set
+ */
+ function PrivateCloud(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]];
+ }
+
+ /**
+ * PrivateCloud name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.name = "";
+
+ /**
+ * PrivateCloud createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.createTime = null;
+
+ /**
+ * PrivateCloud updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.updateTime = null;
+
+ /**
+ * PrivateCloud deleteTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} deleteTime
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.deleteTime = null;
+
+ /**
+ * PrivateCloud expireTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} expireTime
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.expireTime = null;
+
+ /**
+ * PrivateCloud state.
+ * @member {google.cloud.vmwareengine.v1.PrivateCloud.State} state
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.state = 0;
+
+ /**
+ * PrivateCloud networkConfig.
+ * @member {google.cloud.vmwareengine.v1.INetworkConfig|null|undefined} networkConfig
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.networkConfig = null;
+
+ /**
+ * PrivateCloud managementCluster.
+ * @member {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster|null|undefined} managementCluster
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.managementCluster = null;
+
+ /**
+ * PrivateCloud description.
+ * @member {string} description
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.description = "";
+
+ /**
+ * PrivateCloud hcx.
+ * @member {google.cloud.vmwareengine.v1.IHcx|null|undefined} hcx
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.hcx = null;
+
+ /**
+ * PrivateCloud nsx.
+ * @member {google.cloud.vmwareengine.v1.INsx|null|undefined} nsx
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.nsx = null;
+
+ /**
+ * PrivateCloud vcenter.
+ * @member {google.cloud.vmwareengine.v1.IVcenter|null|undefined} vcenter
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.vcenter = null;
+
+ /**
+ * PrivateCloud uid.
+ * @member {string} uid
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ */
+ PrivateCloud.prototype.uid = "";
+
+ /**
+ * Creates a new PrivateCloud instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IPrivateCloud=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud instance
+ */
+ PrivateCloud.create = function create(properties) {
+ return new PrivateCloud(properties);
+ };
+
+ /**
+ * Encodes the specified PrivateCloud message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateCloud.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.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime"))
+ $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
+ $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state);
+ if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig"))
+ $root.google.cloud.vmwareengine.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.managementCluster != null && Object.hasOwnProperty.call(message, "managementCluster"))
+ $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.encode(message.managementCluster, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.description);
+ if (message.hcx != null && Object.hasOwnProperty.call(message, "hcx"))
+ $root.google.cloud.vmwareengine.v1.Hcx.encode(message.hcx, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
+ if (message.nsx != null && Object.hasOwnProperty.call(message, "nsx"))
+ $root.google.cloud.vmwareengine.v1.Nsx.encode(message.nsx, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
+ if (message.vcenter != null && Object.hasOwnProperty.call(message, "vcenter"))
+ $root.google.cloud.vmwareengine.v1.Vcenter.encode(message.vcenter, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 20, wireType 2 =*/162).string(message.uid);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PrivateCloud message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IPrivateCloud} message PrivateCloud message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateCloud.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PrivateCloud message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateCloud.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.vmwareengine.v1.PrivateCloud();
+ 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.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.state = reader.int32();
+ break;
+ }
+ case 9: {
+ message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.description = reader.string();
+ break;
+ }
+ case 17: {
+ message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.decode(reader, reader.uint32());
+ break;
+ }
+ case 18: {
+ message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.decode(reader, reader.uint32());
+ break;
+ }
+ case 19: {
+ message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.decode(reader, reader.uint32());
+ break;
+ }
+ case 20: {
+ message.uid = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PrivateCloud message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateCloud.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PrivateCloud message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PrivateCloud.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.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.deleteTime);
+ if (error)
+ return "deleteTime." + error;
+ }
+ if (message.expireTime != null && message.hasOwnProperty("expireTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.expireTime);
+ if (error)
+ return "expireTime." + 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 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) {
+ var error = $root.google.cloud.vmwareengine.v1.NetworkConfig.verify(message.networkConfig);
+ if (error)
+ return "networkConfig." + error;
+ }
+ if (message.managementCluster != null && message.hasOwnProperty("managementCluster")) {
+ var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify(message.managementCluster);
+ if (error)
+ return "managementCluster." + error;
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.hcx != null && message.hasOwnProperty("hcx")) {
+ var error = $root.google.cloud.vmwareengine.v1.Hcx.verify(message.hcx);
+ if (error)
+ return "hcx." + error;
+ }
+ if (message.nsx != null && message.hasOwnProperty("nsx")) {
+ var error = $root.google.cloud.vmwareengine.v1.Nsx.verify(message.nsx);
+ if (error)
+ return "nsx." + error;
+ }
+ if (message.vcenter != null && message.hasOwnProperty("vcenter")) {
+ var error = $root.google.cloud.vmwareengine.v1.Vcenter.verify(message.vcenter);
+ if (error)
+ return "vcenter." + error;
+ }
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a PrivateCloud message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud} PrivateCloud
+ */
+ PrivateCloud.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.deleteTime != null) {
+ if (typeof object.deleteTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.deleteTime: object expected");
+ message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime);
+ }
+ if (object.expireTime != null) {
+ if (typeof object.expireTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.expireTime: object expected");
+ message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime);
+ }
+ 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 "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ case "UPDATING":
+ case 3:
+ message.state = 3;
+ break;
+ case "FAILED":
+ case 5:
+ message.state = 5;
+ break;
+ case "DELETED":
+ case 6:
+ message.state = 6;
+ break;
+ case "PURGING":
+ case 7:
+ message.state = 7;
+ break;
+ }
+ if (object.networkConfig != null) {
+ if (typeof object.networkConfig !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.networkConfig: object expected");
+ message.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.fromObject(object.networkConfig);
+ }
+ if (object.managementCluster != null) {
+ if (typeof object.managementCluster !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.managementCluster: object expected");
+ message.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.fromObject(object.managementCluster);
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.hcx != null) {
+ if (typeof object.hcx !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.hcx: object expected");
+ message.hcx = $root.google.cloud.vmwareengine.v1.Hcx.fromObject(object.hcx);
+ }
+ if (object.nsx != null) {
+ if (typeof object.nsx !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.nsx: object expected");
+ message.nsx = $root.google.cloud.vmwareengine.v1.Nsx.fromObject(object.nsx);
+ }
+ if (object.vcenter != null) {
+ if (typeof object.vcenter !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.vcenter: object expected");
+ message.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.fromObject(object.vcenter);
+ }
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PrivateCloud message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {google.cloud.vmwareengine.v1.PrivateCloud} message PrivateCloud
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PrivateCloud.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.deleteTime = null;
+ object.expireTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.networkConfig = null;
+ object.managementCluster = null;
+ object.description = "";
+ object.hcx = null;
+ object.nsx = null;
+ object.vcenter = null;
+ object.uid = "";
+ }
+ 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.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime"))
+ object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options);
+ if (message.expireTime != null && message.hasOwnProperty("expireTime"))
+ object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.PrivateCloud.State[message.state] : message.state;
+ if (message.networkConfig != null && message.hasOwnProperty("networkConfig"))
+ object.networkConfig = $root.google.cloud.vmwareengine.v1.NetworkConfig.toObject(message.networkConfig, options);
+ if (message.managementCluster != null && message.hasOwnProperty("managementCluster"))
+ object.managementCluster = $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.toObject(message.managementCluster, options);
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.hcx != null && message.hasOwnProperty("hcx"))
+ object.hcx = $root.google.cloud.vmwareengine.v1.Hcx.toObject(message.hcx, options);
+ if (message.nsx != null && message.hasOwnProperty("nsx"))
+ object.nsx = $root.google.cloud.vmwareengine.v1.Nsx.toObject(message.nsx, options);
+ if (message.vcenter != null && message.hasOwnProperty("vcenter"))
+ object.vcenter = $root.google.cloud.vmwareengine.v1.Vcenter.toObject(message.vcenter, options);
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ return object;
+ };
+
+ /**
+ * Converts this PrivateCloud to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PrivateCloud.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PrivateCloud
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PrivateCloud.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmwareengine.v1.PrivateCloud.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CREATING=2 CREATING value
+ * @property {number} UPDATING=3 UPDATING value
+ * @property {number} FAILED=5 FAILED value
+ * @property {number} DELETED=6 DELETED value
+ * @property {number} PURGING=7 PURGING value
+ */
+ PrivateCloud.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ values[valuesById[3] = "UPDATING"] = 3;
+ values[valuesById[5] = "FAILED"] = 5;
+ values[valuesById[6] = "DELETED"] = 6;
+ values[valuesById[7] = "PURGING"] = 7;
+ return values;
+ })();
+
+ PrivateCloud.ManagementCluster = (function() {
+
+ /**
+ * Properties of a ManagementCluster.
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @interface IManagementCluster
+ * @property {string|null} [clusterId] ManagementCluster clusterId
+ * @property {Object.|null} [nodeTypeConfigs] ManagementCluster nodeTypeConfigs
+ */
+
+ /**
+ * Constructs a new ManagementCluster.
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud
+ * @classdesc Represents a ManagementCluster.
+ * @implements IManagementCluster
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set
+ */
+ function ManagementCluster(properties) {
+ this.nodeTypeConfigs = {};
+ 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]];
+ }
+
+ /**
+ * ManagementCluster clusterId.
+ * @member {string} clusterId
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @instance
+ */
+ ManagementCluster.prototype.clusterId = "";
+
+ /**
+ * ManagementCluster nodeTypeConfigs.
+ * @member {Object.} nodeTypeConfigs
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @instance
+ */
+ ManagementCluster.prototype.nodeTypeConfigs = $util.emptyObject;
+
+ /**
+ * Creates a new ManagementCluster instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster instance
+ */
+ ManagementCluster.create = function create(properties) {
+ return new ManagementCluster(properties);
+ };
+
+ /**
+ * Encodes the specified ManagementCluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ManagementCluster.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.clusterId);
+ if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs"))
+ for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ManagementCluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.PrivateCloud.IManagementCluster} message ManagementCluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ManagementCluster.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ManagementCluster message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ManagementCluster.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.vmwareengine.v1.PrivateCloud.ManagementCluster(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.clusterId = reader.string();
+ break;
+ }
+ case 7: {
+ if (message.nodeTypeConfigs === $util.emptyObject)
+ message.nodeTypeConfigs = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.nodeTypeConfigs[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ManagementCluster message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ManagementCluster.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ManagementCluster message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ManagementCluster.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) {
+ if (!$util.isObject(message.nodeTypeConfigs))
+ return "nodeTypeConfigs: object expected";
+ var key = Object.keys(message.nodeTypeConfigs);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]);
+ if (error)
+ return "nodeTypeConfigs." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ManagementCluster message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} ManagementCluster
+ */
+ ManagementCluster.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster();
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.nodeTypeConfigs) {
+ if (typeof object.nodeTypeConfigs !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected");
+ message.nodeTypeConfigs = {};
+ for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) {
+ if (typeof object.nodeTypeConfigs[keys[i]] !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster.nodeTypeConfigs: object expected");
+ message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ManagementCluster message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster} message ManagementCluster
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ManagementCluster.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.nodeTypeConfigs = {};
+ if (options.defaults)
+ object.clusterId = "";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ var keys2;
+ if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) {
+ object.nodeTypeConfigs = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ManagementCluster to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ManagementCluster.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ManagementCluster
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ManagementCluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.PrivateCloud.ManagementCluster";
+ };
+
+ return ManagementCluster;
+ })();
+
+ return PrivateCloud;
+ })();
+
+ v1.ListPrivateCloudsRequest = (function() {
+
+ /**
+ * Properties of a ListPrivateCloudsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListPrivateCloudsRequest
+ * @property {string|null} [parent] ListPrivateCloudsRequest parent
+ * @property {number|null} [pageSize] ListPrivateCloudsRequest pageSize
+ * @property {string|null} [pageToken] ListPrivateCloudsRequest pageToken
+ * @property {string|null} [filter] ListPrivateCloudsRequest filter
+ * @property {string|null} [orderBy] ListPrivateCloudsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListPrivateCloudsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListPrivateCloudsRequest.
+ * @implements IListPrivateCloudsRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set
+ */
+ function ListPrivateCloudsRequest(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]];
+ }
+
+ /**
+ * ListPrivateCloudsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @instance
+ */
+ ListPrivateCloudsRequest.prototype.parent = "";
+
+ /**
+ * ListPrivateCloudsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @instance
+ */
+ ListPrivateCloudsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListPrivateCloudsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @instance
+ */
+ ListPrivateCloudsRequest.prototype.pageToken = "";
+
+ /**
+ * ListPrivateCloudsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @instance
+ */
+ ListPrivateCloudsRequest.prototype.filter = "";
+
+ /**
+ * ListPrivateCloudsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @instance
+ */
+ ListPrivateCloudsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListPrivateCloudsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest instance
+ */
+ ListPrivateCloudsRequest.create = function create(properties) {
+ return new ListPrivateCloudsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListPrivateCloudsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListPrivateCloudsRequest.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 ListPrivateCloudsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsRequest} message ListPrivateCloudsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListPrivateCloudsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListPrivateCloudsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListPrivateCloudsRequest.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.vmwareengine.v1.ListPrivateCloudsRequest();
+ 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 ListPrivateCloudsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListPrivateCloudsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListPrivateCloudsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListPrivateCloudsRequest.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 ListPrivateCloudsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} ListPrivateCloudsRequest
+ */
+ ListPrivateCloudsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest();
+ 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 ListPrivateCloudsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsRequest} message ListPrivateCloudsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListPrivateCloudsRequest.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 ListPrivateCloudsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListPrivateCloudsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListPrivateCloudsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListPrivateCloudsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsRequest";
+ };
+
+ return ListPrivateCloudsRequest;
+ })();
+
+ v1.ListPrivateCloudsResponse = (function() {
+
+ /**
+ * Properties of a ListPrivateCloudsResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListPrivateCloudsResponse
+ * @property {Array.|null} [privateClouds] ListPrivateCloudsResponse privateClouds
+ * @property {string|null} [nextPageToken] ListPrivateCloudsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListPrivateCloudsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListPrivateCloudsResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListPrivateCloudsResponse.
+ * @implements IListPrivateCloudsResponse
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set
+ */
+ function ListPrivateCloudsResponse(properties) {
+ this.privateClouds = [];
+ 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]];
+ }
+
+ /**
+ * ListPrivateCloudsResponse privateClouds.
+ * @member {Array.} privateClouds
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @instance
+ */
+ ListPrivateCloudsResponse.prototype.privateClouds = $util.emptyArray;
+
+ /**
+ * ListPrivateCloudsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @instance
+ */
+ ListPrivateCloudsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListPrivateCloudsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @instance
+ */
+ ListPrivateCloudsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListPrivateCloudsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse instance
+ */
+ ListPrivateCloudsResponse.create = function create(properties) {
+ return new ListPrivateCloudsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListPrivateCloudsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListPrivateCloudsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.privateClouds != null && message.privateClouds.length)
+ for (var i = 0; i < message.privateClouds.length; ++i)
+ $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateClouds[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 ListPrivateCloudsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListPrivateCloudsResponse} message ListPrivateCloudsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListPrivateCloudsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListPrivateCloudsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListPrivateCloudsResponse.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.vmwareengine.v1.ListPrivateCloudsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.privateClouds && message.privateClouds.length))
+ message.privateClouds = [];
+ message.privateClouds.push($root.google.cloud.vmwareengine.v1.PrivateCloud.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 ListPrivateCloudsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListPrivateCloudsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListPrivateCloudsResponse message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListPrivateCloudsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.privateClouds != null && message.hasOwnProperty("privateClouds")) {
+ if (!Array.isArray(message.privateClouds))
+ return "privateClouds: array expected";
+ for (var i = 0; i < message.privateClouds.length; ++i) {
+ var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateClouds[i]);
+ if (error)
+ return "privateClouds." + 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 ListPrivateCloudsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} ListPrivateCloudsResponse
+ */
+ ListPrivateCloudsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse();
+ if (object.privateClouds) {
+ if (!Array.isArray(object.privateClouds))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: array expected");
+ message.privateClouds = [];
+ for (var i = 0; i < object.privateClouds.length; ++i) {
+ if (typeof object.privateClouds[i] !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.privateClouds: object expected");
+ message.privateClouds[i] = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateClouds[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse.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 ListPrivateCloudsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListPrivateCloudsResponse} message ListPrivateCloudsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListPrivateCloudsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.privateClouds = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.privateClouds && message.privateClouds.length) {
+ object.privateClouds = [];
+ for (var j = 0; j < message.privateClouds.length; ++j)
+ object.privateClouds[j] = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateClouds[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 ListPrivateCloudsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListPrivateCloudsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListPrivateCloudsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListPrivateCloudsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListPrivateCloudsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListPrivateCloudsResponse";
+ };
+
+ return ListPrivateCloudsResponse;
+ })();
+
+ v1.GetPrivateCloudRequest = (function() {
+
+ /**
+ * Properties of a GetPrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IGetPrivateCloudRequest
+ * @property {string|null} [name] GetPrivateCloudRequest name
+ */
+
+ /**
+ * Constructs a new GetPrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a GetPrivateCloudRequest.
+ * @implements IGetPrivateCloudRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set
+ */
+ function GetPrivateCloudRequest(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]];
+ }
+
+ /**
+ * GetPrivateCloudRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @instance
+ */
+ GetPrivateCloudRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetPrivateCloudRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest instance
+ */
+ GetPrivateCloudRequest.create = function create(properties) {
+ return new GetPrivateCloudRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetPrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetPrivateCloudRequest.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 GetPrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetPrivateCloudRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetPrivateCloudRequest} message GetPrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetPrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetPrivateCloudRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetPrivateCloudRequest.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.vmwareengine.v1.GetPrivateCloudRequest();
+ 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 GetPrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetPrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetPrivateCloudRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetPrivateCloudRequest.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 GetPrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} GetPrivateCloudRequest
+ */
+ GetPrivateCloudRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.GetPrivateCloudRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetPrivateCloudRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.GetPrivateCloudRequest} message GetPrivateCloudRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetPrivateCloudRequest.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 GetPrivateCloudRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetPrivateCloudRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetPrivateCloudRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.GetPrivateCloudRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetPrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetPrivateCloudRequest";
+ };
+
+ return GetPrivateCloudRequest;
+ })();
+
+ v1.CreatePrivateCloudRequest = (function() {
+
+ /**
+ * Properties of a CreatePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface ICreatePrivateCloudRequest
+ * @property {string|null} [parent] CreatePrivateCloudRequest parent
+ * @property {string|null} [privateCloudId] CreatePrivateCloudRequest privateCloudId
+ * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] CreatePrivateCloudRequest privateCloud
+ * @property {string|null} [requestId] CreatePrivateCloudRequest requestId
+ * @property {boolean|null} [validateOnly] CreatePrivateCloudRequest validateOnly
+ */
+
+ /**
+ * Constructs a new CreatePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a CreatePrivateCloudRequest.
+ * @implements ICreatePrivateCloudRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set
+ */
+ function CreatePrivateCloudRequest(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]];
+ }
+
+ /**
+ * CreatePrivateCloudRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @instance
+ */
+ CreatePrivateCloudRequest.prototype.parent = "";
+
+ /**
+ * CreatePrivateCloudRequest privateCloudId.
+ * @member {string} privateCloudId
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @instance
+ */
+ CreatePrivateCloudRequest.prototype.privateCloudId = "";
+
+ /**
+ * CreatePrivateCloudRequest privateCloud.
+ * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @instance
+ */
+ CreatePrivateCloudRequest.prototype.privateCloud = null;
+
+ /**
+ * CreatePrivateCloudRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @instance
+ */
+ CreatePrivateCloudRequest.prototype.requestId = "";
+
+ /**
+ * CreatePrivateCloudRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @instance
+ */
+ CreatePrivateCloudRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new CreatePrivateCloudRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest instance
+ */
+ CreatePrivateCloudRequest.create = function create(properties) {
+ return new CreatePrivateCloudRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreatePrivateCloudRequest.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.privateCloudId != null && Object.hasOwnProperty.call(message, "privateCloudId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.privateCloudId);
+ if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud"))
+ $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreatePrivateCloudRequest} message CreatePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreatePrivateCloudRequest.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.vmwareengine.v1.CreatePrivateCloudRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.privateCloudId = reader.string();
+ break;
+ }
+ case 3: {
+ message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 5: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreatePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreatePrivateCloudRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreatePrivateCloudRequest.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.privateCloudId != null && message.hasOwnProperty("privateCloudId"))
+ if (!$util.isString(message.privateCloudId))
+ return "privateCloudId: string expected";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) {
+ var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud);
+ if (error)
+ return "privateCloud." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} CreatePrivateCloudRequest
+ */
+ CreatePrivateCloudRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.privateCloudId != null)
+ message.privateCloudId = String(object.privateCloudId);
+ if (object.privateCloud != null) {
+ if (typeof object.privateCloud !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.CreatePrivateCloudRequest.privateCloud: object expected");
+ message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreatePrivateCloudRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.CreatePrivateCloudRequest} message CreatePrivateCloudRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreatePrivateCloudRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.privateCloudId = "";
+ object.privateCloud = null;
+ object.requestId = "";
+ object.validateOnly = false;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.privateCloudId != null && message.hasOwnProperty("privateCloudId"))
+ object.privateCloudId = message.privateCloudId;
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this CreatePrivateCloudRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreatePrivateCloudRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreatePrivateCloudRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.CreatePrivateCloudRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreatePrivateCloudRequest";
+ };
+
+ return CreatePrivateCloudRequest;
+ })();
+
+ v1.UpdatePrivateCloudRequest = (function() {
+
+ /**
+ * Properties of an UpdatePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IUpdatePrivateCloudRequest
+ * @property {google.cloud.vmwareengine.v1.IPrivateCloud|null} [privateCloud] UpdatePrivateCloudRequest privateCloud
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePrivateCloudRequest updateMask
+ * @property {string|null} [requestId] UpdatePrivateCloudRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdatePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents an UpdatePrivateCloudRequest.
+ * @implements IUpdatePrivateCloudRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set
+ */
+ function UpdatePrivateCloudRequest(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]];
+ }
+
+ /**
+ * UpdatePrivateCloudRequest privateCloud.
+ * @member {google.cloud.vmwareengine.v1.IPrivateCloud|null|undefined} privateCloud
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @instance
+ */
+ UpdatePrivateCloudRequest.prototype.privateCloud = null;
+
+ /**
+ * UpdatePrivateCloudRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @instance
+ */
+ UpdatePrivateCloudRequest.prototype.updateMask = null;
+
+ /**
+ * UpdatePrivateCloudRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @instance
+ */
+ UpdatePrivateCloudRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdatePrivateCloudRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest instance
+ */
+ UpdatePrivateCloudRequest.create = function create(properties) {
+ return new UpdatePrivateCloudRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdatePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdatePrivateCloudRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud"))
+ $root.google.cloud.vmwareengine.v1.PrivateCloud.encode(message.privateCloud, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdatePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUpdatePrivateCloudRequest} message UpdatePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdatePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdatePrivateCloudRequest.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.vmwareengine.v1.UpdatePrivateCloudRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdatePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdatePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdatePrivateCloudRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdatePrivateCloudRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud")) {
+ var error = $root.google.cloud.vmwareengine.v1.PrivateCloud.verify(message.privateCloud);
+ if (error)
+ return "privateCloud." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdatePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} UpdatePrivateCloudRequest
+ */
+ UpdatePrivateCloudRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest();
+ if (object.privateCloud != null) {
+ if (typeof object.privateCloud !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.privateCloud: object expected");
+ message.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.fromObject(object.privateCloud);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdatePrivateCloudRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest} message UpdatePrivateCloudRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdatePrivateCloudRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.privateCloud = null;
+ object.updateMask = null;
+ object.requestId = "";
+ }
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ object.privateCloud = $root.google.cloud.vmwareengine.v1.PrivateCloud.toObject(message.privateCloud, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdatePrivateCloudRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdatePrivateCloudRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdatePrivateCloudRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdatePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest";
+ };
+
+ return UpdatePrivateCloudRequest;
+ })();
+
+ v1.DeletePrivateCloudRequest = (function() {
+
+ /**
+ * Properties of a DeletePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IDeletePrivateCloudRequest
+ * @property {string|null} [name] DeletePrivateCloudRequest name
+ * @property {string|null} [requestId] DeletePrivateCloudRequest requestId
+ * @property {boolean|null} [force] DeletePrivateCloudRequest force
+ * @property {number|null} [delayHours] DeletePrivateCloudRequest delayHours
+ */
+
+ /**
+ * Constructs a new DeletePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a DeletePrivateCloudRequest.
+ * @implements IDeletePrivateCloudRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set
+ */
+ function DeletePrivateCloudRequest(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]];
+ }
+
+ /**
+ * DeletePrivateCloudRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @instance
+ */
+ DeletePrivateCloudRequest.prototype.name = "";
+
+ /**
+ * DeletePrivateCloudRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @instance
+ */
+ DeletePrivateCloudRequest.prototype.requestId = "";
+
+ /**
+ * DeletePrivateCloudRequest force.
+ * @member {boolean} force
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @instance
+ */
+ DeletePrivateCloudRequest.prototype.force = false;
+
+ /**
+ * DeletePrivateCloudRequest delayHours.
+ * @member {number|null|undefined} delayHours
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @instance
+ */
+ DeletePrivateCloudRequest.prototype.delayHours = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * DeletePrivateCloudRequest _delayHours.
+ * @member {"delayHours"|undefined} _delayHours
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @instance
+ */
+ Object.defineProperty(DeletePrivateCloudRequest.prototype, "_delayHours", {
+ get: $util.oneOfGetter($oneOfFields = ["delayHours"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new DeletePrivateCloudRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest instance
+ */
+ DeletePrivateCloudRequest.create = function create(properties) {
+ return new DeletePrivateCloudRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeletePrivateCloudRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ if (message.force != null && Object.hasOwnProperty.call(message, "force"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force);
+ if (message.delayHours != null && Object.hasOwnProperty.call(message, "delayHours"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.delayHours);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeletePrivateCloudRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IDeletePrivateCloudRequest} message DeletePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeletePrivateCloudRequest.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.vmwareengine.v1.DeletePrivateCloudRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 3: {
+ message.force = reader.bool();
+ break;
+ }
+ case 4: {
+ message.delayHours = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeletePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeletePrivateCloudRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeletePrivateCloudRequest.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.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.force != null && message.hasOwnProperty("force"))
+ if (typeof message.force !== "boolean")
+ return "force: boolean expected";
+ if (message.delayHours != null && message.hasOwnProperty("delayHours")) {
+ properties._delayHours = 1;
+ if (!$util.isInteger(message.delayHours))
+ return "delayHours: integer expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} DeletePrivateCloudRequest
+ */
+ DeletePrivateCloudRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.force != null)
+ message.force = Boolean(object.force);
+ if (object.delayHours != null)
+ message.delayHours = object.delayHours | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeletePrivateCloudRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.DeletePrivateCloudRequest} message DeletePrivateCloudRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeletePrivateCloudRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ object.force = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.force != null && message.hasOwnProperty("force"))
+ object.force = message.force;
+ if (message.delayHours != null && message.hasOwnProperty("delayHours")) {
+ object.delayHours = message.delayHours;
+ if (options.oneofs)
+ object._delayHours = "delayHours";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DeletePrivateCloudRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeletePrivateCloudRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeletePrivateCloudRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.DeletePrivateCloudRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeletePrivateCloudRequest";
+ };
+
+ return DeletePrivateCloudRequest;
+ })();
+
+ v1.UndeletePrivateCloudRequest = (function() {
+
+ /**
+ * Properties of an UndeletePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IUndeletePrivateCloudRequest
+ * @property {string|null} [name] UndeletePrivateCloudRequest name
+ * @property {string|null} [requestId] UndeletePrivateCloudRequest requestId
+ */
+
+ /**
+ * Constructs a new UndeletePrivateCloudRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents an UndeletePrivateCloudRequest.
+ * @implements IUndeletePrivateCloudRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set
+ */
+ function UndeletePrivateCloudRequest(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]];
+ }
+
+ /**
+ * UndeletePrivateCloudRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @instance
+ */
+ UndeletePrivateCloudRequest.prototype.name = "";
+
+ /**
+ * UndeletePrivateCloudRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @instance
+ */
+ UndeletePrivateCloudRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UndeletePrivateCloudRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest instance
+ */
+ UndeletePrivateCloudRequest.create = function create(properties) {
+ return new UndeletePrivateCloudRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UndeletePrivateCloudRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeletePrivateCloudRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UndeletePrivateCloudRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUndeletePrivateCloudRequest} message UndeletePrivateCloudRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeletePrivateCloudRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeletePrivateCloudRequest.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.vmwareengine.v1.UndeletePrivateCloudRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UndeletePrivateCloudRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeletePrivateCloudRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UndeletePrivateCloudRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UndeletePrivateCloudRequest.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.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UndeletePrivateCloudRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} UndeletePrivateCloudRequest
+ */
+ UndeletePrivateCloudRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UndeletePrivateCloudRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest} message UndeletePrivateCloudRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UndeletePrivateCloudRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UndeletePrivateCloudRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UndeletePrivateCloudRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UndeletePrivateCloudRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UndeletePrivateCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest";
+ };
+
+ return UndeletePrivateCloudRequest;
+ })();
+
+ v1.Cluster = (function() {
+
+ /**
+ * Properties of a Cluster.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface ICluster
+ * @property {string|null} [name] Cluster name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Cluster createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Cluster updateTime
+ * @property {google.cloud.vmwareengine.v1.Cluster.State|null} [state] Cluster state
+ * @property {boolean|null} [management] Cluster management
+ * @property {string|null} [uid] Cluster uid
+ * @property {Object.|null} [nodeTypeConfigs] Cluster nodeTypeConfigs
+ */
+
+ /**
+ * Constructs a new Cluster.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a Cluster.
+ * @implements ICluster
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set
+ */
+ function Cluster(properties) {
+ this.nodeTypeConfigs = {};
+ 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]];
+ }
+
+ /**
+ * Cluster name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.name = "";
+
+ /**
+ * Cluster createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.createTime = null;
+
+ /**
+ * Cluster updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.updateTime = null;
+
+ /**
+ * Cluster state.
+ * @member {google.cloud.vmwareengine.v1.Cluster.State} state
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.state = 0;
+
+ /**
+ * Cluster management.
+ * @member {boolean} management
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.management = false;
+
+ /**
+ * Cluster uid.
+ * @member {string} uid
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.uid = "";
+
+ /**
+ * Cluster nodeTypeConfigs.
+ * @member {Object.} nodeTypeConfigs
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.nodeTypeConfigs = $util.emptyObject;
+
+ /**
+ * Creates a new Cluster instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICluster=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster instance
+ */
+ Cluster.create = function create(properties) {
+ return new Cluster(properties);
+ };
+
+ /**
+ * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Cluster.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.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state);
+ if (message.management != null && Object.hasOwnProperty.call(message, "management"))
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.management);
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.uid);
+ if (message.nodeTypeConfigs != null && Object.hasOwnProperty.call(message, "nodeTypeConfigs"))
+ for (var keys = Object.keys(message.nodeTypeConfigs), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.cloud.vmwareengine.v1.NodeTypeConfig.encode(message.nodeTypeConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Cluster.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICluster} message Cluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Cluster.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Cluster.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.vmwareengine.v1.Cluster(), 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.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.state = reader.int32();
+ break;
+ }
+ case 7: {
+ message.management = reader.bool();
+ break;
+ }
+ case 14: {
+ message.uid = reader.string();
+ break;
+ }
+ case 16: {
+ if (message.nodeTypeConfigs === $util.emptyObject)
+ message.nodeTypeConfigs = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.nodeTypeConfigs[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Cluster.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Cluster message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Cluster.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.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + 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:
+ break;
+ }
+ if (message.management != null && message.hasOwnProperty("management"))
+ if (typeof message.management !== "boolean")
+ return "management: boolean expected";
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ if (message.nodeTypeConfigs != null && message.hasOwnProperty("nodeTypeConfigs")) {
+ if (!$util.isObject(message.nodeTypeConfigs))
+ return "nodeTypeConfigs: object expected";
+ var key = Object.keys(message.nodeTypeConfigs);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.verify(message.nodeTypeConfigs[key[i]]);
+ if (error)
+ return "nodeTypeConfigs." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Cluster message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.Cluster} Cluster
+ */
+ Cluster.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.Cluster)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.Cluster();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.Cluster.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.Cluster.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ 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 "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ case "UPDATING":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ case "REPAIRING":
+ case 5:
+ message.state = 5;
+ break;
+ }
+ if (object.management != null)
+ message.management = Boolean(object.management);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.nodeTypeConfigs) {
+ if (typeof object.nodeTypeConfigs !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected");
+ message.nodeTypeConfigs = {};
+ for (var keys = Object.keys(object.nodeTypeConfigs), i = 0; i < keys.length; ++i) {
+ if (typeof object.nodeTypeConfigs[keys[i]] !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.Cluster.nodeTypeConfigs: object expected");
+ message.nodeTypeConfigs[keys[i]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.fromObject(object.nodeTypeConfigs[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Cluster message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {google.cloud.vmwareengine.v1.Cluster} message Cluster
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Cluster.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.nodeTypeConfigs = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.management = false;
+ object.uid = "";
+ }
+ 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.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Cluster.State[message.state] : message.state;
+ if (message.management != null && message.hasOwnProperty("management"))
+ object.management = message.management;
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ var keys2;
+ if (message.nodeTypeConfigs && (keys2 = Object.keys(message.nodeTypeConfigs)).length) {
+ object.nodeTypeConfigs = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.nodeTypeConfigs[keys2[j]] = $root.google.cloud.vmwareengine.v1.NodeTypeConfig.toObject(message.nodeTypeConfigs[keys2[j]], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Cluster to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Cluster.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Cluster
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.Cluster
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Cluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Cluster";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmwareengine.v1.Cluster.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CREATING=2 CREATING value
+ * @property {number} UPDATING=3 UPDATING value
+ * @property {number} DELETING=4 DELETING value
+ * @property {number} REPAIRING=5 REPAIRING value
+ */
+ Cluster.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ values[valuesById[3] = "UPDATING"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ values[valuesById[5] = "REPAIRING"] = 5;
+ return values;
+ })();
+
+ return Cluster;
+ })();
+
+ v1.ListClustersRequest = (function() {
+
+ /**
+ * Properties of a ListClustersRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListClustersRequest
+ * @property {string|null} [parent] ListClustersRequest parent
+ * @property {number|null} [pageSize] ListClustersRequest pageSize
+ * @property {string|null} [pageToken] ListClustersRequest pageToken
+ * @property {string|null} [filter] ListClustersRequest filter
+ * @property {string|null} [orderBy] ListClustersRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListClustersRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListClustersRequest.
+ * @implements IListClustersRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set
+ */
+ function ListClustersRequest(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]];
+ }
+
+ /**
+ * ListClustersRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.parent = "";
+
+ /**
+ * ListClustersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListClustersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.pageToken = "";
+
+ /**
+ * ListClustersRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.filter = "";
+
+ /**
+ * ListClustersRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListClustersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListClustersRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest instance
+ */
+ ListClustersRequest.create = function create(properties) {
+ return new ListClustersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersRequest.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 ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListClustersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersRequest.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.vmwareengine.v1.ListClustersRequest();
+ 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 ListClustersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListClustersRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListClustersRequest.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 ListClustersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListClustersRequest} ListClustersRequest
+ */
+ ListClustersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListClustersRequest();
+ 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 ListClustersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListClustersRequest} message ListClustersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListClustersRequest.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 ListClustersRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListClustersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListClustersRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListClustersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListClustersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersRequest";
+ };
+
+ return ListClustersRequest;
+ })();
+
+ v1.ListClustersResponse = (function() {
+
+ /**
+ * Properties of a ListClustersResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListClustersResponse
+ * @property {Array.|null} [clusters] ListClustersResponse clusters
+ * @property {string|null} [nextPageToken] ListClustersResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListClustersResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListClustersResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListClustersResponse.
+ * @implements IListClustersResponse
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set
+ */
+ function ListClustersResponse(properties) {
+ this.clusters = [];
+ 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]];
+ }
+
+ /**
+ * ListClustersResponse clusters.
+ * @member {Array.} clusters
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @instance
+ */
+ ListClustersResponse.prototype.clusters = $util.emptyArray;
+
+ /**
+ * ListClustersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @instance
+ */
+ ListClustersResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListClustersResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @instance
+ */
+ ListClustersResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListClustersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListClustersResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse instance
+ */
+ ListClustersResponse.create = function create(properties) {
+ return new ListClustersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.clusters != null && message.clusters.length)
+ for (var i = 0; i < message.clusters.length; ++i)
+ $root.google.cloud.vmwareengine.v1.Cluster.encode(message.clusters[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 ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListClustersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListClustersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersResponse.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.vmwareengine.v1.ListClustersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.clusters && message.clusters.length))
+ message.clusters = [];
+ message.clusters.push($root.google.cloud.vmwareengine.v1.Cluster.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 ListClustersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListClustersResponse message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListClustersResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.clusters != null && message.hasOwnProperty("clusters")) {
+ if (!Array.isArray(message.clusters))
+ return "clusters: array expected";
+ for (var i = 0; i < message.clusters.length; ++i) {
+ var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.clusters[i]);
+ if (error)
+ return "clusters." + 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 ListClustersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListClustersResponse} ListClustersResponse
+ */
+ ListClustersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListClustersResponse)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListClustersResponse();
+ if (object.clusters) {
+ if (!Array.isArray(object.clusters))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: array expected");
+ message.clusters = [];
+ for (var i = 0; i < object.clusters.length; ++i) {
+ if (typeof object.clusters[i] !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.clusters: object expected");
+ message.clusters[i] = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.clusters[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListClustersResponse.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 ListClustersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListClustersResponse} message ListClustersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListClustersResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.clusters = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.clusters && message.clusters.length) {
+ object.clusters = [];
+ for (var j = 0; j < message.clusters.length; ++j)
+ object.clusters[j] = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.clusters[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 ListClustersResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListClustersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListClustersResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListClustersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListClustersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListClustersResponse";
+ };
+
+ return ListClustersResponse;
+ })();
+
+ v1.GetClusterRequest = (function() {
+
+ /**
+ * Properties of a GetClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IGetClusterRequest
+ * @property {string|null} [name] GetClusterRequest name
+ */
+
+ /**
+ * Constructs a new GetClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a GetClusterRequest.
+ * @implements IGetClusterRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set
+ */
+ function GetClusterRequest(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]];
+ }
+
+ /**
+ * GetClusterRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @instance
+ */
+ GetClusterRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest instance
+ */
+ GetClusterRequest.create = function create(properties) {
+ return new GetClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetClusterRequest.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 GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetClusterRequest.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.vmwareengine.v1.GetClusterRequest();
+ 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 GetClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetClusterRequest.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 GetClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.GetClusterRequest} GetClusterRequest
+ */
+ GetClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.GetClusterRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.GetClusterRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.GetClusterRequest} message GetClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetClusterRequest.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 GetClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.GetClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetClusterRequest";
+ };
+
+ return GetClusterRequest;
+ })();
+
+ v1.CreateClusterRequest = (function() {
+
+ /**
+ * Properties of a CreateClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface ICreateClusterRequest
+ * @property {string|null} [parent] CreateClusterRequest parent
+ * @property {string|null} [clusterId] CreateClusterRequest clusterId
+ * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] CreateClusterRequest cluster
+ * @property {string|null} [requestId] CreateClusterRequest requestId
+ * @property {boolean|null} [validateOnly] CreateClusterRequest validateOnly
+ */
+
+ /**
+ * Constructs a new CreateClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a CreateClusterRequest.
+ * @implements ICreateClusterRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set
+ */
+ function CreateClusterRequest(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]];
+ }
+
+ /**
+ * CreateClusterRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.parent = "";
+
+ /**
+ * CreateClusterRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.clusterId = "";
+
+ /**
+ * CreateClusterRequest cluster.
+ * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.cluster = null;
+
+ /**
+ * CreateClusterRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.requestId = "";
+
+ /**
+ * CreateClusterRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new CreateClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest instance
+ */
+ CreateClusterRequest.create = function create(properties) {
+ return new CreateClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateClusterRequest.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.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId);
+ if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
+ $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateClusterRequest.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.vmwareengine.v1.CreateClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.clusterId = reader.string();
+ break;
+ }
+ case 3: {
+ message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 5: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateClusterRequest.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.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.cluster != null && message.hasOwnProperty("cluster")) {
+ var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster);
+ if (error)
+ return "cluster." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.CreateClusterRequest} CreateClusterRequest
+ */
+ CreateClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.CreateClusterRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.CreateClusterRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.cluster != null) {
+ if (typeof object.cluster !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.CreateClusterRequest.cluster: object expected");
+ message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.CreateClusterRequest} message CreateClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.clusterId = "";
+ object.cluster = null;
+ object.requestId = "";
+ object.validateOnly = false;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
+ object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this CreateClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.CreateClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateClusterRequest";
+ };
+
+ return CreateClusterRequest;
+ })();
+
+ v1.UpdateClusterRequest = (function() {
+
+ /**
+ * Properties of an UpdateClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IUpdateClusterRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateClusterRequest updateMask
+ * @property {google.cloud.vmwareengine.v1.ICluster|null} [cluster] UpdateClusterRequest cluster
+ * @property {string|null} [requestId] UpdateClusterRequest requestId
+ * @property {boolean|null} [validateOnly] UpdateClusterRequest validateOnly
+ */
+
+ /**
+ * Constructs a new UpdateClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents an UpdateClusterRequest.
+ * @implements IUpdateClusterRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set
+ */
+ function UpdateClusterRequest(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]];
+ }
+
+ /**
+ * UpdateClusterRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateClusterRequest cluster.
+ * @member {google.cloud.vmwareengine.v1.ICluster|null|undefined} cluster
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.cluster = null;
+
+ /**
+ * UpdateClusterRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.requestId = "";
+
+ /**
+ * UpdateClusterRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new UpdateClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest instance
+ */
+ UpdateClusterRequest.create = function create(properties) {
+ return new UpdateClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateClusterRequest.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.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
+ $root.google.cloud.vmwareengine.v1.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.UpdateClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateClusterRequest.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.vmwareengine.v1.UpdateClusterRequest();
+ 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.cluster = $root.google.cloud.vmwareengine.v1.Cluster.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 4: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateClusterRequest.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.cluster != null && message.hasOwnProperty("cluster")) {
+ var error = $root.google.cloud.vmwareengine.v1.Cluster.verify(message.cluster);
+ if (error)
+ return "cluster." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.UpdateClusterRequest} UpdateClusterRequest
+ */
+ UpdateClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.UpdateClusterRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.UpdateClusterRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.cluster != null) {
+ if (typeof object.cluster !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.UpdateClusterRequest.cluster: object expected");
+ message.cluster = $root.google.cloud.vmwareengine.v1.Cluster.fromObject(object.cluster);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.UpdateClusterRequest} message UpdateClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.cluster = null;
+ object.requestId = "";
+ object.validateOnly = false;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
+ object.cluster = $root.google.cloud.vmwareengine.v1.Cluster.toObject(message.cluster, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.UpdateClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.UpdateClusterRequest";
+ };
+
+ return UpdateClusterRequest;
+ })();
+
+ v1.DeleteClusterRequest = (function() {
+
+ /**
+ * Properties of a DeleteClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IDeleteClusterRequest
+ * @property {string|null} [name] DeleteClusterRequest name
+ * @property {string|null} [requestId] DeleteClusterRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteClusterRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a DeleteClusterRequest.
+ * @implements IDeleteClusterRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set
+ */
+ function DeleteClusterRequest(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]];
+ }
+
+ /**
+ * DeleteClusterRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @instance
+ */
+ DeleteClusterRequest.prototype.name = "";
+
+ /**
+ * DeleteClusterRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @instance
+ */
+ DeleteClusterRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DeleteClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest instance
+ */
+ DeleteClusterRequest.create = function create(properties) {
+ return new DeleteClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteClusterRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.DeleteClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteClusterRequest.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.vmwareengine.v1.DeleteClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteClusterRequest.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.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.DeleteClusterRequest} DeleteClusterRequest
+ */
+ DeleteClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.DeleteClusterRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.DeleteClusterRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.DeleteClusterRequest} message DeleteClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.DeleteClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.DeleteClusterRequest";
+ };
+
+ return DeleteClusterRequest;
+ })();
+
+ v1.Subnet = (function() {
+
+ /**
+ * Properties of a Subnet.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface ISubnet
+ * @property {string|null} [name] Subnet name
+ * @property {string|null} [ipCidrRange] Subnet ipCidrRange
+ * @property {string|null} [gatewayIp] Subnet gatewayIp
+ * @property {string|null} [type] Subnet type
+ * @property {google.cloud.vmwareengine.v1.Subnet.State|null} [state] Subnet state
+ */
+
+ /**
+ * Constructs a new Subnet.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a Subnet.
+ * @implements ISubnet
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set
+ */
+ function Subnet(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]];
+ }
+
+ /**
+ * Subnet name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @instance
+ */
+ Subnet.prototype.name = "";
+
+ /**
+ * Subnet ipCidrRange.
+ * @member {string} ipCidrRange
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @instance
+ */
+ Subnet.prototype.ipCidrRange = "";
+
+ /**
+ * Subnet gatewayIp.
+ * @member {string} gatewayIp
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @instance
+ */
+ Subnet.prototype.gatewayIp = "";
+
+ /**
+ * Subnet type.
+ * @member {string} type
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @instance
+ */
+ Subnet.prototype.type = "";
+
+ /**
+ * Subnet state.
+ * @member {google.cloud.vmwareengine.v1.Subnet.State} state
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @instance
+ */
+ Subnet.prototype.state = 0;
+
+ /**
+ * Creates a new Subnet instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ISubnet=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet instance
+ */
+ Subnet.create = function create(properties) {
+ return new Subnet(properties);
+ };
+
+ /**
+ * Encodes the specified Subnet message. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Subnet.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.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.ipCidrRange);
+ if (message.gatewayIp != null && Object.hasOwnProperty.call(message, "gatewayIp"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.gatewayIp);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.type);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.state);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Subnet message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Subnet.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ISubnet} message Subnet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Subnet.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Subnet message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Subnet.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.vmwareengine.v1.Subnet();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 7: {
+ message.ipCidrRange = reader.string();
+ break;
+ }
+ case 8: {
+ message.gatewayIp = reader.string();
+ break;
+ }
+ case 11: {
+ message.type = reader.string();
+ break;
+ }
+ case 13: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Subnet message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Subnet.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Subnet message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Subnet.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.ipCidrRange != null && message.hasOwnProperty("ipCidrRange"))
+ if (!$util.isString(message.ipCidrRange))
+ return "ipCidrRange: string expected";
+ if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp"))
+ if (!$util.isString(message.gatewayIp))
+ return "gatewayIp: string expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Subnet message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.Subnet} Subnet
+ */
+ Subnet.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.Subnet)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.Subnet();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.ipCidrRange != null)
+ message.ipCidrRange = String(object.ipCidrRange);
+ if (object.gatewayIp != null)
+ message.gatewayIp = String(object.gatewayIp);
+ if (object.type != null)
+ message.type = String(object.type);
+ 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 "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ case "UPDATING":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Subnet message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {google.cloud.vmwareengine.v1.Subnet} message Subnet
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Subnet.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.ipCidrRange = "";
+ object.gatewayIp = "";
+ object.type = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange"))
+ object.ipCidrRange = message.ipCidrRange;
+ if (message.gatewayIp != null && message.hasOwnProperty("gatewayIp"))
+ object.gatewayIp = message.gatewayIp;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Subnet.State[message.state] : message.state;
+ return object;
+ };
+
+ /**
+ * Converts this Subnet to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Subnet.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Subnet
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.Subnet
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Subnet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Subnet";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmwareengine.v1.Subnet.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CREATING=2 CREATING value
+ * @property {number} UPDATING=3 UPDATING value
+ * @property {number} DELETING=4 DELETING value
+ */
+ Subnet.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ values[valuesById[3] = "UPDATING"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ return values;
+ })();
+
+ return Subnet;
+ })();
+
+ v1.ListSubnetsRequest = (function() {
+
+ /**
+ * Properties of a ListSubnetsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListSubnetsRequest
+ * @property {string|null} [parent] ListSubnetsRequest parent
+ * @property {number|null} [pageSize] ListSubnetsRequest pageSize
+ * @property {string|null} [pageToken] ListSubnetsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListSubnetsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListSubnetsRequest.
+ * @implements IListSubnetsRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set
+ */
+ function ListSubnetsRequest(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]];
+ }
+
+ /**
+ * ListSubnetsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @instance
+ */
+ ListSubnetsRequest.prototype.parent = "";
+
+ /**
+ * ListSubnetsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @instance
+ */
+ ListSubnetsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListSubnetsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @instance
+ */
+ ListSubnetsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListSubnetsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest instance
+ */
+ ListSubnetsRequest.create = function create(properties) {
+ return new ListSubnetsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListSubnetsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubnetsRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListSubnetsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsRequest} message ListSubnetsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubnetsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSubnetsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubnetsRequest.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.vmwareengine.v1.ListSubnetsRequest();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListSubnetsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubnetsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSubnetsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSubnetsRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListSubnetsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsRequest} ListSubnetsRequest
+ */
+ ListSubnetsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListSubnetsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListSubnetsRequest} message ListSubnetsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSubnetsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ 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;
+ return object;
+ };
+
+ /**
+ * Converts this ListSubnetsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSubnetsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSubnetsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSubnetsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsRequest";
+ };
+
+ return ListSubnetsRequest;
+ })();
+
+ v1.ListSubnetsResponse = (function() {
+
+ /**
+ * Properties of a ListSubnetsResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListSubnetsResponse
+ * @property {Array.|null} [subnets] ListSubnetsResponse subnets
+ * @property {string|null} [nextPageToken] ListSubnetsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListSubnetsResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListSubnetsResponse.
+ * @implements IListSubnetsResponse
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set
+ */
+ function ListSubnetsResponse(properties) {
+ this.subnets = [];
+ 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]];
+ }
+
+ /**
+ * ListSubnetsResponse subnets.
+ * @member {Array.} subnets
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @instance
+ */
+ ListSubnetsResponse.prototype.subnets = $util.emptyArray;
+
+ /**
+ * ListSubnetsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @instance
+ */
+ ListSubnetsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListSubnetsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse instance
+ */
+ ListSubnetsResponse.create = function create(properties) {
+ return new ListSubnetsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListSubnetsResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubnetsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.subnets != null && message.subnets.length)
+ for (var i = 0; i < message.subnets.length; ++i)
+ $root.google.cloud.vmwareengine.v1.Subnet.encode(message.subnets[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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListSubnetsResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListSubnetsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListSubnetsResponse} message ListSubnetsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSubnetsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSubnetsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubnetsResponse.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.vmwareengine.v1.ListSubnetsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.subnets && message.subnets.length))
+ message.subnets = [];
+ message.subnets.push($root.google.cloud.vmwareengine.v1.Subnet.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListSubnetsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSubnetsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSubnetsResponse message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSubnetsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.subnets != null && message.hasOwnProperty("subnets")) {
+ if (!Array.isArray(message.subnets))
+ return "subnets: array expected";
+ for (var i = 0; i < message.subnets.length; ++i) {
+ var error = $root.google.cloud.vmwareengine.v1.Subnet.verify(message.subnets[i]);
+ if (error)
+ return "subnets." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListSubnetsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListSubnetsResponse} ListSubnetsResponse
+ */
+ ListSubnetsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListSubnetsResponse)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListSubnetsResponse();
+ if (object.subnets) {
+ if (!Array.isArray(object.subnets))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: array expected");
+ message.subnets = [];
+ for (var i = 0; i < object.subnets.length; ++i) {
+ if (typeof object.subnets[i] !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.ListSubnetsResponse.subnets: object expected");
+ message.subnets[i] = $root.google.cloud.vmwareengine.v1.Subnet.fromObject(object.subnets[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListSubnetsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListSubnetsResponse} message ListSubnetsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSubnetsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.subnets = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.subnets && message.subnets.length) {
+ object.subnets = [];
+ for (var j = 0; j < message.subnets.length; ++j)
+ object.subnets[j] = $root.google.cloud.vmwareengine.v1.Subnet.toObject(message.subnets[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListSubnetsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSubnetsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSubnetsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListSubnetsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSubnetsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListSubnetsResponse";
+ };
+
+ return ListSubnetsResponse;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.vmwareengine.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.vmwareengine.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.vmwareengine.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.vmwareengine.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmwareengine.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.vmwareengine.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.vmwareengine.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.vmwareengine.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.vmwareengine.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.vmwareengine.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.vmwareengine.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.vmwareengine.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.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.vmwareengine.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.vmwareengine.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.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.vmwareengine.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.vmwareengine.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.vmwareengine.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.vmwareengine.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.vmwareengine.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.vmwareengine.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.NodeType = (function() {
+
+ /**
+ * Properties of a NodeType.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface INodeType
+ * @property {string|null} [name] NodeType name
+ * @property {string|null} [nodeTypeId] NodeType nodeTypeId
+ * @property {string|null} [displayName] NodeType displayName
+ * @property {number|null} [virtualCpuCount] NodeType virtualCpuCount
+ * @property {number|null} [totalCoreCount] NodeType totalCoreCount
+ * @property {number|null} [memoryGb] NodeType memoryGb
+ * @property {number|null} [diskSizeGb] NodeType diskSizeGb
+ * @property {Array.|null} [availableCustomCoreCounts] NodeType availableCustomCoreCounts
+ */
+
+ /**
+ * Constructs a new NodeType.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a NodeType.
+ * @implements INodeType
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set
+ */
+ function NodeType(properties) {
+ this.availableCustomCoreCounts = [];
+ 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]];
+ }
+
+ /**
+ * NodeType name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.name = "";
+
+ /**
+ * NodeType nodeTypeId.
+ * @member {string} nodeTypeId
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.nodeTypeId = "";
+
+ /**
+ * NodeType displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.displayName = "";
+
+ /**
+ * NodeType virtualCpuCount.
+ * @member {number} virtualCpuCount
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.virtualCpuCount = 0;
+
+ /**
+ * NodeType totalCoreCount.
+ * @member {number} totalCoreCount
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.totalCoreCount = 0;
+
+ /**
+ * NodeType memoryGb.
+ * @member {number} memoryGb
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.memoryGb = 0;
+
+ /**
+ * NodeType diskSizeGb.
+ * @member {number} diskSizeGb
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.diskSizeGb = 0;
+
+ /**
+ * NodeType availableCustomCoreCounts.
+ * @member {Array.} availableCustomCoreCounts
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ */
+ NodeType.prototype.availableCustomCoreCounts = $util.emptyArray;
+
+ /**
+ * Creates a new NodeType instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INodeType=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType instance
+ */
+ NodeType.create = function create(properties) {
+ return new NodeType(properties);
+ };
+
+ /**
+ * Encodes the specified NodeType message. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeType.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.nodeTypeId != null && Object.hasOwnProperty.call(message, "nodeTypeId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nodeTypeId);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
+ if (message.virtualCpuCount != null && Object.hasOwnProperty.call(message, "virtualCpuCount"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.virtualCpuCount);
+ if (message.totalCoreCount != null && Object.hasOwnProperty.call(message, "totalCoreCount"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.totalCoreCount);
+ if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.memoryGb);
+ if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.diskSizeGb);
+ if (message.availableCustomCoreCounts != null && message.availableCustomCoreCounts.length) {
+ writer.uint32(/* id 11, wireType 2 =*/90).fork();
+ for (var i = 0; i < message.availableCustomCoreCounts.length; ++i)
+ writer.int32(message.availableCustomCoreCounts[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeType message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NodeType.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INodeType} message NodeType message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeType.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeType message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeType.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.vmwareengine.v1.NodeType();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.nodeTypeId = reader.string();
+ break;
+ }
+ case 3: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 4: {
+ message.virtualCpuCount = reader.int32();
+ break;
+ }
+ case 5: {
+ message.totalCoreCount = reader.int32();
+ break;
+ }
+ case 7: {
+ message.memoryGb = reader.int32();
+ break;
+ }
+ case 8: {
+ message.diskSizeGb = reader.int32();
+ break;
+ }
+ case 11: {
+ if (!(message.availableCustomCoreCounts && message.availableCustomCoreCounts.length))
+ message.availableCustomCoreCounts = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.availableCustomCoreCounts.push(reader.int32());
+ } else
+ message.availableCustomCoreCounts.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeType message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeType.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeType message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeType.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.nodeTypeId != null && message.hasOwnProperty("nodeTypeId"))
+ if (!$util.isString(message.nodeTypeId))
+ return "nodeTypeId: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount"))
+ if (!$util.isInteger(message.virtualCpuCount))
+ return "virtualCpuCount: integer expected";
+ if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount"))
+ if (!$util.isInteger(message.totalCoreCount))
+ return "totalCoreCount: integer expected";
+ if (message.memoryGb != null && message.hasOwnProperty("memoryGb"))
+ if (!$util.isInteger(message.memoryGb))
+ return "memoryGb: integer expected";
+ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb"))
+ if (!$util.isInteger(message.diskSizeGb))
+ return "diskSizeGb: integer expected";
+ if (message.availableCustomCoreCounts != null && message.hasOwnProperty("availableCustomCoreCounts")) {
+ if (!Array.isArray(message.availableCustomCoreCounts))
+ return "availableCustomCoreCounts: array expected";
+ for (var i = 0; i < message.availableCustomCoreCounts.length; ++i)
+ if (!$util.isInteger(message.availableCustomCoreCounts[i]))
+ return "availableCustomCoreCounts: integer[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NodeType message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.NodeType} NodeType
+ */
+ NodeType.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.NodeType)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.NodeType();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.nodeTypeId != null)
+ message.nodeTypeId = String(object.nodeTypeId);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.virtualCpuCount != null)
+ message.virtualCpuCount = object.virtualCpuCount | 0;
+ if (object.totalCoreCount != null)
+ message.totalCoreCount = object.totalCoreCount | 0;
+ if (object.memoryGb != null)
+ message.memoryGb = object.memoryGb | 0;
+ if (object.diskSizeGb != null)
+ message.diskSizeGb = object.diskSizeGb | 0;
+ if (object.availableCustomCoreCounts) {
+ if (!Array.isArray(object.availableCustomCoreCounts))
+ throw TypeError(".google.cloud.vmwareengine.v1.NodeType.availableCustomCoreCounts: array expected");
+ message.availableCustomCoreCounts = [];
+ for (var i = 0; i < object.availableCustomCoreCounts.length; ++i)
+ message.availableCustomCoreCounts[i] = object.availableCustomCoreCounts[i] | 0;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeType message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {google.cloud.vmwareengine.v1.NodeType} message NodeType
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeType.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.availableCustomCoreCounts = [];
+ if (options.defaults) {
+ object.name = "";
+ object.nodeTypeId = "";
+ object.displayName = "";
+ object.virtualCpuCount = 0;
+ object.totalCoreCount = 0;
+ object.memoryGb = 0;
+ object.diskSizeGb = 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.nodeTypeId != null && message.hasOwnProperty("nodeTypeId"))
+ object.nodeTypeId = message.nodeTypeId;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.virtualCpuCount != null && message.hasOwnProperty("virtualCpuCount"))
+ object.virtualCpuCount = message.virtualCpuCount;
+ if (message.totalCoreCount != null && message.hasOwnProperty("totalCoreCount"))
+ object.totalCoreCount = message.totalCoreCount;
+ if (message.memoryGb != null && message.hasOwnProperty("memoryGb"))
+ object.memoryGb = message.memoryGb;
+ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb"))
+ object.diskSizeGb = message.diskSizeGb;
+ if (message.availableCustomCoreCounts && message.availableCustomCoreCounts.length) {
+ object.availableCustomCoreCounts = [];
+ for (var j = 0; j < message.availableCustomCoreCounts.length; ++j)
+ object.availableCustomCoreCounts[j] = message.availableCustomCoreCounts[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this NodeType to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeType.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeType
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.NodeType
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeType.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NodeType";
+ };
+
+ return NodeType;
+ })();
+
+ v1.ListNodeTypesRequest = (function() {
+
+ /**
+ * Properties of a ListNodeTypesRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListNodeTypesRequest
+ * @property {string|null} [parent] ListNodeTypesRequest parent
+ * @property {number|null} [pageSize] ListNodeTypesRequest pageSize
+ * @property {string|null} [pageToken] ListNodeTypesRequest pageToken
+ * @property {string|null} [filter] ListNodeTypesRequest filter
+ */
+
+ /**
+ * Constructs a new ListNodeTypesRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListNodeTypesRequest.
+ * @implements IListNodeTypesRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set
+ */
+ function ListNodeTypesRequest(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]];
+ }
+
+ /**
+ * ListNodeTypesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @instance
+ */
+ ListNodeTypesRequest.prototype.parent = "";
+
+ /**
+ * ListNodeTypesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @instance
+ */
+ ListNodeTypesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListNodeTypesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @instance
+ */
+ ListNodeTypesRequest.prototype.pageToken = "";
+
+ /**
+ * ListNodeTypesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @instance
+ */
+ ListNodeTypesRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListNodeTypesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest instance
+ */
+ ListNodeTypesRequest.create = function create(properties) {
+ return new ListNodeTypesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListNodeTypesRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListNodeTypesRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesRequest} message ListNodeTypesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListNodeTypesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListNodeTypesRequest.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.vmwareengine.v1.ListNodeTypesRequest();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListNodeTypesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListNodeTypesRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListNodeTypesRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListNodeTypesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesRequest} ListNodeTypesRequest
+ */
+ ListNodeTypesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListNodeTypesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListNodeTypesRequest} message ListNodeTypesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListNodeTypesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ 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.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListNodeTypesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListNodeTypesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListNodeTypesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesRequest";
+ };
+
+ return ListNodeTypesRequest;
+ })();
+
+ v1.ListNodeTypesResponse = (function() {
+
+ /**
+ * Properties of a ListNodeTypesResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListNodeTypesResponse
+ * @property {Array.|null} [nodeTypes] ListNodeTypesResponse nodeTypes
+ * @property {string|null} [nextPageToken] ListNodeTypesResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListNodeTypesResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListNodeTypesResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListNodeTypesResponse.
+ * @implements IListNodeTypesResponse
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set
+ */
+ function ListNodeTypesResponse(properties) {
+ this.nodeTypes = [];
+ 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]];
+ }
+
+ /**
+ * ListNodeTypesResponse nodeTypes.
+ * @member {Array.} nodeTypes
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @instance
+ */
+ ListNodeTypesResponse.prototype.nodeTypes = $util.emptyArray;
+
+ /**
+ * ListNodeTypesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @instance
+ */
+ ListNodeTypesResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListNodeTypesResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @instance
+ */
+ ListNodeTypesResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListNodeTypesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse instance
+ */
+ ListNodeTypesResponse.create = function create(properties) {
+ return new ListNodeTypesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListNodeTypesResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListNodeTypesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.nodeTypes != null && message.nodeTypes.length)
+ for (var i = 0; i < message.nodeTypes.length; ++i)
+ $root.google.cloud.vmwareengine.v1.NodeType.encode(message.nodeTypes[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 ListNodeTypesResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListNodeTypesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListNodeTypesResponse} message ListNodeTypesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListNodeTypesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListNodeTypesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListNodeTypesResponse.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.vmwareengine.v1.ListNodeTypesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.nodeTypes && message.nodeTypes.length))
+ message.nodeTypes = [];
+ message.nodeTypes.push($root.google.cloud.vmwareengine.v1.NodeType.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 ListNodeTypesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListNodeTypesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListNodeTypesResponse message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListNodeTypesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.nodeTypes != null && message.hasOwnProperty("nodeTypes")) {
+ if (!Array.isArray(message.nodeTypes))
+ return "nodeTypes: array expected";
+ for (var i = 0; i < message.nodeTypes.length; ++i) {
+ var error = $root.google.cloud.vmwareengine.v1.NodeType.verify(message.nodeTypes[i]);
+ if (error)
+ return "nodeTypes." + 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 ListNodeTypesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListNodeTypesResponse} ListNodeTypesResponse
+ */
+ ListNodeTypesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListNodeTypesResponse();
+ if (object.nodeTypes) {
+ if (!Array.isArray(object.nodeTypes))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: array expected");
+ message.nodeTypes = [];
+ for (var i = 0; i < object.nodeTypes.length; ++i) {
+ if (typeof object.nodeTypes[i] !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.nodeTypes: object expected");
+ message.nodeTypes[i] = $root.google.cloud.vmwareengine.v1.NodeType.fromObject(object.nodeTypes[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListNodeTypesResponse.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 ListNodeTypesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListNodeTypesResponse} message ListNodeTypesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListNodeTypesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.nodeTypes = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.nodeTypes && message.nodeTypes.length) {
+ object.nodeTypes = [];
+ for (var j = 0; j < message.nodeTypes.length; ++j)
+ object.nodeTypes[j] = $root.google.cloud.vmwareengine.v1.NodeType.toObject(message.nodeTypes[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 ListNodeTypesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListNodeTypesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListNodeTypesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListNodeTypesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListNodeTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListNodeTypesResponse";
+ };
+
+ return ListNodeTypesResponse;
+ })();
+
+ v1.GetNodeTypeRequest = (function() {
+
+ /**
+ * Properties of a GetNodeTypeRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IGetNodeTypeRequest
+ * @property {string|null} [name] GetNodeTypeRequest name
+ */
+
+ /**
+ * Constructs a new GetNodeTypeRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a GetNodeTypeRequest.
+ * @implements IGetNodeTypeRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set
+ */
+ function GetNodeTypeRequest(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]];
+ }
+
+ /**
+ * GetNodeTypeRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @instance
+ */
+ GetNodeTypeRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetNodeTypeRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest instance
+ */
+ GetNodeTypeRequest.create = function create(properties) {
+ return new GetNodeTypeRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetNodeTypeRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetNodeTypeRequest.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 GetNodeTypeRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetNodeTypeRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetNodeTypeRequest} message GetNodeTypeRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetNodeTypeRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetNodeTypeRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetNodeTypeRequest.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.vmwareengine.v1.GetNodeTypeRequest();
+ 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 GetNodeTypeRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetNodeTypeRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetNodeTypeRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetNodeTypeRequest.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 GetNodeTypeRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.GetNodeTypeRequest} GetNodeTypeRequest
+ */
+ GetNodeTypeRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.GetNodeTypeRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetNodeTypeRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.GetNodeTypeRequest} message GetNodeTypeRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetNodeTypeRequest.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 GetNodeTypeRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetNodeTypeRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetNodeTypeRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.GetNodeTypeRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetNodeTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetNodeTypeRequest";
+ };
+
+ return GetNodeTypeRequest;
+ })();
+
+ v1.Credentials = (function() {
+
+ /**
+ * Properties of a Credentials.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface ICredentials
+ * @property {string|null} [username] Credentials username
+ * @property {string|null} [password] Credentials password
+ */
+
+ /**
+ * Constructs a new Credentials.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a Credentials.
+ * @implements ICredentials
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set
+ */
+ function Credentials(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]];
+ }
+
+ /**
+ * Credentials username.
+ * @member {string} username
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @instance
+ */
+ Credentials.prototype.username = "";
+
+ /**
+ * Credentials password.
+ * @member {string} password
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @instance
+ */
+ Credentials.prototype.password = "";
+
+ /**
+ * Creates a new Credentials instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICredentials=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials instance
+ */
+ Credentials.create = function create(properties) {
+ return new Credentials(properties);
+ };
+
+ /**
+ * Encodes the specified Credentials message. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Credentials.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.username);
+ if (message.password != null && Object.hasOwnProperty.call(message, "password"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.password);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Credentials message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Credentials.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICredentials} message Credentials message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Credentials.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Credentials message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Credentials.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.vmwareengine.v1.Credentials();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.username = reader.string();
+ break;
+ }
+ case 2: {
+ message.password = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Credentials message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Credentials.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Credentials message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Credentials.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object 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";
+ return null;
+ };
+
+ /**
+ * Creates a Credentials message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.Credentials} Credentials
+ */
+ Credentials.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.Credentials)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.Credentials();
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.password != null)
+ message.password = String(object.password);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Credentials message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {google.cloud.vmwareengine.v1.Credentials} message Credentials
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Credentials.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.username = "";
+ object.password = "";
+ }
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.password != null && message.hasOwnProperty("password"))
+ object.password = message.password;
+ return object;
+ };
+
+ /**
+ * Converts this Credentials to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Credentials.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Credentials
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.Credentials
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Credentials.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Credentials";
+ };
+
+ return Credentials;
+ })();
+
+ v1.ShowNsxCredentialsRequest = (function() {
+
+ /**
+ * Properties of a ShowNsxCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IShowNsxCredentialsRequest
+ * @property {string|null} [privateCloud] ShowNsxCredentialsRequest privateCloud
+ */
+
+ /**
+ * Constructs a new ShowNsxCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ShowNsxCredentialsRequest.
+ * @implements IShowNsxCredentialsRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set
+ */
+ function ShowNsxCredentialsRequest(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]];
+ }
+
+ /**
+ * ShowNsxCredentialsRequest privateCloud.
+ * @member {string} privateCloud
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @instance
+ */
+ ShowNsxCredentialsRequest.prototype.privateCloud = "";
+
+ /**
+ * Creates a new ShowNsxCredentialsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest instance
+ */
+ ShowNsxCredentialsRequest.create = function create(properties) {
+ return new ShowNsxCredentialsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ShowNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShowNsxCredentialsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ShowNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IShowNsxCredentialsRequest} message ShowNsxCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShowNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShowNsxCredentialsRequest.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.vmwareengine.v1.ShowNsxCredentialsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.privateCloud = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ShowNsxCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShowNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ShowNsxCredentialsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ShowNsxCredentialsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ if (!$util.isString(message.privateCloud))
+ return "privateCloud: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ShowNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} ShowNsxCredentialsRequest
+ */
+ ShowNsxCredentialsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest();
+ if (object.privateCloud != null)
+ message.privateCloud = String(object.privateCloud);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ShowNsxCredentialsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest} message ShowNsxCredentialsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ShowNsxCredentialsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.privateCloud = "";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ object.privateCloud = message.privateCloud;
+ return object;
+ };
+
+ /**
+ * Converts this ShowNsxCredentialsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ShowNsxCredentialsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ShowNsxCredentialsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ShowNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest";
+ };
+
+ return ShowNsxCredentialsRequest;
+ })();
+
+ v1.ShowVcenterCredentialsRequest = (function() {
+
+ /**
+ * Properties of a ShowVcenterCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IShowVcenterCredentialsRequest
+ * @property {string|null} [privateCloud] ShowVcenterCredentialsRequest privateCloud
+ */
+
+ /**
+ * Constructs a new ShowVcenterCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ShowVcenterCredentialsRequest.
+ * @implements IShowVcenterCredentialsRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set
+ */
+ function ShowVcenterCredentialsRequest(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]];
+ }
+
+ /**
+ * ShowVcenterCredentialsRequest privateCloud.
+ * @member {string} privateCloud
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @instance
+ */
+ ShowVcenterCredentialsRequest.prototype.privateCloud = "";
+
+ /**
+ * Creates a new ShowVcenterCredentialsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest instance
+ */
+ ShowVcenterCredentialsRequest.create = function create(properties) {
+ return new ShowVcenterCredentialsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ShowVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShowVcenterCredentialsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ShowVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ShowVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShowVcenterCredentialsRequest.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.vmwareengine.v1.ShowVcenterCredentialsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.privateCloud = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ShowVcenterCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ShowVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ShowVcenterCredentialsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ShowVcenterCredentialsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ if (!$util.isString(message.privateCloud))
+ return "privateCloud: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ShowVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} ShowVcenterCredentialsRequest
+ */
+ ShowVcenterCredentialsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest();
+ if (object.privateCloud != null)
+ message.privateCloud = String(object.privateCloud);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ShowVcenterCredentialsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest} message ShowVcenterCredentialsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ShowVcenterCredentialsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.privateCloud = "";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ object.privateCloud = message.privateCloud;
+ return object;
+ };
+
+ /**
+ * Converts this ShowVcenterCredentialsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ShowVcenterCredentialsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ShowVcenterCredentialsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ShowVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest";
+ };
+
+ return ShowVcenterCredentialsRequest;
+ })();
+
+ v1.ResetNsxCredentialsRequest = (function() {
+
+ /**
+ * Properties of a ResetNsxCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IResetNsxCredentialsRequest
+ * @property {string|null} [privateCloud] ResetNsxCredentialsRequest privateCloud
+ * @property {string|null} [requestId] ResetNsxCredentialsRequest requestId
+ */
+
+ /**
+ * Constructs a new ResetNsxCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ResetNsxCredentialsRequest.
+ * @implements IResetNsxCredentialsRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set
+ */
+ function ResetNsxCredentialsRequest(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]];
+ }
+
+ /**
+ * ResetNsxCredentialsRequest privateCloud.
+ * @member {string} privateCloud
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @instance
+ */
+ ResetNsxCredentialsRequest.prototype.privateCloud = "";
+
+ /**
+ * ResetNsxCredentialsRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @instance
+ */
+ ResetNsxCredentialsRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new ResetNsxCredentialsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest instance
+ */
+ ResetNsxCredentialsRequest.create = function create(properties) {
+ return new ResetNsxCredentialsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ResetNsxCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResetNsxCredentialsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResetNsxCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IResetNsxCredentialsRequest} message ResetNsxCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResetNsxCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResetNsxCredentialsRequest.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.vmwareengine.v1.ResetNsxCredentialsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.privateCloud = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResetNsxCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResetNsxCredentialsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResetNsxCredentialsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResetNsxCredentialsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ if (!$util.isString(message.privateCloud))
+ return "privateCloud: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ResetNsxCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} ResetNsxCredentialsRequest
+ */
+ ResetNsxCredentialsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest();
+ if (object.privateCloud != null)
+ message.privateCloud = String(object.privateCloud);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResetNsxCredentialsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest} message ResetNsxCredentialsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResetNsxCredentialsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.privateCloud = "";
+ object.requestId = "";
+ }
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ object.privateCloud = message.privateCloud;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this ResetNsxCredentialsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResetNsxCredentialsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResetNsxCredentialsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResetNsxCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest";
+ };
+
+ return ResetNsxCredentialsRequest;
+ })();
+
+ v1.ResetVcenterCredentialsRequest = (function() {
+
+ /**
+ * Properties of a ResetVcenterCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IResetVcenterCredentialsRequest
+ * @property {string|null} [privateCloud] ResetVcenterCredentialsRequest privateCloud
+ * @property {string|null} [requestId] ResetVcenterCredentialsRequest requestId
+ */
+
+ /**
+ * Constructs a new ResetVcenterCredentialsRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ResetVcenterCredentialsRequest.
+ * @implements IResetVcenterCredentialsRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set
+ */
+ function ResetVcenterCredentialsRequest(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]];
+ }
+
+ /**
+ * ResetVcenterCredentialsRequest privateCloud.
+ * @member {string} privateCloud
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @instance
+ */
+ ResetVcenterCredentialsRequest.prototype.privateCloud = "";
+
+ /**
+ * ResetVcenterCredentialsRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @instance
+ */
+ ResetVcenterCredentialsRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new ResetVcenterCredentialsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest instance
+ */
+ ResetVcenterCredentialsRequest.create = function create(properties) {
+ return new ResetVcenterCredentialsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ResetVcenterCredentialsRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResetVcenterCredentialsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.privateCloud != null && Object.hasOwnProperty.call(message, "privateCloud"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.privateCloud);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResetVcenterCredentialsRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResetVcenterCredentialsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResetVcenterCredentialsRequest.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.vmwareengine.v1.ResetVcenterCredentialsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.privateCloud = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResetVcenterCredentialsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResetVcenterCredentialsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResetVcenterCredentialsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResetVcenterCredentialsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ if (!$util.isString(message.privateCloud))
+ return "privateCloud: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ResetVcenterCredentialsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} ResetVcenterCredentialsRequest
+ */
+ ResetVcenterCredentialsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest();
+ if (object.privateCloud != null)
+ message.privateCloud = String(object.privateCloud);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResetVcenterCredentialsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest} message ResetVcenterCredentialsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResetVcenterCredentialsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.privateCloud = "";
+ object.requestId = "";
+ }
+ if (message.privateCloud != null && message.hasOwnProperty("privateCloud"))
+ object.privateCloud = message.privateCloud;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this ResetVcenterCredentialsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResetVcenterCredentialsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResetVcenterCredentialsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResetVcenterCredentialsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest";
+ };
+
+ return ResetVcenterCredentialsRequest;
+ })();
+
+ v1.ListHcxActivationKeysResponse = (function() {
+
+ /**
+ * Properties of a ListHcxActivationKeysResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListHcxActivationKeysResponse
+ * @property {Array.|null} [hcxActivationKeys] ListHcxActivationKeysResponse hcxActivationKeys
+ * @property {string|null} [nextPageToken] ListHcxActivationKeysResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListHcxActivationKeysResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListHcxActivationKeysResponse.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListHcxActivationKeysResponse.
+ * @implements IListHcxActivationKeysResponse
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set
+ */
+ function ListHcxActivationKeysResponse(properties) {
+ this.hcxActivationKeys = [];
+ 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]];
+ }
+
+ /**
+ * ListHcxActivationKeysResponse hcxActivationKeys.
+ * @member {Array.} hcxActivationKeys
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @instance
+ */
+ ListHcxActivationKeysResponse.prototype.hcxActivationKeys = $util.emptyArray;
+
+ /**
+ * ListHcxActivationKeysResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @instance
+ */
+ ListHcxActivationKeysResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListHcxActivationKeysResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @instance
+ */
+ ListHcxActivationKeysResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListHcxActivationKeysResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse instance
+ */
+ ListHcxActivationKeysResponse.create = function create(properties) {
+ return new ListHcxActivationKeysResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListHcxActivationKeysResponse message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListHcxActivationKeysResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.hcxActivationKeys != null && message.hcxActivationKeys.length)
+ for (var i = 0; i < message.hcxActivationKeys.length; ++i)
+ $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKeys[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 ListHcxActivationKeysResponse message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysResponse} message ListHcxActivationKeysResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListHcxActivationKeysResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListHcxActivationKeysResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListHcxActivationKeysResponse.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.vmwareengine.v1.ListHcxActivationKeysResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.hcxActivationKeys && message.hcxActivationKeys.length))
+ message.hcxActivationKeys = [];
+ message.hcxActivationKeys.push($root.google.cloud.vmwareengine.v1.HcxActivationKey.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 ListHcxActivationKeysResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListHcxActivationKeysResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListHcxActivationKeysResponse message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListHcxActivationKeysResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.hcxActivationKeys != null && message.hasOwnProperty("hcxActivationKeys")) {
+ if (!Array.isArray(message.hcxActivationKeys))
+ return "hcxActivationKeys: array expected";
+ for (var i = 0; i < message.hcxActivationKeys.length; ++i) {
+ var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKeys[i]);
+ if (error)
+ return "hcxActivationKeys." + 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 ListHcxActivationKeysResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} ListHcxActivationKeysResponse
+ */
+ ListHcxActivationKeysResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse();
+ if (object.hcxActivationKeys) {
+ if (!Array.isArray(object.hcxActivationKeys))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: array expected");
+ message.hcxActivationKeys = [];
+ for (var i = 0; i < object.hcxActivationKeys.length; ++i) {
+ if (typeof object.hcxActivationKeys[i] !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.hcxActivationKeys: object expected");
+ message.hcxActivationKeys[i] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKeys[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse.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 ListHcxActivationKeysResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse} message ListHcxActivationKeysResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListHcxActivationKeysResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.hcxActivationKeys = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.hcxActivationKeys && message.hcxActivationKeys.length) {
+ object.hcxActivationKeys = [];
+ for (var j = 0; j < message.hcxActivationKeys.length; ++j)
+ object.hcxActivationKeys[j] = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKeys[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 ListHcxActivationKeysResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListHcxActivationKeysResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListHcxActivationKeysResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListHcxActivationKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse";
+ };
+
+ return ListHcxActivationKeysResponse;
+ })();
+
+ v1.HcxActivationKey = (function() {
+
+ /**
+ * Properties of a HcxActivationKey.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IHcxActivationKey
+ * @property {string|null} [name] HcxActivationKey name
+ * @property {google.protobuf.ITimestamp|null} [createTime] HcxActivationKey createTime
+ * @property {google.cloud.vmwareengine.v1.HcxActivationKey.State|null} [state] HcxActivationKey state
+ * @property {string|null} [activationKey] HcxActivationKey activationKey
+ * @property {string|null} [uid] HcxActivationKey uid
+ */
+
+ /**
+ * Constructs a new HcxActivationKey.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a HcxActivationKey.
+ * @implements IHcxActivationKey
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set
+ */
+ function HcxActivationKey(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]];
+ }
+
+ /**
+ * HcxActivationKey name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @instance
+ */
+ HcxActivationKey.prototype.name = "";
+
+ /**
+ * HcxActivationKey createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @instance
+ */
+ HcxActivationKey.prototype.createTime = null;
+
+ /**
+ * HcxActivationKey state.
+ * @member {google.cloud.vmwareengine.v1.HcxActivationKey.State} state
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @instance
+ */
+ HcxActivationKey.prototype.state = 0;
+
+ /**
+ * HcxActivationKey activationKey.
+ * @member {string} activationKey
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @instance
+ */
+ HcxActivationKey.prototype.activationKey = "";
+
+ /**
+ * HcxActivationKey uid.
+ * @member {string} uid
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @instance
+ */
+ HcxActivationKey.prototype.uid = "";
+
+ /**
+ * Creates a new HcxActivationKey instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IHcxActivationKey=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey instance
+ */
+ HcxActivationKey.create = function create(properties) {
+ return new HcxActivationKey(properties);
+ };
+
+ /**
+ * Encodes the specified HcxActivationKey message. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HcxActivationKey.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.activationKey != null && Object.hasOwnProperty.call(message, "activationKey"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.activationKey);
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.uid);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HcxActivationKey message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.HcxActivationKey.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IHcxActivationKey} message HcxActivationKey message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HcxActivationKey.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HcxActivationKey message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HcxActivationKey.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.vmwareengine.v1.HcxActivationKey();
+ 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.activationKey = reader.string();
+ break;
+ }
+ case 5: {
+ message.uid = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HcxActivationKey message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HcxActivationKey.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HcxActivationKey message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HcxActivationKey.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:
+ break;
+ }
+ if (message.activationKey != null && message.hasOwnProperty("activationKey"))
+ if (!$util.isString(message.activationKey))
+ return "activationKey: string expected";
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a HcxActivationKey message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.HcxActivationKey} HcxActivationKey
+ */
+ HcxActivationKey.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.HcxActivationKey)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.HcxActivationKey();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.HcxActivationKey.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 "AVAILABLE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CONSUMED":
+ case 2:
+ message.state = 2;
+ break;
+ case "CREATING":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ if (object.activationKey != null)
+ message.activationKey = String(object.activationKey);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HcxActivationKey message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {google.cloud.vmwareengine.v1.HcxActivationKey} message HcxActivationKey
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HcxActivationKey.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.activationKey = "";
+ object.uid = "";
+ }
+ 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.vmwareengine.v1.HcxActivationKey.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.HcxActivationKey.State[message.state] : message.state;
+ if (message.activationKey != null && message.hasOwnProperty("activationKey"))
+ object.activationKey = message.activationKey;
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ return object;
+ };
+
+ /**
+ * Converts this HcxActivationKey to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HcxActivationKey.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HcxActivationKey
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.HcxActivationKey
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HcxActivationKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.HcxActivationKey";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmwareengine.v1.HcxActivationKey.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} AVAILABLE=1 AVAILABLE value
+ * @property {number} CONSUMED=2 CONSUMED value
+ * @property {number} CREATING=3 CREATING value
+ */
+ HcxActivationKey.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "AVAILABLE"] = 1;
+ values[valuesById[2] = "CONSUMED"] = 2;
+ values[valuesById[3] = "CREATING"] = 3;
+ return values;
+ })();
+
+ return HcxActivationKey;
+ })();
+
+ v1.ListHcxActivationKeysRequest = (function() {
+
+ /**
+ * Properties of a ListHcxActivationKeysRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IListHcxActivationKeysRequest
+ * @property {string|null} [parent] ListHcxActivationKeysRequest parent
+ * @property {number|null} [pageSize] ListHcxActivationKeysRequest pageSize
+ * @property {string|null} [pageToken] ListHcxActivationKeysRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListHcxActivationKeysRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a ListHcxActivationKeysRequest.
+ * @implements IListHcxActivationKeysRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set
+ */
+ function ListHcxActivationKeysRequest(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]];
+ }
+
+ /**
+ * ListHcxActivationKeysRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @instance
+ */
+ ListHcxActivationKeysRequest.prototype.parent = "";
+
+ /**
+ * ListHcxActivationKeysRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @instance
+ */
+ ListHcxActivationKeysRequest.prototype.pageSize = 0;
+
+ /**
+ * ListHcxActivationKeysRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @instance
+ */
+ ListHcxActivationKeysRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListHcxActivationKeysRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest instance
+ */
+ ListHcxActivationKeysRequest.create = function create(properties) {
+ return new ListHcxActivationKeysRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListHcxActivationKeysRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListHcxActivationKeysRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListHcxActivationKeysRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IListHcxActivationKeysRequest} message ListHcxActivationKeysRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListHcxActivationKeysRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListHcxActivationKeysRequest.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.vmwareengine.v1.ListHcxActivationKeysRequest();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListHcxActivationKeysRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListHcxActivationKeysRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListHcxActivationKeysRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListHcxActivationKeysRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListHcxActivationKeysRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} ListHcxActivationKeysRequest
+ */
+ ListHcxActivationKeysRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListHcxActivationKeysRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest} message ListHcxActivationKeysRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListHcxActivationKeysRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ 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;
+ return object;
+ };
+
+ /**
+ * Converts this ListHcxActivationKeysRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListHcxActivationKeysRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListHcxActivationKeysRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListHcxActivationKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.ListHcxActivationKeysRequest";
+ };
+
+ return ListHcxActivationKeysRequest;
+ })();
+
+ v1.GetHcxActivationKeyRequest = (function() {
+
+ /**
+ * Properties of a GetHcxActivationKeyRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IGetHcxActivationKeyRequest
+ * @property {string|null} [name] GetHcxActivationKeyRequest name
+ */
+
+ /**
+ * Constructs a new GetHcxActivationKeyRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a GetHcxActivationKeyRequest.
+ * @implements IGetHcxActivationKeyRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set
+ */
+ function GetHcxActivationKeyRequest(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]];
+ }
+
+ /**
+ * GetHcxActivationKeyRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @instance
+ */
+ GetHcxActivationKeyRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetHcxActivationKeyRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest instance
+ */
+ GetHcxActivationKeyRequest.create = function create(properties) {
+ return new GetHcxActivationKeyRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetHcxActivationKeyRequest.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 GetHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IGetHcxActivationKeyRequest} message GetHcxActivationKeyRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetHcxActivationKeyRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetHcxActivationKeyRequest.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.vmwareengine.v1.GetHcxActivationKeyRequest();
+ 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 GetHcxActivationKeyRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetHcxActivationKeyRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetHcxActivationKeyRequest.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 GetHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} GetHcxActivationKeyRequest
+ */
+ GetHcxActivationKeyRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetHcxActivationKeyRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest} message GetHcxActivationKeyRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetHcxActivationKeyRequest.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 GetHcxActivationKeyRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetHcxActivationKeyRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetHcxActivationKeyRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest";
+ };
+
+ return GetHcxActivationKeyRequest;
+ })();
+
+ v1.CreateHcxActivationKeyRequest = (function() {
+
+ /**
+ * Properties of a CreateHcxActivationKeyRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface ICreateHcxActivationKeyRequest
+ * @property {string|null} [parent] CreateHcxActivationKeyRequest parent
+ * @property {google.cloud.vmwareengine.v1.IHcxActivationKey|null} [hcxActivationKey] CreateHcxActivationKeyRequest hcxActivationKey
+ * @property {string|null} [hcxActivationKeyId] CreateHcxActivationKeyRequest hcxActivationKeyId
+ * @property {string|null} [requestId] CreateHcxActivationKeyRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateHcxActivationKeyRequest.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a CreateHcxActivationKeyRequest.
+ * @implements ICreateHcxActivationKeyRequest
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set
+ */
+ function CreateHcxActivationKeyRequest(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]];
+ }
+
+ /**
+ * CreateHcxActivationKeyRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @instance
+ */
+ CreateHcxActivationKeyRequest.prototype.parent = "";
+
+ /**
+ * CreateHcxActivationKeyRequest hcxActivationKey.
+ * @member {google.cloud.vmwareengine.v1.IHcxActivationKey|null|undefined} hcxActivationKey
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @instance
+ */
+ CreateHcxActivationKeyRequest.prototype.hcxActivationKey = null;
+
+ /**
+ * CreateHcxActivationKeyRequest hcxActivationKeyId.
+ * @member {string} hcxActivationKeyId
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @instance
+ */
+ CreateHcxActivationKeyRequest.prototype.hcxActivationKeyId = "";
+
+ /**
+ * CreateHcxActivationKeyRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @instance
+ */
+ CreateHcxActivationKeyRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateHcxActivationKeyRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest instance
+ */
+ CreateHcxActivationKeyRequest.create = function create(properties) {
+ return new CreateHcxActivationKeyRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateHcxActivationKeyRequest message. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateHcxActivationKeyRequest.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.hcxActivationKey != null && Object.hasOwnProperty.call(message, "hcxActivationKey"))
+ $root.google.cloud.vmwareengine.v1.HcxActivationKey.encode(message.hcxActivationKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.hcxActivationKeyId != null && Object.hasOwnProperty.call(message, "hcxActivationKeyId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.hcxActivationKeyId);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateHcxActivationKeyRequest message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.ICreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateHcxActivationKeyRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateHcxActivationKeyRequest.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.vmwareengine.v1.CreateHcxActivationKeyRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.hcxActivationKeyId = reader.string();
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateHcxActivationKeyRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateHcxActivationKeyRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateHcxActivationKeyRequest message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateHcxActivationKeyRequest.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.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey")) {
+ var error = $root.google.cloud.vmwareengine.v1.HcxActivationKey.verify(message.hcxActivationKey);
+ if (error)
+ return "hcxActivationKey." + error;
+ }
+ if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId"))
+ if (!$util.isString(message.hcxActivationKeyId))
+ return "hcxActivationKeyId: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateHcxActivationKeyRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} CreateHcxActivationKeyRequest
+ */
+ CreateHcxActivationKeyRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.hcxActivationKey != null) {
+ if (typeof object.hcxActivationKey !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest.hcxActivationKey: object expected");
+ message.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.fromObject(object.hcxActivationKey);
+ }
+ if (object.hcxActivationKeyId != null)
+ message.hcxActivationKeyId = String(object.hcxActivationKeyId);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateHcxActivationKeyRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest} message CreateHcxActivationKeyRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateHcxActivationKeyRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.hcxActivationKey = null;
+ object.hcxActivationKeyId = "";
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.hcxActivationKey != null && message.hasOwnProperty("hcxActivationKey"))
+ object.hcxActivationKey = $root.google.cloud.vmwareengine.v1.HcxActivationKey.toObject(message.hcxActivationKey, options);
+ if (message.hcxActivationKeyId != null && message.hasOwnProperty("hcxActivationKeyId"))
+ object.hcxActivationKeyId = message.hcxActivationKeyId;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateHcxActivationKeyRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateHcxActivationKeyRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateHcxActivationKeyRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateHcxActivationKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest";
+ };
+
+ return CreateHcxActivationKeyRequest;
+ })();
+
+ v1.Hcx = (function() {
+
+ /**
+ * Properties of a Hcx.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IHcx
+ * @property {string|null} [internalIp] Hcx internalIp
+ * @property {string|null} [version] Hcx version
+ * @property {google.cloud.vmwareengine.v1.Hcx.State|null} [state] Hcx state
+ * @property {string|null} [fqdn] Hcx fqdn
+ */
+
+ /**
+ * Constructs a new Hcx.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a Hcx.
+ * @implements IHcx
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set
+ */
+ function Hcx(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]];
+ }
+
+ /**
+ * Hcx internalIp.
+ * @member {string} internalIp
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @instance
+ */
+ Hcx.prototype.internalIp = "";
+
+ /**
+ * Hcx version.
+ * @member {string} version
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @instance
+ */
+ Hcx.prototype.version = "";
+
+ /**
+ * Hcx state.
+ * @member {google.cloud.vmwareengine.v1.Hcx.State} state
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @instance
+ */
+ Hcx.prototype.state = 0;
+
+ /**
+ * Hcx fqdn.
+ * @member {string} fqdn
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @instance
+ */
+ Hcx.prototype.fqdn = "";
+
+ /**
+ * Creates a new Hcx instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IHcx=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx instance
+ */
+ Hcx.create = function create(properties) {
+ return new Hcx(properties);
+ };
+
+ /**
+ * Encodes the specified Hcx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Hcx.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.version);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Hcx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Hcx.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IHcx} message Hcx message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Hcx.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Hcx message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Hcx.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.vmwareengine.v1.Hcx();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.internalIp = reader.string();
+ break;
+ }
+ case 4: {
+ message.version = reader.string();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 6: {
+ message.fqdn = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Hcx message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Hcx.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Hcx message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Hcx.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.internalIp != null && message.hasOwnProperty("internalIp"))
+ if (!$util.isString(message.internalIp))
+ return "internalIp: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.fqdn != null && message.hasOwnProperty("fqdn"))
+ if (!$util.isString(message.fqdn))
+ return "fqdn: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Hcx message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.Hcx} Hcx
+ */
+ Hcx.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.Hcx)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.Hcx();
+ if (object.internalIp != null)
+ message.internalIp = String(object.internalIp);
+ if (object.version != null)
+ message.version = String(object.version);
+ 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 "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ if (object.fqdn != null)
+ message.fqdn = String(object.fqdn);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Hcx message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.Hcx} message Hcx
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Hcx.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.internalIp = "";
+ object.version = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.fqdn = "";
+ }
+ if (message.internalIp != null && message.hasOwnProperty("internalIp"))
+ object.internalIp = message.internalIp;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Hcx.State[message.state] : message.state;
+ if (message.fqdn != null && message.hasOwnProperty("fqdn"))
+ object.fqdn = message.fqdn;
+ return object;
+ };
+
+ /**
+ * Converts this Hcx to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Hcx.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Hcx
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.Hcx
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Hcx.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Hcx";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmwareengine.v1.Hcx.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CREATING=2 CREATING value
+ */
+ Hcx.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ return values;
+ })();
+
+ return Hcx;
+ })();
+
+ v1.Nsx = (function() {
+
+ /**
+ * Properties of a Nsx.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface INsx
+ * @property {string|null} [internalIp] Nsx internalIp
+ * @property {string|null} [version] Nsx version
+ * @property {google.cloud.vmwareengine.v1.Nsx.State|null} [state] Nsx state
+ * @property {string|null} [fqdn] Nsx fqdn
+ */
+
+ /**
+ * Constructs a new Nsx.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a Nsx.
+ * @implements INsx
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set
+ */
+ function Nsx(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]];
+ }
+
+ /**
+ * Nsx internalIp.
+ * @member {string} internalIp
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @instance
+ */
+ Nsx.prototype.internalIp = "";
+
+ /**
+ * Nsx version.
+ * @member {string} version
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @instance
+ */
+ Nsx.prototype.version = "";
+
+ /**
+ * Nsx state.
+ * @member {google.cloud.vmwareengine.v1.Nsx.State} state
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @instance
+ */
+ Nsx.prototype.state = 0;
+
+ /**
+ * Nsx fqdn.
+ * @member {string} fqdn
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @instance
+ */
+ Nsx.prototype.fqdn = "";
+
+ /**
+ * Creates a new Nsx instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INsx=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx instance
+ */
+ Nsx.create = function create(properties) {
+ return new Nsx(properties);
+ };
+
+ /**
+ * Encodes the specified Nsx message. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Nsx.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.version);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Nsx message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Nsx.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INsx} message Nsx message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Nsx.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Nsx message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Nsx.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.vmwareengine.v1.Nsx();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.internalIp = reader.string();
+ break;
+ }
+ case 4: {
+ message.version = reader.string();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 6: {
+ message.fqdn = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Nsx message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Nsx.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Nsx message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Nsx.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.internalIp != null && message.hasOwnProperty("internalIp"))
+ if (!$util.isString(message.internalIp))
+ return "internalIp: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.fqdn != null && message.hasOwnProperty("fqdn"))
+ if (!$util.isString(message.fqdn))
+ return "fqdn: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Nsx message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.Nsx} Nsx
+ */
+ Nsx.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.Nsx)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.Nsx();
+ if (object.internalIp != null)
+ message.internalIp = String(object.internalIp);
+ if (object.version != null)
+ message.version = String(object.version);
+ 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 "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ if (object.fqdn != null)
+ message.fqdn = String(object.fqdn);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Nsx message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {google.cloud.vmwareengine.v1.Nsx} message Nsx
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Nsx.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.internalIp = "";
+ object.version = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.fqdn = "";
+ }
+ if (message.internalIp != null && message.hasOwnProperty("internalIp"))
+ object.internalIp = message.internalIp;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Nsx.State[message.state] : message.state;
+ if (message.fqdn != null && message.hasOwnProperty("fqdn"))
+ object.fqdn = message.fqdn;
+ return object;
+ };
+
+ /**
+ * Converts this Nsx to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Nsx.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Nsx
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.Nsx
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Nsx.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Nsx";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmwareengine.v1.Nsx.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CREATING=2 CREATING value
+ */
+ Nsx.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ return values;
+ })();
+
+ return Nsx;
+ })();
+
+ v1.Vcenter = (function() {
+
+ /**
+ * Properties of a Vcenter.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface IVcenter
+ * @property {string|null} [internalIp] Vcenter internalIp
+ * @property {string|null} [version] Vcenter version
+ * @property {google.cloud.vmwareengine.v1.Vcenter.State|null} [state] Vcenter state
+ * @property {string|null} [fqdn] Vcenter fqdn
+ */
+
+ /**
+ * Constructs a new Vcenter.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a Vcenter.
+ * @implements IVcenter
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set
+ */
+ function Vcenter(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]];
+ }
+
+ /**
+ * Vcenter internalIp.
+ * @member {string} internalIp
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @instance
+ */
+ Vcenter.prototype.internalIp = "";
+
+ /**
+ * Vcenter version.
+ * @member {string} version
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @instance
+ */
+ Vcenter.prototype.version = "";
+
+ /**
+ * Vcenter state.
+ * @member {google.cloud.vmwareengine.v1.Vcenter.State} state
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @instance
+ */
+ Vcenter.prototype.state = 0;
+
+ /**
+ * Vcenter fqdn.
+ * @member {string} fqdn
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @instance
+ */
+ Vcenter.prototype.fqdn = "";
+
+ /**
+ * Creates a new Vcenter instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IVcenter=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter instance
+ */
+ Vcenter.create = function create(properties) {
+ return new Vcenter(properties);
+ };
+
+ /**
+ * Encodes the specified Vcenter message. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Vcenter.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.internalIp != null && Object.hasOwnProperty.call(message, "internalIp"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.internalIp);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.version);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.fqdn != null && Object.hasOwnProperty.call(message, "fqdn"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.fqdn);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Vcenter message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.Vcenter.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {google.cloud.vmwareengine.v1.IVcenter} message Vcenter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Vcenter.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Vcenter message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Vcenter.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.vmwareengine.v1.Vcenter();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.internalIp = reader.string();
+ break;
+ }
+ case 4: {
+ message.version = reader.string();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 6: {
+ message.fqdn = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Vcenter message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Vcenter.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Vcenter message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Vcenter.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.internalIp != null && message.hasOwnProperty("internalIp"))
+ if (!$util.isString(message.internalIp))
+ return "internalIp: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.fqdn != null && message.hasOwnProperty("fqdn"))
+ if (!$util.isString(message.fqdn))
+ return "fqdn: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Vcenter message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.Vcenter} Vcenter
+ */
+ Vcenter.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.Vcenter)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.Vcenter();
+ if (object.internalIp != null)
+ message.internalIp = String(object.internalIp);
+ if (object.version != null)
+ message.version = String(object.version);
+ 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 "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ if (object.fqdn != null)
+ message.fqdn = String(object.fqdn);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Vcenter message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {google.cloud.vmwareengine.v1.Vcenter} message Vcenter
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Vcenter.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.internalIp = "";
+ object.version = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.fqdn = "";
+ }
+ if (message.internalIp != null && message.hasOwnProperty("internalIp"))
+ object.internalIp = message.internalIp;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] === undefined ? message.state : $root.google.cloud.vmwareengine.v1.Vcenter.State[message.state] : message.state;
+ if (message.fqdn != null && message.hasOwnProperty("fqdn"))
+ object.fqdn = message.fqdn;
+ return object;
+ };
+
+ /**
+ * Converts this Vcenter to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Vcenter.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Vcenter
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.Vcenter
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Vcenter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.Vcenter";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmwareengine.v1.Vcenter.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CREATING=2 CREATING value
+ */
+ Vcenter.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ return values;
+ })();
+
+ return Vcenter;
+ })();
+
+ v1.NetworkPolicy = (function() {
+
+ /**
+ * Properties of a NetworkPolicy.
+ * @memberof google.cloud.vmwareengine.v1
+ * @interface INetworkPolicy
+ * @property {string|null} [name] NetworkPolicy name
+ * @property {google.protobuf.ITimestamp|null} [createTime] NetworkPolicy createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] NetworkPolicy updateTime
+ * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [internetAccess] NetworkPolicy internetAccess
+ * @property {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null} [externalIp] NetworkPolicy externalIp
+ * @property {string|null} [edgeServicesCidr] NetworkPolicy edgeServicesCidr
+ * @property {string|null} [uid] NetworkPolicy uid
+ * @property {string|null} [vmwareEngineNetwork] NetworkPolicy vmwareEngineNetwork
+ * @property {string|null} [description] NetworkPolicy description
+ * @property {string|null} [vmwareEngineNetworkCanonical] NetworkPolicy vmwareEngineNetworkCanonical
+ */
+
+ /**
+ * Constructs a new NetworkPolicy.
+ * @memberof google.cloud.vmwareengine.v1
+ * @classdesc Represents a NetworkPolicy.
+ * @implements INetworkPolicy
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set
+ */
+ function NetworkPolicy(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]];
+ }
+
+ /**
+ * NetworkPolicy name.
+ * @member {string} name
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.name = "";
+
+ /**
+ * NetworkPolicy createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.createTime = null;
+
+ /**
+ * NetworkPolicy updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.updateTime = null;
+
+ /**
+ * NetworkPolicy internetAccess.
+ * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} internetAccess
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.internetAccess = null;
+
+ /**
+ * NetworkPolicy externalIp.
+ * @member {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService|null|undefined} externalIp
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.externalIp = null;
+
+ /**
+ * NetworkPolicy edgeServicesCidr.
+ * @member {string} edgeServicesCidr
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.edgeServicesCidr = "";
+
+ /**
+ * NetworkPolicy uid.
+ * @member {string} uid
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.uid = "";
+
+ /**
+ * NetworkPolicy vmwareEngineNetwork.
+ * @member {string} vmwareEngineNetwork
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.vmwareEngineNetwork = "";
+
+ /**
+ * NetworkPolicy description.
+ * @member {string} description
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.description = "";
+
+ /**
+ * NetworkPolicy vmwareEngineNetworkCanonical.
+ * @member {string} vmwareEngineNetworkCanonical
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ */
+ NetworkPolicy.prototype.vmwareEngineNetworkCanonical = "";
+
+ /**
+ * Creates a new NetworkPolicy instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INetworkPolicy=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy instance
+ */
+ NetworkPolicy.create = function create(properties) {
+ return new NetworkPolicy(properties);
+ };
+
+ /**
+ * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkPolicy.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.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.internetAccess != null && Object.hasOwnProperty.call(message, "internetAccess"))
+ $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.internetAccess, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.externalIp != null && Object.hasOwnProperty.call(message, "externalIp"))
+ $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.encode(message.externalIp, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.edgeServicesCidr != null && Object.hasOwnProperty.call(message, "edgeServicesCidr"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.edgeServicesCidr);
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.uid);
+ if (message.vmwareEngineNetwork != null && Object.hasOwnProperty.call(message, "vmwareEngineNetwork"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.vmwareEngineNetwork);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.description);
+ if (message.vmwareEngineNetworkCanonical != null && Object.hasOwnProperty.call(message, "vmwareEngineNetworkCanonical"))
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.vmwareEngineNetworkCanonical);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {google.cloud.vmwareengine.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NetworkPolicy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkPolicy.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.vmwareengine.v1.NetworkPolicy();
+ 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.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.edgeServicesCidr = reader.string();
+ break;
+ }
+ case 10: {
+ message.uid = reader.string();
+ break;
+ }
+ case 12: {
+ message.vmwareEngineNetwork = reader.string();
+ break;
+ }
+ case 13: {
+ message.description = reader.string();
+ break;
+ }
+ case 14: {
+ message.vmwareEngineNetworkCanonical = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkPolicy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NetworkPolicy message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NetworkPolicy.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.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.internetAccess != null && message.hasOwnProperty("internetAccess")) {
+ var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.internetAccess);
+ if (error)
+ return "internetAccess." + error;
+ }
+ if (message.externalIp != null && message.hasOwnProperty("externalIp")) {
+ var error = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify(message.externalIp);
+ if (error)
+ return "externalIp." + error;
+ }
+ if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr"))
+ if (!$util.isString(message.edgeServicesCidr))
+ return "edgeServicesCidr: string expected";
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork"))
+ if (!$util.isString(message.vmwareEngineNetwork))
+ return "vmwareEngineNetwork: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical"))
+ if (!$util.isString(message.vmwareEngineNetworkCanonical))
+ return "vmwareEngineNetworkCanonical: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmwareengine.v1.NetworkPolicy} NetworkPolicy
+ */
+ NetworkPolicy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmwareengine.v1.NetworkPolicy)
+ return object;
+ var message = new $root.google.cloud.vmwareengine.v1.NetworkPolicy();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.internetAccess != null) {
+ if (typeof object.internetAccess !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.internetAccess: object expected");
+ message.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.internetAccess);
+ }
+ if (object.externalIp != null) {
+ if (typeof object.externalIp !== "object")
+ throw TypeError(".google.cloud.vmwareengine.v1.NetworkPolicy.externalIp: object expected");
+ message.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.fromObject(object.externalIp);
+ }
+ if (object.edgeServicesCidr != null)
+ message.edgeServicesCidr = String(object.edgeServicesCidr);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.vmwareEngineNetwork != null)
+ message.vmwareEngineNetwork = String(object.vmwareEngineNetwork);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.vmwareEngineNetworkCanonical != null)
+ message.vmwareEngineNetworkCanonical = String(object.vmwareEngineNetworkCanonical);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {google.cloud.vmwareengine.v1.NetworkPolicy} message NetworkPolicy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NetworkPolicy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.internetAccess = null;
+ object.externalIp = null;
+ object.edgeServicesCidr = "";
+ object.uid = "";
+ object.vmwareEngineNetwork = "";
+ object.description = "";
+ object.vmwareEngineNetworkCanonical = "";
+ }
+ 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.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.internetAccess != null && message.hasOwnProperty("internetAccess"))
+ object.internetAccess = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.internetAccess, options);
+ if (message.externalIp != null && message.hasOwnProperty("externalIp"))
+ object.externalIp = $root.google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.toObject(message.externalIp, options);
+ if (message.edgeServicesCidr != null && message.hasOwnProperty("edgeServicesCidr"))
+ object.edgeServicesCidr = message.edgeServicesCidr;
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ if (message.vmwareEngineNetwork != null && message.hasOwnProperty("vmwareEngineNetwork"))
+ object.vmwareEngineNetwork = message.vmwareEngineNetwork;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.vmwareEngineNetworkCanonical != null && message.hasOwnProperty("vmwareEngineNetworkCanonical"))
+ object.vmwareEngineNetworkCanonical = message.vmwareEngineNetworkCanonical;
+ return object;
+ };
+
+ /**
+ * Converts this NetworkPolicy to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NetworkPolicy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NetworkPolicy
+ * @function getTypeUrl
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmwareengine.v1.NetworkPolicy";
+ };
+
+ NetworkPolicy.NetworkService = (function() {
+
+ /**
+ * Properties of a NetworkService.
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @interface INetworkService
+ * @property {boolean|null} [enabled] NetworkService enabled
+ * @property {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State|null} [state] NetworkService state
+ */
+
+ /**
+ * Constructs a new NetworkService.
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy
+ * @classdesc Represents a NetworkService.
+ * @implements INetworkService
+ * @constructor
+ * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set
+ */
+ function NetworkService(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]];
+ }
+
+ /**
+ * NetworkService enabled.
+ * @member {boolean} enabled
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @instance
+ */
+ NetworkService.prototype.enabled = false;
+
+ /**
+ * NetworkService state.
+ * @member {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.State} state
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @instance
+ */
+ NetworkService.prototype.state = 0;
+
+ /**
+ * Creates a new NetworkService instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @static
+ * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService=} [properties] Properties to set
+ * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService instance
+ */
+ NetworkService.create = function create(properties) {
+ return new NetworkService(properties);
+ };
+
+ /**
+ * Encodes the specified NetworkService message. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @static
+ * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkService.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NetworkService message, length delimited. Does not implicitly {@link google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @static
+ * @param {google.cloud.vmwareengine.v1.NetworkPolicy.INetworkService} message NetworkService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkService.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NetworkService message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkService.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.vmwareengine.v1.NetworkPolicy.NetworkService();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.enabled = reader.bool();
+ break;
+ }
+ case 2: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NetworkService message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService} NetworkService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkService.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NetworkService message.
+ * @function verify
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NetworkService.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean 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:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NetworkService message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService
+ * @static
+ * @param {Object.