diff --git a/packages/google-cloud-vmmigration/.eslintignore b/packages/google-cloud-vmmigration/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-vmmigration/.eslintrc.json b/packages/google-cloud-vmmigration/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-vmmigration/.gitattributes b/packages/google-cloud-vmmigration/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.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-vmmigration/.github/.OwlBot.yaml b/packages/google-cloud-vmmigration/.github/.OwlBot.yaml
new file mode 100644
index 00000000000..1a2bd55ea0f
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.github/.OwlBot.yaml
@@ -0,0 +1,22 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+docker:
+ image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/vmmigration/(.*)/.*-nodejs/(.*)
+ dest: /owl-bot-staging/$1/$2
diff --git a/packages/google-cloud-vmmigration/.gitignore b/packages/google-cloud-vmmigration/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.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-vmmigration/.jsdoc.js b/packages/google-cloud-vmmigration/.jsdoc.js
new file mode 100644
index 00000000000..a7063ae6f3b
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.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/vmmigration',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-vmmigration/.mocharc.js b/packages/google-cloud-vmmigration/.mocharc.js
new file mode 100644
index 00000000000..0b600509bed
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2020 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-vmmigration/.nycrc b/packages/google-cloud-vmmigration/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.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-vmmigration/.prettierignore b/packages/google-cloud-vmmigration/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-vmmigration/.prettierrc.js b/packages/google-cloud-vmmigration/.prettierrc.js
new file mode 100644
index 00000000000..d1b95106f4c
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2020 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-vmmigration/.repo-metadata.json b/packages/google-cloud-vmmigration/.repo-metadata.json
new file mode 100644
index 00000000000..c44157c2bc1
--- /dev/null
+++ b/packages/google-cloud-vmmigration/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "name": "vmmigration",
+ "name_pretty": "Migrate for Compute Engine",
+ "product_documentation": "https://cloud.google.com/migrate/compute-engine/",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/vmmigration/latest",
+ "issue_tracker": "https://github.com/googleapis/nodejs-vmmigration/issues",
+ "release_level": "stable",
+ "language": "nodejs",
+ "repo": "googleapis/nodejs-vmmigration",
+ "distribution_name": "@google-cloud/vmmigration",
+ "api_id": "vmmigration.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "api_shortname": "vmmigration",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-vmmigration/CHANGELOG.md b/packages/google-cloud-vmmigration/CHANGELOG.md
new file mode 100644
index 00000000000..e486650ee12
--- /dev/null
+++ b/packages/google-cloud-vmmigration/CHANGELOG.md
@@ -0,0 +1,64 @@
+# Changelog
+
+## [2.2.1](https://github.com/googleapis/nodejs-vmmigration/compare/v2.2.0...v2.2.1) (2022-11-11)
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#68](https://github.com/googleapis/nodejs-vmmigration/issues/68)) ([658939e](https://github.com/googleapis/nodejs-vmmigration/commit/658939eddfed48c3057a34053200e4773013cd36))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-vmmigration/issues/1553)) ([#58](https://github.com/googleapis/nodejs-vmmigration/issues/58)) ([2904a86](https://github.com/googleapis/nodejs-vmmigration/commit/2904a8663508a1bef3c8637ebad6702d05bd1935))
+* Preserve default values in x-goog-request-params header ([#62](https://github.com/googleapis/nodejs-vmmigration/issues/62)) ([2a42aea](https://github.com/googleapis/nodejs-vmmigration/commit/2a42aea5c7b10e97b0f43f134d4351a0bd14abf0))
+* Regenerated protos JS and TS definitions ([#71](https://github.com/googleapis/nodejs-vmmigration/issues/71)) ([603438c](https://github.com/googleapis/nodejs-vmmigration/commit/603438c4a72376d71f87d16ef65de11e1e94589a))
+* Use _gaxModule when accessing gax for bundling ([#59](https://github.com/googleapis/nodejs-vmmigration/issues/59)) ([a74d392](https://github.com/googleapis/nodejs-vmmigration/commit/a74d39272844d45c1730eafc416a88c049499b18))
+
+## [2.2.0](https://github.com/googleapis/nodejs-vmmigration/compare/v2.1.0...v2.2.0) (2022-08-23)
+
+
+### Features
+
+* add upgrade appliance method, update other methods ([#53](https://github.com/googleapis/nodejs-vmmigration/issues/53)) ([5271100](https://github.com/googleapis/nodejs-vmmigration/commit/5271100c96928df3fd032e64718c19522c66d99e))
+
+
+### Bug Fixes
+
+* better support for fallback mode ([#55](https://github.com/googleapis/nodejs-vmmigration/issues/55)) ([d3c2f2d](https://github.com/googleapis/nodejs-vmmigration/commit/d3c2f2d3e730bf8d3c8168cb6fbc567f2fe01159))
+* change import long to require ([#56](https://github.com/googleapis/nodejs-vmmigration/issues/56)) ([7eb23fd](https://github.com/googleapis/nodejs-vmmigration/commit/7eb23fdc358abad1d0dc6432432732c2b75091a2))
+* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-vmmigration/issues/1546)) ([#57](https://github.com/googleapis/nodejs-vmmigration/issues/57)) ([ad4ccd1](https://github.com/googleapis/nodejs-vmmigration/commit/ad4ccd1032c48002770bff672d2781bd63c1e692))
+
+## [2.1.0](https://github.com/googleapis/nodejs-vmmigration/compare/v2.0.0...v2.1.0) (2022-07-13)
+
+
+### Features
+
+* support regapic LRO ([#49](https://github.com/googleapis/nodejs-vmmigration/issues/49)) ([8a8ba70](https://github.com/googleapis/nodejs-vmmigration/commit/8a8ba705e8d956e080cc8ee23cf01b1605166283))
+
+## [2.0.0](https://github.com/googleapis/nodejs-vmmigration/compare/v1.0.0...v2.0.0) (2022-05-19)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#44)
+
+### Build System
+
+* update library to use Node 12 ([#44](https://github.com/googleapis/nodejs-vmmigration/issues/44)) ([fb018e1](https://github.com/googleapis/nodejs-vmmigration/commit/fb018e1b1eab36f07dfe5fc5d8279f1630271fb4))
+
+## [1.0.0](https://github.com/googleapis/nodejs-vmmigration/compare/v0.2.0...v1.0.0) (2022-03-23)
+
+
+### Features
+
+* promote to stable ([#31](https://github.com/googleapis/nodejs-vmmigration/issues/31)) ([edfa50a](https://github.com/googleapis/nodejs-vmmigration/commit/edfa50a047cf5968b75cd95b38d3c2953dd1cdca))
+
+## 0.2.0 (2021-12-23)
+
+
+### Features
+
+* initial generation of library ([#1](https://www.github.com/googleapis/nodejs-vmmigration/issues/1)) ([eccd6fb](https://www.github.com/googleapis/nodejs-vmmigration/commit/eccd6fb354e54b8077f8fa044bf857c6b2bf7378))
+* initial stub of library ([761868c](https://www.github.com/googleapis/nodejs-vmmigration/commit/761868c602c4857f5ef9517c478f034a65e97765))
+
+
+### Bug Fixes
+
+* **release:** release as pre-major ([#6](https://www.github.com/googleapis/nodejs-vmmigration/issues/6)) ([bedb2b7](https://www.github.com/googleapis/nodejs-vmmigration/commit/bedb2b7c0e2816742235d7b7e6a3b9325fb65344))
diff --git a/packages/google-cloud-vmmigration/CODE_OF_CONDUCT.md b/packages/google-cloud-vmmigration/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-vmmigration/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-vmmigration/CONTRIBUTING.md b/packages/google-cloud-vmmigration/CONTRIBUTING.md
new file mode 100644
index 00000000000..1fde16042ad
--- /dev/null
+++ b/packages/google-cloud-vmmigration/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 Migrate for Compute Engine 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=vmmigration.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-vmmigration/LICENSE b/packages/google-cloud-vmmigration/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-vmmigration/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-vmmigration/README.md b/packages/google-cloud-vmmigration/README.md
new file mode 100644
index 00000000000..04da15ad8b2
--- /dev/null
+++ b/packages/google-cloud-vmmigration/README.md
@@ -0,0 +1,192 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Migrate for Compute Engine: Node.js Client](https://github.com/googleapis/nodejs-vmmigration)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/vmmigration)
+
+
+
+
+vmmigration client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/nodejs-vmmigration/blob/main/CHANGELOG.md).
+
+* [Migrate for Compute Engine Node.js Client API Reference][client-docs]
+* [Migrate for Compute Engine Documentation][product-docs]
+* [github.com/googleapis/nodejs-vmmigration](https://github.com/googleapis/nodejs-vmmigration)
+
+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 Migrate for Compute Engine 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/vmmigration
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+/**
+ * Required. The parent, which owns this collection of targets.
+ */
+// const parent = 'abc123'
+/**
+ * Optional. The maximum number of targets to return. The service may return
+ * fewer than this value. If unspecified, at most 500 targets will be
+ * returned. The maximum value is 1000; values above 1000 will be coerced to
+ * 1000.
+ */
+// const pageSize = 1234
+/**
+ * Required. A page token, received from a previous `ListTargets` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListTargets` must
+ * match the call that provided the page token.
+ */
+// const pageToken = 'abc123'
+/**
+ * Optional. The filter request.
+ */
+// const filter = 'abc123'
+/**
+ * Optional. the order by fields for the result.
+ */
+// const orderBy = 'abc123'
+
+// Imports the Vmmigration library
+const {VmMigrationClient} = require('@google-cloud/vmmigration').v1;
+
+// Instantiates a client
+const vmmigrationClient = new VmMigrationClient();
+
+async function callListTargetProjects() {
+ // Construct request
+ const request = {
+ parent,
+ pageToken,
+ };
+
+ // Run request
+ const iterable = await vmmigrationClient.listTargetProjectsAsync(request);
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListTargetProjects();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/nodejs-vmmigration/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Quickstart | [source code](https://github.com/googleapis/nodejs-vmmigration/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vmmigration&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+
+
+
+The [Migrate for Compute Engine 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/vmmigration@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
+unless absolutely necessary (e.g. because of critical security issues) or with
+an extensive deprecation period. Issues and requests against **stable** libraries
+are addressed with the highest priority.
+
+
+
+
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-vmmigration/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/nodejs-vmmigration/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/vmmigration/latest
+[product-docs]: https://cloud.google.com/migrate/compute-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=vmmigration.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-vmmigration/linkinator.config.json b/packages/google-cloud-vmmigration/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-vmmigration/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-vmmigration/package.json b/packages/google-cloud-vmmigration/package.json
new file mode 100644
index 00000000000..6a0195f42ae
--- /dev/null
+++ b/packages/google-cloud-vmmigration/package.json
@@ -0,0 +1,67 @@
+{
+ "name": "@google-cloud/vmmigration",
+ "version": "2.2.1",
+ "description": "vmmigration client for Node.js",
+ "repository": "googleapis/nodejs-vmmigration",
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google vmmigration",
+ "vmmigration",
+ "vmmigration service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
+ "prelint": "cd samples; npm link ../; npm install",
+ "precompile": "gts clean"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.7.2",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.1.2",
+ "typescript": "^4.6.4",
+ "webpack": "^5.36.2",
+ "webpack-cli": "^4.7.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-vmmigration/protos/google/cloud/vmmigration/v1/vmmigration.proto b/packages/google-cloud-vmmigration/protos/google/cloud/vmmigration/v1/vmmigration.proto
new file mode 100644
index 00000000000..d5dfe9e0ddc
--- /dev/null
+++ b/packages/google-cloud-vmmigration/protos/google/cloud/vmmigration/v1/vmmigration.proto
@@ -0,0 +1,2901 @@
+// 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.vmmigration.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/duration.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/error_details.proto";
+import "google/rpc/status.proto";
+
+option csharp_namespace = "Google.Cloud.VMMigration.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/vmmigration/v1;vmmigration";
+option java_multiple_files = true;
+option java_outer_classname = "VmMigrationProto";
+option java_package = "com.google.cloud.vmmigration.v1";
+option php_namespace = "Google\\Cloud\\VMMigration\\V1";
+option ruby_package = "Google::Cloud::VMMigration::V1";
+
+// VM Migration Service
+service VmMigration {
+ option (google.api.default_host) = "vmmigration.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists Sources in a given project and location.
+ rpc ListSources(ListSourcesRequest) returns (ListSourcesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/sources"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Source.
+ rpc GetSource(GetSourceRequest) returns (Source) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/sources/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Source in a given project and location.
+ rpc CreateSource(CreateSourceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/sources"
+ body: "source"
+ };
+ option (google.api.method_signature) = "parent,source,source_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Source"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single Source.
+ rpc UpdateSource(UpdateSourceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{source.name=projects/*/locations/*/sources/*}"
+ body: "source"
+ };
+ option (google.api.method_signature) = "source,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Source"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Source.
+ rpc DeleteSource(DeleteSourceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/sources/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // List remote source's inventory of VMs.
+ // The remote source is the onprem vCenter (remote in the sense it's not in
+ // Compute Engine). The inventory describes the list of existing VMs in that
+ // source. Note that this operation lists the VMs on the remote source, as
+ // opposed to listing the MigratingVms resources in the vmmigration service.
+ rpc FetchInventory(FetchInventoryRequest) returns (FetchInventoryResponse) {
+ option (google.api.http) = {
+ get: "/v1/{source=projects/*/locations/*/sources/*}:fetchInventory"
+ };
+ option (google.api.method_signature) = "source";
+ }
+
+ // Lists Utilization Reports of the given Source.
+ rpc ListUtilizationReports(ListUtilizationReportsRequest)
+ returns (ListUtilizationReportsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/sources/*}/utilizationReports"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets a single Utilization Report.
+ rpc GetUtilizationReport(GetUtilizationReportRequest)
+ returns (UtilizationReport) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/sources/*/utilizationReports/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new UtilizationReport.
+ rpc CreateUtilizationReport(CreateUtilizationReportRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/sources/*}/utilizationReports"
+ body: "utilization_report"
+ };
+ option (google.api.method_signature) =
+ "parent,utilization_report,utilization_report_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "UtilizationReport"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Utilization Report.
+ rpc DeleteUtilizationReport(DeleteUtilizationReportRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/sources/*/utilizationReports/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists DatacenterConnectors in a given Source.
+ rpc ListDatacenterConnectors(ListDatacenterConnectorsRequest)
+ returns (ListDatacenterConnectorsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/sources/*}/datacenterConnectors"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single DatacenterConnector.
+ rpc GetDatacenterConnector(GetDatacenterConnectorRequest)
+ returns (DatacenterConnector) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/sources/*/datacenterConnectors/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new DatacenterConnector in a given Source.
+ rpc CreateDatacenterConnector(CreateDatacenterConnectorRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/sources/*}/datacenterConnectors"
+ body: "datacenter_connector"
+ };
+ option (google.api.method_signature) =
+ "parent,datacenter_connector,datacenter_connector_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "DatacenterConnector"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single DatacenterConnector.
+ rpc DeleteDatacenterConnector(DeleteDatacenterConnectorRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/sources/*/datacenterConnectors/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Upgrades the appliance relate to this DatacenterConnector to the in-place
+ // updateable version.
+ rpc UpgradeAppliance(UpgradeApplianceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{datacenter_connector=projects/*/locations/*/sources/*/datacenterConnectors/*}:upgradeAppliance"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "UpgradeApplianceResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Creates a new MigratingVm in a given Source.
+ rpc CreateMigratingVm(CreateMigratingVmRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/sources/*}/migratingVms"
+ body: "migrating_vm"
+ };
+ option (google.api.method_signature) =
+ "parent,migrating_vm,migrating_vm_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "MigratingVm"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists MigratingVms in a given Source.
+ rpc ListMigratingVms(ListMigratingVmsRequest)
+ returns (ListMigratingVmsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/sources/*}/migratingVms"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single MigratingVm.
+ rpc GetMigratingVm(GetMigratingVmRequest) returns (MigratingVm) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the parameters of a single MigratingVm.
+ rpc UpdateMigratingVm(UpdateMigratingVmRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{migrating_vm.name=projects/*/locations/*/sources/*/migratingVms/*}"
+ body: "migrating_vm"
+ };
+ option (google.api.method_signature) = "migrating_vm,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "MigratingVm"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single MigratingVm.
+ rpc DeleteMigratingVm(DeleteMigratingVmRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Starts migration for a VM. Starts the process of uploading
+ // data and creating snapshots, in replication cycles scheduled by the policy.
+ rpc StartMigration(StartMigrationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:startMigration"
+ body: "*"
+ };
+ option (google.api.method_signature) = "migrating_vm";
+ option (google.longrunning.operation_info) = {
+ response_type: "StartMigrationResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Resumes a migration for a VM. When called on a paused migration, will start
+ // the process of uploading data and creating snapshots; when called on a
+ // completed cut-over migration, will update the migration to active state and
+ // start the process of uploading data and creating snapshots.
+ rpc ResumeMigration(ResumeMigrationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:resumeMigration"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "ResumeMigrationResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Pauses a migration for a VM. If cycle tasks are running they will be
+ // cancelled, preserving source task data. Further replication cycles will not
+ // be triggered while the VM is paused.
+ rpc PauseMigration(PauseMigrationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:pauseMigration"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "PauseMigrationResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Marks a migration as completed, deleting migration resources that are no
+ // longer being used. Only applicable after cutover is done.
+ rpc FinalizeMigration(FinalizeMigrationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:finalizeMigration"
+ body: "*"
+ };
+ option (google.api.method_signature) = "migrating_vm";
+ option (google.longrunning.operation_info) = {
+ response_type: "FinalizeMigrationResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Initiates a Clone of a specific migrating VM.
+ rpc CreateCloneJob(CreateCloneJobRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cloneJobs"
+ body: "clone_job"
+ };
+ option (google.api.method_signature) = "parent,clone_job,clone_job_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "CloneJob"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Initiates the cancellation of a running clone job.
+ rpc CancelCloneJob(CancelCloneJobRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*/cloneJobs/*}:cancel"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "CancelCloneJobResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists CloneJobs of a given migrating VM.
+ rpc ListCloneJobs(ListCloneJobsRequest) returns (ListCloneJobsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cloneJobs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single CloneJob.
+ rpc GetCloneJob(GetCloneJobRequest) returns (CloneJob) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*/cloneJobs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Initiates a Cutover of a specific migrating VM.
+ // The returned LRO is completed when the cutover job resource is created
+ // and the job is initiated.
+ rpc CreateCutoverJob(CreateCutoverJobRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cutoverJobs"
+ body: "cutover_job"
+ };
+ option (google.api.method_signature) = "parent,cutover_job,cutover_job_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "CutoverJob"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Initiates the cancellation of a running cutover job.
+ rpc CancelCutoverJob(CancelCutoverJobRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*/cutoverJobs/*}:cancel"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "CancelCutoverJobResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists CutoverJobs of a given migrating VM.
+ rpc ListCutoverJobs(ListCutoverJobsRequest)
+ returns (ListCutoverJobsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cutoverJobs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single CutoverJob.
+ rpc GetCutoverJob(GetCutoverJobRequest) returns (CutoverJob) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/sources/*/migratingVms/*/cutoverJobs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists Groups in a given project and location.
+ rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/groups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Group.
+ rpc GetGroup(GetGroupRequest) returns (Group) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/groups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Group in a given project and location.
+ rpc CreateGroup(CreateGroupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/groups"
+ body: "group"
+ };
+ option (google.api.method_signature) = "parent,group,group_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Group"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single Group.
+ rpc UpdateGroup(UpdateGroupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{group.name=projects/*/locations/*/groups/*}"
+ body: "group"
+ };
+ option (google.api.method_signature) = "group,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Group"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Group.
+ rpc DeleteGroup(DeleteGroupRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/groups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Adds a MigratingVm to a Group.
+ rpc AddGroupMigration(AddGroupMigrationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{group=projects/*/locations/*/groups/*}:addGroupMigration"
+ body: "*"
+ };
+ option (google.api.method_signature) = "group";
+ option (google.longrunning.operation_info) = {
+ response_type: "AddGroupMigrationResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Removes a MigratingVm from a Group.
+ rpc RemoveGroupMigration(RemoveGroupMigrationRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{group=projects/*/locations/*/groups/*}:removeGroupMigration"
+ body: "*"
+ };
+ option (google.api.method_signature) = "group";
+ option (google.longrunning.operation_info) = {
+ response_type: "RemoveGroupMigrationResponse"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists TargetProjects in a given project.
+ //
+ // NOTE: TargetProject is a global resource; hence the only supported value
+ // for location is `global`.
+ rpc ListTargetProjects(ListTargetProjectsRequest)
+ returns (ListTargetProjectsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/targetProjects"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single TargetProject.
+ //
+ // NOTE: TargetProject is a global resource; hence the only supported value
+ // for location is `global`.
+ rpc GetTargetProject(GetTargetProjectRequest) returns (TargetProject) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/targetProjects/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new TargetProject in a given project.
+ //
+ // NOTE: TargetProject is a global resource; hence the only supported value
+ // for location is `global`.
+ rpc CreateTargetProject(CreateTargetProjectRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/targetProjects"
+ body: "target_project"
+ };
+ option (google.api.method_signature) =
+ "parent,target_project,target_project_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "TargetProject"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single TargetProject.
+ //
+ // NOTE: TargetProject is a global resource; hence the only supported value
+ // for location is `global`.
+ rpc UpdateTargetProject(UpdateTargetProjectRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{target_project.name=projects/*/locations/*/targetProjects/*}"
+ body: "target_project"
+ };
+ option (google.api.method_signature) = "target_project,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "TargetProject"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single TargetProject.
+ //
+ // NOTE: TargetProject is a global resource; hence the only supported value
+ // for location is `global`.
+ rpc DeleteTargetProject(DeleteTargetProjectRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/targetProjects/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+}
+
+// Controls the level of details of a Utilization Report.
+enum UtilizationReportView {
+ // The default / unset value.
+ // The API will default to FULL on single report request and BASIC for
+ // multiple reports request.
+ UTILIZATION_REPORT_VIEW_UNSPECIFIED = 0;
+
+ // Get the report metadata, without the list of VMs and their utilization
+ // info.
+ BASIC = 1;
+
+ // Include everything.
+ FULL = 2;
+}
+
+// Controls the level of details of a Migrating VM.
+enum MigratingVmView {
+ // View is unspecified. The API will fallback to the default value.
+ MIGRATING_VM_VIEW_UNSPECIFIED = 0;
+
+ // Get the migrating VM basic details.
+ // The basic details do not include the recent clone jobs and recent cutover
+ // jobs lists.
+ MIGRATING_VM_VIEW_BASIC = 1;
+
+ // Include everything.
+ MIGRATING_VM_VIEW_FULL = 2;
+}
+
+// Types of disks supported for Compute Engine VM.
+enum ComputeEngineDiskType {
+ // An unspecified disk type. Will be used as STANDARD.
+ COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED = 0;
+
+ // A Standard disk type.
+ COMPUTE_ENGINE_DISK_TYPE_STANDARD = 1;
+
+ // SSD hard disk type.
+ COMPUTE_ENGINE_DISK_TYPE_SSD = 2;
+
+ // An alternative to SSD persistent disks that balance performance and
+ // cost.
+ COMPUTE_ENGINE_DISK_TYPE_BALANCED = 3;
+}
+
+// Types of licenses used in OS adaptation.
+enum ComputeEngineLicenseType {
+ // The license type is the default for the OS.
+ COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT = 0;
+
+ // The license type is Pay As You Go license type.
+ COMPUTE_ENGINE_LICENSE_TYPE_PAYG = 1;
+
+ // The license type is Bring Your Own License type.
+ COMPUTE_ENGINE_LICENSE_TYPE_BYOL = 2;
+}
+
+// Possible values for vm boot option.
+enum ComputeEngineBootOption {
+ // The boot option is unknown.
+ COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED = 0;
+
+ // The boot option is EFI.
+ COMPUTE_ENGINE_BOOT_OPTION_EFI = 1;
+
+ // The boot option is BIOS.
+ COMPUTE_ENGINE_BOOT_OPTION_BIOS = 2;
+}
+
+// ReplicationCycle contains information about the current replication cycle
+// status.
+message ReplicationCycle {
+ // The time the replication cycle has started.
+ google.protobuf.Timestamp start_time = 1;
+
+ // The current progress in percentage of this cycle.
+ int32 progress_percent = 5;
+}
+
+// ReplicationSync contain information about the last replica sync to the cloud.
+message ReplicationSync {
+ // The most updated snapshot created time in the source that finished
+ // replication.
+ google.protobuf.Timestamp last_sync_time = 1;
+}
+
+// MigratingVm describes the VM that will be migrated from a Source environment
+// and its replication state.
+message MigratingVm {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ pattern: "projects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_vm}"
+ };
+
+ // The possible values of the state/health of source VM.
+ enum State {
+ // The state was not sampled by the health checks yet.
+ STATE_UNSPECIFIED = 0;
+
+ // The VM in the source is being verified.
+ PENDING = 1;
+
+ // The source VM was verified, and it's ready to start replication.
+ READY = 2;
+
+ // Migration is going through the first sync cycle.
+ FIRST_SYNC = 3;
+
+ // The replication is active, and it's running or scheduled to run.
+ ACTIVE = 4;
+
+ // The source VM is being turned off, and a final replication is currently
+ // running.
+ CUTTING_OVER = 7;
+
+ // The source VM was stopped and replicated. The replication is currently
+ // paused.
+ CUTOVER = 8;
+
+ // A cutover job is active and replication cycle is running the final sync.
+ FINAL_SYNC = 9;
+
+ // The replication was paused by the user and no cycles are scheduled to
+ // run.
+ PAUSED = 10;
+
+ // The migrating VM is being finalized and migration resources are being
+ // removed.
+ FINALIZING = 11;
+
+ // The replication process is done. The migrating VM is finalized and no
+ // longer consumes billable resources.
+ FINALIZED = 12;
+
+ // The replication process encountered an unrecoverable error and was
+ // aborted.
+ ERROR = 13;
+ }
+
+ // The default configuration of the target VM that will be created in GCP as a
+ // result of the migration.
+ oneof target_vm_defaults {
+ // Details of the target VM in Compute Engine.
+ ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
+ }
+
+ // Output only. The identifier of the MigratingVm.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The unique ID of the VM in the source.
+ // The VM's name in vSphere can be changed, so this is not the VM's name but
+ // rather its moRef id. This id is of the form vm-.
+ string source_vm_id = 2;
+
+ // The display name attached to the MigratingVm by the user.
+ string display_name = 18;
+
+ // The description attached to the migrating VM by the user.
+ string description = 3;
+
+ // The replication schedule policy.
+ SchedulePolicy policy = 8;
+
+ // Output only. The time the migrating VM was created (this refers to this
+ // resource and not to the time it was installed in the source).
+ google.protobuf.Timestamp create_time = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last time the migrating VM resource was updated.
+ google.protobuf.Timestamp update_time = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The most updated snapshot created time in the source that
+ // finished replication.
+ ReplicationSync last_sync = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the MigratingVm.
+ State state = 23 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last time the migrating VM state was updated.
+ google.protobuf.Timestamp state_time = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The percentage progress of the current running replication
+ // cycle.
+ ReplicationCycle current_sync_info = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The group this migrating vm is included in, if any. The group
+ // is represented by the full path of the appropriate
+ // [Group][google.cloud.vmmigration.v1.Group] resource.
+ string group = 15 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/Group"
+ }
+ ];
+
+ // The labels of the migrating VM.
+ map labels = 16;
+
+ // Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
+ // performed on the migrating VM. This field holds the vm's last completed
+ // clone job and the vm's running clone job, if one exists.
+ // Note: To have this field populated you need to explicitly request it via
+ // the "view" parameter of the Get/List request.
+ repeated CloneJob recent_clone_jobs = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Provides details on the state of the Migrating VM in case of
+ // an error in replication.
+ google.rpc.Status error = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The recent cutover jobs performed on the migrating VM.
+ // This field holds the vm's last completed cutover job and the vm's
+ // running cutover job, if one exists.
+ // Note: To have this field populated you need to explicitly request it via
+ // the "view" parameter of the Get/List request.
+ repeated CutoverJob recent_cutover_jobs = 20
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// CloneJob describes the process of creating a clone of a
+// [MigratingVM][google.cloud.vmmigration.v1.MigratingVm] to the
+// requested target based on the latest successful uploaded snapshots.
+// While the migration cycles of a MigratingVm take place, it is possible to
+// verify the uploaded VM can be started in the cloud, by creating a clone. The
+// clone can be created without any downtime, and it is created using the latest
+// snapshots which are already in the cloud. The cloneJob is only responsible
+// for its work, not its products, which means once it is finished, it will
+// never touch the instance it created. It will only delete it in case of the
+// CloneJob being cancelled or upon failure to clone.
+message CloneJob {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/CloneJob"
+ pattern: "projects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_vm}/cloneJobs/{clone_job}"
+ };
+
+ // Possible states of the clone job.
+ enum State {
+ // The state is unknown. This is used for API compatibility only and is not
+ // used by the system.
+ STATE_UNSPECIFIED = 0;
+
+ // The clone job has not yet started.
+ PENDING = 1;
+
+ // The clone job is active and running.
+ ACTIVE = 2;
+
+ // The clone job finished with errors.
+ FAILED = 3;
+
+ // The clone job finished successfully.
+ SUCCEEDED = 4;
+
+ // The clone job was cancelled.
+ CANCELLED = 5;
+
+ // The clone job is being cancelled.
+ CANCELLING = 6;
+
+ // OS adaptation is running as part of the clone job to generate license.
+ ADAPTING_OS = 7;
+ }
+
+ // Details of the VM to create as the target of this clone job.
+ oneof target_vm_details {
+ // Output only. Details of the target VM in Compute Engine.
+ ComputeEngineTargetDetails compute_engine_target_details = 20
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. The time the clone job was created (as an API call, not when
+ // it was actually created in the target).
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the clone job was ended.
+ google.protobuf.Timestamp end_time = 22
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The name of the clone.
+ string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the clone job.
+ State state = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the state was last updated.
+ google.protobuf.Timestamp state_time = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Provides details for the errors that led to the Clone Job's
+ // state.
+ google.rpc.Status error = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// CutoverJob message describes a cutover of a migrating VM. The CutoverJob is
+// the operation of shutting down the VM, creating a snapshot and
+// clonning the VM using the replicated snapshot.
+message CutoverJob {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/CutoverJob"
+ pattern: "projects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_vm}/cutoverJobs/{cutover_job}"
+ };
+
+ // Possible states of the cutover job.
+ enum State {
+ // The state is unknown. This is used for API compatibility only and is not
+ // used by the system.
+ STATE_UNSPECIFIED = 0;
+
+ // The cutover job has not yet started.
+ PENDING = 1;
+
+ // The cutover job finished with errors.
+ FAILED = 2;
+
+ // The cutover job finished successfully.
+ SUCCEEDED = 3;
+
+ // The cutover job was cancelled.
+ CANCELLED = 4;
+
+ // The cutover job is being cancelled.
+ CANCELLING = 5;
+
+ // The cutover job is active and running.
+ ACTIVE = 6;
+
+ // OS adaptation is running as part of the cutover job to generate license.
+ ADAPTING_OS = 7;
+ }
+
+ // Details of the VM to create as the target of this cutover job.
+ oneof target_vm_details {
+ // Output only. Details of the target VM in Compute Engine.
+ ComputeEngineTargetDetails compute_engine_target_details = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. The time the cutover job was created (as an API call, not when
+ // it was actually created in the target).
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the cutover job had finished.
+ google.protobuf.Timestamp end_time = 16
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The name of the cutover job.
+ string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the cutover job.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the state was last updated.
+ google.protobuf.Timestamp state_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current progress in percentage of the cutover job.
+ int32 progress_percent = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Provides details for the errors that led to the Cutover Job's
+ // state.
+ google.rpc.Status error = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A message providing possible extra details about the current
+ // state.
+ string state_message = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'CreateCloneJob' request.
+message CreateCloneJobRequest {
+ // Required. The Clone's parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/CloneJob"
+ }
+ ];
+
+ // Required. The clone job identifier.
+ string clone_job_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The clone request body.
+ CloneJob clone_job = 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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'CancelCloneJob' request.
+message CancelCloneJobRequest {
+ // Required. The clone job id
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/CloneJob"
+ }
+ ];
+}
+
+// Response message for 'CancelCloneJob' request.
+message CancelCloneJobResponse {}
+
+// Request message for 'ListCloneJobsRequest' request.
+message ListCloneJobsRequest {
+ // Required. The parent, which owns this collection of source VMs.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/CloneJob"
+ }
+ ];
+
+ // Optional. The maximum number of clone jobs to return. The service may
+ // return fewer than this value. If unspecified, at most 500 clone jobs will
+ // be returned. The maximum value is 1000; values above 1000 will be coerced
+ // to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListCloneJobs` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListCloneJobs` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for 'ListCloneJobs' request.
+message ListCloneJobsResponse {
+ // Output only. The list of clone jobs response.
+ repeated CloneJob clone_jobs = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetCloneJob' request.
+message GetCloneJobRequest {
+ // Required. The name of the CloneJob.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/CloneJob"
+ }
+ ];
+}
+
+// Source message describes a specific vm migration Source resource. It contains
+// the source environment information.
+message Source {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/Source"
+ pattern: "projects/{project}/locations/{location}/sources/{source}"
+ };
+
+ oneof source_details {
+ // Vmware type source details.
+ VmwareSourceDetails vmware = 10;
+ }
+
+ // Output only. The Source name.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The create time timestamp.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The update time timestamp.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The labels of the source.
+ map labels = 4;
+
+ // User-provided description of the source.
+ string description = 6;
+}
+
+// VmwareSourceDetails message describes a specific source details for the
+// vmware source type.
+message VmwareSourceDetails {
+ // The credentials username.
+ string username = 1;
+
+ // Input only. The credentials password. This is write only and can not be
+ // read in a GET operation.
+ string password = 2 [(google.api.field_behavior) = INPUT_ONLY];
+
+ // The ip address of the vcenter this Source represents.
+ string vcenter_ip = 3;
+
+ // The thumbprint representing the certificate for the vcenter.
+ string thumbprint = 4;
+}
+
+// DatacenterConnector message describes a connector between the Source and GCP,
+// which is installed on a vmware datacenter (an OVA vm installed by the user)
+// to connect the Datacenter to GCP and support vm migration data transfer.
+message DatacenterConnector {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/DatacenterConnector"
+ pattern: "projects/{project}/locations/{location}/sources/{source}/datacenterConnectors/{datacenter_connector}"
+ };
+
+ // The possible values of the state.
+ enum State {
+ // The state is unknown. This is used for API compatibility only and is not
+ // used by the system.
+ STATE_UNSPECIFIED = 0;
+
+ // The state was not sampled by the health checks yet.
+ PENDING = 1;
+
+ // The source was sampled by health checks and is not available.
+ OFFLINE = 2;
+
+ // The source is available but might not be usable yet due to unvalidated
+ // credentials or another reason. The credentials referred to are the ones
+ // to the Source. The error message will contain further details.
+ FAILED = 3;
+
+ // The source exists and its credentials were verified.
+ ACTIVE = 4;
+ }
+
+ // Output only. The time the connector was created (as an API call, not when
+ // it was actually installed).
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last time the connector was updated with an API call.
+ google.protobuf.Timestamp update_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The connector's name.
+ string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Immutable. A unique key for this connector. This key is internal to the OVA
+ // connector and is supplied with its creation during the registration process
+ // and can not be modified.
+ string registration_id = 12 [(google.api.field_behavior) = IMMUTABLE];
+
+ // The service account to use in the connector when communicating with the
+ // cloud.
+ string service_account = 5;
+
+ // The version running in the DatacenterConnector. This is supplied by the OVA
+ // connector during the registration process and can not be modified.
+ string version = 6;
+
+ // Output only. The communication channel between the datacenter connector and
+ // GCP.
+ string bucket = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. State of the DatacenterConnector, as determined by the health
+ // checks.
+ State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the state was last set.
+ google.protobuf.Timestamp state_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Provides details on the state of the Datacenter Connector in
+ // case of an error.
+ google.rpc.Status error = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Appliance OVA version.
+ // This is the OVA which is manually installed by the user and contains the
+ // infrastructure for the automatically updatable components on the appliance.
+ string appliance_infrastructure_version = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Appliance last installed update bundle version.
+ // This is the version of the automatically updatable components on the
+ // appliance.
+ string appliance_software_version = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The available versions for updating this appliance.
+ AvailableUpdates available_versions = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The status of the current / last upgradeAppliance operation.
+ UpgradeStatus upgrade_status = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// UpgradeStatus contains information about upgradeAppliance operation.
+message UpgradeStatus {
+ // The possible values of the state.
+ enum State {
+ // The state was not sampled by the health checks yet.
+ STATE_UNSPECIFIED = 0;
+
+ // The upgrade has started.
+ RUNNING = 1;
+
+ // The upgrade failed.
+ FAILED = 2;
+
+ // The upgrade finished successfully.
+ SUCCEEDED = 3;
+ }
+
+ // The version to upgrade to.
+ string version = 1;
+
+ // The state of the upgradeAppliance operation.
+ State state = 2;
+
+ // Provides details on the state of the upgrade operation in case of an error.
+ google.rpc.Status error = 3;
+
+ // The time the operation was started.
+ google.protobuf.Timestamp start_time = 4;
+
+ // The version from which we upgraded.
+ string previous_version = 5;
+}
+
+// Holds informatiom about the available versions for upgrade.
+message AvailableUpdates {
+ // The newest deployable version of the appliance.
+ // The current appliance can't be updated into this version, and the owner
+ // must manually deploy this OVA to a new appliance.
+ ApplianceVersion new_deployable_appliance = 1;
+
+ // The latest version for in place update.
+ // The current appliance can be updated to this version using the API or m4c
+ // CLI.
+ ApplianceVersion in_place_update = 2;
+}
+
+// Describes an appliance version.
+message ApplianceVersion {
+ // The appliance version.
+ string version = 1;
+
+ // A link for downloading the version.
+ string uri = 2;
+
+ // Determine whether it's critical to upgrade the appliance to this version.
+ bool critical = 3;
+
+ // Link to a page that contains the version release notes.
+ string release_notes_uri = 4;
+}
+
+// Request message for 'ListSources' request.
+message ListSourcesRequest {
+ // Required. The parent, which owns this collection of sources.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/Source"
+ }
+ ];
+
+ // Optional. The maximum number of sources to return. The service may return
+ // fewer than this value. If unspecified, at most 500 sources will be
+ // returned. The maximum value is 1000; values above 1000 will be coerced to
+ // 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListSources` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListSources` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for 'ListSources' request.
+message ListSourcesResponse {
+ // Output only. The list of sources response.
+ repeated Source sources = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetSource' request.
+message GetSourceRequest {
+ // Required. The Source name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/Source"
+ }
+ ];
+}
+
+// Request message for 'CreateSource' request.
+message CreateSourceRequest {
+ // Required. The Source's parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/Source"
+ }
+ ];
+
+ // Required. The source identifier.
+ string source_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The create request body.
+ Source source = 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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Update message for 'UpdateSources' request.
+message UpdateSourceRequest {
+ // Field mask is used to specify the fields to be overwritten in the
+ // Source resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1;
+
+ // Required. The update request body.
+ Source source = 2 [(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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'DeleteSource' request.
+message DeleteSourceRequest {
+ // Required. The Source name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/Source"
+ }
+ ];
+
+ // 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 will guarantee
+ // that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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
+// [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory].
+message FetchInventoryRequest {
+ // Required. The name of the Source.
+ string source = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/Source"
+ }
+ ];
+
+ // If this flag is set to true, the source will be queried instead of using
+ // cached results. Using this flag will make the call slower.
+ bool force_refresh = 2;
+}
+
+// VmwareVmDetails describes a VM in vCenter.
+message VmwareVmDetails {
+ // Possible values for the power state of the VM.
+ enum PowerState {
+ // Power state is not specified.
+ POWER_STATE_UNSPECIFIED = 0;
+
+ // The VM is turned ON.
+ ON = 1;
+
+ // The VM is turned OFF.
+ OFF = 2;
+
+ // The VM is suspended. This is similar to hibernation or sleep mode.
+ SUSPENDED = 3;
+ }
+
+ // Possible values for vm boot option.
+ enum BootOption {
+ // The boot option is unknown.
+ BOOT_OPTION_UNSPECIFIED = 0;
+
+ // The boot option is EFI.
+ EFI = 1;
+
+ // The boot option is BIOS.
+ BIOS = 2;
+ }
+
+ // The VM's id in the source (note that this is not the MigratingVm's id).
+ // This is the moref id of the VM.
+ string vm_id = 1;
+
+ // The id of the vCenter's datacenter this VM is contained in.
+ string datacenter_id = 2;
+
+ // The descriptive name of the vCenter's datacenter this VM is contained in.
+ string datacenter_description = 3;
+
+ // The unique identifier of the VM in vCenter.
+ string uuid = 4;
+
+ // The display name of the VM. Note that this is not necessarily unique.
+ string display_name = 5;
+
+ // The power state of the VM at the moment list was taken.
+ PowerState power_state = 6;
+
+ // The number of cpus in the VM.
+ int32 cpu_count = 7;
+
+ // The size of the memory of the VM in MB.
+ int32 memory_mb = 8;
+
+ // The number of disks the VM has.
+ int32 disk_count = 9;
+
+ // The total size of the storage allocated to the VM in MB.
+ int64 committed_storage_mb = 12;
+
+ // The VM's OS. See for example
+ // https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
+ // for types of strings this might hold.
+ string guest_description = 11;
+
+ // Output only. The VM Boot Option.
+ BootOption boot_option = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// VmwareVmsDetails describes VMs in vCenter.
+message VmwareVmsDetails {
+ // The details of the vmware VMs.
+ repeated VmwareVmDetails details = 1;
+}
+
+// Response message for
+// [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory].
+message FetchInventoryResponse {
+ oneof SourceVms {
+ // The description of the VMs in a Source of type Vmware.
+ VmwareVmsDetails vmware_vms = 1;
+ }
+
+ // Output only. The timestamp when the source was last queried (if the result
+ // is from the cache).
+ google.protobuf.Timestamp update_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Utilization report details the utilization (CPU, memory, etc.) of selected
+// source VMs.
+message UtilizationReport {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/UtilizationReport"
+ pattern: "projects/{project}/locations/{location}/sources/{source}/utilizationReports/{utilization_report}"
+ };
+
+ // Utilization report state.
+ enum State {
+ // The state is unknown. This value is not in use.
+ STATE_UNSPECIFIED = 0;
+
+ // The report is in the making.
+ CREATING = 1;
+
+ // Report creation completed successfully.
+ SUCCEEDED = 2;
+
+ // Report creation failed.
+ FAILED = 3;
+ }
+
+ // Report time frame options.
+ enum TimeFrame {
+ // The time frame was not specified and will default to WEEK.
+ TIME_FRAME_UNSPECIFIED = 0;
+
+ // One week.
+ WEEK = 1;
+
+ // One month.
+ MONTH = 2;
+
+ // One year.
+ YEAR = 3;
+ }
+
+ // Output only. The report unique name.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The report display name, as assigned by the user.
+ string display_name = 2;
+
+ // Output only. Current state of the report.
+ State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the state was last set.
+ google.protobuf.Timestamp state_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Provides details on the state of the report in case of an
+ // error.
+ google.rpc.Status error = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the report was created (this refers to the time of
+ // the request, not the time the report creation completed).
+ google.protobuf.Timestamp create_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Time frame of the report.
+ TimeFrame time_frame = 7;
+
+ // Output only. The point in time when the time frame ends. Notice that the
+ // time frame is counted backwards. For instance if the "frame_end_time" value
+ // is 2021/01/20 and the time frame is WEEK then the report covers the week
+ // between 2021/01/20 and 2021/01/14.
+ google.protobuf.Timestamp frame_end_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Total number of VMs included in the report.
+ int32 vm_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // List of utilization information per VM.
+ // When sent as part of the request, the "vm_id" field is used in order to
+ // specify which VMs to include in the report. In that case all other fields
+ // are ignored.
+ repeated VmUtilizationInfo vms = 10;
+}
+
+// Utilization information of a single VM.
+message VmUtilizationInfo {
+ oneof VmDetails {
+ // The description of the VM in a Source of type Vmware.
+ VmwareVmDetails vmware_vm_details = 1;
+ }
+
+ // The VM's ID in the source.
+ string vm_id = 3;
+
+ // Utilization metrics for this VM.
+ VmUtilizationMetrics utilization = 2;
+}
+
+// Utilization metrics values for a single VM.
+message VmUtilizationMetrics {
+ // Max CPU usage, percent.
+ int32 cpu_max_percent = 9;
+
+ // Average CPU usage, percent.
+ int32 cpu_average_percent = 10;
+
+ // Max memory usage, percent.
+ int32 memory_max_percent = 11;
+
+ // Average memory usage, percent.
+ int32 memory_average_percent = 12;
+
+ // Max disk IO rate, in kilobytes per second.
+ int64 disk_io_rate_max_kbps = 13;
+
+ // Average disk IO rate, in kilobytes per second.
+ int64 disk_io_rate_average_kbps = 14;
+
+ // Max network throughput (combined transmit-rates and receive-rates), in
+ // kilobytes per second.
+ int64 network_throughput_max_kbps = 15;
+
+ // Average network throughput (combined transmit-rates and receive-rates), in
+ // kilobytes per second.
+ int64 network_throughput_average_kbps = 16;
+}
+
+// Request message for 'ListUtilizationReports' request.
+message ListUtilizationReportsRequest {
+ // Required. The Utilization Reports parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/UtilizationReport"
+ }
+ ];
+
+ // Optional. The level of details of each report.
+ // Defaults to BASIC.
+ UtilizationReportView view = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of reports to return. The service may return
+ // fewer than this value. If unspecified, at most 500 reports will be
+ // returned. The maximum value is 1000; values above 1000 will be coerced to
+ // 1000.
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListUtilizationReports`
+ // call. Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListUtilizationReports`
+ // must match the call that provided the page token.
+ string page_token = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for 'ListUtilizationReports' request.
+message ListUtilizationReportsResponse {
+ // Output only. The list of reports.
+ repeated UtilizationReport utilization_reports = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetUtilizationReport' request.
+message GetUtilizationReportRequest {
+ // Required. The Utilization Report name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/UtilizationReport"
+ }
+ ];
+
+ // Optional. The level of details of the report.
+ // Defaults to FULL
+ UtilizationReportView view = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for 'CreateUtilizationReport' request.
+message CreateUtilizationReportRequest {
+ // Required. The Utilization Report's parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/UtilizationReport"
+ }
+ ];
+
+ // Required. The report to create.
+ UtilizationReport utilization_report = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the report, which will become the final
+ // component of the reports's resource name.
+ //
+ // This value maximum length is 63 characters, and valid characters
+ // are /[a-z][0-9]-/. It must start with an english letter and must not
+ // end with a hyphen.
+ string utilization_report_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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'DeleteUtilizationReport' request.
+message DeleteUtilizationReportRequest {
+ // Required. The Utilization Report name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/UtilizationReport"
+ }
+ ];
+
+ // 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 will guarantee
+ // that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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 'ListDatacenterConnectors' request.
+message ListDatacenterConnectorsResponse {
+ // Output only. The list of sources response.
+ repeated DatacenterConnector datacenter_connectors = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetDatacenterConnector' request.
+message GetDatacenterConnectorRequest {
+ // Required. The name of the DatacenterConnector.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/DatacenterConnector"
+ }
+ ];
+}
+
+// Request message for 'CreateDatacenterConnector' request.
+message CreateDatacenterConnectorRequest {
+ // Required. The DatacenterConnector's parent.
+ // Required. The Source in where the new DatacenterConnector will be created.
+ // For example:
+ // `projects/my-project/locations/us-central1/sources/my-source`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/DatacenterConnector"
+ }
+ ];
+
+ // Required. The datacenterConnector identifier.
+ string datacenter_connector_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The create request body.
+ DatacenterConnector datacenter_connector = 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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'DeleteDatacenterConnector' request.
+message DeleteDatacenterConnectorRequest {
+ // Required. The DatacenterConnector name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/DatacenterConnector"
+ }
+ ];
+
+ // 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 will guarantee
+ // that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'UpgradeAppliance' request.
+message UpgradeApplianceRequest {
+ // Required. The DatacenterConnector name.
+ string datacenter_connector = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/DatacenterConnector"
+ }
+ ];
+
+ // 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 will guarantee
+ // that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Response message for 'UpgradeAppliance' request.
+message UpgradeApplianceResponse {}
+
+// Request message for 'ListDatacenterConnectors' request.
+message ListDatacenterConnectorsRequest {
+ // Required. The parent, which owns this collection of connectors.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/DatacenterConnector"
+ }
+ ];
+
+ // Optional. The maximum number of connectors to return. The service may
+ // return fewer than this value. If unspecified, at most 500 sources will be
+ // returned. The maximum value is 1000; values above 1000 will be coerced to
+ // 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListDatacenterConnectors`
+ // call. Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to
+ // `ListDatacenterConnectors` must match the call that provided the page
+ // token.
+ string page_token = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// ComputeEngineTargetDefaults is a collection of details for creating a VM in a
+// target Compute Engine project.
+message ComputeEngineTargetDefaults {
+ // The name of the VM to create.
+ string vm_name = 1;
+
+ // The full path of the resource of type TargetProject which represents the
+ // Compute Engine project in which to create this VM.
+ string target_project = 2 [(google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/TargetProject"
+ }];
+
+ // The zone in which to create the VM.
+ string zone = 3;
+
+ // The machine type series to create the VM with.
+ string machine_type_series = 4;
+
+ // The machine type to create the VM with.
+ string machine_type = 5;
+
+ // A map of network tags to associate with the VM.
+ repeated string network_tags = 6;
+
+ // List of NICs connected to this VM.
+ repeated NetworkInterface network_interfaces = 7;
+
+ // The service account to associate the VM with.
+ string service_account = 8;
+
+ // The disk type to use in the VM.
+ ComputeEngineDiskType disk_type = 9;
+
+ // A map of labels to associate with the VM.
+ map labels = 10;
+
+ // The license type to use in OS adaptation.
+ ComputeEngineLicenseType license_type = 11;
+
+ // Output only. The OS license returned from the adaptation module report.
+ AppliedLicense applied_license = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Compute instance scheduling information (if empty default is used).
+ ComputeScheduling compute_scheduling = 13;
+
+ // Defines whether the instance has Secure Boot enabled.
+ // This can be set to true only if the vm boot option is EFI.
+ bool secure_boot = 14;
+
+ // Output only. The VM Boot Option, as set in the source vm.
+ ComputeEngineBootOption boot_option = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The metadata key/value pairs to assign to the VM.
+ map metadata = 16;
+
+ // Additional licenses to assign to the VM.
+ repeated string additional_licenses = 17;
+
+ // The hostname to assign to the VM.
+ string hostname = 18;
+}
+
+// ComputeEngineTargetDetails is a collection of details for creating a VM in a
+// target Compute Engine project.
+message ComputeEngineTargetDetails {
+ // The name of the VM to create.
+ string vm_name = 1;
+
+ // The GCP target project ID or project name.
+ string project = 2;
+
+ // The zone in which to create the VM.
+ string zone = 3;
+
+ // The machine type series to create the VM with.
+ string machine_type_series = 4;
+
+ // The machine type to create the VM with.
+ string machine_type = 5;
+
+ // A map of network tags to associate with the VM.
+ repeated string network_tags = 6;
+
+ // List of NICs connected to this VM.
+ repeated NetworkInterface network_interfaces = 7;
+
+ // The service account to associate the VM with.
+ string service_account = 8;
+
+ // The disk type to use in the VM.
+ ComputeEngineDiskType disk_type = 9;
+
+ // A map of labels to associate with the VM.
+ map labels = 10;
+
+ // The license type to use in OS adaptation.
+ ComputeEngineLicenseType license_type = 11;
+
+ // The OS license returned from the adaptation module report.
+ AppliedLicense applied_license = 12;
+
+ // Compute instance scheduling information (if empty default is used).
+ ComputeScheduling compute_scheduling = 13;
+
+ // Defines whether the instance has Secure Boot enabled.
+ // This can be set to true only if the vm boot option is EFI.
+ bool secure_boot = 14;
+
+ // The VM Boot Option, as set in the source vm.
+ ComputeEngineBootOption boot_option = 15;
+
+ // The metadata key/value pairs to assign to the VM.
+ map metadata = 16;
+
+ // Additional licenses to assign to the VM.
+ repeated string additional_licenses = 17;
+
+ // The hostname to assign to the VM.
+ string hostname = 18;
+}
+
+// NetworkInterface represents a NIC of a VM.
+message NetworkInterface {
+ // The network to connect the NIC to.
+ string network = 1;
+
+ // The subnetwork to connect the NIC to.
+ string subnetwork = 2;
+
+ // The internal IP to define in the NIC.
+ // The formats accepted are: `ephemeral` \ ipv4 address \ a named address
+ // resource full path.
+ string internal_ip = 3;
+
+ // The external IP to define in the NIC.
+ string external_ip = 4;
+}
+
+// AppliedLicense holds the license data returned by adaptation module report.
+message AppliedLicense {
+ // License types used in OS adaptation.
+ enum Type {
+ // Unspecified license for the OS.
+ TYPE_UNSPECIFIED = 0;
+
+ // No license available for the OS.
+ NONE = 1;
+
+ // The license type is Pay As You Go license type.
+ PAYG = 2;
+
+ // The license type is is Bring Your Own License type.
+ BYOL = 3;
+ }
+
+ // The license type that was used in OS adaptation.
+ Type type = 1;
+
+ // The OS license returned from the adaptation module's report.
+ string os_license = 2;
+}
+
+// Node Affinity: the configuration of desired nodes onto which this Instance
+// could be scheduled. Based on
+// https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
+message SchedulingNodeAffinity {
+ // Possible types of node selection operators. Valid operators are IN for
+ // affinity and NOT_IN for anti-affinity.
+ enum Operator {
+ // An unknown, unexpected behavior.
+ OPERATOR_UNSPECIFIED = 0;
+
+ // The node resource group should be in these resources affinity.
+ IN = 1;
+
+ // The node resource group should not be in these resources affinity.
+ NOT_IN = 2;
+ }
+
+ // The label key of Node resource to reference.
+ string key = 1;
+
+ // The operator to use for the node resources specified in the `values`
+ // parameter.
+ Operator operator = 2;
+
+ // Corresponds to the label values of Node resource.
+ repeated string values = 3;
+}
+
+// Scheduling information for VM on maintenance/restart behaviour and
+// node allocation in sole tenant nodes.
+message ComputeScheduling {
+ enum OnHostMaintenance {
+ // An unknown, unexpected behavior.
+ ON_HOST_MAINTENANCE_UNSPECIFIED = 0;
+
+ // Terminate the instance when the host machine undergoes maintenance.
+ TERMINATE = 1;
+
+ // Migrate the instance when the host machine undergoes maintenance.
+ MIGRATE = 2;
+ }
+
+ // Defines whether the Instance should be automatically restarted whenever
+ // it is terminated by Compute Engine (not terminated by user).
+ enum RestartType {
+ // Unspecified behavior. This will use the default.
+ RESTART_TYPE_UNSPECIFIED = 0;
+
+ // The Instance should be automatically restarted whenever it is
+ // terminated by Compute Engine.
+ AUTOMATIC_RESTART = 1;
+
+ // The Instance isn't automatically restarted whenever it is
+ // terminated by Compute Engine.
+ NO_AUTOMATIC_RESTART = 2;
+ }
+
+ // How the instance should behave when the host machine undergoes
+ // maintenance that may temporarily impact instance performance.
+ OnHostMaintenance on_host_maintenance = 1;
+
+ // Whether the Instance should be automatically restarted whenever it is
+ // terminated by Compute Engine (not terminated by user).
+ // This configuration is identical to `automaticRestart` field in Compute
+ // Engine create instance under scheduling.
+ // It was changed to an enum (instead of a boolean) to match the default
+ // value in Compute Engine which is automatic restart.
+ RestartType restart_type = 5;
+
+ // A set of node affinity and anti-affinity configurations for sole tenant
+ // nodes.
+ repeated SchedulingNodeAffinity node_affinities = 3;
+
+ // The minimum number of virtual CPUs this instance will consume when
+ // running on a sole-tenant node. Ignored if no node_affinites are
+ // configured.
+ int32 min_node_cpus = 4;
+}
+
+// A policy for scheduling replications.
+message SchedulePolicy {
+ // The idle duration between replication stages.
+ google.protobuf.Duration idle_duration = 1;
+
+ // A flag to indicate whether to skip OS adaptation during the replication
+ // sync. OS adaptation is a process where the VM's operating system undergoes
+ // changes and adaptations to fully function on Compute Engine.
+ bool skip_os_adaptation = 2;
+}
+
+// Request message for 'CreateMigratingVm' request.
+message CreateMigratingVmRequest {
+ // Required. The MigratingVm's parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+
+ // Required. The migratingVm identifier.
+ string migrating_vm_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The create request body.
+ MigratingVm migrating_vm = 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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'LisMigratingVmsRequest' request.
+message ListMigratingVmsRequest {
+ // Required. The parent, which owns this collection of MigratingVms.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+
+ // Optional. The maximum number of migrating VMs to return. The service may
+ // return fewer than this value. If unspecified, at most 500 migrating VMs
+ // will be returned. The maximum value is 1000; values above 1000 will be
+ // coerced to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListMigratingVms` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListMigratingVms`
+ // must match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The level of details of each migrating VM.
+ MigratingVmView view = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for 'ListMigratingVms' request.
+message ListMigratingVmsResponse {
+ // Output only. The list of Migrating VMs response.
+ repeated MigratingVm migrating_vms = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetMigratingVm' request.
+message GetMigratingVmRequest {
+ // Required. The name of the MigratingVm.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+
+ // Optional. The level of details of the migrating VM.
+ MigratingVmView view = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for 'UpdateMigratingVm' request.
+message UpdateMigratingVmRequest {
+ // Field mask is used to specify the fields to be overwritten in the
+ // MigratingVm resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1;
+
+ // Required. The update request body.
+ MigratingVm migrating_vm = 2 [(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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'DeleteMigratingVm' request.
+message DeleteMigratingVmRequest {
+ // Required. The name of the MigratingVm.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+}
+
+// Request message for 'StartMigrationRequest' request.
+message StartMigrationRequest {
+ // Required. The name of the MigratingVm.
+ string migrating_vm = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+}
+
+// Response message for 'StartMigration' request.
+message StartMigrationResponse {}
+
+// Request message for 'PauseMigration' request.
+message PauseMigrationRequest {
+ // Required. The name of the MigratingVm.
+ string migrating_vm = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+}
+
+// Response message for 'PauseMigration' request.
+message PauseMigrationResponse {}
+
+// Request message for 'ResumeMigration' request.
+message ResumeMigrationRequest {
+ // Required. The name of the MigratingVm.
+ string migrating_vm = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+}
+
+// Response message for 'ResumeMigration' request.
+message ResumeMigrationResponse {}
+
+// Request message for 'FinalizeMigration' request.
+message FinalizeMigrationRequest {
+ // Required. The name of the MigratingVm.
+ string migrating_vm = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }
+ ];
+}
+
+// Response message for 'FinalizeMigration' request.
+message FinalizeMigrationResponse {}
+
+// TargetProject message represents a target Compute Engine project for a
+// migration or a clone.
+message TargetProject {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/TargetProject"
+ pattern: "projects/{project}/locations/{location}/targetProjects/{target_project}"
+ };
+
+ // Output only. The name of the target project.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The target project ID (number) or project name.
+ string project = 2;
+
+ // The target project's description.
+ string description = 3;
+
+ // Output only. The time this target project resource was created (not related
+ // to when the Compute Engine project it points to was created).
+ google.protobuf.Timestamp create_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last time the target project resource was updated.
+ google.protobuf.Timestamp update_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetTargetProject' call.
+message GetTargetProjectRequest {
+ // Required. The TargetProject name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/TargetProject"
+ }
+ ];
+}
+
+// Request message for 'ListTargetProjects' call.
+message ListTargetProjectsRequest {
+ // Required. The parent, which owns this collection of targets.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/TargetProject"
+ }
+ ];
+
+ // Optional. The maximum number of targets to return. The service may return
+ // fewer than this value. If unspecified, at most 500 targets will be
+ // returned. The maximum value is 1000; values above 1000 will be coerced to
+ // 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListTargets` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListTargets` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for 'ListTargetProjects' call.
+message ListTargetProjectsResponse {
+ // Output only. The list of target response.
+ repeated TargetProject target_projects = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'CreateTargetProject' request.
+message CreateTargetProjectRequest {
+ // Required. The TargetProject's parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/TargetProject"
+ }
+ ];
+
+ // Required. The target_project identifier.
+ string target_project_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The create request body.
+ TargetProject target_project = 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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Update message for 'UpdateTargetProject' request.
+message UpdateTargetProjectRequest {
+ // Field mask is used to specify the fields to be overwritten in the
+ // TargetProject resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1;
+
+ // Required. The update request body.
+ TargetProject target_project = 2 [(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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'DeleteTargetProject' request.
+message DeleteTargetProjectRequest {
+ // Required. The TargetProject name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/TargetProject"
+ }
+ ];
+
+ // 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 will guarantee
+ // that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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];
+}
+
+// Describes message for 'Group' resource. The Group is a collections of several
+// MigratingVms.
+message Group {
+ option (google.api.resource) = {
+ type: "vmmigration.googleapis.com/Group"
+ pattern: "projects/{project}/locations/{location}/groups/{group}"
+ };
+
+ // Output only. The Group name.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The create time timestamp.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The update time timestamp.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // User-provided description of the group.
+ string description = 4;
+
+ // Display name is a user defined name for this group which can be updated.
+ string display_name = 5;
+}
+
+// Request message for 'ListGroups' request.
+message ListGroupsRequest {
+ // Required. The parent, which owns this collection of groups.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/Group"
+ }
+ ];
+
+ // Optional. The maximum number of groups to return. The service may return
+ // fewer than this value. If unspecified, at most 500 groups will be
+ // returned. The maximum value is 1000; values above 1000 will be coerced to
+ // 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListGroups` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListGroups` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for 'ListGroups' request.
+message ListGroupsResponse {
+ // Output only. The list of groups response.
+ repeated Group groups = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetGroup' request.
+message GetGroupRequest {
+ // Required. The group name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/Group"
+ }
+ ];
+}
+
+// Request message for 'CreateGroup' request.
+message CreateGroupRequest {
+ // Required. The Group's parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/Group"
+ }
+ ];
+
+ // Required. The group identifier.
+ string group_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The create request body.
+ Group group = 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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Update message for 'UpdateGroups' request.
+message UpdateGroupRequest {
+ // Field mask is used to specify the fields to be overwritten in the
+ // Group resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1;
+
+ // Required. The update request body.
+ Group group = 2 [(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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'DeleteGroup' request.
+message DeleteGroupRequest {
+ // Required. The Group name.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/Group"
+ }
+ ];
+
+ // 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 will guarantee
+ // that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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 'AddGroupMigration' request.
+message AddGroupMigrationRequest {
+ // Required. The full path name of the Group to add to.
+ string group = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/Group"
+ }
+ ];
+
+ // The full path name of the MigratingVm to add.
+ string migrating_vm = 2 [(google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }];
+}
+
+// Response message for 'AddGroupMigration' request.
+message AddGroupMigrationResponse {}
+
+// Request message for 'RemoveMigration' request.
+message RemoveGroupMigrationRequest {
+ // Required. The name of the Group.
+ string group = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/Group"
+ }
+ ];
+
+ // The MigratingVm to remove.
+ string migrating_vm = 2 [(google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/MigratingVm"
+ }];
+}
+
+// Response message for 'RemoveMigration' request.
+message RemoveGroupMigrationResponse {}
+
+// Request message for 'CreateCutoverJob' request.
+message CreateCutoverJobRequest {
+ // Required. The Cutover's parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/CutoverJob"
+ }
+ ];
+
+ // Required. The cutover job identifier.
+ string cutover_job_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The cutover request body.
+ CutoverJob cutover_job = 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 will guarantee
+ // that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and t
+ // he 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;
+}
+
+// Request message for 'CancelCutoverJob' request.
+message CancelCutoverJobRequest {
+ // Required. The cutover job id
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/CutoverJob"
+ }
+ ];
+}
+
+// Response message for 'CancelCutoverJob' request.
+message CancelCutoverJobResponse {}
+
+// Request message for 'ListCutoverJobsRequest' request.
+message ListCutoverJobsRequest {
+ // Required. The parent, which owns this collection of migrating VMs.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "vmmigration.googleapis.com/CutoverJob"
+ }
+ ];
+
+ // Optional. The maximum number of cutover jobs to return. The service may
+ // return fewer than this value. If unspecified, at most 500 cutover jobs will
+ // be returned. The maximum value is 1000; values above 1000 will be coerced
+ // to 1000.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. A page token, received from a previous `ListCutoverJobs` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListCutoverJobs` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The filter request.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. the order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for 'ListCutoverJobs' request.
+message ListCutoverJobsResponse {
+ // Output only. The list of cutover jobs response.
+ repeated CutoverJob cutover_jobs = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. 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 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for 'GetCutoverJob' request.
+message GetCutoverJobRequest {
+ // Required. The name of the CutoverJob.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "vmmigration.googleapis.com/CutoverJob"
+ }
+ ];
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have 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];
+}
+
+// Represents migration resource error information that can be used with
+// google.rpc.Status message. MigrationError is used to present the user with
+// error information in migration operations.
+message MigrationError {
+ // Represents resource error codes.
+ enum ErrorCode {
+ // Default value. This value is not used.
+ ERROR_CODE_UNSPECIFIED = 0;
+
+ // Migrate for Compute encountered an unknown error.
+ UNKNOWN_ERROR = 1;
+
+ // Migrate for Compute encountered an error while validating replication
+ // source health.
+ SOURCE_VALIDATION_ERROR = 2;
+
+ // Migrate for Compute encountered an error during source data operation.
+ SOURCE_REPLICATION_ERROR = 3;
+
+ // Migrate for Compute encountered an error during target data operation.
+ TARGET_REPLICATION_ERROR = 4;
+
+ // Migrate for Compute encountered an error during OS adaptation.
+ OS_ADAPTATION_ERROR = 5;
+
+ // Migrate for Compute encountered an error in clone operation.
+ CLONE_ERROR = 6;
+
+ // Migrate for Compute encountered an error in cutover operation.
+ CUTOVER_ERROR = 7;
+
+ // Migrate for Compute encountered an error during utilization report
+ // creation.
+ UTILIZATION_REPORT_ERROR = 8;
+
+ // Migrate for Compute encountered an error during appliance upgrade.
+ APPLIANCE_UPGRADE_ERROR = 9;
+ }
+
+ // Output only. The error code.
+ ErrorCode code = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The localized error message.
+ google.rpc.LocalizedMessage error_message = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Suggested action for solving the error.
+ google.rpc.LocalizedMessage action_item = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. URL(s) pointing to additional information on handling the
+ // current error.
+ repeated google.rpc.Help.Link help_links = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the error occurred.
+ google.protobuf.Timestamp error_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-vmmigration/protos/protos.d.ts b/packages/google-cloud-vmmigration/protos/protos.d.ts
new file mode 100644
index 00000000000..8eb3ba1064f
--- /dev/null
+++ b/packages/google-cloud-vmmigration/protos/protos.d.ts
@@ -0,0 +1,18254 @@
+// 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 vmmigration. */
+ namespace vmmigration {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a VmMigration */
+ class VmMigration extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new VmMigration 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 VmMigration 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): VmMigration;
+
+ /**
+ * Calls ListSources.
+ * @param request ListSourcesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListSourcesResponse
+ */
+ public listSources(request: google.cloud.vmmigration.v1.IListSourcesRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListSourcesCallback): void;
+
+ /**
+ * Calls ListSources.
+ * @param request ListSourcesRequest message or plain object
+ * @returns Promise
+ */
+ public listSources(request: google.cloud.vmmigration.v1.IListSourcesRequest): Promise;
+
+ /**
+ * Calls GetSource.
+ * @param request GetSourceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Source
+ */
+ public getSource(request: google.cloud.vmmigration.v1.IGetSourceRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetSourceCallback): void;
+
+ /**
+ * Calls GetSource.
+ * @param request GetSourceRequest message or plain object
+ * @returns Promise
+ */
+ public getSource(request: google.cloud.vmmigration.v1.IGetSourceRequest): Promise;
+
+ /**
+ * Calls CreateSource.
+ * @param request CreateSourceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createSource(request: google.cloud.vmmigration.v1.ICreateSourceRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateSourceCallback): void;
+
+ /**
+ * Calls CreateSource.
+ * @param request CreateSourceRequest message or plain object
+ * @returns Promise
+ */
+ public createSource(request: google.cloud.vmmigration.v1.ICreateSourceRequest): Promise;
+
+ /**
+ * Calls UpdateSource.
+ * @param request UpdateSourceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateSource(request: google.cloud.vmmigration.v1.IUpdateSourceRequest, callback: google.cloud.vmmigration.v1.VmMigration.UpdateSourceCallback): void;
+
+ /**
+ * Calls UpdateSource.
+ * @param request UpdateSourceRequest message or plain object
+ * @returns Promise
+ */
+ public updateSource(request: google.cloud.vmmigration.v1.IUpdateSourceRequest): Promise;
+
+ /**
+ * Calls DeleteSource.
+ * @param request DeleteSourceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteSource(request: google.cloud.vmmigration.v1.IDeleteSourceRequest, callback: google.cloud.vmmigration.v1.VmMigration.DeleteSourceCallback): void;
+
+ /**
+ * Calls DeleteSource.
+ * @param request DeleteSourceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteSource(request: google.cloud.vmmigration.v1.IDeleteSourceRequest): Promise;
+
+ /**
+ * Calls FetchInventory.
+ * @param request FetchInventoryRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchInventoryResponse
+ */
+ public fetchInventory(request: google.cloud.vmmigration.v1.IFetchInventoryRequest, callback: google.cloud.vmmigration.v1.VmMigration.FetchInventoryCallback): void;
+
+ /**
+ * Calls FetchInventory.
+ * @param request FetchInventoryRequest message or plain object
+ * @returns Promise
+ */
+ public fetchInventory(request: google.cloud.vmmigration.v1.IFetchInventoryRequest): Promise;
+
+ /**
+ * Calls ListUtilizationReports.
+ * @param request ListUtilizationReportsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListUtilizationReportsResponse
+ */
+ public listUtilizationReports(request: google.cloud.vmmigration.v1.IListUtilizationReportsRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListUtilizationReportsCallback): void;
+
+ /**
+ * Calls ListUtilizationReports.
+ * @param request ListUtilizationReportsRequest message or plain object
+ * @returns Promise
+ */
+ public listUtilizationReports(request: google.cloud.vmmigration.v1.IListUtilizationReportsRequest): Promise;
+
+ /**
+ * Calls GetUtilizationReport.
+ * @param request GetUtilizationReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and UtilizationReport
+ */
+ public getUtilizationReport(request: google.cloud.vmmigration.v1.IGetUtilizationReportRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetUtilizationReportCallback): void;
+
+ /**
+ * Calls GetUtilizationReport.
+ * @param request GetUtilizationReportRequest message or plain object
+ * @returns Promise
+ */
+ public getUtilizationReport(request: google.cloud.vmmigration.v1.IGetUtilizationReportRequest): Promise;
+
+ /**
+ * Calls CreateUtilizationReport.
+ * @param request CreateUtilizationReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createUtilizationReport(request: google.cloud.vmmigration.v1.ICreateUtilizationReportRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReportCallback): void;
+
+ /**
+ * Calls CreateUtilizationReport.
+ * @param request CreateUtilizationReportRequest message or plain object
+ * @returns Promise
+ */
+ public createUtilizationReport(request: google.cloud.vmmigration.v1.ICreateUtilizationReportRequest): Promise;
+
+ /**
+ * Calls DeleteUtilizationReport.
+ * @param request DeleteUtilizationReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteUtilizationReport(request: google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest, callback: google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReportCallback): void;
+
+ /**
+ * Calls DeleteUtilizationReport.
+ * @param request DeleteUtilizationReportRequest message or plain object
+ * @returns Promise
+ */
+ public deleteUtilizationReport(request: google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest): Promise;
+
+ /**
+ * Calls ListDatacenterConnectors.
+ * @param request ListDatacenterConnectorsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListDatacenterConnectorsResponse
+ */
+ public listDatacenterConnectors(request: google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectorsCallback): void;
+
+ /**
+ * Calls ListDatacenterConnectors.
+ * @param request ListDatacenterConnectorsRequest message or plain object
+ * @returns Promise
+ */
+ public listDatacenterConnectors(request: google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest): Promise;
+
+ /**
+ * Calls GetDatacenterConnector.
+ * @param request GetDatacenterConnectorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DatacenterConnector
+ */
+ public getDatacenterConnector(request: google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnectorCallback): void;
+
+ /**
+ * Calls GetDatacenterConnector.
+ * @param request GetDatacenterConnectorRequest message or plain object
+ * @returns Promise
+ */
+ public getDatacenterConnector(request: google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest): Promise;
+
+ /**
+ * Calls CreateDatacenterConnector.
+ * @param request CreateDatacenterConnectorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createDatacenterConnector(request: google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnectorCallback): void;
+
+ /**
+ * Calls CreateDatacenterConnector.
+ * @param request CreateDatacenterConnectorRequest message or plain object
+ * @returns Promise
+ */
+ public createDatacenterConnector(request: google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest): Promise;
+
+ /**
+ * Calls DeleteDatacenterConnector.
+ * @param request DeleteDatacenterConnectorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteDatacenterConnector(request: google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest, callback: google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnectorCallback): void;
+
+ /**
+ * Calls DeleteDatacenterConnector.
+ * @param request DeleteDatacenterConnectorRequest message or plain object
+ * @returns Promise
+ */
+ public deleteDatacenterConnector(request: google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest): Promise;
+
+ /**
+ * Calls UpgradeAppliance.
+ * @param request UpgradeApplianceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public upgradeAppliance(request: google.cloud.vmmigration.v1.IUpgradeApplianceRequest, callback: google.cloud.vmmigration.v1.VmMigration.UpgradeApplianceCallback): void;
+
+ /**
+ * Calls UpgradeAppliance.
+ * @param request UpgradeApplianceRequest message or plain object
+ * @returns Promise
+ */
+ public upgradeAppliance(request: google.cloud.vmmigration.v1.IUpgradeApplianceRequest): Promise;
+
+ /**
+ * Calls CreateMigratingVm.
+ * @param request CreateMigratingVmRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createMigratingVm(request: google.cloud.vmmigration.v1.ICreateMigratingVmRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateMigratingVmCallback): void;
+
+ /**
+ * Calls CreateMigratingVm.
+ * @param request CreateMigratingVmRequest message or plain object
+ * @returns Promise
+ */
+ public createMigratingVm(request: google.cloud.vmmigration.v1.ICreateMigratingVmRequest): Promise;
+
+ /**
+ * Calls ListMigratingVms.
+ * @param request ListMigratingVmsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListMigratingVmsResponse
+ */
+ public listMigratingVms(request: google.cloud.vmmigration.v1.IListMigratingVmsRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListMigratingVmsCallback): void;
+
+ /**
+ * Calls ListMigratingVms.
+ * @param request ListMigratingVmsRequest message or plain object
+ * @returns Promise
+ */
+ public listMigratingVms(request: google.cloud.vmmigration.v1.IListMigratingVmsRequest): Promise;
+
+ /**
+ * Calls GetMigratingVm.
+ * @param request GetMigratingVmRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and MigratingVm
+ */
+ public getMigratingVm(request: google.cloud.vmmigration.v1.IGetMigratingVmRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetMigratingVmCallback): void;
+
+ /**
+ * Calls GetMigratingVm.
+ * @param request GetMigratingVmRequest message or plain object
+ * @returns Promise
+ */
+ public getMigratingVm(request: google.cloud.vmmigration.v1.IGetMigratingVmRequest): Promise;
+
+ /**
+ * Calls UpdateMigratingVm.
+ * @param request UpdateMigratingVmRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateMigratingVm(request: google.cloud.vmmigration.v1.IUpdateMigratingVmRequest, callback: google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVmCallback): void;
+
+ /**
+ * Calls UpdateMigratingVm.
+ * @param request UpdateMigratingVmRequest message or plain object
+ * @returns Promise
+ */
+ public updateMigratingVm(request: google.cloud.vmmigration.v1.IUpdateMigratingVmRequest): Promise;
+
+ /**
+ * Calls DeleteMigratingVm.
+ * @param request DeleteMigratingVmRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteMigratingVm(request: google.cloud.vmmigration.v1.IDeleteMigratingVmRequest, callback: google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVmCallback): void;
+
+ /**
+ * Calls DeleteMigratingVm.
+ * @param request DeleteMigratingVmRequest message or plain object
+ * @returns Promise
+ */
+ public deleteMigratingVm(request: google.cloud.vmmigration.v1.IDeleteMigratingVmRequest): Promise;
+
+ /**
+ * Calls StartMigration.
+ * @param request StartMigrationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public startMigration(request: google.cloud.vmmigration.v1.IStartMigrationRequest, callback: google.cloud.vmmigration.v1.VmMigration.StartMigrationCallback): void;
+
+ /**
+ * Calls StartMigration.
+ * @param request StartMigrationRequest message or plain object
+ * @returns Promise
+ */
+ public startMigration(request: google.cloud.vmmigration.v1.IStartMigrationRequest): Promise;
+
+ /**
+ * Calls ResumeMigration.
+ * @param request ResumeMigrationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public resumeMigration(request: google.cloud.vmmigration.v1.IResumeMigrationRequest, callback: google.cloud.vmmigration.v1.VmMigration.ResumeMigrationCallback): void;
+
+ /**
+ * Calls ResumeMigration.
+ * @param request ResumeMigrationRequest message or plain object
+ * @returns Promise
+ */
+ public resumeMigration(request: google.cloud.vmmigration.v1.IResumeMigrationRequest): Promise;
+
+ /**
+ * Calls PauseMigration.
+ * @param request PauseMigrationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public pauseMigration(request: google.cloud.vmmigration.v1.IPauseMigrationRequest, callback: google.cloud.vmmigration.v1.VmMigration.PauseMigrationCallback): void;
+
+ /**
+ * Calls PauseMigration.
+ * @param request PauseMigrationRequest message or plain object
+ * @returns Promise
+ */
+ public pauseMigration(request: google.cloud.vmmigration.v1.IPauseMigrationRequest): Promise;
+
+ /**
+ * Calls FinalizeMigration.
+ * @param request FinalizeMigrationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public finalizeMigration(request: google.cloud.vmmigration.v1.IFinalizeMigrationRequest, callback: google.cloud.vmmigration.v1.VmMigration.FinalizeMigrationCallback): void;
+
+ /**
+ * Calls FinalizeMigration.
+ * @param request FinalizeMigrationRequest message or plain object
+ * @returns Promise
+ */
+ public finalizeMigration(request: google.cloud.vmmigration.v1.IFinalizeMigrationRequest): Promise;
+
+ /**
+ * Calls CreateCloneJob.
+ * @param request CreateCloneJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createCloneJob(request: google.cloud.vmmigration.v1.ICreateCloneJobRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateCloneJobCallback): void;
+
+ /**
+ * Calls CreateCloneJob.
+ * @param request CreateCloneJobRequest message or plain object
+ * @returns Promise
+ */
+ public createCloneJob(request: google.cloud.vmmigration.v1.ICreateCloneJobRequest): Promise;
+
+ /**
+ * Calls CancelCloneJob.
+ * @param request CancelCloneJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public cancelCloneJob(request: google.cloud.vmmigration.v1.ICancelCloneJobRequest, callback: google.cloud.vmmigration.v1.VmMigration.CancelCloneJobCallback): void;
+
+ /**
+ * Calls CancelCloneJob.
+ * @param request CancelCloneJobRequest message or plain object
+ * @returns Promise
+ */
+ public cancelCloneJob(request: google.cloud.vmmigration.v1.ICancelCloneJobRequest): Promise;
+
+ /**
+ * Calls ListCloneJobs.
+ * @param request ListCloneJobsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCloneJobsResponse
+ */
+ public listCloneJobs(request: google.cloud.vmmigration.v1.IListCloneJobsRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListCloneJobsCallback): void;
+
+ /**
+ * Calls ListCloneJobs.
+ * @param request ListCloneJobsRequest message or plain object
+ * @returns Promise
+ */
+ public listCloneJobs(request: google.cloud.vmmigration.v1.IListCloneJobsRequest): Promise;
+
+ /**
+ * Calls GetCloneJob.
+ * @param request GetCloneJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CloneJob
+ */
+ public getCloneJob(request: google.cloud.vmmigration.v1.IGetCloneJobRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetCloneJobCallback): void;
+
+ /**
+ * Calls GetCloneJob.
+ * @param request GetCloneJobRequest message or plain object
+ * @returns Promise
+ */
+ public getCloneJob(request: google.cloud.vmmigration.v1.IGetCloneJobRequest): Promise;
+
+ /**
+ * Calls CreateCutoverJob.
+ * @param request CreateCutoverJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createCutoverJob(request: google.cloud.vmmigration.v1.ICreateCutoverJobRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateCutoverJobCallback): void;
+
+ /**
+ * Calls CreateCutoverJob.
+ * @param request CreateCutoverJobRequest message or plain object
+ * @returns Promise
+ */
+ public createCutoverJob(request: google.cloud.vmmigration.v1.ICreateCutoverJobRequest): Promise;
+
+ /**
+ * Calls CancelCutoverJob.
+ * @param request CancelCutoverJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public cancelCutoverJob(request: google.cloud.vmmigration.v1.ICancelCutoverJobRequest, callback: google.cloud.vmmigration.v1.VmMigration.CancelCutoverJobCallback): void;
+
+ /**
+ * Calls CancelCutoverJob.
+ * @param request CancelCutoverJobRequest message or plain object
+ * @returns Promise
+ */
+ public cancelCutoverJob(request: google.cloud.vmmigration.v1.ICancelCutoverJobRequest): Promise;
+
+ /**
+ * Calls ListCutoverJobs.
+ * @param request ListCutoverJobsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListCutoverJobsResponse
+ */
+ public listCutoverJobs(request: google.cloud.vmmigration.v1.IListCutoverJobsRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListCutoverJobsCallback): void;
+
+ /**
+ * Calls ListCutoverJobs.
+ * @param request ListCutoverJobsRequest message or plain object
+ * @returns Promise
+ */
+ public listCutoverJobs(request: google.cloud.vmmigration.v1.IListCutoverJobsRequest): Promise;
+
+ /**
+ * Calls GetCutoverJob.
+ * @param request GetCutoverJobRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CutoverJob
+ */
+ public getCutoverJob(request: google.cloud.vmmigration.v1.IGetCutoverJobRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetCutoverJobCallback): void;
+
+ /**
+ * Calls GetCutoverJob.
+ * @param request GetCutoverJobRequest message or plain object
+ * @returns Promise
+ */
+ public getCutoverJob(request: google.cloud.vmmigration.v1.IGetCutoverJobRequest): Promise;
+
+ /**
+ * Calls ListGroups.
+ * @param request ListGroupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListGroupsResponse
+ */
+ public listGroups(request: google.cloud.vmmigration.v1.IListGroupsRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListGroupsCallback): void;
+
+ /**
+ * Calls ListGroups.
+ * @param request ListGroupsRequest message or plain object
+ * @returns Promise
+ */
+ public listGroups(request: google.cloud.vmmigration.v1.IListGroupsRequest): Promise;
+
+ /**
+ * Calls GetGroup.
+ * @param request GetGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Group
+ */
+ public getGroup(request: google.cloud.vmmigration.v1.IGetGroupRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetGroupCallback): void;
+
+ /**
+ * Calls GetGroup.
+ * @param request GetGroupRequest message or plain object
+ * @returns Promise
+ */
+ public getGroup(request: google.cloud.vmmigration.v1.IGetGroupRequest): Promise;
+
+ /**
+ * Calls CreateGroup.
+ * @param request CreateGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createGroup(request: google.cloud.vmmigration.v1.ICreateGroupRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateGroupCallback): void;
+
+ /**
+ * Calls CreateGroup.
+ * @param request CreateGroupRequest message or plain object
+ * @returns Promise
+ */
+ public createGroup(request: google.cloud.vmmigration.v1.ICreateGroupRequest): Promise;
+
+ /**
+ * Calls UpdateGroup.
+ * @param request UpdateGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateGroup(request: google.cloud.vmmigration.v1.IUpdateGroupRequest, callback: google.cloud.vmmigration.v1.VmMigration.UpdateGroupCallback): void;
+
+ /**
+ * Calls UpdateGroup.
+ * @param request UpdateGroupRequest message or plain object
+ * @returns Promise
+ */
+ public updateGroup(request: google.cloud.vmmigration.v1.IUpdateGroupRequest): Promise;
+
+ /**
+ * Calls DeleteGroup.
+ * @param request DeleteGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteGroup(request: google.cloud.vmmigration.v1.IDeleteGroupRequest, callback: google.cloud.vmmigration.v1.VmMigration.DeleteGroupCallback): void;
+
+ /**
+ * Calls DeleteGroup.
+ * @param request DeleteGroupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteGroup(request: google.cloud.vmmigration.v1.IDeleteGroupRequest): Promise;
+
+ /**
+ * Calls AddGroupMigration.
+ * @param request AddGroupMigrationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public addGroupMigration(request: google.cloud.vmmigration.v1.IAddGroupMigrationRequest, callback: google.cloud.vmmigration.v1.VmMigration.AddGroupMigrationCallback): void;
+
+ /**
+ * Calls AddGroupMigration.
+ * @param request AddGroupMigrationRequest message or plain object
+ * @returns Promise
+ */
+ public addGroupMigration(request: google.cloud.vmmigration.v1.IAddGroupMigrationRequest): Promise;
+
+ /**
+ * Calls RemoveGroupMigration.
+ * @param request RemoveGroupMigrationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public removeGroupMigration(request: google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest, callback: google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigrationCallback): void;
+
+ /**
+ * Calls RemoveGroupMigration.
+ * @param request RemoveGroupMigrationRequest message or plain object
+ * @returns Promise
+ */
+ public removeGroupMigration(request: google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest): Promise;
+
+ /**
+ * Calls ListTargetProjects.
+ * @param request ListTargetProjectsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListTargetProjectsResponse
+ */
+ public listTargetProjects(request: google.cloud.vmmigration.v1.IListTargetProjectsRequest, callback: google.cloud.vmmigration.v1.VmMigration.ListTargetProjectsCallback): void;
+
+ /**
+ * Calls ListTargetProjects.
+ * @param request ListTargetProjectsRequest message or plain object
+ * @returns Promise
+ */
+ public listTargetProjects(request: google.cloud.vmmigration.v1.IListTargetProjectsRequest): Promise;
+
+ /**
+ * Calls GetTargetProject.
+ * @param request GetTargetProjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TargetProject
+ */
+ public getTargetProject(request: google.cloud.vmmigration.v1.IGetTargetProjectRequest, callback: google.cloud.vmmigration.v1.VmMigration.GetTargetProjectCallback): void;
+
+ /**
+ * Calls GetTargetProject.
+ * @param request GetTargetProjectRequest message or plain object
+ * @returns Promise
+ */
+ public getTargetProject(request: google.cloud.vmmigration.v1.IGetTargetProjectRequest): Promise;
+
+ /**
+ * Calls CreateTargetProject.
+ * @param request CreateTargetProjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createTargetProject(request: google.cloud.vmmigration.v1.ICreateTargetProjectRequest, callback: google.cloud.vmmigration.v1.VmMigration.CreateTargetProjectCallback): void;
+
+ /**
+ * Calls CreateTargetProject.
+ * @param request CreateTargetProjectRequest message or plain object
+ * @returns Promise
+ */
+ public createTargetProject(request: google.cloud.vmmigration.v1.ICreateTargetProjectRequest): Promise;
+
+ /**
+ * Calls UpdateTargetProject.
+ * @param request UpdateTargetProjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateTargetProject(request: google.cloud.vmmigration.v1.IUpdateTargetProjectRequest, callback: google.cloud.vmmigration.v1.VmMigration.UpdateTargetProjectCallback): void;
+
+ /**
+ * Calls UpdateTargetProject.
+ * @param request UpdateTargetProjectRequest message or plain object
+ * @returns Promise
+ */
+ public updateTargetProject(request: google.cloud.vmmigration.v1.IUpdateTargetProjectRequest): Promise;
+
+ /**
+ * Calls DeleteTargetProject.
+ * @param request DeleteTargetProjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteTargetProject(request: google.cloud.vmmigration.v1.IDeleteTargetProjectRequest, callback: google.cloud.vmmigration.v1.VmMigration.DeleteTargetProjectCallback): void;
+
+ /**
+ * Calls DeleteTargetProject.
+ * @param request DeleteTargetProjectRequest message or plain object
+ * @returns Promise
+ */
+ public deleteTargetProject(request: google.cloud.vmmigration.v1.IDeleteTargetProjectRequest): Promise;
+ }
+
+ namespace VmMigration {
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listSources}.
+ * @param error Error, if any
+ * @param [response] ListSourcesResponse
+ */
+ type ListSourcesCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListSourcesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getSource}.
+ * @param error Error, if any
+ * @param [response] Source
+ */
+ type GetSourceCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.Source) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createSource}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateSourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateSource}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateSourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteSource}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteSourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|fetchInventory}.
+ * @param error Error, if any
+ * @param [response] FetchInventoryResponse
+ */
+ type FetchInventoryCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.FetchInventoryResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listUtilizationReports}.
+ * @param error Error, if any
+ * @param [response] ListUtilizationReportsResponse
+ */
+ type ListUtilizationReportsCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListUtilizationReportsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getUtilizationReport}.
+ * @param error Error, if any
+ * @param [response] UtilizationReport
+ */
+ type GetUtilizationReportCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.UtilizationReport) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createUtilizationReport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateUtilizationReportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteUtilizationReport}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteUtilizationReportCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listDatacenterConnectors}.
+ * @param error Error, if any
+ * @param [response] ListDatacenterConnectorsResponse
+ */
+ type ListDatacenterConnectorsCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getDatacenterConnector}.
+ * @param error Error, if any
+ * @param [response] DatacenterConnector
+ */
+ type GetDatacenterConnectorCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.DatacenterConnector) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createDatacenterConnector}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateDatacenterConnectorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteDatacenterConnector}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteDatacenterConnectorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|upgradeAppliance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpgradeApplianceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createMigratingVm}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateMigratingVmCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listMigratingVms}.
+ * @param error Error, if any
+ * @param [response] ListMigratingVmsResponse
+ */
+ type ListMigratingVmsCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListMigratingVmsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getMigratingVm}.
+ * @param error Error, if any
+ * @param [response] MigratingVm
+ */
+ type GetMigratingVmCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.MigratingVm) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateMigratingVm}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateMigratingVmCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteMigratingVm}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteMigratingVmCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|startMigration}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type StartMigrationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|resumeMigration}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type ResumeMigrationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|pauseMigration}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type PauseMigrationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|finalizeMigration}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type FinalizeMigrationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createCloneJob}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateCloneJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|cancelCloneJob}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CancelCloneJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listCloneJobs}.
+ * @param error Error, if any
+ * @param [response] ListCloneJobsResponse
+ */
+ type ListCloneJobsCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListCloneJobsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getCloneJob}.
+ * @param error Error, if any
+ * @param [response] CloneJob
+ */
+ type GetCloneJobCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.CloneJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createCutoverJob}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateCutoverJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|cancelCutoverJob}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CancelCutoverJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listCutoverJobs}.
+ * @param error Error, if any
+ * @param [response] ListCutoverJobsResponse
+ */
+ type ListCutoverJobsCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListCutoverJobsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getCutoverJob}.
+ * @param error Error, if any
+ * @param [response] CutoverJob
+ */
+ type GetCutoverJobCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.CutoverJob) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listGroups}.
+ * @param error Error, if any
+ * @param [response] ListGroupsResponse
+ */
+ type ListGroupsCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListGroupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getGroup}.
+ * @param error Error, if any
+ * @param [response] Group
+ */
+ type GetGroupCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.Group) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createGroup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateGroupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateGroup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateGroupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteGroup}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteGroupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|addGroupMigration}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type AddGroupMigrationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|removeGroupMigration}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RemoveGroupMigrationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listTargetProjects}.
+ * @param error Error, if any
+ * @param [response] ListTargetProjectsResponse
+ */
+ type ListTargetProjectsCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.ListTargetProjectsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getTargetProject}.
+ * @param error Error, if any
+ * @param [response] TargetProject
+ */
+ type GetTargetProjectCallback = (error: (Error|null), response?: google.cloud.vmmigration.v1.TargetProject) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createTargetProject}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateTargetProjectCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateTargetProject}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateTargetProjectCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteTargetProject}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteTargetProjectCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** UtilizationReportView enum. */
+ enum UtilizationReportView {
+ UTILIZATION_REPORT_VIEW_UNSPECIFIED = 0,
+ BASIC = 1,
+ FULL = 2
+ }
+
+ /** MigratingVmView enum. */
+ enum MigratingVmView {
+ MIGRATING_VM_VIEW_UNSPECIFIED = 0,
+ MIGRATING_VM_VIEW_BASIC = 1,
+ MIGRATING_VM_VIEW_FULL = 2
+ }
+
+ /** ComputeEngineDiskType enum. */
+ enum ComputeEngineDiskType {
+ COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED = 0,
+ COMPUTE_ENGINE_DISK_TYPE_STANDARD = 1,
+ COMPUTE_ENGINE_DISK_TYPE_SSD = 2,
+ COMPUTE_ENGINE_DISK_TYPE_BALANCED = 3
+ }
+
+ /** ComputeEngineLicenseType enum. */
+ enum ComputeEngineLicenseType {
+ COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT = 0,
+ COMPUTE_ENGINE_LICENSE_TYPE_PAYG = 1,
+ COMPUTE_ENGINE_LICENSE_TYPE_BYOL = 2
+ }
+
+ /** ComputeEngineBootOption enum. */
+ enum ComputeEngineBootOption {
+ COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED = 0,
+ COMPUTE_ENGINE_BOOT_OPTION_EFI = 1,
+ COMPUTE_ENGINE_BOOT_OPTION_BIOS = 2
+ }
+
+ /** Properties of a ReplicationCycle. */
+ interface IReplicationCycle {
+
+ /** ReplicationCycle startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReplicationCycle progressPercent */
+ progressPercent?: (number|null);
+ }
+
+ /** Represents a ReplicationCycle. */
+ class ReplicationCycle implements IReplicationCycle {
+
+ /**
+ * Constructs a new ReplicationCycle.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IReplicationCycle);
+
+ /** ReplicationCycle startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReplicationCycle progressPercent. */
+ public progressPercent: number;
+
+ /**
+ * Creates a new ReplicationCycle instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReplicationCycle instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IReplicationCycle): google.cloud.vmmigration.v1.ReplicationCycle;
+
+ /**
+ * Encodes the specified ReplicationCycle message. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationCycle.verify|verify} messages.
+ * @param message ReplicationCycle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IReplicationCycle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReplicationCycle message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationCycle.verify|verify} messages.
+ * @param message ReplicationCycle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IReplicationCycle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReplicationCycle message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReplicationCycle
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ReplicationCycle;
+
+ /**
+ * Decodes a ReplicationCycle message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReplicationCycle
+ * @throws {Error} If the payload 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.vmmigration.v1.ReplicationCycle;
+
+ /**
+ * Verifies a ReplicationCycle message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReplicationCycle message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReplicationCycle
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ReplicationCycle;
+
+ /**
+ * Creates a plain object from a ReplicationCycle message. Also converts values to other types if specified.
+ * @param message ReplicationCycle
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ReplicationCycle, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReplicationCycle to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReplicationCycle
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReplicationSync. */
+ interface IReplicationSync {
+
+ /** ReplicationSync lastSyncTime */
+ lastSyncTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a ReplicationSync. */
+ class ReplicationSync implements IReplicationSync {
+
+ /**
+ * Constructs a new ReplicationSync.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IReplicationSync);
+
+ /** ReplicationSync lastSyncTime. */
+ public lastSyncTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ReplicationSync instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReplicationSync instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IReplicationSync): google.cloud.vmmigration.v1.ReplicationSync;
+
+ /**
+ * Encodes the specified ReplicationSync message. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationSync.verify|verify} messages.
+ * @param message ReplicationSync message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IReplicationSync, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReplicationSync message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationSync.verify|verify} messages.
+ * @param message ReplicationSync message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IReplicationSync, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReplicationSync message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReplicationSync
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ReplicationSync;
+
+ /**
+ * Decodes a ReplicationSync message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReplicationSync
+ * @throws {Error} If the payload 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.vmmigration.v1.ReplicationSync;
+
+ /**
+ * Verifies a ReplicationSync message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReplicationSync message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReplicationSync
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ReplicationSync;
+
+ /**
+ * Creates a plain object from a ReplicationSync message. Also converts values to other types if specified.
+ * @param message ReplicationSync
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ReplicationSync, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReplicationSync to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReplicationSync
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MigratingVm. */
+ interface IMigratingVm {
+
+ /** MigratingVm computeEngineTargetDefaults */
+ computeEngineTargetDefaults?: (google.cloud.vmmigration.v1.IComputeEngineTargetDefaults|null);
+
+ /** MigratingVm name */
+ name?: (string|null);
+
+ /** MigratingVm sourceVmId */
+ sourceVmId?: (string|null);
+
+ /** MigratingVm displayName */
+ displayName?: (string|null);
+
+ /** MigratingVm description */
+ description?: (string|null);
+
+ /** MigratingVm policy */
+ policy?: (google.cloud.vmmigration.v1.ISchedulePolicy|null);
+
+ /** MigratingVm createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MigratingVm updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MigratingVm lastSync */
+ lastSync?: (google.cloud.vmmigration.v1.IReplicationSync|null);
+
+ /** MigratingVm state */
+ state?: (google.cloud.vmmigration.v1.MigratingVm.State|keyof typeof google.cloud.vmmigration.v1.MigratingVm.State|null);
+
+ /** MigratingVm stateTime */
+ stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MigratingVm currentSyncInfo */
+ currentSyncInfo?: (google.cloud.vmmigration.v1.IReplicationCycle|null);
+
+ /** MigratingVm group */
+ group?: (string|null);
+
+ /** MigratingVm labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** MigratingVm recentCloneJobs */
+ recentCloneJobs?: (google.cloud.vmmigration.v1.ICloneJob[]|null);
+
+ /** MigratingVm error */
+ error?: (google.rpc.IStatus|null);
+
+ /** MigratingVm recentCutoverJobs */
+ recentCutoverJobs?: (google.cloud.vmmigration.v1.ICutoverJob[]|null);
+ }
+
+ /** Represents a MigratingVm. */
+ class MigratingVm implements IMigratingVm {
+
+ /**
+ * Constructs a new MigratingVm.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IMigratingVm);
+
+ /** MigratingVm computeEngineTargetDefaults. */
+ public computeEngineTargetDefaults?: (google.cloud.vmmigration.v1.IComputeEngineTargetDefaults|null);
+
+ /** MigratingVm name. */
+ public name: string;
+
+ /** MigratingVm sourceVmId. */
+ public sourceVmId: string;
+
+ /** MigratingVm displayName. */
+ public displayName: string;
+
+ /** MigratingVm description. */
+ public description: string;
+
+ /** MigratingVm policy. */
+ public policy?: (google.cloud.vmmigration.v1.ISchedulePolicy|null);
+
+ /** MigratingVm createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** MigratingVm updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MigratingVm lastSync. */
+ public lastSync?: (google.cloud.vmmigration.v1.IReplicationSync|null);
+
+ /** MigratingVm state. */
+ public state: (google.cloud.vmmigration.v1.MigratingVm.State|keyof typeof google.cloud.vmmigration.v1.MigratingVm.State);
+
+ /** MigratingVm stateTime. */
+ public stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** MigratingVm currentSyncInfo. */
+ public currentSyncInfo?: (google.cloud.vmmigration.v1.IReplicationCycle|null);
+
+ /** MigratingVm group. */
+ public group: string;
+
+ /** MigratingVm labels. */
+ public labels: { [k: string]: string };
+
+ /** MigratingVm recentCloneJobs. */
+ public recentCloneJobs: google.cloud.vmmigration.v1.ICloneJob[];
+
+ /** MigratingVm error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** MigratingVm recentCutoverJobs. */
+ public recentCutoverJobs: google.cloud.vmmigration.v1.ICutoverJob[];
+
+ /** MigratingVm targetVmDefaults. */
+ public targetVmDefaults?: "computeEngineTargetDefaults";
+
+ /**
+ * Creates a new MigratingVm instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MigratingVm instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IMigratingVm): google.cloud.vmmigration.v1.MigratingVm;
+
+ /**
+ * Encodes the specified MigratingVm message. Does not implicitly {@link google.cloud.vmmigration.v1.MigratingVm.verify|verify} messages.
+ * @param message MigratingVm message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IMigratingVm, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MigratingVm message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.MigratingVm.verify|verify} messages.
+ * @param message MigratingVm message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IMigratingVm, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MigratingVm message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MigratingVm
+ * @throws {Error} If the payload is not 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.vmmigration.v1.MigratingVm;
+
+ /**
+ * Decodes a MigratingVm message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MigratingVm
+ * @throws {Error} If the payload 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.vmmigration.v1.MigratingVm;
+
+ /**
+ * Verifies a MigratingVm message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MigratingVm message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MigratingVm
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.MigratingVm;
+
+ /**
+ * Creates a plain object from a MigratingVm message. Also converts values to other types if specified.
+ * @param message MigratingVm
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.MigratingVm, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MigratingVm to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MigratingVm
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MigratingVm {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ READY = 2,
+ FIRST_SYNC = 3,
+ ACTIVE = 4,
+ CUTTING_OVER = 7,
+ CUTOVER = 8,
+ FINAL_SYNC = 9,
+ PAUSED = 10,
+ FINALIZING = 11,
+ FINALIZED = 12,
+ ERROR = 13
+ }
+ }
+
+ /** Properties of a CloneJob. */
+ interface ICloneJob {
+
+ /** CloneJob computeEngineTargetDetails */
+ computeEngineTargetDetails?: (google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null);
+
+ /** CloneJob createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneJob endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneJob name */
+ name?: (string|null);
+
+ /** CloneJob state */
+ state?: (google.cloud.vmmigration.v1.CloneJob.State|keyof typeof google.cloud.vmmigration.v1.CloneJob.State|null);
+
+ /** CloneJob stateTime */
+ stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneJob error */
+ error?: (google.rpc.IStatus|null);
+ }
+
+ /** Represents a CloneJob. */
+ class CloneJob implements ICloneJob {
+
+ /**
+ * Constructs a new CloneJob.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICloneJob);
+
+ /** CloneJob computeEngineTargetDetails. */
+ public computeEngineTargetDetails?: (google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null);
+
+ /** CloneJob createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneJob endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneJob name. */
+ public name: string;
+
+ /** CloneJob state. */
+ public state: (google.cloud.vmmigration.v1.CloneJob.State|keyof typeof google.cloud.vmmigration.v1.CloneJob.State);
+
+ /** CloneJob stateTime. */
+ public stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloneJob error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** CloneJob targetVmDetails. */
+ public targetVmDetails?: "computeEngineTargetDetails";
+
+ /**
+ * Creates a new CloneJob instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloneJob instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICloneJob): google.cloud.vmmigration.v1.CloneJob;
+
+ /**
+ * Encodes the specified CloneJob message. Does not implicitly {@link google.cloud.vmmigration.v1.CloneJob.verify|verify} messages.
+ * @param message CloneJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICloneJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloneJob message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CloneJob.verify|verify} messages.
+ * @param message CloneJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICloneJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloneJob message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloneJob
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CloneJob;
+
+ /**
+ * Decodes a CloneJob message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloneJob
+ * @throws {Error} If the payload 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.vmmigration.v1.CloneJob;
+
+ /**
+ * Verifies a CloneJob message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CloneJob message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloneJob
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CloneJob;
+
+ /**
+ * Creates a plain object from a CloneJob message. Also converts values to other types if specified.
+ * @param message CloneJob
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CloneJob, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloneJob to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloneJob
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CloneJob {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ ACTIVE = 2,
+ FAILED = 3,
+ SUCCEEDED = 4,
+ CANCELLED = 5,
+ CANCELLING = 6,
+ ADAPTING_OS = 7
+ }
+ }
+
+ /** Properties of a CutoverJob. */
+ interface ICutoverJob {
+
+ /** CutoverJob computeEngineTargetDetails */
+ computeEngineTargetDetails?: (google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null);
+
+ /** CutoverJob createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CutoverJob endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CutoverJob name */
+ name?: (string|null);
+
+ /** CutoverJob state */
+ state?: (google.cloud.vmmigration.v1.CutoverJob.State|keyof typeof google.cloud.vmmigration.v1.CutoverJob.State|null);
+
+ /** CutoverJob stateTime */
+ stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CutoverJob progressPercent */
+ progressPercent?: (number|null);
+
+ /** CutoverJob error */
+ error?: (google.rpc.IStatus|null);
+
+ /** CutoverJob stateMessage */
+ stateMessage?: (string|null);
+ }
+
+ /** Represents a CutoverJob. */
+ class CutoverJob implements ICutoverJob {
+
+ /**
+ * Constructs a new CutoverJob.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICutoverJob);
+
+ /** CutoverJob computeEngineTargetDetails. */
+ public computeEngineTargetDetails?: (google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null);
+
+ /** CutoverJob createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CutoverJob endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CutoverJob name. */
+ public name: string;
+
+ /** CutoverJob state. */
+ public state: (google.cloud.vmmigration.v1.CutoverJob.State|keyof typeof google.cloud.vmmigration.v1.CutoverJob.State);
+
+ /** CutoverJob stateTime. */
+ public stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CutoverJob progressPercent. */
+ public progressPercent: number;
+
+ /** CutoverJob error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** CutoverJob stateMessage. */
+ public stateMessage: string;
+
+ /** CutoverJob targetVmDetails. */
+ public targetVmDetails?: "computeEngineTargetDetails";
+
+ /**
+ * Creates a new CutoverJob instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CutoverJob instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICutoverJob): google.cloud.vmmigration.v1.CutoverJob;
+
+ /**
+ * Encodes the specified CutoverJob message. Does not implicitly {@link google.cloud.vmmigration.v1.CutoverJob.verify|verify} messages.
+ * @param message CutoverJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICutoverJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CutoverJob message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CutoverJob.verify|verify} messages.
+ * @param message CutoverJob message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICutoverJob, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CutoverJob message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CutoverJob
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CutoverJob;
+
+ /**
+ * Decodes a CutoverJob message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CutoverJob
+ * @throws {Error} If the payload 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.vmmigration.v1.CutoverJob;
+
+ /**
+ * Verifies a CutoverJob message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CutoverJob message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CutoverJob
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CutoverJob;
+
+ /**
+ * Creates a plain object from a CutoverJob message. Also converts values to other types if specified.
+ * @param message CutoverJob
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CutoverJob, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CutoverJob to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CutoverJob
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CutoverJob {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ FAILED = 2,
+ SUCCEEDED = 3,
+ CANCELLED = 4,
+ CANCELLING = 5,
+ ACTIVE = 6,
+ ADAPTING_OS = 7
+ }
+ }
+
+ /** Properties of a CreateCloneJobRequest. */
+ interface ICreateCloneJobRequest {
+
+ /** CreateCloneJobRequest parent */
+ parent?: (string|null);
+
+ /** CreateCloneJobRequest cloneJobId */
+ cloneJobId?: (string|null);
+
+ /** CreateCloneJobRequest cloneJob */
+ cloneJob?: (google.cloud.vmmigration.v1.ICloneJob|null);
+
+ /** CreateCloneJobRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateCloneJobRequest. */
+ class CreateCloneJobRequest implements ICreateCloneJobRequest {
+
+ /**
+ * Constructs a new CreateCloneJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateCloneJobRequest);
+
+ /** CreateCloneJobRequest parent. */
+ public parent: string;
+
+ /** CreateCloneJobRequest cloneJobId. */
+ public cloneJobId: string;
+
+ /** CreateCloneJobRequest cloneJob. */
+ public cloneJob?: (google.cloud.vmmigration.v1.ICloneJob|null);
+
+ /** CreateCloneJobRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateCloneJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateCloneJobRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateCloneJobRequest): google.cloud.vmmigration.v1.CreateCloneJobRequest;
+
+ /**
+ * Encodes the specified CreateCloneJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateCloneJobRequest.verify|verify} messages.
+ * @param message CreateCloneJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateCloneJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateCloneJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateCloneJobRequest.verify|verify} messages.
+ * @param message CreateCloneJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateCloneJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateCloneJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateCloneJobRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateCloneJobRequest;
+
+ /**
+ * Decodes a CreateCloneJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateCloneJobRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateCloneJobRequest;
+
+ /**
+ * Verifies a CreateCloneJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateCloneJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateCloneJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateCloneJobRequest;
+
+ /**
+ * Creates a plain object from a CreateCloneJobRequest message. Also converts values to other types if specified.
+ * @param message CreateCloneJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateCloneJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateCloneJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateCloneJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelCloneJobRequest. */
+ interface ICancelCloneJobRequest {
+
+ /** CancelCloneJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelCloneJobRequest. */
+ class CancelCloneJobRequest implements ICancelCloneJobRequest {
+
+ /**
+ * Constructs a new CancelCloneJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICancelCloneJobRequest);
+
+ /** CancelCloneJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelCloneJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelCloneJobRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICancelCloneJobRequest): google.cloud.vmmigration.v1.CancelCloneJobRequest;
+
+ /**
+ * Encodes the specified CancelCloneJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobRequest.verify|verify} messages.
+ * @param message CancelCloneJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICancelCloneJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelCloneJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobRequest.verify|verify} messages.
+ * @param message CancelCloneJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICancelCloneJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelCloneJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelCloneJobRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CancelCloneJobRequest;
+
+ /**
+ * Decodes a CancelCloneJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelCloneJobRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CancelCloneJobRequest;
+
+ /**
+ * Verifies a CancelCloneJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelCloneJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelCloneJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CancelCloneJobRequest;
+
+ /**
+ * Creates a plain object from a CancelCloneJobRequest message. Also converts values to other types if specified.
+ * @param message CancelCloneJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CancelCloneJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelCloneJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelCloneJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelCloneJobResponse. */
+ interface ICancelCloneJobResponse {
+ }
+
+ /** Represents a CancelCloneJobResponse. */
+ class CancelCloneJobResponse implements ICancelCloneJobResponse {
+
+ /**
+ * Constructs a new CancelCloneJobResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICancelCloneJobResponse);
+
+ /**
+ * Creates a new CancelCloneJobResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelCloneJobResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICancelCloneJobResponse): google.cloud.vmmigration.v1.CancelCloneJobResponse;
+
+ /**
+ * Encodes the specified CancelCloneJobResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobResponse.verify|verify} messages.
+ * @param message CancelCloneJobResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICancelCloneJobResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelCloneJobResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobResponse.verify|verify} messages.
+ * @param message CancelCloneJobResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICancelCloneJobResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelCloneJobResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelCloneJobResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CancelCloneJobResponse;
+
+ /**
+ * Decodes a CancelCloneJobResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelCloneJobResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.CancelCloneJobResponse;
+
+ /**
+ * Verifies a CancelCloneJobResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelCloneJobResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelCloneJobResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CancelCloneJobResponse;
+
+ /**
+ * Creates a plain object from a CancelCloneJobResponse message. Also converts values to other types if specified.
+ * @param message CancelCloneJobResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CancelCloneJobResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelCloneJobResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelCloneJobResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCloneJobsRequest. */
+ interface IListCloneJobsRequest {
+
+ /** ListCloneJobsRequest parent */
+ parent?: (string|null);
+
+ /** ListCloneJobsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListCloneJobsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListCloneJobsRequest filter */
+ filter?: (string|null);
+
+ /** ListCloneJobsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListCloneJobsRequest. */
+ class ListCloneJobsRequest implements IListCloneJobsRequest {
+
+ /**
+ * Constructs a new ListCloneJobsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListCloneJobsRequest);
+
+ /** ListCloneJobsRequest parent. */
+ public parent: string;
+
+ /** ListCloneJobsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListCloneJobsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListCloneJobsRequest filter. */
+ public filter: string;
+
+ /** ListCloneJobsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListCloneJobsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCloneJobsRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListCloneJobsRequest): google.cloud.vmmigration.v1.ListCloneJobsRequest;
+
+ /**
+ * Encodes the specified ListCloneJobsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsRequest.verify|verify} messages.
+ * @param message ListCloneJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListCloneJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCloneJobsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsRequest.verify|verify} messages.
+ * @param message ListCloneJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListCloneJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCloneJobsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCloneJobsRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListCloneJobsRequest;
+
+ /**
+ * Decodes a ListCloneJobsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCloneJobsRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListCloneJobsRequest;
+
+ /**
+ * Verifies a ListCloneJobsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCloneJobsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCloneJobsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListCloneJobsRequest;
+
+ /**
+ * Creates a plain object from a ListCloneJobsRequest message. Also converts values to other types if specified.
+ * @param message ListCloneJobsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListCloneJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCloneJobsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCloneJobsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCloneJobsResponse. */
+ interface IListCloneJobsResponse {
+
+ /** ListCloneJobsResponse cloneJobs */
+ cloneJobs?: (google.cloud.vmmigration.v1.ICloneJob[]|null);
+
+ /** ListCloneJobsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListCloneJobsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListCloneJobsResponse. */
+ class ListCloneJobsResponse implements IListCloneJobsResponse {
+
+ /**
+ * Constructs a new ListCloneJobsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListCloneJobsResponse);
+
+ /** ListCloneJobsResponse cloneJobs. */
+ public cloneJobs: google.cloud.vmmigration.v1.ICloneJob[];
+
+ /** ListCloneJobsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListCloneJobsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListCloneJobsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCloneJobsResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListCloneJobsResponse): google.cloud.vmmigration.v1.ListCloneJobsResponse;
+
+ /**
+ * Encodes the specified ListCloneJobsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsResponse.verify|verify} messages.
+ * @param message ListCloneJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListCloneJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCloneJobsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsResponse.verify|verify} messages.
+ * @param message ListCloneJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListCloneJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCloneJobsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCloneJobsResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListCloneJobsResponse;
+
+ /**
+ * Decodes a ListCloneJobsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCloneJobsResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListCloneJobsResponse;
+
+ /**
+ * Verifies a ListCloneJobsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCloneJobsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCloneJobsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListCloneJobsResponse;
+
+ /**
+ * Creates a plain object from a ListCloneJobsResponse message. Also converts values to other types if specified.
+ * @param message ListCloneJobsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListCloneJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCloneJobsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCloneJobsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetCloneJobRequest. */
+ interface IGetCloneJobRequest {
+
+ /** GetCloneJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetCloneJobRequest. */
+ class GetCloneJobRequest implements IGetCloneJobRequest {
+
+ /**
+ * Constructs a new GetCloneJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetCloneJobRequest);
+
+ /** GetCloneJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetCloneJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetCloneJobRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetCloneJobRequest): google.cloud.vmmigration.v1.GetCloneJobRequest;
+
+ /**
+ * Encodes the specified GetCloneJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetCloneJobRequest.verify|verify} messages.
+ * @param message GetCloneJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetCloneJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetCloneJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetCloneJobRequest.verify|verify} messages.
+ * @param message GetCloneJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetCloneJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetCloneJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetCloneJobRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetCloneJobRequest;
+
+ /**
+ * Decodes a GetCloneJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetCloneJobRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetCloneJobRequest;
+
+ /**
+ * Verifies a GetCloneJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetCloneJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetCloneJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetCloneJobRequest;
+
+ /**
+ * Creates a plain object from a GetCloneJobRequest message. Also converts values to other types if specified.
+ * @param message GetCloneJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetCloneJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetCloneJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetCloneJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Source. */
+ interface ISource {
+
+ /** Source vmware */
+ vmware?: (google.cloud.vmmigration.v1.IVmwareSourceDetails|null);
+
+ /** Source name */
+ name?: (string|null);
+
+ /** Source createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Source updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Source labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Source description */
+ description?: (string|null);
+ }
+
+ /** Represents a Source. */
+ class Source implements ISource {
+
+ /**
+ * Constructs a new Source.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ISource);
+
+ /** Source vmware. */
+ public vmware?: (google.cloud.vmmigration.v1.IVmwareSourceDetails|null);
+
+ /** Source name. */
+ public name: string;
+
+ /** Source createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Source updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Source labels. */
+ public labels: { [k: string]: string };
+
+ /** Source description. */
+ public description: string;
+
+ /** Source sourceDetails. */
+ public sourceDetails?: "vmware";
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Source instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ISource): google.cloud.vmmigration.v1.Source;
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.vmmigration.v1.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Source
+ * @throws {Error} If the payload is not 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.vmmigration.v1.Source;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Source
+ * @throws {Error} If the payload 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.vmmigration.v1.Source;
+
+ /**
+ * Verifies a Source message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Source
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.Source;
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @param message Source
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.Source, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Source to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Source
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VmwareSourceDetails. */
+ interface IVmwareSourceDetails {
+
+ /** VmwareSourceDetails username */
+ username?: (string|null);
+
+ /** VmwareSourceDetails password */
+ password?: (string|null);
+
+ /** VmwareSourceDetails vcenterIp */
+ vcenterIp?: (string|null);
+
+ /** VmwareSourceDetails thumbprint */
+ thumbprint?: (string|null);
+ }
+
+ /** Represents a VmwareSourceDetails. */
+ class VmwareSourceDetails implements IVmwareSourceDetails {
+
+ /**
+ * Constructs a new VmwareSourceDetails.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IVmwareSourceDetails);
+
+ /** VmwareSourceDetails username. */
+ public username: string;
+
+ /** VmwareSourceDetails password. */
+ public password: string;
+
+ /** VmwareSourceDetails vcenterIp. */
+ public vcenterIp: string;
+
+ /** VmwareSourceDetails thumbprint. */
+ public thumbprint: string;
+
+ /**
+ * Creates a new VmwareSourceDetails instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VmwareSourceDetails instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IVmwareSourceDetails): google.cloud.vmmigration.v1.VmwareSourceDetails;
+
+ /**
+ * Encodes the specified VmwareSourceDetails message. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareSourceDetails.verify|verify} messages.
+ * @param message VmwareSourceDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IVmwareSourceDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VmwareSourceDetails message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareSourceDetails.verify|verify} messages.
+ * @param message VmwareSourceDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IVmwareSourceDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VmwareSourceDetails message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VmwareSourceDetails
+ * @throws {Error} If the payload is not 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.vmmigration.v1.VmwareSourceDetails;
+
+ /**
+ * Decodes a VmwareSourceDetails message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VmwareSourceDetails
+ * @throws {Error} If the payload 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.vmmigration.v1.VmwareSourceDetails;
+
+ /**
+ * Verifies a VmwareSourceDetails message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VmwareSourceDetails message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VmwareSourceDetails
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.VmwareSourceDetails;
+
+ /**
+ * Creates a plain object from a VmwareSourceDetails message. Also converts values to other types if specified.
+ * @param message VmwareSourceDetails
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.VmwareSourceDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VmwareSourceDetails to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VmwareSourceDetails
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DatacenterConnector. */
+ interface IDatacenterConnector {
+
+ /** DatacenterConnector createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DatacenterConnector updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DatacenterConnector name */
+ name?: (string|null);
+
+ /** DatacenterConnector registrationId */
+ registrationId?: (string|null);
+
+ /** DatacenterConnector serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** DatacenterConnector version */
+ version?: (string|null);
+
+ /** DatacenterConnector bucket */
+ bucket?: (string|null);
+
+ /** DatacenterConnector state */
+ state?: (google.cloud.vmmigration.v1.DatacenterConnector.State|keyof typeof google.cloud.vmmigration.v1.DatacenterConnector.State|null);
+
+ /** DatacenterConnector stateTime */
+ stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DatacenterConnector error */
+ error?: (google.rpc.IStatus|null);
+
+ /** DatacenterConnector applianceInfrastructureVersion */
+ applianceInfrastructureVersion?: (string|null);
+
+ /** DatacenterConnector applianceSoftwareVersion */
+ applianceSoftwareVersion?: (string|null);
+
+ /** DatacenterConnector availableVersions */
+ availableVersions?: (google.cloud.vmmigration.v1.IAvailableUpdates|null);
+
+ /** DatacenterConnector upgradeStatus */
+ upgradeStatus?: (google.cloud.vmmigration.v1.IUpgradeStatus|null);
+ }
+
+ /** Represents a DatacenterConnector. */
+ class DatacenterConnector implements IDatacenterConnector {
+
+ /**
+ * Constructs a new DatacenterConnector.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IDatacenterConnector);
+
+ /** DatacenterConnector createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** DatacenterConnector updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DatacenterConnector name. */
+ public name: string;
+
+ /** DatacenterConnector registrationId. */
+ public registrationId: string;
+
+ /** DatacenterConnector serviceAccount. */
+ public serviceAccount: string;
+
+ /** DatacenterConnector version. */
+ public version: string;
+
+ /** DatacenterConnector bucket. */
+ public bucket: string;
+
+ /** DatacenterConnector state. */
+ public state: (google.cloud.vmmigration.v1.DatacenterConnector.State|keyof typeof google.cloud.vmmigration.v1.DatacenterConnector.State);
+
+ /** DatacenterConnector stateTime. */
+ public stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** DatacenterConnector error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** DatacenterConnector applianceInfrastructureVersion. */
+ public applianceInfrastructureVersion: string;
+
+ /** DatacenterConnector applianceSoftwareVersion. */
+ public applianceSoftwareVersion: string;
+
+ /** DatacenterConnector availableVersions. */
+ public availableVersions?: (google.cloud.vmmigration.v1.IAvailableUpdates|null);
+
+ /** DatacenterConnector upgradeStatus. */
+ public upgradeStatus?: (google.cloud.vmmigration.v1.IUpgradeStatus|null);
+
+ /**
+ * Creates a new DatacenterConnector instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatacenterConnector instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IDatacenterConnector): google.cloud.vmmigration.v1.DatacenterConnector;
+
+ /**
+ * Encodes the specified DatacenterConnector message. Does not implicitly {@link google.cloud.vmmigration.v1.DatacenterConnector.verify|verify} messages.
+ * @param message DatacenterConnector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IDatacenterConnector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatacenterConnector message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DatacenterConnector.verify|verify} messages.
+ * @param message DatacenterConnector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IDatacenterConnector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatacenterConnector message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatacenterConnector
+ * @throws {Error} If the payload is not 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.vmmigration.v1.DatacenterConnector;
+
+ /**
+ * Decodes a DatacenterConnector message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatacenterConnector
+ * @throws {Error} If the payload 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.vmmigration.v1.DatacenterConnector;
+
+ /**
+ * Verifies a DatacenterConnector message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatacenterConnector message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatacenterConnector
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.DatacenterConnector;
+
+ /**
+ * Creates a plain object from a DatacenterConnector message. Also converts values to other types if specified.
+ * @param message DatacenterConnector
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.DatacenterConnector, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatacenterConnector to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatacenterConnector
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DatacenterConnector {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ OFFLINE = 2,
+ FAILED = 3,
+ ACTIVE = 4
+ }
+ }
+
+ /** Properties of an UpgradeStatus. */
+ interface IUpgradeStatus {
+
+ /** UpgradeStatus version */
+ version?: (string|null);
+
+ /** UpgradeStatus state */
+ state?: (google.cloud.vmmigration.v1.UpgradeStatus.State|keyof typeof google.cloud.vmmigration.v1.UpgradeStatus.State|null);
+
+ /** UpgradeStatus error */
+ error?: (google.rpc.IStatus|null);
+
+ /** UpgradeStatus startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** UpgradeStatus previousVersion */
+ previousVersion?: (string|null);
+ }
+
+ /** Represents an UpgradeStatus. */
+ class UpgradeStatus implements IUpgradeStatus {
+
+ /**
+ * Constructs a new UpgradeStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUpgradeStatus);
+
+ /** UpgradeStatus version. */
+ public version: string;
+
+ /** UpgradeStatus state. */
+ public state: (google.cloud.vmmigration.v1.UpgradeStatus.State|keyof typeof google.cloud.vmmigration.v1.UpgradeStatus.State);
+
+ /** UpgradeStatus error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** UpgradeStatus startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** UpgradeStatus previousVersion. */
+ public previousVersion: string;
+
+ /**
+ * Creates a new UpgradeStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpgradeStatus instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUpgradeStatus): google.cloud.vmmigration.v1.UpgradeStatus;
+
+ /**
+ * Encodes the specified UpgradeStatus message. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeStatus.verify|verify} messages.
+ * @param message UpgradeStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUpgradeStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpgradeStatus message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeStatus.verify|verify} messages.
+ * @param message UpgradeStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUpgradeStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpgradeStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpgradeStatus
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UpgradeStatus;
+
+ /**
+ * Decodes an UpgradeStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpgradeStatus
+ * @throws {Error} If the payload 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.vmmigration.v1.UpgradeStatus;
+
+ /**
+ * Verifies an UpgradeStatus message.
+ * @param message Plain 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 UpgradeStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpgradeStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UpgradeStatus;
+
+ /**
+ * Creates a plain object from an UpgradeStatus message. Also converts values to other types if specified.
+ * @param message UpgradeStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UpgradeStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpgradeStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpgradeStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UpgradeStatus {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ RUNNING = 1,
+ FAILED = 2,
+ SUCCEEDED = 3
+ }
+ }
+
+ /** Properties of an AvailableUpdates. */
+ interface IAvailableUpdates {
+
+ /** AvailableUpdates newDeployableAppliance */
+ newDeployableAppliance?: (google.cloud.vmmigration.v1.IApplianceVersion|null);
+
+ /** AvailableUpdates inPlaceUpdate */
+ inPlaceUpdate?: (google.cloud.vmmigration.v1.IApplianceVersion|null);
+ }
+
+ /** Represents an AvailableUpdates. */
+ class AvailableUpdates implements IAvailableUpdates {
+
+ /**
+ * Constructs a new AvailableUpdates.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IAvailableUpdates);
+
+ /** AvailableUpdates newDeployableAppliance. */
+ public newDeployableAppliance?: (google.cloud.vmmigration.v1.IApplianceVersion|null);
+
+ /** AvailableUpdates inPlaceUpdate. */
+ public inPlaceUpdate?: (google.cloud.vmmigration.v1.IApplianceVersion|null);
+
+ /**
+ * Creates a new AvailableUpdates instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AvailableUpdates instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IAvailableUpdates): google.cloud.vmmigration.v1.AvailableUpdates;
+
+ /**
+ * Encodes the specified AvailableUpdates message. Does not implicitly {@link google.cloud.vmmigration.v1.AvailableUpdates.verify|verify} messages.
+ * @param message AvailableUpdates message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IAvailableUpdates, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AvailableUpdates message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.AvailableUpdates.verify|verify} messages.
+ * @param message AvailableUpdates message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IAvailableUpdates, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AvailableUpdates message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AvailableUpdates
+ * @throws {Error} If the payload is not 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.vmmigration.v1.AvailableUpdates;
+
+ /**
+ * Decodes an AvailableUpdates message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AvailableUpdates
+ * @throws {Error} If the payload 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.vmmigration.v1.AvailableUpdates;
+
+ /**
+ * Verifies an AvailableUpdates message.
+ * @param message Plain 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 AvailableUpdates message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AvailableUpdates
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.AvailableUpdates;
+
+ /**
+ * Creates a plain object from an AvailableUpdates message. Also converts values to other types if specified.
+ * @param message AvailableUpdates
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.AvailableUpdates, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AvailableUpdates to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AvailableUpdates
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ApplianceVersion. */
+ interface IApplianceVersion {
+
+ /** ApplianceVersion version */
+ version?: (string|null);
+
+ /** ApplianceVersion uri */
+ uri?: (string|null);
+
+ /** ApplianceVersion critical */
+ critical?: (boolean|null);
+
+ /** ApplianceVersion releaseNotesUri */
+ releaseNotesUri?: (string|null);
+ }
+
+ /** Represents an ApplianceVersion. */
+ class ApplianceVersion implements IApplianceVersion {
+
+ /**
+ * Constructs a new ApplianceVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IApplianceVersion);
+
+ /** ApplianceVersion version. */
+ public version: string;
+
+ /** ApplianceVersion uri. */
+ public uri: string;
+
+ /** ApplianceVersion critical. */
+ public critical: boolean;
+
+ /** ApplianceVersion releaseNotesUri. */
+ public releaseNotesUri: string;
+
+ /**
+ * Creates a new ApplianceVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ApplianceVersion instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IApplianceVersion): google.cloud.vmmigration.v1.ApplianceVersion;
+
+ /**
+ * Encodes the specified ApplianceVersion message. Does not implicitly {@link google.cloud.vmmigration.v1.ApplianceVersion.verify|verify} messages.
+ * @param message ApplianceVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IApplianceVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ApplianceVersion message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ApplianceVersion.verify|verify} messages.
+ * @param message ApplianceVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IApplianceVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ApplianceVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ApplianceVersion
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ApplianceVersion;
+
+ /**
+ * Decodes an ApplianceVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ApplianceVersion
+ * @throws {Error} If the payload 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.vmmigration.v1.ApplianceVersion;
+
+ /**
+ * Verifies an ApplianceVersion message.
+ * @param message Plain 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 ApplianceVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ApplianceVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ApplianceVersion;
+
+ /**
+ * Creates a plain object from an ApplianceVersion message. Also converts values to other types if specified.
+ * @param message ApplianceVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ApplianceVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ApplianceVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ApplianceVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSourcesRequest. */
+ interface IListSourcesRequest {
+
+ /** ListSourcesRequest parent */
+ parent?: (string|null);
+
+ /** ListSourcesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListSourcesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListSourcesRequest filter */
+ filter?: (string|null);
+
+ /** ListSourcesRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListSourcesRequest. */
+ class ListSourcesRequest implements IListSourcesRequest {
+
+ /**
+ * Constructs a new ListSourcesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListSourcesRequest);
+
+ /** ListSourcesRequest parent. */
+ public parent: string;
+
+ /** ListSourcesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListSourcesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListSourcesRequest filter. */
+ public filter: string;
+
+ /** ListSourcesRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListSourcesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSourcesRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListSourcesRequest): google.cloud.vmmigration.v1.ListSourcesRequest;
+
+ /**
+ * Encodes the specified ListSourcesRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesRequest.verify|verify} messages.
+ * @param message ListSourcesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesRequest.verify|verify} messages.
+ * @param message ListSourcesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSourcesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSourcesRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListSourcesRequest;
+
+ /**
+ * Decodes a ListSourcesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSourcesRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListSourcesRequest;
+
+ /**
+ * Verifies a ListSourcesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSourcesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSourcesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListSourcesRequest;
+
+ /**
+ * Creates a plain object from a ListSourcesRequest message. Also converts values to other types if specified.
+ * @param message ListSourcesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListSourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSourcesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSourcesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListSourcesResponse. */
+ interface IListSourcesResponse {
+
+ /** ListSourcesResponse sources */
+ sources?: (google.cloud.vmmigration.v1.ISource[]|null);
+
+ /** ListSourcesResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListSourcesResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListSourcesResponse. */
+ class ListSourcesResponse implements IListSourcesResponse {
+
+ /**
+ * Constructs a new ListSourcesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListSourcesResponse);
+
+ /** ListSourcesResponse sources. */
+ public sources: google.cloud.vmmigration.v1.ISource[];
+
+ /** ListSourcesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListSourcesResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListSourcesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListSourcesResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListSourcesResponse): google.cloud.vmmigration.v1.ListSourcesResponse;
+
+ /**
+ * Encodes the specified ListSourcesResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesResponse.verify|verify} messages.
+ * @param message ListSourcesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListSourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListSourcesResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesResponse.verify|verify} messages.
+ * @param message ListSourcesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListSourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListSourcesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListSourcesResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListSourcesResponse;
+
+ /**
+ * Decodes a ListSourcesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListSourcesResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListSourcesResponse;
+
+ /**
+ * Verifies a ListSourcesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListSourcesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListSourcesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListSourcesResponse;
+
+ /**
+ * Creates a plain object from a ListSourcesResponse message. Also converts values to other types if specified.
+ * @param message ListSourcesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListSourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListSourcesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListSourcesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetSourceRequest. */
+ interface IGetSourceRequest {
+
+ /** GetSourceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetSourceRequest. */
+ class GetSourceRequest implements IGetSourceRequest {
+
+ /**
+ * Constructs a new GetSourceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetSourceRequest);
+
+ /** GetSourceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetSourceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetSourceRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetSourceRequest): google.cloud.vmmigration.v1.GetSourceRequest;
+
+ /**
+ * Encodes the specified GetSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetSourceRequest.verify|verify} messages.
+ * @param message GetSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetSourceRequest.verify|verify} messages.
+ * @param message GetSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetSourceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetSourceRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetSourceRequest;
+
+ /**
+ * Decodes a GetSourceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetSourceRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetSourceRequest;
+
+ /**
+ * Verifies a GetSourceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetSourceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetSourceRequest;
+
+ /**
+ * Creates a plain object from a GetSourceRequest message. Also converts values to other types if specified.
+ * @param message GetSourceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetSourceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetSourceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateSourceRequest. */
+ interface ICreateSourceRequest {
+
+ /** CreateSourceRequest parent */
+ parent?: (string|null);
+
+ /** CreateSourceRequest sourceId */
+ sourceId?: (string|null);
+
+ /** CreateSourceRequest source */
+ source?: (google.cloud.vmmigration.v1.ISource|null);
+
+ /** CreateSourceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateSourceRequest. */
+ class CreateSourceRequest implements ICreateSourceRequest {
+
+ /**
+ * Constructs a new CreateSourceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateSourceRequest);
+
+ /** CreateSourceRequest parent. */
+ public parent: string;
+
+ /** CreateSourceRequest sourceId. */
+ public sourceId: string;
+
+ /** CreateSourceRequest source. */
+ public source?: (google.cloud.vmmigration.v1.ISource|null);
+
+ /** CreateSourceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateSourceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateSourceRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateSourceRequest): google.cloud.vmmigration.v1.CreateSourceRequest;
+
+ /**
+ * Encodes the specified CreateSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateSourceRequest.verify|verify} messages.
+ * @param message CreateSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateSourceRequest.verify|verify} messages.
+ * @param message CreateSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateSourceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateSourceRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateSourceRequest;
+
+ /**
+ * Decodes a CreateSourceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateSourceRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateSourceRequest;
+
+ /**
+ * Verifies a CreateSourceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateSourceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateSourceRequest;
+
+ /**
+ * Creates a plain object from a CreateSourceRequest message. Also converts values to other types if specified.
+ * @param message CreateSourceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateSourceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateSourceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateSourceRequest. */
+ interface IUpdateSourceRequest {
+
+ /** UpdateSourceRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateSourceRequest source */
+ source?: (google.cloud.vmmigration.v1.ISource|null);
+
+ /** UpdateSourceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateSourceRequest. */
+ class UpdateSourceRequest implements IUpdateSourceRequest {
+
+ /**
+ * Constructs a new UpdateSourceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUpdateSourceRequest);
+
+ /** UpdateSourceRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateSourceRequest source. */
+ public source?: (google.cloud.vmmigration.v1.ISource|null);
+
+ /** UpdateSourceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateSourceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateSourceRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUpdateSourceRequest): google.cloud.vmmigration.v1.UpdateSourceRequest;
+
+ /**
+ * Encodes the specified UpdateSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateSourceRequest.verify|verify} messages.
+ * @param message UpdateSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUpdateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateSourceRequest.verify|verify} messages.
+ * @param message UpdateSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUpdateSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateSourceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateSourceRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UpdateSourceRequest;
+
+ /**
+ * Decodes an UpdateSourceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateSourceRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.UpdateSourceRequest;
+
+ /**
+ * Verifies an UpdateSourceRequest message.
+ * @param message Plain 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 UpdateSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateSourceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UpdateSourceRequest;
+
+ /**
+ * Creates a plain object from an UpdateSourceRequest message. Also converts values to other types if specified.
+ * @param message UpdateSourceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UpdateSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateSourceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateSourceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteSourceRequest. */
+ interface IDeleteSourceRequest {
+
+ /** DeleteSourceRequest name */
+ name?: (string|null);
+
+ /** DeleteSourceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteSourceRequest. */
+ class DeleteSourceRequest implements IDeleteSourceRequest {
+
+ /**
+ * Constructs a new DeleteSourceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IDeleteSourceRequest);
+
+ /** DeleteSourceRequest name. */
+ public name: string;
+
+ /** DeleteSourceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteSourceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteSourceRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IDeleteSourceRequest): google.cloud.vmmigration.v1.DeleteSourceRequest;
+
+ /**
+ * Encodes the specified DeleteSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteSourceRequest.verify|verify} messages.
+ * @param message DeleteSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IDeleteSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteSourceRequest.verify|verify} messages.
+ * @param message DeleteSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IDeleteSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteSourceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteSourceRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.DeleteSourceRequest;
+
+ /**
+ * Decodes a DeleteSourceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteSourceRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.DeleteSourceRequest;
+
+ /**
+ * Verifies a DeleteSourceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteSourceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.DeleteSourceRequest;
+
+ /**
+ * Creates a plain object from a DeleteSourceRequest message. Also converts values to other types if specified.
+ * @param message DeleteSourceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.DeleteSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteSourceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteSourceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchInventoryRequest. */
+ interface IFetchInventoryRequest {
+
+ /** FetchInventoryRequest source */
+ source?: (string|null);
+
+ /** FetchInventoryRequest forceRefresh */
+ forceRefresh?: (boolean|null);
+ }
+
+ /** Represents a FetchInventoryRequest. */
+ class FetchInventoryRequest implements IFetchInventoryRequest {
+
+ /**
+ * Constructs a new FetchInventoryRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IFetchInventoryRequest);
+
+ /** FetchInventoryRequest source. */
+ public source: string;
+
+ /** FetchInventoryRequest forceRefresh. */
+ public forceRefresh: boolean;
+
+ /**
+ * Creates a new FetchInventoryRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchInventoryRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IFetchInventoryRequest): google.cloud.vmmigration.v1.FetchInventoryRequest;
+
+ /**
+ * Encodes the specified FetchInventoryRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryRequest.verify|verify} messages.
+ * @param message FetchInventoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IFetchInventoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchInventoryRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryRequest.verify|verify} messages.
+ * @param message FetchInventoryRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IFetchInventoryRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchInventoryRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchInventoryRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.FetchInventoryRequest;
+
+ /**
+ * Decodes a FetchInventoryRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchInventoryRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.FetchInventoryRequest;
+
+ /**
+ * Verifies a FetchInventoryRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchInventoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchInventoryRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.FetchInventoryRequest;
+
+ /**
+ * Creates a plain object from a FetchInventoryRequest message. Also converts values to other types if specified.
+ * @param message FetchInventoryRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.FetchInventoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchInventoryRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchInventoryRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VmwareVmDetails. */
+ interface IVmwareVmDetails {
+
+ /** VmwareVmDetails vmId */
+ vmId?: (string|null);
+
+ /** VmwareVmDetails datacenterId */
+ datacenterId?: (string|null);
+
+ /** VmwareVmDetails datacenterDescription */
+ datacenterDescription?: (string|null);
+
+ /** VmwareVmDetails uuid */
+ uuid?: (string|null);
+
+ /** VmwareVmDetails displayName */
+ displayName?: (string|null);
+
+ /** VmwareVmDetails powerState */
+ powerState?: (google.cloud.vmmigration.v1.VmwareVmDetails.PowerState|keyof typeof google.cloud.vmmigration.v1.VmwareVmDetails.PowerState|null);
+
+ /** VmwareVmDetails cpuCount */
+ cpuCount?: (number|null);
+
+ /** VmwareVmDetails memoryMb */
+ memoryMb?: (number|null);
+
+ /** VmwareVmDetails diskCount */
+ diskCount?: (number|null);
+
+ /** VmwareVmDetails committedStorageMb */
+ committedStorageMb?: (number|Long|string|null);
+
+ /** VmwareVmDetails guestDescription */
+ guestDescription?: (string|null);
+
+ /** VmwareVmDetails bootOption */
+ bootOption?: (google.cloud.vmmigration.v1.VmwareVmDetails.BootOption|keyof typeof google.cloud.vmmigration.v1.VmwareVmDetails.BootOption|null);
+ }
+
+ /** Represents a VmwareVmDetails. */
+ class VmwareVmDetails implements IVmwareVmDetails {
+
+ /**
+ * Constructs a new VmwareVmDetails.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IVmwareVmDetails);
+
+ /** VmwareVmDetails vmId. */
+ public vmId: string;
+
+ /** VmwareVmDetails datacenterId. */
+ public datacenterId: string;
+
+ /** VmwareVmDetails datacenterDescription. */
+ public datacenterDescription: string;
+
+ /** VmwareVmDetails uuid. */
+ public uuid: string;
+
+ /** VmwareVmDetails displayName. */
+ public displayName: string;
+
+ /** VmwareVmDetails powerState. */
+ public powerState: (google.cloud.vmmigration.v1.VmwareVmDetails.PowerState|keyof typeof google.cloud.vmmigration.v1.VmwareVmDetails.PowerState);
+
+ /** VmwareVmDetails cpuCount. */
+ public cpuCount: number;
+
+ /** VmwareVmDetails memoryMb. */
+ public memoryMb: number;
+
+ /** VmwareVmDetails diskCount. */
+ public diskCount: number;
+
+ /** VmwareVmDetails committedStorageMb. */
+ public committedStorageMb: (number|Long|string);
+
+ /** VmwareVmDetails guestDescription. */
+ public guestDescription: string;
+
+ /** VmwareVmDetails bootOption. */
+ public bootOption: (google.cloud.vmmigration.v1.VmwareVmDetails.BootOption|keyof typeof google.cloud.vmmigration.v1.VmwareVmDetails.BootOption);
+
+ /**
+ * Creates a new VmwareVmDetails instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VmwareVmDetails instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IVmwareVmDetails): google.cloud.vmmigration.v1.VmwareVmDetails;
+
+ /**
+ * Encodes the specified VmwareVmDetails message. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmDetails.verify|verify} messages.
+ * @param message VmwareVmDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IVmwareVmDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VmwareVmDetails message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmDetails.verify|verify} messages.
+ * @param message VmwareVmDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IVmwareVmDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VmwareVmDetails message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VmwareVmDetails
+ * @throws {Error} If the payload is not 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.vmmigration.v1.VmwareVmDetails;
+
+ /**
+ * Decodes a VmwareVmDetails message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VmwareVmDetails
+ * @throws {Error} If the payload 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.vmmigration.v1.VmwareVmDetails;
+
+ /**
+ * Verifies a VmwareVmDetails message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VmwareVmDetails message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VmwareVmDetails
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.VmwareVmDetails;
+
+ /**
+ * Creates a plain object from a VmwareVmDetails message. Also converts values to other types if specified.
+ * @param message VmwareVmDetails
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.VmwareVmDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VmwareVmDetails to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VmwareVmDetails
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VmwareVmDetails {
+
+ /** PowerState enum. */
+ enum PowerState {
+ POWER_STATE_UNSPECIFIED = 0,
+ ON = 1,
+ OFF = 2,
+ SUSPENDED = 3
+ }
+
+ /** BootOption enum. */
+ enum BootOption {
+ BOOT_OPTION_UNSPECIFIED = 0,
+ EFI = 1,
+ BIOS = 2
+ }
+ }
+
+ /** Properties of a VmwareVmsDetails. */
+ interface IVmwareVmsDetails {
+
+ /** VmwareVmsDetails details */
+ details?: (google.cloud.vmmigration.v1.IVmwareVmDetails[]|null);
+ }
+
+ /** Represents a VmwareVmsDetails. */
+ class VmwareVmsDetails implements IVmwareVmsDetails {
+
+ /**
+ * Constructs a new VmwareVmsDetails.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IVmwareVmsDetails);
+
+ /** VmwareVmsDetails details. */
+ public details: google.cloud.vmmigration.v1.IVmwareVmDetails[];
+
+ /**
+ * Creates a new VmwareVmsDetails instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VmwareVmsDetails instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IVmwareVmsDetails): google.cloud.vmmigration.v1.VmwareVmsDetails;
+
+ /**
+ * Encodes the specified VmwareVmsDetails message. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmsDetails.verify|verify} messages.
+ * @param message VmwareVmsDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IVmwareVmsDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VmwareVmsDetails message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmsDetails.verify|verify} messages.
+ * @param message VmwareVmsDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IVmwareVmsDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VmwareVmsDetails message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VmwareVmsDetails
+ * @throws {Error} If the payload is not 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.vmmigration.v1.VmwareVmsDetails;
+
+ /**
+ * Decodes a VmwareVmsDetails message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VmwareVmsDetails
+ * @throws {Error} If the payload 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.vmmigration.v1.VmwareVmsDetails;
+
+ /**
+ * Verifies a VmwareVmsDetails message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VmwareVmsDetails message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VmwareVmsDetails
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.VmwareVmsDetails;
+
+ /**
+ * Creates a plain object from a VmwareVmsDetails message. Also converts values to other types if specified.
+ * @param message VmwareVmsDetails
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.VmwareVmsDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VmwareVmsDetails to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VmwareVmsDetails
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchInventoryResponse. */
+ interface IFetchInventoryResponse {
+
+ /** FetchInventoryResponse vmwareVms */
+ vmwareVms?: (google.cloud.vmmigration.v1.IVmwareVmsDetails|null);
+
+ /** FetchInventoryResponse updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a FetchInventoryResponse. */
+ class FetchInventoryResponse implements IFetchInventoryResponse {
+
+ /**
+ * Constructs a new FetchInventoryResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IFetchInventoryResponse);
+
+ /** FetchInventoryResponse vmwareVms. */
+ public vmwareVms?: (google.cloud.vmmigration.v1.IVmwareVmsDetails|null);
+
+ /** FetchInventoryResponse updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** FetchInventoryResponse SourceVms. */
+ public SourceVms?: "vmwareVms";
+
+ /**
+ * Creates a new FetchInventoryResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchInventoryResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IFetchInventoryResponse): google.cloud.vmmigration.v1.FetchInventoryResponse;
+
+ /**
+ * Encodes the specified FetchInventoryResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryResponse.verify|verify} messages.
+ * @param message FetchInventoryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IFetchInventoryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchInventoryResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryResponse.verify|verify} messages.
+ * @param message FetchInventoryResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IFetchInventoryResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchInventoryResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchInventoryResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.FetchInventoryResponse;
+
+ /**
+ * Decodes a FetchInventoryResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchInventoryResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.FetchInventoryResponse;
+
+ /**
+ * Verifies a FetchInventoryResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchInventoryResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchInventoryResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.FetchInventoryResponse;
+
+ /**
+ * Creates a plain object from a FetchInventoryResponse message. Also converts values to other types if specified.
+ * @param message FetchInventoryResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.FetchInventoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchInventoryResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchInventoryResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UtilizationReport. */
+ interface IUtilizationReport {
+
+ /** UtilizationReport name */
+ name?: (string|null);
+
+ /** UtilizationReport displayName */
+ displayName?: (string|null);
+
+ /** UtilizationReport state */
+ state?: (google.cloud.vmmigration.v1.UtilizationReport.State|keyof typeof google.cloud.vmmigration.v1.UtilizationReport.State|null);
+
+ /** UtilizationReport stateTime */
+ stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** UtilizationReport error */
+ error?: (google.rpc.IStatus|null);
+
+ /** UtilizationReport createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** UtilizationReport timeFrame */
+ timeFrame?: (google.cloud.vmmigration.v1.UtilizationReport.TimeFrame|keyof typeof google.cloud.vmmigration.v1.UtilizationReport.TimeFrame|null);
+
+ /** UtilizationReport frameEndTime */
+ frameEndTime?: (google.protobuf.ITimestamp|null);
+
+ /** UtilizationReport vmCount */
+ vmCount?: (number|null);
+
+ /** UtilizationReport vms */
+ vms?: (google.cloud.vmmigration.v1.IVmUtilizationInfo[]|null);
+ }
+
+ /** Represents an UtilizationReport. */
+ class UtilizationReport implements IUtilizationReport {
+
+ /**
+ * Constructs a new UtilizationReport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUtilizationReport);
+
+ /** UtilizationReport name. */
+ public name: string;
+
+ /** UtilizationReport displayName. */
+ public displayName: string;
+
+ /** UtilizationReport state. */
+ public state: (google.cloud.vmmigration.v1.UtilizationReport.State|keyof typeof google.cloud.vmmigration.v1.UtilizationReport.State);
+
+ /** UtilizationReport stateTime. */
+ public stateTime?: (google.protobuf.ITimestamp|null);
+
+ /** UtilizationReport error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** UtilizationReport createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** UtilizationReport timeFrame. */
+ public timeFrame: (google.cloud.vmmigration.v1.UtilizationReport.TimeFrame|keyof typeof google.cloud.vmmigration.v1.UtilizationReport.TimeFrame);
+
+ /** UtilizationReport frameEndTime. */
+ public frameEndTime?: (google.protobuf.ITimestamp|null);
+
+ /** UtilizationReport vmCount. */
+ public vmCount: number;
+
+ /** UtilizationReport vms. */
+ public vms: google.cloud.vmmigration.v1.IVmUtilizationInfo[];
+
+ /**
+ * Creates a new UtilizationReport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UtilizationReport instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUtilizationReport): google.cloud.vmmigration.v1.UtilizationReport;
+
+ /**
+ * Encodes the specified UtilizationReport message. Does not implicitly {@link google.cloud.vmmigration.v1.UtilizationReport.verify|verify} messages.
+ * @param message UtilizationReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUtilizationReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UtilizationReport message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UtilizationReport.verify|verify} messages.
+ * @param message UtilizationReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUtilizationReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UtilizationReport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UtilizationReport
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UtilizationReport;
+
+ /**
+ * Decodes an UtilizationReport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UtilizationReport
+ * @throws {Error} If the payload 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.vmmigration.v1.UtilizationReport;
+
+ /**
+ * Verifies an UtilizationReport message.
+ * @param message Plain 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 UtilizationReport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UtilizationReport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UtilizationReport;
+
+ /**
+ * Creates a plain object from an UtilizationReport message. Also converts values to other types if specified.
+ * @param message UtilizationReport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UtilizationReport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UtilizationReport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UtilizationReport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UtilizationReport {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ SUCCEEDED = 2,
+ FAILED = 3
+ }
+
+ /** TimeFrame enum. */
+ enum TimeFrame {
+ TIME_FRAME_UNSPECIFIED = 0,
+ WEEK = 1,
+ MONTH = 2,
+ YEAR = 3
+ }
+ }
+
+ /** Properties of a VmUtilizationInfo. */
+ interface IVmUtilizationInfo {
+
+ /** VmUtilizationInfo vmwareVmDetails */
+ vmwareVmDetails?: (google.cloud.vmmigration.v1.IVmwareVmDetails|null);
+
+ /** VmUtilizationInfo vmId */
+ vmId?: (string|null);
+
+ /** VmUtilizationInfo utilization */
+ utilization?: (google.cloud.vmmigration.v1.IVmUtilizationMetrics|null);
+ }
+
+ /** Represents a VmUtilizationInfo. */
+ class VmUtilizationInfo implements IVmUtilizationInfo {
+
+ /**
+ * Constructs a new VmUtilizationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IVmUtilizationInfo);
+
+ /** VmUtilizationInfo vmwareVmDetails. */
+ public vmwareVmDetails?: (google.cloud.vmmigration.v1.IVmwareVmDetails|null);
+
+ /** VmUtilizationInfo vmId. */
+ public vmId: string;
+
+ /** VmUtilizationInfo utilization. */
+ public utilization?: (google.cloud.vmmigration.v1.IVmUtilizationMetrics|null);
+
+ /** VmUtilizationInfo VmDetails. */
+ public VmDetails?: "vmwareVmDetails";
+
+ /**
+ * Creates a new VmUtilizationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VmUtilizationInfo instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IVmUtilizationInfo): google.cloud.vmmigration.v1.VmUtilizationInfo;
+
+ /**
+ * Encodes the specified VmUtilizationInfo message. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationInfo.verify|verify} messages.
+ * @param message VmUtilizationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IVmUtilizationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VmUtilizationInfo message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationInfo.verify|verify} messages.
+ * @param message VmUtilizationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IVmUtilizationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VmUtilizationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VmUtilizationInfo
+ * @throws {Error} If the payload is not 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.vmmigration.v1.VmUtilizationInfo;
+
+ /**
+ * Decodes a VmUtilizationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VmUtilizationInfo
+ * @throws {Error} If the payload 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.vmmigration.v1.VmUtilizationInfo;
+
+ /**
+ * Verifies a VmUtilizationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VmUtilizationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VmUtilizationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.VmUtilizationInfo;
+
+ /**
+ * Creates a plain object from a VmUtilizationInfo message. Also converts values to other types if specified.
+ * @param message VmUtilizationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.VmUtilizationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VmUtilizationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VmUtilizationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VmUtilizationMetrics. */
+ interface IVmUtilizationMetrics {
+
+ /** VmUtilizationMetrics cpuMaxPercent */
+ cpuMaxPercent?: (number|null);
+
+ /** VmUtilizationMetrics cpuAveragePercent */
+ cpuAveragePercent?: (number|null);
+
+ /** VmUtilizationMetrics memoryMaxPercent */
+ memoryMaxPercent?: (number|null);
+
+ /** VmUtilizationMetrics memoryAveragePercent */
+ memoryAveragePercent?: (number|null);
+
+ /** VmUtilizationMetrics diskIoRateMaxKbps */
+ diskIoRateMaxKbps?: (number|Long|string|null);
+
+ /** VmUtilizationMetrics diskIoRateAverageKbps */
+ diskIoRateAverageKbps?: (number|Long|string|null);
+
+ /** VmUtilizationMetrics networkThroughputMaxKbps */
+ networkThroughputMaxKbps?: (number|Long|string|null);
+
+ /** VmUtilizationMetrics networkThroughputAverageKbps */
+ networkThroughputAverageKbps?: (number|Long|string|null);
+ }
+
+ /** Represents a VmUtilizationMetrics. */
+ class VmUtilizationMetrics implements IVmUtilizationMetrics {
+
+ /**
+ * Constructs a new VmUtilizationMetrics.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IVmUtilizationMetrics);
+
+ /** VmUtilizationMetrics cpuMaxPercent. */
+ public cpuMaxPercent: number;
+
+ /** VmUtilizationMetrics cpuAveragePercent. */
+ public cpuAveragePercent: number;
+
+ /** VmUtilizationMetrics memoryMaxPercent. */
+ public memoryMaxPercent: number;
+
+ /** VmUtilizationMetrics memoryAveragePercent. */
+ public memoryAveragePercent: number;
+
+ /** VmUtilizationMetrics diskIoRateMaxKbps. */
+ public diskIoRateMaxKbps: (number|Long|string);
+
+ /** VmUtilizationMetrics diskIoRateAverageKbps. */
+ public diskIoRateAverageKbps: (number|Long|string);
+
+ /** VmUtilizationMetrics networkThroughputMaxKbps. */
+ public networkThroughputMaxKbps: (number|Long|string);
+
+ /** VmUtilizationMetrics networkThroughputAverageKbps. */
+ public networkThroughputAverageKbps: (number|Long|string);
+
+ /**
+ * Creates a new VmUtilizationMetrics instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VmUtilizationMetrics instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IVmUtilizationMetrics): google.cloud.vmmigration.v1.VmUtilizationMetrics;
+
+ /**
+ * Encodes the specified VmUtilizationMetrics message. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationMetrics.verify|verify} messages.
+ * @param message VmUtilizationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IVmUtilizationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VmUtilizationMetrics message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationMetrics.verify|verify} messages.
+ * @param message VmUtilizationMetrics message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IVmUtilizationMetrics, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VmUtilizationMetrics message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VmUtilizationMetrics
+ * @throws {Error} If the payload is not 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.vmmigration.v1.VmUtilizationMetrics;
+
+ /**
+ * Decodes a VmUtilizationMetrics message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VmUtilizationMetrics
+ * @throws {Error} If the payload 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.vmmigration.v1.VmUtilizationMetrics;
+
+ /**
+ * Verifies a VmUtilizationMetrics message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VmUtilizationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VmUtilizationMetrics
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.VmUtilizationMetrics;
+
+ /**
+ * Creates a plain object from a VmUtilizationMetrics message. Also converts values to other types if specified.
+ * @param message VmUtilizationMetrics
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.VmUtilizationMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VmUtilizationMetrics to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VmUtilizationMetrics
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListUtilizationReportsRequest. */
+ interface IListUtilizationReportsRequest {
+
+ /** ListUtilizationReportsRequest parent */
+ parent?: (string|null);
+
+ /** ListUtilizationReportsRequest view */
+ view?: (google.cloud.vmmigration.v1.UtilizationReportView|keyof typeof google.cloud.vmmigration.v1.UtilizationReportView|null);
+
+ /** ListUtilizationReportsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListUtilizationReportsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListUtilizationReportsRequest filter */
+ filter?: (string|null);
+
+ /** ListUtilizationReportsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListUtilizationReportsRequest. */
+ class ListUtilizationReportsRequest implements IListUtilizationReportsRequest {
+
+ /**
+ * Constructs a new ListUtilizationReportsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListUtilizationReportsRequest);
+
+ /** ListUtilizationReportsRequest parent. */
+ public parent: string;
+
+ /** ListUtilizationReportsRequest view. */
+ public view: (google.cloud.vmmigration.v1.UtilizationReportView|keyof typeof google.cloud.vmmigration.v1.UtilizationReportView);
+
+ /** ListUtilizationReportsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListUtilizationReportsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListUtilizationReportsRequest filter. */
+ public filter: string;
+
+ /** ListUtilizationReportsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListUtilizationReportsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListUtilizationReportsRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListUtilizationReportsRequest): google.cloud.vmmigration.v1.ListUtilizationReportsRequest;
+
+ /**
+ * Encodes the specified ListUtilizationReportsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsRequest.verify|verify} messages.
+ * @param message ListUtilizationReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListUtilizationReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListUtilizationReportsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsRequest.verify|verify} messages.
+ * @param message ListUtilizationReportsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListUtilizationReportsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListUtilizationReportsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListUtilizationReportsRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListUtilizationReportsRequest;
+
+ /**
+ * Decodes a ListUtilizationReportsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListUtilizationReportsRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListUtilizationReportsRequest;
+
+ /**
+ * Verifies a ListUtilizationReportsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListUtilizationReportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListUtilizationReportsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListUtilizationReportsRequest;
+
+ /**
+ * Creates a plain object from a ListUtilizationReportsRequest message. Also converts values to other types if specified.
+ * @param message ListUtilizationReportsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListUtilizationReportsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListUtilizationReportsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListUtilizationReportsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListUtilizationReportsResponse. */
+ interface IListUtilizationReportsResponse {
+
+ /** ListUtilizationReportsResponse utilizationReports */
+ utilizationReports?: (google.cloud.vmmigration.v1.IUtilizationReport[]|null);
+
+ /** ListUtilizationReportsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListUtilizationReportsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListUtilizationReportsResponse. */
+ class ListUtilizationReportsResponse implements IListUtilizationReportsResponse {
+
+ /**
+ * Constructs a new ListUtilizationReportsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListUtilizationReportsResponse);
+
+ /** ListUtilizationReportsResponse utilizationReports. */
+ public utilizationReports: google.cloud.vmmigration.v1.IUtilizationReport[];
+
+ /** ListUtilizationReportsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListUtilizationReportsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListUtilizationReportsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListUtilizationReportsResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListUtilizationReportsResponse): google.cloud.vmmigration.v1.ListUtilizationReportsResponse;
+
+ /**
+ * Encodes the specified ListUtilizationReportsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsResponse.verify|verify} messages.
+ * @param message ListUtilizationReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListUtilizationReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListUtilizationReportsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsResponse.verify|verify} messages.
+ * @param message ListUtilizationReportsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListUtilizationReportsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListUtilizationReportsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListUtilizationReportsResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListUtilizationReportsResponse;
+
+ /**
+ * Decodes a ListUtilizationReportsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListUtilizationReportsResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListUtilizationReportsResponse;
+
+ /**
+ * Verifies a ListUtilizationReportsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListUtilizationReportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListUtilizationReportsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListUtilizationReportsResponse;
+
+ /**
+ * Creates a plain object from a ListUtilizationReportsResponse message. Also converts values to other types if specified.
+ * @param message ListUtilizationReportsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListUtilizationReportsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListUtilizationReportsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListUtilizationReportsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetUtilizationReportRequest. */
+ interface IGetUtilizationReportRequest {
+
+ /** GetUtilizationReportRequest name */
+ name?: (string|null);
+
+ /** GetUtilizationReportRequest view */
+ view?: (google.cloud.vmmigration.v1.UtilizationReportView|keyof typeof google.cloud.vmmigration.v1.UtilizationReportView|null);
+ }
+
+ /** Represents a GetUtilizationReportRequest. */
+ class GetUtilizationReportRequest implements IGetUtilizationReportRequest {
+
+ /**
+ * Constructs a new GetUtilizationReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetUtilizationReportRequest);
+
+ /** GetUtilizationReportRequest name. */
+ public name: string;
+
+ /** GetUtilizationReportRequest view. */
+ public view: (google.cloud.vmmigration.v1.UtilizationReportView|keyof typeof google.cloud.vmmigration.v1.UtilizationReportView);
+
+ /**
+ * Creates a new GetUtilizationReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetUtilizationReportRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetUtilizationReportRequest): google.cloud.vmmigration.v1.GetUtilizationReportRequest;
+
+ /**
+ * Encodes the specified GetUtilizationReportRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetUtilizationReportRequest.verify|verify} messages.
+ * @param message GetUtilizationReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetUtilizationReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetUtilizationReportRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetUtilizationReportRequest.verify|verify} messages.
+ * @param message GetUtilizationReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetUtilizationReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetUtilizationReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetUtilizationReportRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetUtilizationReportRequest;
+
+ /**
+ * Decodes a GetUtilizationReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetUtilizationReportRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetUtilizationReportRequest;
+
+ /**
+ * Verifies a GetUtilizationReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetUtilizationReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetUtilizationReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetUtilizationReportRequest;
+
+ /**
+ * Creates a plain object from a GetUtilizationReportRequest message. Also converts values to other types if specified.
+ * @param message GetUtilizationReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetUtilizationReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetUtilizationReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetUtilizationReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateUtilizationReportRequest. */
+ interface ICreateUtilizationReportRequest {
+
+ /** CreateUtilizationReportRequest parent */
+ parent?: (string|null);
+
+ /** CreateUtilizationReportRequest utilizationReport */
+ utilizationReport?: (google.cloud.vmmigration.v1.IUtilizationReport|null);
+
+ /** CreateUtilizationReportRequest utilizationReportId */
+ utilizationReportId?: (string|null);
+
+ /** CreateUtilizationReportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateUtilizationReportRequest. */
+ class CreateUtilizationReportRequest implements ICreateUtilizationReportRequest {
+
+ /**
+ * Constructs a new CreateUtilizationReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateUtilizationReportRequest);
+
+ /** CreateUtilizationReportRequest parent. */
+ public parent: string;
+
+ /** CreateUtilizationReportRequest utilizationReport. */
+ public utilizationReport?: (google.cloud.vmmigration.v1.IUtilizationReport|null);
+
+ /** CreateUtilizationReportRequest utilizationReportId. */
+ public utilizationReportId: string;
+
+ /** CreateUtilizationReportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateUtilizationReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateUtilizationReportRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateUtilizationReportRequest): google.cloud.vmmigration.v1.CreateUtilizationReportRequest;
+
+ /**
+ * Encodes the specified CreateUtilizationReportRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateUtilizationReportRequest.verify|verify} messages.
+ * @param message CreateUtilizationReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateUtilizationReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateUtilizationReportRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateUtilizationReportRequest.verify|verify} messages.
+ * @param message CreateUtilizationReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateUtilizationReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateUtilizationReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateUtilizationReportRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateUtilizationReportRequest;
+
+ /**
+ * Decodes a CreateUtilizationReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateUtilizationReportRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateUtilizationReportRequest;
+
+ /**
+ * Verifies a CreateUtilizationReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateUtilizationReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateUtilizationReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateUtilizationReportRequest;
+
+ /**
+ * Creates a plain object from a CreateUtilizationReportRequest message. Also converts values to other types if specified.
+ * @param message CreateUtilizationReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateUtilizationReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateUtilizationReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateUtilizationReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteUtilizationReportRequest. */
+ interface IDeleteUtilizationReportRequest {
+
+ /** DeleteUtilizationReportRequest name */
+ name?: (string|null);
+
+ /** DeleteUtilizationReportRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteUtilizationReportRequest. */
+ class DeleteUtilizationReportRequest implements IDeleteUtilizationReportRequest {
+
+ /**
+ * Constructs a new DeleteUtilizationReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest);
+
+ /** DeleteUtilizationReportRequest name. */
+ public name: string;
+
+ /** DeleteUtilizationReportRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteUtilizationReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteUtilizationReportRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest): google.cloud.vmmigration.v1.DeleteUtilizationReportRequest;
+
+ /**
+ * Encodes the specified DeleteUtilizationReportRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteUtilizationReportRequest.verify|verify} messages.
+ * @param message DeleteUtilizationReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteUtilizationReportRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteUtilizationReportRequest.verify|verify} messages.
+ * @param message DeleteUtilizationReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteUtilizationReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteUtilizationReportRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.DeleteUtilizationReportRequest;
+
+ /**
+ * Decodes a DeleteUtilizationReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteUtilizationReportRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.DeleteUtilizationReportRequest;
+
+ /**
+ * Verifies a DeleteUtilizationReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteUtilizationReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteUtilizationReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.DeleteUtilizationReportRequest;
+
+ /**
+ * Creates a plain object from a DeleteUtilizationReportRequest message. Also converts values to other types if specified.
+ * @param message DeleteUtilizationReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.DeleteUtilizationReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteUtilizationReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteUtilizationReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatacenterConnectorsResponse. */
+ interface IListDatacenterConnectorsResponse {
+
+ /** ListDatacenterConnectorsResponse datacenterConnectors */
+ datacenterConnectors?: (google.cloud.vmmigration.v1.IDatacenterConnector[]|null);
+
+ /** ListDatacenterConnectorsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListDatacenterConnectorsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListDatacenterConnectorsResponse. */
+ class ListDatacenterConnectorsResponse implements IListDatacenterConnectorsResponse {
+
+ /**
+ * Constructs a new ListDatacenterConnectorsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListDatacenterConnectorsResponse);
+
+ /** ListDatacenterConnectorsResponse datacenterConnectors. */
+ public datacenterConnectors: google.cloud.vmmigration.v1.IDatacenterConnector[];
+
+ /** ListDatacenterConnectorsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListDatacenterConnectorsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListDatacenterConnectorsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatacenterConnectorsResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListDatacenterConnectorsResponse): google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse;
+
+ /**
+ * Encodes the specified ListDatacenterConnectorsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse.verify|verify} messages.
+ * @param message ListDatacenterConnectorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListDatacenterConnectorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatacenterConnectorsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse.verify|verify} messages.
+ * @param message ListDatacenterConnectorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListDatacenterConnectorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatacenterConnectorsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatacenterConnectorsResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListDatacenterConnectorsResponse;
+
+ /**
+ * Decodes a ListDatacenterConnectorsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatacenterConnectorsResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListDatacenterConnectorsResponse;
+
+ /**
+ * Verifies a ListDatacenterConnectorsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDatacenterConnectorsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatacenterConnectorsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse;
+
+ /**
+ * Creates a plain object from a ListDatacenterConnectorsResponse message. Also converts values to other types if specified.
+ * @param message ListDatacenterConnectorsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatacenterConnectorsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatacenterConnectorsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetDatacenterConnectorRequest. */
+ interface IGetDatacenterConnectorRequest {
+
+ /** GetDatacenterConnectorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetDatacenterConnectorRequest. */
+ class GetDatacenterConnectorRequest implements IGetDatacenterConnectorRequest {
+
+ /**
+ * Constructs a new GetDatacenterConnectorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest);
+
+ /** GetDatacenterConnectorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetDatacenterConnectorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetDatacenterConnectorRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest): google.cloud.vmmigration.v1.GetDatacenterConnectorRequest;
+
+ /**
+ * Encodes the specified GetDatacenterConnectorRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetDatacenterConnectorRequest.verify|verify} messages.
+ * @param message GetDatacenterConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetDatacenterConnectorRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetDatacenterConnectorRequest.verify|verify} messages.
+ * @param message GetDatacenterConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetDatacenterConnectorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetDatacenterConnectorRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetDatacenterConnectorRequest;
+
+ /**
+ * Decodes a GetDatacenterConnectorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetDatacenterConnectorRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetDatacenterConnectorRequest;
+
+ /**
+ * Verifies a GetDatacenterConnectorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetDatacenterConnectorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetDatacenterConnectorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetDatacenterConnectorRequest;
+
+ /**
+ * Creates a plain object from a GetDatacenterConnectorRequest message. Also converts values to other types if specified.
+ * @param message GetDatacenterConnectorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetDatacenterConnectorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetDatacenterConnectorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetDatacenterConnectorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateDatacenterConnectorRequest. */
+ interface ICreateDatacenterConnectorRequest {
+
+ /** CreateDatacenterConnectorRequest parent */
+ parent?: (string|null);
+
+ /** CreateDatacenterConnectorRequest datacenterConnectorId */
+ datacenterConnectorId?: (string|null);
+
+ /** CreateDatacenterConnectorRequest datacenterConnector */
+ datacenterConnector?: (google.cloud.vmmigration.v1.IDatacenterConnector|null);
+
+ /** CreateDatacenterConnectorRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateDatacenterConnectorRequest. */
+ class CreateDatacenterConnectorRequest implements ICreateDatacenterConnectorRequest {
+
+ /**
+ * Constructs a new CreateDatacenterConnectorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest);
+
+ /** CreateDatacenterConnectorRequest parent. */
+ public parent: string;
+
+ /** CreateDatacenterConnectorRequest datacenterConnectorId. */
+ public datacenterConnectorId: string;
+
+ /** CreateDatacenterConnectorRequest datacenterConnector. */
+ public datacenterConnector?: (google.cloud.vmmigration.v1.IDatacenterConnector|null);
+
+ /** CreateDatacenterConnectorRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateDatacenterConnectorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateDatacenterConnectorRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest): google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest;
+
+ /**
+ * Encodes the specified CreateDatacenterConnectorRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest.verify|verify} messages.
+ * @param message CreateDatacenterConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateDatacenterConnectorRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest.verify|verify} messages.
+ * @param message CreateDatacenterConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateDatacenterConnectorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateDatacenterConnectorRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateDatacenterConnectorRequest;
+
+ /**
+ * Decodes a CreateDatacenterConnectorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateDatacenterConnectorRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateDatacenterConnectorRequest;
+
+ /**
+ * Verifies a CreateDatacenterConnectorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateDatacenterConnectorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateDatacenterConnectorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest;
+
+ /**
+ * Creates a plain object from a CreateDatacenterConnectorRequest message. Also converts values to other types if specified.
+ * @param message CreateDatacenterConnectorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateDatacenterConnectorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateDatacenterConnectorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteDatacenterConnectorRequest. */
+ interface IDeleteDatacenterConnectorRequest {
+
+ /** DeleteDatacenterConnectorRequest name */
+ name?: (string|null);
+
+ /** DeleteDatacenterConnectorRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteDatacenterConnectorRequest. */
+ class DeleteDatacenterConnectorRequest implements IDeleteDatacenterConnectorRequest {
+
+ /**
+ * Constructs a new DeleteDatacenterConnectorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest);
+
+ /** DeleteDatacenterConnectorRequest name. */
+ public name: string;
+
+ /** DeleteDatacenterConnectorRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteDatacenterConnectorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteDatacenterConnectorRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest): google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest;
+
+ /**
+ * Encodes the specified DeleteDatacenterConnectorRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest.verify|verify} messages.
+ * @param message DeleteDatacenterConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteDatacenterConnectorRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest.verify|verify} messages.
+ * @param message DeleteDatacenterConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteDatacenterConnectorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteDatacenterConnectorRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.DeleteDatacenterConnectorRequest;
+
+ /**
+ * Decodes a DeleteDatacenterConnectorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteDatacenterConnectorRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.DeleteDatacenterConnectorRequest;
+
+ /**
+ * Verifies a DeleteDatacenterConnectorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteDatacenterConnectorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteDatacenterConnectorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest;
+
+ /**
+ * Creates a plain object from a DeleteDatacenterConnectorRequest message. Also converts values to other types if specified.
+ * @param message DeleteDatacenterConnectorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteDatacenterConnectorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteDatacenterConnectorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpgradeApplianceRequest. */
+ interface IUpgradeApplianceRequest {
+
+ /** UpgradeApplianceRequest datacenterConnector */
+ datacenterConnector?: (string|null);
+
+ /** UpgradeApplianceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpgradeApplianceRequest. */
+ class UpgradeApplianceRequest implements IUpgradeApplianceRequest {
+
+ /**
+ * Constructs a new UpgradeApplianceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUpgradeApplianceRequest);
+
+ /** UpgradeApplianceRequest datacenterConnector. */
+ public datacenterConnector: string;
+
+ /** UpgradeApplianceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpgradeApplianceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpgradeApplianceRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUpgradeApplianceRequest): google.cloud.vmmigration.v1.UpgradeApplianceRequest;
+
+ /**
+ * Encodes the specified UpgradeApplianceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeApplianceRequest.verify|verify} messages.
+ * @param message UpgradeApplianceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUpgradeApplianceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpgradeApplianceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeApplianceRequest.verify|verify} messages.
+ * @param message UpgradeApplianceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUpgradeApplianceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpgradeApplianceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpgradeApplianceRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UpgradeApplianceRequest;
+
+ /**
+ * Decodes an UpgradeApplianceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpgradeApplianceRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.UpgradeApplianceRequest;
+
+ /**
+ * Verifies an UpgradeApplianceRequest message.
+ * @param message Plain 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 UpgradeApplianceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpgradeApplianceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UpgradeApplianceRequest;
+
+ /**
+ * Creates a plain object from an UpgradeApplianceRequest message. Also converts values to other types if specified.
+ * @param message UpgradeApplianceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UpgradeApplianceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpgradeApplianceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpgradeApplianceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpgradeApplianceResponse. */
+ interface IUpgradeApplianceResponse {
+ }
+
+ /** Represents an UpgradeApplianceResponse. */
+ class UpgradeApplianceResponse implements IUpgradeApplianceResponse {
+
+ /**
+ * Constructs a new UpgradeApplianceResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUpgradeApplianceResponse);
+
+ /**
+ * Creates a new UpgradeApplianceResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpgradeApplianceResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUpgradeApplianceResponse): google.cloud.vmmigration.v1.UpgradeApplianceResponse;
+
+ /**
+ * Encodes the specified UpgradeApplianceResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeApplianceResponse.verify|verify} messages.
+ * @param message UpgradeApplianceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUpgradeApplianceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpgradeApplianceResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeApplianceResponse.verify|verify} messages.
+ * @param message UpgradeApplianceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUpgradeApplianceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpgradeApplianceResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpgradeApplianceResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UpgradeApplianceResponse;
+
+ /**
+ * Decodes an UpgradeApplianceResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpgradeApplianceResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.UpgradeApplianceResponse;
+
+ /**
+ * Verifies an UpgradeApplianceResponse message.
+ * @param message Plain 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 UpgradeApplianceResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpgradeApplianceResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UpgradeApplianceResponse;
+
+ /**
+ * Creates a plain object from an UpgradeApplianceResponse message. Also converts values to other types if specified.
+ * @param message UpgradeApplianceResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UpgradeApplianceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpgradeApplianceResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpgradeApplianceResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListDatacenterConnectorsRequest. */
+ interface IListDatacenterConnectorsRequest {
+
+ /** ListDatacenterConnectorsRequest parent */
+ parent?: (string|null);
+
+ /** ListDatacenterConnectorsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListDatacenterConnectorsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListDatacenterConnectorsRequest filter */
+ filter?: (string|null);
+
+ /** ListDatacenterConnectorsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListDatacenterConnectorsRequest. */
+ class ListDatacenterConnectorsRequest implements IListDatacenterConnectorsRequest {
+
+ /**
+ * Constructs a new ListDatacenterConnectorsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest);
+
+ /** ListDatacenterConnectorsRequest parent. */
+ public parent: string;
+
+ /** ListDatacenterConnectorsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListDatacenterConnectorsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListDatacenterConnectorsRequest filter. */
+ public filter: string;
+
+ /** ListDatacenterConnectorsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListDatacenterConnectorsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListDatacenterConnectorsRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest): google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest;
+
+ /**
+ * Encodes the specified ListDatacenterConnectorsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest.verify|verify} messages.
+ * @param message ListDatacenterConnectorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListDatacenterConnectorsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest.verify|verify} messages.
+ * @param message ListDatacenterConnectorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListDatacenterConnectorsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListDatacenterConnectorsRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListDatacenterConnectorsRequest;
+
+ /**
+ * Decodes a ListDatacenterConnectorsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListDatacenterConnectorsRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListDatacenterConnectorsRequest;
+
+ /**
+ * Verifies a ListDatacenterConnectorsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListDatacenterConnectorsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListDatacenterConnectorsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest;
+
+ /**
+ * Creates a plain object from a ListDatacenterConnectorsRequest message. Also converts values to other types if specified.
+ * @param message ListDatacenterConnectorsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListDatacenterConnectorsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListDatacenterConnectorsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ComputeEngineTargetDefaults. */
+ interface IComputeEngineTargetDefaults {
+
+ /** ComputeEngineTargetDefaults vmName */
+ vmName?: (string|null);
+
+ /** ComputeEngineTargetDefaults targetProject */
+ targetProject?: (string|null);
+
+ /** ComputeEngineTargetDefaults zone */
+ zone?: (string|null);
+
+ /** ComputeEngineTargetDefaults machineTypeSeries */
+ machineTypeSeries?: (string|null);
+
+ /** ComputeEngineTargetDefaults machineType */
+ machineType?: (string|null);
+
+ /** ComputeEngineTargetDefaults networkTags */
+ networkTags?: (string[]|null);
+
+ /** ComputeEngineTargetDefaults networkInterfaces */
+ networkInterfaces?: (google.cloud.vmmigration.v1.INetworkInterface[]|null);
+
+ /** ComputeEngineTargetDefaults serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** ComputeEngineTargetDefaults diskType */
+ diskType?: (google.cloud.vmmigration.v1.ComputeEngineDiskType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineDiskType|null);
+
+ /** ComputeEngineTargetDefaults labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ComputeEngineTargetDefaults licenseType */
+ licenseType?: (google.cloud.vmmigration.v1.ComputeEngineLicenseType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineLicenseType|null);
+
+ /** ComputeEngineTargetDefaults appliedLicense */
+ appliedLicense?: (google.cloud.vmmigration.v1.IAppliedLicense|null);
+
+ /** ComputeEngineTargetDefaults computeScheduling */
+ computeScheduling?: (google.cloud.vmmigration.v1.IComputeScheduling|null);
+
+ /** ComputeEngineTargetDefaults secureBoot */
+ secureBoot?: (boolean|null);
+
+ /** ComputeEngineTargetDefaults bootOption */
+ bootOption?: (google.cloud.vmmigration.v1.ComputeEngineBootOption|keyof typeof google.cloud.vmmigration.v1.ComputeEngineBootOption|null);
+
+ /** ComputeEngineTargetDefaults metadata */
+ metadata?: ({ [k: string]: string }|null);
+
+ /** ComputeEngineTargetDefaults additionalLicenses */
+ additionalLicenses?: (string[]|null);
+
+ /** ComputeEngineTargetDefaults hostname */
+ hostname?: (string|null);
+ }
+
+ /** Represents a ComputeEngineTargetDefaults. */
+ class ComputeEngineTargetDefaults implements IComputeEngineTargetDefaults {
+
+ /**
+ * Constructs a new ComputeEngineTargetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IComputeEngineTargetDefaults);
+
+ /** ComputeEngineTargetDefaults vmName. */
+ public vmName: string;
+
+ /** ComputeEngineTargetDefaults targetProject. */
+ public targetProject: string;
+
+ /** ComputeEngineTargetDefaults zone. */
+ public zone: string;
+
+ /** ComputeEngineTargetDefaults machineTypeSeries. */
+ public machineTypeSeries: string;
+
+ /** ComputeEngineTargetDefaults machineType. */
+ public machineType: string;
+
+ /** ComputeEngineTargetDefaults networkTags. */
+ public networkTags: string[];
+
+ /** ComputeEngineTargetDefaults networkInterfaces. */
+ public networkInterfaces: google.cloud.vmmigration.v1.INetworkInterface[];
+
+ /** ComputeEngineTargetDefaults serviceAccount. */
+ public serviceAccount: string;
+
+ /** ComputeEngineTargetDefaults diskType. */
+ public diskType: (google.cloud.vmmigration.v1.ComputeEngineDiskType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineDiskType);
+
+ /** ComputeEngineTargetDefaults labels. */
+ public labels: { [k: string]: string };
+
+ /** ComputeEngineTargetDefaults licenseType. */
+ public licenseType: (google.cloud.vmmigration.v1.ComputeEngineLicenseType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineLicenseType);
+
+ /** ComputeEngineTargetDefaults appliedLicense. */
+ public appliedLicense?: (google.cloud.vmmigration.v1.IAppliedLicense|null);
+
+ /** ComputeEngineTargetDefaults computeScheduling. */
+ public computeScheduling?: (google.cloud.vmmigration.v1.IComputeScheduling|null);
+
+ /** ComputeEngineTargetDefaults secureBoot. */
+ public secureBoot: boolean;
+
+ /** ComputeEngineTargetDefaults bootOption. */
+ public bootOption: (google.cloud.vmmigration.v1.ComputeEngineBootOption|keyof typeof google.cloud.vmmigration.v1.ComputeEngineBootOption);
+
+ /** ComputeEngineTargetDefaults metadata. */
+ public metadata: { [k: string]: string };
+
+ /** ComputeEngineTargetDefaults additionalLicenses. */
+ public additionalLicenses: string[];
+
+ /** ComputeEngineTargetDefaults hostname. */
+ public hostname: string;
+
+ /**
+ * Creates a new ComputeEngineTargetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ComputeEngineTargetDefaults instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IComputeEngineTargetDefaults): google.cloud.vmmigration.v1.ComputeEngineTargetDefaults;
+
+ /**
+ * Encodes the specified ComputeEngineTargetDefaults message. Does not implicitly {@link google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.verify|verify} messages.
+ * @param message ComputeEngineTargetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IComputeEngineTargetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ComputeEngineTargetDefaults message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.verify|verify} messages.
+ * @param message ComputeEngineTargetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IComputeEngineTargetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ComputeEngineTargetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ComputeEngineTargetDefaults
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ComputeEngineTargetDefaults;
+
+ /**
+ * Decodes a ComputeEngineTargetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ComputeEngineTargetDefaults
+ * @throws {Error} If the payload 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.vmmigration.v1.ComputeEngineTargetDefaults;
+
+ /**
+ * Verifies a ComputeEngineTargetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ComputeEngineTargetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ComputeEngineTargetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ComputeEngineTargetDefaults;
+
+ /**
+ * Creates a plain object from a ComputeEngineTargetDefaults message. Also converts values to other types if specified.
+ * @param message ComputeEngineTargetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ComputeEngineTargetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ComputeEngineTargetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ComputeEngineTargetDetails. */
+ interface IComputeEngineTargetDetails {
+
+ /** ComputeEngineTargetDetails vmName */
+ vmName?: (string|null);
+
+ /** ComputeEngineTargetDetails project */
+ project?: (string|null);
+
+ /** ComputeEngineTargetDetails zone */
+ zone?: (string|null);
+
+ /** ComputeEngineTargetDetails machineTypeSeries */
+ machineTypeSeries?: (string|null);
+
+ /** ComputeEngineTargetDetails machineType */
+ machineType?: (string|null);
+
+ /** ComputeEngineTargetDetails networkTags */
+ networkTags?: (string[]|null);
+
+ /** ComputeEngineTargetDetails networkInterfaces */
+ networkInterfaces?: (google.cloud.vmmigration.v1.INetworkInterface[]|null);
+
+ /** ComputeEngineTargetDetails serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** ComputeEngineTargetDetails diskType */
+ diskType?: (google.cloud.vmmigration.v1.ComputeEngineDiskType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineDiskType|null);
+
+ /** ComputeEngineTargetDetails labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ComputeEngineTargetDetails licenseType */
+ licenseType?: (google.cloud.vmmigration.v1.ComputeEngineLicenseType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineLicenseType|null);
+
+ /** ComputeEngineTargetDetails appliedLicense */
+ appliedLicense?: (google.cloud.vmmigration.v1.IAppliedLicense|null);
+
+ /** ComputeEngineTargetDetails computeScheduling */
+ computeScheduling?: (google.cloud.vmmigration.v1.IComputeScheduling|null);
+
+ /** ComputeEngineTargetDetails secureBoot */
+ secureBoot?: (boolean|null);
+
+ /** ComputeEngineTargetDetails bootOption */
+ bootOption?: (google.cloud.vmmigration.v1.ComputeEngineBootOption|keyof typeof google.cloud.vmmigration.v1.ComputeEngineBootOption|null);
+
+ /** ComputeEngineTargetDetails metadata */
+ metadata?: ({ [k: string]: string }|null);
+
+ /** ComputeEngineTargetDetails additionalLicenses */
+ additionalLicenses?: (string[]|null);
+
+ /** ComputeEngineTargetDetails hostname */
+ hostname?: (string|null);
+ }
+
+ /** Represents a ComputeEngineTargetDetails. */
+ class ComputeEngineTargetDetails implements IComputeEngineTargetDetails {
+
+ /**
+ * Constructs a new ComputeEngineTargetDetails.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IComputeEngineTargetDetails);
+
+ /** ComputeEngineTargetDetails vmName. */
+ public vmName: string;
+
+ /** ComputeEngineTargetDetails project. */
+ public project: string;
+
+ /** ComputeEngineTargetDetails zone. */
+ public zone: string;
+
+ /** ComputeEngineTargetDetails machineTypeSeries. */
+ public machineTypeSeries: string;
+
+ /** ComputeEngineTargetDetails machineType. */
+ public machineType: string;
+
+ /** ComputeEngineTargetDetails networkTags. */
+ public networkTags: string[];
+
+ /** ComputeEngineTargetDetails networkInterfaces. */
+ public networkInterfaces: google.cloud.vmmigration.v1.INetworkInterface[];
+
+ /** ComputeEngineTargetDetails serviceAccount. */
+ public serviceAccount: string;
+
+ /** ComputeEngineTargetDetails diskType. */
+ public diskType: (google.cloud.vmmigration.v1.ComputeEngineDiskType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineDiskType);
+
+ /** ComputeEngineTargetDetails labels. */
+ public labels: { [k: string]: string };
+
+ /** ComputeEngineTargetDetails licenseType. */
+ public licenseType: (google.cloud.vmmigration.v1.ComputeEngineLicenseType|keyof typeof google.cloud.vmmigration.v1.ComputeEngineLicenseType);
+
+ /** ComputeEngineTargetDetails appliedLicense. */
+ public appliedLicense?: (google.cloud.vmmigration.v1.IAppliedLicense|null);
+
+ /** ComputeEngineTargetDetails computeScheduling. */
+ public computeScheduling?: (google.cloud.vmmigration.v1.IComputeScheduling|null);
+
+ /** ComputeEngineTargetDetails secureBoot. */
+ public secureBoot: boolean;
+
+ /** ComputeEngineTargetDetails bootOption. */
+ public bootOption: (google.cloud.vmmigration.v1.ComputeEngineBootOption|keyof typeof google.cloud.vmmigration.v1.ComputeEngineBootOption);
+
+ /** ComputeEngineTargetDetails metadata. */
+ public metadata: { [k: string]: string };
+
+ /** ComputeEngineTargetDetails additionalLicenses. */
+ public additionalLicenses: string[];
+
+ /** ComputeEngineTargetDetails hostname. */
+ public hostname: string;
+
+ /**
+ * Creates a new ComputeEngineTargetDetails instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ComputeEngineTargetDetails instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IComputeEngineTargetDetails): google.cloud.vmmigration.v1.ComputeEngineTargetDetails;
+
+ /**
+ * Encodes the specified ComputeEngineTargetDetails message. Does not implicitly {@link google.cloud.vmmigration.v1.ComputeEngineTargetDetails.verify|verify} messages.
+ * @param message ComputeEngineTargetDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IComputeEngineTargetDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ComputeEngineTargetDetails message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ComputeEngineTargetDetails.verify|verify} messages.
+ * @param message ComputeEngineTargetDetails message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IComputeEngineTargetDetails, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ComputeEngineTargetDetails message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ComputeEngineTargetDetails
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ComputeEngineTargetDetails;
+
+ /**
+ * Decodes a ComputeEngineTargetDetails message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ComputeEngineTargetDetails
+ * @throws {Error} If the payload 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.vmmigration.v1.ComputeEngineTargetDetails;
+
+ /**
+ * Verifies a ComputeEngineTargetDetails message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ComputeEngineTargetDetails message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ComputeEngineTargetDetails
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ComputeEngineTargetDetails;
+
+ /**
+ * Creates a plain object from a ComputeEngineTargetDetails message. Also converts values to other types if specified.
+ * @param message ComputeEngineTargetDetails
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ComputeEngineTargetDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ComputeEngineTargetDetails to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ComputeEngineTargetDetails
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NetworkInterface. */
+ interface INetworkInterface {
+
+ /** NetworkInterface network */
+ network?: (string|null);
+
+ /** NetworkInterface subnetwork */
+ subnetwork?: (string|null);
+
+ /** NetworkInterface internalIp */
+ internalIp?: (string|null);
+
+ /** NetworkInterface externalIp */
+ externalIp?: (string|null);
+ }
+
+ /** Represents a NetworkInterface. */
+ class NetworkInterface implements INetworkInterface {
+
+ /**
+ * Constructs a new NetworkInterface.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.INetworkInterface);
+
+ /** NetworkInterface network. */
+ public network: string;
+
+ /** NetworkInterface subnetwork. */
+ public subnetwork: string;
+
+ /** NetworkInterface internalIp. */
+ public internalIp: string;
+
+ /** NetworkInterface externalIp. */
+ public externalIp: string;
+
+ /**
+ * Creates a new NetworkInterface instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkInterface instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.INetworkInterface): google.cloud.vmmigration.v1.NetworkInterface;
+
+ /**
+ * Encodes the specified NetworkInterface message. Does not implicitly {@link google.cloud.vmmigration.v1.NetworkInterface.verify|verify} messages.
+ * @param message NetworkInterface message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkInterface message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.NetworkInterface.verify|verify} messages.
+ * @param message NetworkInterface message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.INetworkInterface, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkInterface message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkInterface
+ * @throws {Error} If the payload is not 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.vmmigration.v1.NetworkInterface;
+
+ /**
+ * Decodes a NetworkInterface message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkInterface
+ * @throws {Error} If the payload 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.vmmigration.v1.NetworkInterface;
+
+ /**
+ * Verifies a NetworkInterface message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkInterface
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.NetworkInterface;
+
+ /**
+ * Creates a plain object from a NetworkInterface message. Also converts values to other types if specified.
+ * @param message NetworkInterface
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.NetworkInterface, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkInterface to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkInterface
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AppliedLicense. */
+ interface IAppliedLicense {
+
+ /** AppliedLicense type */
+ type?: (google.cloud.vmmigration.v1.AppliedLicense.Type|keyof typeof google.cloud.vmmigration.v1.AppliedLicense.Type|null);
+
+ /** AppliedLicense osLicense */
+ osLicense?: (string|null);
+ }
+
+ /** Represents an AppliedLicense. */
+ class AppliedLicense implements IAppliedLicense {
+
+ /**
+ * Constructs a new AppliedLicense.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IAppliedLicense);
+
+ /** AppliedLicense type. */
+ public type: (google.cloud.vmmigration.v1.AppliedLicense.Type|keyof typeof google.cloud.vmmigration.v1.AppliedLicense.Type);
+
+ /** AppliedLicense osLicense. */
+ public osLicense: string;
+
+ /**
+ * Creates a new AppliedLicense instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AppliedLicense instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IAppliedLicense): google.cloud.vmmigration.v1.AppliedLicense;
+
+ /**
+ * Encodes the specified AppliedLicense message. Does not implicitly {@link google.cloud.vmmigration.v1.AppliedLicense.verify|verify} messages.
+ * @param message AppliedLicense message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IAppliedLicense, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AppliedLicense message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.AppliedLicense.verify|verify} messages.
+ * @param message AppliedLicense message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IAppliedLicense, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AppliedLicense message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AppliedLicense
+ * @throws {Error} If the payload is not 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.vmmigration.v1.AppliedLicense;
+
+ /**
+ * Decodes an AppliedLicense message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AppliedLicense
+ * @throws {Error} If the payload 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.vmmigration.v1.AppliedLicense;
+
+ /**
+ * Verifies an AppliedLicense message.
+ * @param message Plain 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 AppliedLicense message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AppliedLicense
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.AppliedLicense;
+
+ /**
+ * Creates a plain object from an AppliedLicense message. Also converts values to other types if specified.
+ * @param message AppliedLicense
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.AppliedLicense, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AppliedLicense to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AppliedLicense
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AppliedLicense {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ NONE = 1,
+ PAYG = 2,
+ BYOL = 3
+ }
+ }
+
+ /** Properties of a SchedulingNodeAffinity. */
+ interface ISchedulingNodeAffinity {
+
+ /** SchedulingNodeAffinity key */
+ key?: (string|null);
+
+ /** SchedulingNodeAffinity operator */
+ operator?: (google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator|keyof typeof google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator|null);
+
+ /** SchedulingNodeAffinity values */
+ values?: (string[]|null);
+ }
+
+ /** Represents a SchedulingNodeAffinity. */
+ class SchedulingNodeAffinity implements ISchedulingNodeAffinity {
+
+ /**
+ * Constructs a new SchedulingNodeAffinity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ISchedulingNodeAffinity);
+
+ /** SchedulingNodeAffinity key. */
+ public key: string;
+
+ /** SchedulingNodeAffinity operator. */
+ public operator: (google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator|keyof typeof google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator);
+
+ /** SchedulingNodeAffinity values. */
+ public values: string[];
+
+ /**
+ * Creates a new SchedulingNodeAffinity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SchedulingNodeAffinity instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ISchedulingNodeAffinity): google.cloud.vmmigration.v1.SchedulingNodeAffinity;
+
+ /**
+ * Encodes the specified SchedulingNodeAffinity message. Does not implicitly {@link google.cloud.vmmigration.v1.SchedulingNodeAffinity.verify|verify} messages.
+ * @param message SchedulingNodeAffinity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ISchedulingNodeAffinity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SchedulingNodeAffinity message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.SchedulingNodeAffinity.verify|verify} messages.
+ * @param message SchedulingNodeAffinity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ISchedulingNodeAffinity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SchedulingNodeAffinity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SchedulingNodeAffinity
+ * @throws {Error} If the payload is not 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.vmmigration.v1.SchedulingNodeAffinity;
+
+ /**
+ * Decodes a SchedulingNodeAffinity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SchedulingNodeAffinity
+ * @throws {Error} If the payload 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.vmmigration.v1.SchedulingNodeAffinity;
+
+ /**
+ * Verifies a SchedulingNodeAffinity message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SchedulingNodeAffinity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SchedulingNodeAffinity
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.SchedulingNodeAffinity;
+
+ /**
+ * Creates a plain object from a SchedulingNodeAffinity message. Also converts values to other types if specified.
+ * @param message SchedulingNodeAffinity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.SchedulingNodeAffinity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SchedulingNodeAffinity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SchedulingNodeAffinity
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SchedulingNodeAffinity {
+
+ /** Operator enum. */
+ enum Operator {
+ OPERATOR_UNSPECIFIED = 0,
+ IN = 1,
+ NOT_IN = 2
+ }
+ }
+
+ /** Properties of a ComputeScheduling. */
+ interface IComputeScheduling {
+
+ /** ComputeScheduling onHostMaintenance */
+ onHostMaintenance?: (google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance|keyof typeof google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance|null);
+
+ /** ComputeScheduling restartType */
+ restartType?: (google.cloud.vmmigration.v1.ComputeScheduling.RestartType|keyof typeof google.cloud.vmmigration.v1.ComputeScheduling.RestartType|null);
+
+ /** ComputeScheduling nodeAffinities */
+ nodeAffinities?: (google.cloud.vmmigration.v1.ISchedulingNodeAffinity[]|null);
+
+ /** ComputeScheduling minNodeCpus */
+ minNodeCpus?: (number|null);
+ }
+
+ /** Represents a ComputeScheduling. */
+ class ComputeScheduling implements IComputeScheduling {
+
+ /**
+ * Constructs a new ComputeScheduling.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IComputeScheduling);
+
+ /** ComputeScheduling onHostMaintenance. */
+ public onHostMaintenance: (google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance|keyof typeof google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance);
+
+ /** ComputeScheduling restartType. */
+ public restartType: (google.cloud.vmmigration.v1.ComputeScheduling.RestartType|keyof typeof google.cloud.vmmigration.v1.ComputeScheduling.RestartType);
+
+ /** ComputeScheduling nodeAffinities. */
+ public nodeAffinities: google.cloud.vmmigration.v1.ISchedulingNodeAffinity[];
+
+ /** ComputeScheduling minNodeCpus. */
+ public minNodeCpus: number;
+
+ /**
+ * Creates a new ComputeScheduling instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ComputeScheduling instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IComputeScheduling): google.cloud.vmmigration.v1.ComputeScheduling;
+
+ /**
+ * Encodes the specified ComputeScheduling message. Does not implicitly {@link google.cloud.vmmigration.v1.ComputeScheduling.verify|verify} messages.
+ * @param message ComputeScheduling message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IComputeScheduling, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ComputeScheduling message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ComputeScheduling.verify|verify} messages.
+ * @param message ComputeScheduling message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IComputeScheduling, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ComputeScheduling message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ComputeScheduling
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ComputeScheduling;
+
+ /**
+ * Decodes a ComputeScheduling message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ComputeScheduling
+ * @throws {Error} If the payload 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.vmmigration.v1.ComputeScheduling;
+
+ /**
+ * Verifies a ComputeScheduling message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ComputeScheduling message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ComputeScheduling
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ComputeScheduling;
+
+ /**
+ * Creates a plain object from a ComputeScheduling message. Also converts values to other types if specified.
+ * @param message ComputeScheduling
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ComputeScheduling, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ComputeScheduling to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ComputeScheduling
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ComputeScheduling {
+
+ /** OnHostMaintenance enum. */
+ enum OnHostMaintenance {
+ ON_HOST_MAINTENANCE_UNSPECIFIED = 0,
+ TERMINATE = 1,
+ MIGRATE = 2
+ }
+
+ /** RestartType enum. */
+ enum RestartType {
+ RESTART_TYPE_UNSPECIFIED = 0,
+ AUTOMATIC_RESTART = 1,
+ NO_AUTOMATIC_RESTART = 2
+ }
+ }
+
+ /** Properties of a SchedulePolicy. */
+ interface ISchedulePolicy {
+
+ /** SchedulePolicy idleDuration */
+ idleDuration?: (google.protobuf.IDuration|null);
+
+ /** SchedulePolicy skipOsAdaptation */
+ skipOsAdaptation?: (boolean|null);
+ }
+
+ /** Represents a SchedulePolicy. */
+ class SchedulePolicy implements ISchedulePolicy {
+
+ /**
+ * Constructs a new SchedulePolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ISchedulePolicy);
+
+ /** SchedulePolicy idleDuration. */
+ public idleDuration?: (google.protobuf.IDuration|null);
+
+ /** SchedulePolicy skipOsAdaptation. */
+ public skipOsAdaptation: boolean;
+
+ /**
+ * Creates a new SchedulePolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SchedulePolicy instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ISchedulePolicy): google.cloud.vmmigration.v1.SchedulePolicy;
+
+ /**
+ * Encodes the specified SchedulePolicy message. Does not implicitly {@link google.cloud.vmmigration.v1.SchedulePolicy.verify|verify} messages.
+ * @param message SchedulePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ISchedulePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SchedulePolicy message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.SchedulePolicy.verify|verify} messages.
+ * @param message SchedulePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ISchedulePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SchedulePolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SchedulePolicy
+ * @throws {Error} If the payload is not 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.vmmigration.v1.SchedulePolicy;
+
+ /**
+ * Decodes a SchedulePolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SchedulePolicy
+ * @throws {Error} If the payload 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.vmmigration.v1.SchedulePolicy;
+
+ /**
+ * Verifies a SchedulePolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SchedulePolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SchedulePolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.SchedulePolicy;
+
+ /**
+ * Creates a plain object from a SchedulePolicy message. Also converts values to other types if specified.
+ * @param message SchedulePolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.SchedulePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SchedulePolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SchedulePolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateMigratingVmRequest. */
+ interface ICreateMigratingVmRequest {
+
+ /** CreateMigratingVmRequest parent */
+ parent?: (string|null);
+
+ /** CreateMigratingVmRequest migratingVmId */
+ migratingVmId?: (string|null);
+
+ /** CreateMigratingVmRequest migratingVm */
+ migratingVm?: (google.cloud.vmmigration.v1.IMigratingVm|null);
+
+ /** CreateMigratingVmRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateMigratingVmRequest. */
+ class CreateMigratingVmRequest implements ICreateMigratingVmRequest {
+
+ /**
+ * Constructs a new CreateMigratingVmRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateMigratingVmRequest);
+
+ /** CreateMigratingVmRequest parent. */
+ public parent: string;
+
+ /** CreateMigratingVmRequest migratingVmId. */
+ public migratingVmId: string;
+
+ /** CreateMigratingVmRequest migratingVm. */
+ public migratingVm?: (google.cloud.vmmigration.v1.IMigratingVm|null);
+
+ /** CreateMigratingVmRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateMigratingVmRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateMigratingVmRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateMigratingVmRequest): google.cloud.vmmigration.v1.CreateMigratingVmRequest;
+
+ /**
+ * Encodes the specified CreateMigratingVmRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateMigratingVmRequest.verify|verify} messages.
+ * @param message CreateMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateMigratingVmRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateMigratingVmRequest.verify|verify} messages.
+ * @param message CreateMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateMigratingVmRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateMigratingVmRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateMigratingVmRequest;
+
+ /**
+ * Decodes a CreateMigratingVmRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateMigratingVmRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateMigratingVmRequest;
+
+ /**
+ * Verifies a CreateMigratingVmRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateMigratingVmRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateMigratingVmRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateMigratingVmRequest;
+
+ /**
+ * Creates a plain object from a CreateMigratingVmRequest message. Also converts values to other types if specified.
+ * @param message CreateMigratingVmRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateMigratingVmRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateMigratingVmRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateMigratingVmRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMigratingVmsRequest. */
+ interface IListMigratingVmsRequest {
+
+ /** ListMigratingVmsRequest parent */
+ parent?: (string|null);
+
+ /** ListMigratingVmsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListMigratingVmsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListMigratingVmsRequest filter */
+ filter?: (string|null);
+
+ /** ListMigratingVmsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListMigratingVmsRequest view */
+ view?: (google.cloud.vmmigration.v1.MigratingVmView|keyof typeof google.cloud.vmmigration.v1.MigratingVmView|null);
+ }
+
+ /** Represents a ListMigratingVmsRequest. */
+ class ListMigratingVmsRequest implements IListMigratingVmsRequest {
+
+ /**
+ * Constructs a new ListMigratingVmsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListMigratingVmsRequest);
+
+ /** ListMigratingVmsRequest parent. */
+ public parent: string;
+
+ /** ListMigratingVmsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListMigratingVmsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListMigratingVmsRequest filter. */
+ public filter: string;
+
+ /** ListMigratingVmsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListMigratingVmsRequest view. */
+ public view: (google.cloud.vmmigration.v1.MigratingVmView|keyof typeof google.cloud.vmmigration.v1.MigratingVmView);
+
+ /**
+ * Creates a new ListMigratingVmsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMigratingVmsRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListMigratingVmsRequest): google.cloud.vmmigration.v1.ListMigratingVmsRequest;
+
+ /**
+ * Encodes the specified ListMigratingVmsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListMigratingVmsRequest.verify|verify} messages.
+ * @param message ListMigratingVmsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListMigratingVmsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMigratingVmsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListMigratingVmsRequest.verify|verify} messages.
+ * @param message ListMigratingVmsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListMigratingVmsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMigratingVmsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMigratingVmsRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListMigratingVmsRequest;
+
+ /**
+ * Decodes a ListMigratingVmsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMigratingVmsRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListMigratingVmsRequest;
+
+ /**
+ * Verifies a ListMigratingVmsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMigratingVmsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMigratingVmsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListMigratingVmsRequest;
+
+ /**
+ * Creates a plain object from a ListMigratingVmsRequest message. Also converts values to other types if specified.
+ * @param message ListMigratingVmsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListMigratingVmsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMigratingVmsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMigratingVmsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMigratingVmsResponse. */
+ interface IListMigratingVmsResponse {
+
+ /** ListMigratingVmsResponse migratingVms */
+ migratingVms?: (google.cloud.vmmigration.v1.IMigratingVm[]|null);
+
+ /** ListMigratingVmsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListMigratingVmsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListMigratingVmsResponse. */
+ class ListMigratingVmsResponse implements IListMigratingVmsResponse {
+
+ /**
+ * Constructs a new ListMigratingVmsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListMigratingVmsResponse);
+
+ /** ListMigratingVmsResponse migratingVms. */
+ public migratingVms: google.cloud.vmmigration.v1.IMigratingVm[];
+
+ /** ListMigratingVmsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListMigratingVmsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListMigratingVmsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMigratingVmsResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListMigratingVmsResponse): google.cloud.vmmigration.v1.ListMigratingVmsResponse;
+
+ /**
+ * Encodes the specified ListMigratingVmsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListMigratingVmsResponse.verify|verify} messages.
+ * @param message ListMigratingVmsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListMigratingVmsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMigratingVmsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListMigratingVmsResponse.verify|verify} messages.
+ * @param message ListMigratingVmsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListMigratingVmsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMigratingVmsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMigratingVmsResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListMigratingVmsResponse;
+
+ /**
+ * Decodes a ListMigratingVmsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMigratingVmsResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListMigratingVmsResponse;
+
+ /**
+ * Verifies a ListMigratingVmsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMigratingVmsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMigratingVmsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListMigratingVmsResponse;
+
+ /**
+ * Creates a plain object from a ListMigratingVmsResponse message. Also converts values to other types if specified.
+ * @param message ListMigratingVmsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListMigratingVmsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMigratingVmsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMigratingVmsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetMigratingVmRequest. */
+ interface IGetMigratingVmRequest {
+
+ /** GetMigratingVmRequest name */
+ name?: (string|null);
+
+ /** GetMigratingVmRequest view */
+ view?: (google.cloud.vmmigration.v1.MigratingVmView|keyof typeof google.cloud.vmmigration.v1.MigratingVmView|null);
+ }
+
+ /** Represents a GetMigratingVmRequest. */
+ class GetMigratingVmRequest implements IGetMigratingVmRequest {
+
+ /**
+ * Constructs a new GetMigratingVmRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetMigratingVmRequest);
+
+ /** GetMigratingVmRequest name. */
+ public name: string;
+
+ /** GetMigratingVmRequest view. */
+ public view: (google.cloud.vmmigration.v1.MigratingVmView|keyof typeof google.cloud.vmmigration.v1.MigratingVmView);
+
+ /**
+ * Creates a new GetMigratingVmRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetMigratingVmRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetMigratingVmRequest): google.cloud.vmmigration.v1.GetMigratingVmRequest;
+
+ /**
+ * Encodes the specified GetMigratingVmRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetMigratingVmRequest.verify|verify} messages.
+ * @param message GetMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetMigratingVmRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetMigratingVmRequest.verify|verify} messages.
+ * @param message GetMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetMigratingVmRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetMigratingVmRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetMigratingVmRequest;
+
+ /**
+ * Decodes a GetMigratingVmRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetMigratingVmRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetMigratingVmRequest;
+
+ /**
+ * Verifies a GetMigratingVmRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetMigratingVmRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetMigratingVmRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetMigratingVmRequest;
+
+ /**
+ * Creates a plain object from a GetMigratingVmRequest message. Also converts values to other types if specified.
+ * @param message GetMigratingVmRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetMigratingVmRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetMigratingVmRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetMigratingVmRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateMigratingVmRequest. */
+ interface IUpdateMigratingVmRequest {
+
+ /** UpdateMigratingVmRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMigratingVmRequest migratingVm */
+ migratingVm?: (google.cloud.vmmigration.v1.IMigratingVm|null);
+
+ /** UpdateMigratingVmRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateMigratingVmRequest. */
+ class UpdateMigratingVmRequest implements IUpdateMigratingVmRequest {
+
+ /**
+ * Constructs a new UpdateMigratingVmRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUpdateMigratingVmRequest);
+
+ /** UpdateMigratingVmRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateMigratingVmRequest migratingVm. */
+ public migratingVm?: (google.cloud.vmmigration.v1.IMigratingVm|null);
+
+ /** UpdateMigratingVmRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateMigratingVmRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateMigratingVmRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUpdateMigratingVmRequest): google.cloud.vmmigration.v1.UpdateMigratingVmRequest;
+
+ /**
+ * Encodes the specified UpdateMigratingVmRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateMigratingVmRequest.verify|verify} messages.
+ * @param message UpdateMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUpdateMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateMigratingVmRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateMigratingVmRequest.verify|verify} messages.
+ * @param message UpdateMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUpdateMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateMigratingVmRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateMigratingVmRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UpdateMigratingVmRequest;
+
+ /**
+ * Decodes an UpdateMigratingVmRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateMigratingVmRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.UpdateMigratingVmRequest;
+
+ /**
+ * Verifies an UpdateMigratingVmRequest message.
+ * @param message Plain 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 UpdateMigratingVmRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateMigratingVmRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UpdateMigratingVmRequest;
+
+ /**
+ * Creates a plain object from an UpdateMigratingVmRequest message. Also converts values to other types if specified.
+ * @param message UpdateMigratingVmRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UpdateMigratingVmRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateMigratingVmRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateMigratingVmRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteMigratingVmRequest. */
+ interface IDeleteMigratingVmRequest {
+
+ /** DeleteMigratingVmRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteMigratingVmRequest. */
+ class DeleteMigratingVmRequest implements IDeleteMigratingVmRequest {
+
+ /**
+ * Constructs a new DeleteMigratingVmRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IDeleteMigratingVmRequest);
+
+ /** DeleteMigratingVmRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteMigratingVmRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteMigratingVmRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IDeleteMigratingVmRequest): google.cloud.vmmigration.v1.DeleteMigratingVmRequest;
+
+ /**
+ * Encodes the specified DeleteMigratingVmRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteMigratingVmRequest.verify|verify} messages.
+ * @param message DeleteMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IDeleteMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteMigratingVmRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteMigratingVmRequest.verify|verify} messages.
+ * @param message DeleteMigratingVmRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IDeleteMigratingVmRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteMigratingVmRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteMigratingVmRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.DeleteMigratingVmRequest;
+
+ /**
+ * Decodes a DeleteMigratingVmRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteMigratingVmRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.DeleteMigratingVmRequest;
+
+ /**
+ * Verifies a DeleteMigratingVmRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteMigratingVmRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteMigratingVmRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.DeleteMigratingVmRequest;
+
+ /**
+ * Creates a plain object from a DeleteMigratingVmRequest message. Also converts values to other types if specified.
+ * @param message DeleteMigratingVmRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.DeleteMigratingVmRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteMigratingVmRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteMigratingVmRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StartMigrationRequest. */
+ interface IStartMigrationRequest {
+
+ /** StartMigrationRequest migratingVm */
+ migratingVm?: (string|null);
+ }
+
+ /** Represents a StartMigrationRequest. */
+ class StartMigrationRequest implements IStartMigrationRequest {
+
+ /**
+ * Constructs a new StartMigrationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IStartMigrationRequest);
+
+ /** StartMigrationRequest migratingVm. */
+ public migratingVm: string;
+
+ /**
+ * Creates a new StartMigrationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StartMigrationRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IStartMigrationRequest): google.cloud.vmmigration.v1.StartMigrationRequest;
+
+ /**
+ * Encodes the specified StartMigrationRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.StartMigrationRequest.verify|verify} messages.
+ * @param message StartMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IStartMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StartMigrationRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.StartMigrationRequest.verify|verify} messages.
+ * @param message StartMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IStartMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StartMigrationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StartMigrationRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.StartMigrationRequest;
+
+ /**
+ * Decodes a StartMigrationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StartMigrationRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.StartMigrationRequest;
+
+ /**
+ * Verifies a StartMigrationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StartMigrationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StartMigrationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.StartMigrationRequest;
+
+ /**
+ * Creates a plain object from a StartMigrationRequest message. Also converts values to other types if specified.
+ * @param message StartMigrationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.StartMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StartMigrationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StartMigrationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StartMigrationResponse. */
+ interface IStartMigrationResponse {
+ }
+
+ /** Represents a StartMigrationResponse. */
+ class StartMigrationResponse implements IStartMigrationResponse {
+
+ /**
+ * Constructs a new StartMigrationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IStartMigrationResponse);
+
+ /**
+ * Creates a new StartMigrationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StartMigrationResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IStartMigrationResponse): google.cloud.vmmigration.v1.StartMigrationResponse;
+
+ /**
+ * Encodes the specified StartMigrationResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.StartMigrationResponse.verify|verify} messages.
+ * @param message StartMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IStartMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StartMigrationResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.StartMigrationResponse.verify|verify} messages.
+ * @param message StartMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IStartMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StartMigrationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StartMigrationResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.StartMigrationResponse;
+
+ /**
+ * Decodes a StartMigrationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StartMigrationResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.StartMigrationResponse;
+
+ /**
+ * Verifies a StartMigrationResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StartMigrationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StartMigrationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.StartMigrationResponse;
+
+ /**
+ * Creates a plain object from a StartMigrationResponse message. Also converts values to other types if specified.
+ * @param message StartMigrationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.StartMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StartMigrationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StartMigrationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PauseMigrationRequest. */
+ interface IPauseMigrationRequest {
+
+ /** PauseMigrationRequest migratingVm */
+ migratingVm?: (string|null);
+ }
+
+ /** Represents a PauseMigrationRequest. */
+ class PauseMigrationRequest implements IPauseMigrationRequest {
+
+ /**
+ * Constructs a new PauseMigrationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IPauseMigrationRequest);
+
+ /** PauseMigrationRequest migratingVm. */
+ public migratingVm: string;
+
+ /**
+ * Creates a new PauseMigrationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PauseMigrationRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IPauseMigrationRequest): google.cloud.vmmigration.v1.PauseMigrationRequest;
+
+ /**
+ * Encodes the specified PauseMigrationRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.PauseMigrationRequest.verify|verify} messages.
+ * @param message PauseMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IPauseMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PauseMigrationRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.PauseMigrationRequest.verify|verify} messages.
+ * @param message PauseMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IPauseMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PauseMigrationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PauseMigrationRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.PauseMigrationRequest;
+
+ /**
+ * Decodes a PauseMigrationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PauseMigrationRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.PauseMigrationRequest;
+
+ /**
+ * Verifies a PauseMigrationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PauseMigrationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PauseMigrationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.PauseMigrationRequest;
+
+ /**
+ * Creates a plain object from a PauseMigrationRequest message. Also converts values to other types if specified.
+ * @param message PauseMigrationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.PauseMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PauseMigrationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PauseMigrationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PauseMigrationResponse. */
+ interface IPauseMigrationResponse {
+ }
+
+ /** Represents a PauseMigrationResponse. */
+ class PauseMigrationResponse implements IPauseMigrationResponse {
+
+ /**
+ * Constructs a new PauseMigrationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IPauseMigrationResponse);
+
+ /**
+ * Creates a new PauseMigrationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PauseMigrationResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IPauseMigrationResponse): google.cloud.vmmigration.v1.PauseMigrationResponse;
+
+ /**
+ * Encodes the specified PauseMigrationResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.PauseMigrationResponse.verify|verify} messages.
+ * @param message PauseMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IPauseMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PauseMigrationResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.PauseMigrationResponse.verify|verify} messages.
+ * @param message PauseMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IPauseMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PauseMigrationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PauseMigrationResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.PauseMigrationResponse;
+
+ /**
+ * Decodes a PauseMigrationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PauseMigrationResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.PauseMigrationResponse;
+
+ /**
+ * Verifies a PauseMigrationResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PauseMigrationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PauseMigrationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.PauseMigrationResponse;
+
+ /**
+ * Creates a plain object from a PauseMigrationResponse message. Also converts values to other types if specified.
+ * @param message PauseMigrationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.PauseMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PauseMigrationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PauseMigrationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResumeMigrationRequest. */
+ interface IResumeMigrationRequest {
+
+ /** ResumeMigrationRequest migratingVm */
+ migratingVm?: (string|null);
+ }
+
+ /** Represents a ResumeMigrationRequest. */
+ class ResumeMigrationRequest implements IResumeMigrationRequest {
+
+ /**
+ * Constructs a new ResumeMigrationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IResumeMigrationRequest);
+
+ /** ResumeMigrationRequest migratingVm. */
+ public migratingVm: string;
+
+ /**
+ * Creates a new ResumeMigrationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResumeMigrationRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IResumeMigrationRequest): google.cloud.vmmigration.v1.ResumeMigrationRequest;
+
+ /**
+ * Encodes the specified ResumeMigrationRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ResumeMigrationRequest.verify|verify} messages.
+ * @param message ResumeMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IResumeMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResumeMigrationRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ResumeMigrationRequest.verify|verify} messages.
+ * @param message ResumeMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IResumeMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResumeMigrationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResumeMigrationRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ResumeMigrationRequest;
+
+ /**
+ * Decodes a ResumeMigrationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResumeMigrationRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ResumeMigrationRequest;
+
+ /**
+ * Verifies a ResumeMigrationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResumeMigrationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResumeMigrationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ResumeMigrationRequest;
+
+ /**
+ * Creates a plain object from a ResumeMigrationRequest message. Also converts values to other types if specified.
+ * @param message ResumeMigrationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ResumeMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResumeMigrationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResumeMigrationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResumeMigrationResponse. */
+ interface IResumeMigrationResponse {
+ }
+
+ /** Represents a ResumeMigrationResponse. */
+ class ResumeMigrationResponse implements IResumeMigrationResponse {
+
+ /**
+ * Constructs a new ResumeMigrationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IResumeMigrationResponse);
+
+ /**
+ * Creates a new ResumeMigrationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResumeMigrationResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IResumeMigrationResponse): google.cloud.vmmigration.v1.ResumeMigrationResponse;
+
+ /**
+ * Encodes the specified ResumeMigrationResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ResumeMigrationResponse.verify|verify} messages.
+ * @param message ResumeMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IResumeMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResumeMigrationResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ResumeMigrationResponse.verify|verify} messages.
+ * @param message ResumeMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IResumeMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResumeMigrationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResumeMigrationResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ResumeMigrationResponse;
+
+ /**
+ * Decodes a ResumeMigrationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResumeMigrationResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ResumeMigrationResponse;
+
+ /**
+ * Verifies a ResumeMigrationResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResumeMigrationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResumeMigrationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ResumeMigrationResponse;
+
+ /**
+ * Creates a plain object from a ResumeMigrationResponse message. Also converts values to other types if specified.
+ * @param message ResumeMigrationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ResumeMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResumeMigrationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResumeMigrationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FinalizeMigrationRequest. */
+ interface IFinalizeMigrationRequest {
+
+ /** FinalizeMigrationRequest migratingVm */
+ migratingVm?: (string|null);
+ }
+
+ /** Represents a FinalizeMigrationRequest. */
+ class FinalizeMigrationRequest implements IFinalizeMigrationRequest {
+
+ /**
+ * Constructs a new FinalizeMigrationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IFinalizeMigrationRequest);
+
+ /** FinalizeMigrationRequest migratingVm. */
+ public migratingVm: string;
+
+ /**
+ * Creates a new FinalizeMigrationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FinalizeMigrationRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IFinalizeMigrationRequest): google.cloud.vmmigration.v1.FinalizeMigrationRequest;
+
+ /**
+ * Encodes the specified FinalizeMigrationRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.FinalizeMigrationRequest.verify|verify} messages.
+ * @param message FinalizeMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IFinalizeMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FinalizeMigrationRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.FinalizeMigrationRequest.verify|verify} messages.
+ * @param message FinalizeMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IFinalizeMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FinalizeMigrationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FinalizeMigrationRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.FinalizeMigrationRequest;
+
+ /**
+ * Decodes a FinalizeMigrationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FinalizeMigrationRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.FinalizeMigrationRequest;
+
+ /**
+ * Verifies a FinalizeMigrationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FinalizeMigrationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FinalizeMigrationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.FinalizeMigrationRequest;
+
+ /**
+ * Creates a plain object from a FinalizeMigrationRequest message. Also converts values to other types if specified.
+ * @param message FinalizeMigrationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.FinalizeMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FinalizeMigrationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FinalizeMigrationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FinalizeMigrationResponse. */
+ interface IFinalizeMigrationResponse {
+ }
+
+ /** Represents a FinalizeMigrationResponse. */
+ class FinalizeMigrationResponse implements IFinalizeMigrationResponse {
+
+ /**
+ * Constructs a new FinalizeMigrationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IFinalizeMigrationResponse);
+
+ /**
+ * Creates a new FinalizeMigrationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FinalizeMigrationResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IFinalizeMigrationResponse): google.cloud.vmmigration.v1.FinalizeMigrationResponse;
+
+ /**
+ * Encodes the specified FinalizeMigrationResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.FinalizeMigrationResponse.verify|verify} messages.
+ * @param message FinalizeMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IFinalizeMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FinalizeMigrationResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.FinalizeMigrationResponse.verify|verify} messages.
+ * @param message FinalizeMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IFinalizeMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FinalizeMigrationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FinalizeMigrationResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.FinalizeMigrationResponse;
+
+ /**
+ * Decodes a FinalizeMigrationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FinalizeMigrationResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.FinalizeMigrationResponse;
+
+ /**
+ * Verifies a FinalizeMigrationResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FinalizeMigrationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FinalizeMigrationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.FinalizeMigrationResponse;
+
+ /**
+ * Creates a plain object from a FinalizeMigrationResponse message. Also converts values to other types if specified.
+ * @param message FinalizeMigrationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.FinalizeMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FinalizeMigrationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FinalizeMigrationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TargetProject. */
+ interface ITargetProject {
+
+ /** TargetProject name */
+ name?: (string|null);
+
+ /** TargetProject project */
+ project?: (string|null);
+
+ /** TargetProject description */
+ description?: (string|null);
+
+ /** TargetProject createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** TargetProject updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a TargetProject. */
+ class TargetProject implements ITargetProject {
+
+ /**
+ * Constructs a new TargetProject.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ITargetProject);
+
+ /** TargetProject name. */
+ public name: string;
+
+ /** TargetProject project. */
+ public project: string;
+
+ /** TargetProject description. */
+ public description: string;
+
+ /** TargetProject createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** TargetProject updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new TargetProject instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TargetProject instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ITargetProject): google.cloud.vmmigration.v1.TargetProject;
+
+ /**
+ * Encodes the specified TargetProject message. Does not implicitly {@link google.cloud.vmmigration.v1.TargetProject.verify|verify} messages.
+ * @param message TargetProject message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ITargetProject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TargetProject message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.TargetProject.verify|verify} messages.
+ * @param message TargetProject message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ITargetProject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TargetProject message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TargetProject
+ * @throws {Error} If the payload is not 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.vmmigration.v1.TargetProject;
+
+ /**
+ * Decodes a TargetProject message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TargetProject
+ * @throws {Error} If the payload 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.vmmigration.v1.TargetProject;
+
+ /**
+ * Verifies a TargetProject message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TargetProject message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TargetProject
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.TargetProject;
+
+ /**
+ * Creates a plain object from a TargetProject message. Also converts values to other types if specified.
+ * @param message TargetProject
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.TargetProject, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TargetProject to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TargetProject
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetTargetProjectRequest. */
+ interface IGetTargetProjectRequest {
+
+ /** GetTargetProjectRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetTargetProjectRequest. */
+ class GetTargetProjectRequest implements IGetTargetProjectRequest {
+
+ /**
+ * Constructs a new GetTargetProjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetTargetProjectRequest);
+
+ /** GetTargetProjectRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetTargetProjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetTargetProjectRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetTargetProjectRequest): google.cloud.vmmigration.v1.GetTargetProjectRequest;
+
+ /**
+ * Encodes the specified GetTargetProjectRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetTargetProjectRequest.verify|verify} messages.
+ * @param message GetTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetTargetProjectRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetTargetProjectRequest.verify|verify} messages.
+ * @param message GetTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetTargetProjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetTargetProjectRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetTargetProjectRequest;
+
+ /**
+ * Decodes a GetTargetProjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetTargetProjectRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetTargetProjectRequest;
+
+ /**
+ * Verifies a GetTargetProjectRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetTargetProjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetTargetProjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetTargetProjectRequest;
+
+ /**
+ * Creates a plain object from a GetTargetProjectRequest message. Also converts values to other types if specified.
+ * @param message GetTargetProjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetTargetProjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetTargetProjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetTargetProjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTargetProjectsRequest. */
+ interface IListTargetProjectsRequest {
+
+ /** ListTargetProjectsRequest parent */
+ parent?: (string|null);
+
+ /** ListTargetProjectsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListTargetProjectsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListTargetProjectsRequest filter */
+ filter?: (string|null);
+
+ /** ListTargetProjectsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListTargetProjectsRequest. */
+ class ListTargetProjectsRequest implements IListTargetProjectsRequest {
+
+ /**
+ * Constructs a new ListTargetProjectsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListTargetProjectsRequest);
+
+ /** ListTargetProjectsRequest parent. */
+ public parent: string;
+
+ /** ListTargetProjectsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListTargetProjectsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListTargetProjectsRequest filter. */
+ public filter: string;
+
+ /** ListTargetProjectsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListTargetProjectsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTargetProjectsRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListTargetProjectsRequest): google.cloud.vmmigration.v1.ListTargetProjectsRequest;
+
+ /**
+ * Encodes the specified ListTargetProjectsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListTargetProjectsRequest.verify|verify} messages.
+ * @param message ListTargetProjectsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListTargetProjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTargetProjectsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListTargetProjectsRequest.verify|verify} messages.
+ * @param message ListTargetProjectsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListTargetProjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTargetProjectsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTargetProjectsRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListTargetProjectsRequest;
+
+ /**
+ * Decodes a ListTargetProjectsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTargetProjectsRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListTargetProjectsRequest;
+
+ /**
+ * Verifies a ListTargetProjectsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListTargetProjectsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTargetProjectsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListTargetProjectsRequest;
+
+ /**
+ * Creates a plain object from a ListTargetProjectsRequest message. Also converts values to other types if specified.
+ * @param message ListTargetProjectsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListTargetProjectsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTargetProjectsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTargetProjectsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTargetProjectsResponse. */
+ interface IListTargetProjectsResponse {
+
+ /** ListTargetProjectsResponse targetProjects */
+ targetProjects?: (google.cloud.vmmigration.v1.ITargetProject[]|null);
+
+ /** ListTargetProjectsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListTargetProjectsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListTargetProjectsResponse. */
+ class ListTargetProjectsResponse implements IListTargetProjectsResponse {
+
+ /**
+ * Constructs a new ListTargetProjectsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListTargetProjectsResponse);
+
+ /** ListTargetProjectsResponse targetProjects. */
+ public targetProjects: google.cloud.vmmigration.v1.ITargetProject[];
+
+ /** ListTargetProjectsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListTargetProjectsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListTargetProjectsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTargetProjectsResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListTargetProjectsResponse): google.cloud.vmmigration.v1.ListTargetProjectsResponse;
+
+ /**
+ * Encodes the specified ListTargetProjectsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListTargetProjectsResponse.verify|verify} messages.
+ * @param message ListTargetProjectsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListTargetProjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTargetProjectsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListTargetProjectsResponse.verify|verify} messages.
+ * @param message ListTargetProjectsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListTargetProjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTargetProjectsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTargetProjectsResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListTargetProjectsResponse;
+
+ /**
+ * Decodes a ListTargetProjectsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTargetProjectsResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListTargetProjectsResponse;
+
+ /**
+ * Verifies a ListTargetProjectsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListTargetProjectsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTargetProjectsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListTargetProjectsResponse;
+
+ /**
+ * Creates a plain object from a ListTargetProjectsResponse message. Also converts values to other types if specified.
+ * @param message ListTargetProjectsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListTargetProjectsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTargetProjectsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTargetProjectsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateTargetProjectRequest. */
+ interface ICreateTargetProjectRequest {
+
+ /** CreateTargetProjectRequest parent */
+ parent?: (string|null);
+
+ /** CreateTargetProjectRequest targetProjectId */
+ targetProjectId?: (string|null);
+
+ /** CreateTargetProjectRequest targetProject */
+ targetProject?: (google.cloud.vmmigration.v1.ITargetProject|null);
+
+ /** CreateTargetProjectRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateTargetProjectRequest. */
+ class CreateTargetProjectRequest implements ICreateTargetProjectRequest {
+
+ /**
+ * Constructs a new CreateTargetProjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateTargetProjectRequest);
+
+ /** CreateTargetProjectRequest parent. */
+ public parent: string;
+
+ /** CreateTargetProjectRequest targetProjectId. */
+ public targetProjectId: string;
+
+ /** CreateTargetProjectRequest targetProject. */
+ public targetProject?: (google.cloud.vmmigration.v1.ITargetProject|null);
+
+ /** CreateTargetProjectRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateTargetProjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateTargetProjectRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateTargetProjectRequest): google.cloud.vmmigration.v1.CreateTargetProjectRequest;
+
+ /**
+ * Encodes the specified CreateTargetProjectRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateTargetProjectRequest.verify|verify} messages.
+ * @param message CreateTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateTargetProjectRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateTargetProjectRequest.verify|verify} messages.
+ * @param message CreateTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateTargetProjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateTargetProjectRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateTargetProjectRequest;
+
+ /**
+ * Decodes a CreateTargetProjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateTargetProjectRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateTargetProjectRequest;
+
+ /**
+ * Verifies a CreateTargetProjectRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateTargetProjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateTargetProjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateTargetProjectRequest;
+
+ /**
+ * Creates a plain object from a CreateTargetProjectRequest message. Also converts values to other types if specified.
+ * @param message CreateTargetProjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateTargetProjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateTargetProjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateTargetProjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateTargetProjectRequest. */
+ interface IUpdateTargetProjectRequest {
+
+ /** UpdateTargetProjectRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateTargetProjectRequest targetProject */
+ targetProject?: (google.cloud.vmmigration.v1.ITargetProject|null);
+
+ /** UpdateTargetProjectRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateTargetProjectRequest. */
+ class UpdateTargetProjectRequest implements IUpdateTargetProjectRequest {
+
+ /**
+ * Constructs a new UpdateTargetProjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUpdateTargetProjectRequest);
+
+ /** UpdateTargetProjectRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateTargetProjectRequest targetProject. */
+ public targetProject?: (google.cloud.vmmigration.v1.ITargetProject|null);
+
+ /** UpdateTargetProjectRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateTargetProjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateTargetProjectRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUpdateTargetProjectRequest): google.cloud.vmmigration.v1.UpdateTargetProjectRequest;
+
+ /**
+ * Encodes the specified UpdateTargetProjectRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateTargetProjectRequest.verify|verify} messages.
+ * @param message UpdateTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUpdateTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateTargetProjectRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateTargetProjectRequest.verify|verify} messages.
+ * @param message UpdateTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUpdateTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateTargetProjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateTargetProjectRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UpdateTargetProjectRequest;
+
+ /**
+ * Decodes an UpdateTargetProjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateTargetProjectRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.UpdateTargetProjectRequest;
+
+ /**
+ * Verifies an UpdateTargetProjectRequest message.
+ * @param message Plain 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 UpdateTargetProjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateTargetProjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UpdateTargetProjectRequest;
+
+ /**
+ * Creates a plain object from an UpdateTargetProjectRequest message. Also converts values to other types if specified.
+ * @param message UpdateTargetProjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UpdateTargetProjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateTargetProjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateTargetProjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteTargetProjectRequest. */
+ interface IDeleteTargetProjectRequest {
+
+ /** DeleteTargetProjectRequest name */
+ name?: (string|null);
+
+ /** DeleteTargetProjectRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteTargetProjectRequest. */
+ class DeleteTargetProjectRequest implements IDeleteTargetProjectRequest {
+
+ /**
+ * Constructs a new DeleteTargetProjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IDeleteTargetProjectRequest);
+
+ /** DeleteTargetProjectRequest name. */
+ public name: string;
+
+ /** DeleteTargetProjectRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteTargetProjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteTargetProjectRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IDeleteTargetProjectRequest): google.cloud.vmmigration.v1.DeleteTargetProjectRequest;
+
+ /**
+ * Encodes the specified DeleteTargetProjectRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteTargetProjectRequest.verify|verify} messages.
+ * @param message DeleteTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IDeleteTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteTargetProjectRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteTargetProjectRequest.verify|verify} messages.
+ * @param message DeleteTargetProjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IDeleteTargetProjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteTargetProjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteTargetProjectRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.DeleteTargetProjectRequest;
+
+ /**
+ * Decodes a DeleteTargetProjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteTargetProjectRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.DeleteTargetProjectRequest;
+
+ /**
+ * Verifies a DeleteTargetProjectRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteTargetProjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteTargetProjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.DeleteTargetProjectRequest;
+
+ /**
+ * Creates a plain object from a DeleteTargetProjectRequest message. Also converts values to other types if specified.
+ * @param message DeleteTargetProjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.DeleteTargetProjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteTargetProjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteTargetProjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Group. */
+ interface IGroup {
+
+ /** Group name */
+ name?: (string|null);
+
+ /** Group createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Group updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Group description */
+ description?: (string|null);
+
+ /** Group displayName */
+ displayName?: (string|null);
+ }
+
+ /** Represents a Group. */
+ class Group implements IGroup {
+
+ /**
+ * Constructs a new Group.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGroup);
+
+ /** Group name. */
+ public name: string;
+
+ /** Group createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Group updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Group description. */
+ public description: string;
+
+ /** Group displayName. */
+ public displayName: string;
+
+ /**
+ * Creates a new Group instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Group instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGroup): google.cloud.vmmigration.v1.Group;
+
+ /**
+ * Encodes the specified Group message. Does not implicitly {@link google.cloud.vmmigration.v1.Group.verify|verify} messages.
+ * @param message Group message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Group message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.Group.verify|verify} messages.
+ * @param message Group message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Group message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Group
+ * @throws {Error} If the payload is not 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.vmmigration.v1.Group;
+
+ /**
+ * Decodes a Group message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Group
+ * @throws {Error} If the payload 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.vmmigration.v1.Group;
+
+ /**
+ * Verifies a Group message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Group message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Group
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.Group;
+
+ /**
+ * Creates a plain object from a Group message. Also converts values to other types if specified.
+ * @param message Group
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.Group, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Group to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Group
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListGroupsRequest. */
+ interface IListGroupsRequest {
+
+ /** ListGroupsRequest parent */
+ parent?: (string|null);
+
+ /** ListGroupsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListGroupsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListGroupsRequest filter */
+ filter?: (string|null);
+
+ /** ListGroupsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListGroupsRequest. */
+ class ListGroupsRequest implements IListGroupsRequest {
+
+ /**
+ * Constructs a new ListGroupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListGroupsRequest);
+
+ /** ListGroupsRequest parent. */
+ public parent: string;
+
+ /** ListGroupsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListGroupsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListGroupsRequest filter. */
+ public filter: string;
+
+ /** ListGroupsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListGroupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListGroupsRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListGroupsRequest): google.cloud.vmmigration.v1.ListGroupsRequest;
+
+ /**
+ * Encodes the specified ListGroupsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListGroupsRequest.verify|verify} messages.
+ * @param message ListGroupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListGroupsRequest.verify|verify} messages.
+ * @param message ListGroupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListGroupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListGroupsRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListGroupsRequest;
+
+ /**
+ * Decodes a ListGroupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListGroupsRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListGroupsRequest;
+
+ /**
+ * Verifies a ListGroupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListGroupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListGroupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListGroupsRequest;
+
+ /**
+ * Creates a plain object from a ListGroupsRequest message. Also converts values to other types if specified.
+ * @param message ListGroupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListGroupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListGroupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListGroupsResponse. */
+ interface IListGroupsResponse {
+
+ /** ListGroupsResponse groups */
+ groups?: (google.cloud.vmmigration.v1.IGroup[]|null);
+
+ /** ListGroupsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListGroupsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListGroupsResponse. */
+ class ListGroupsResponse implements IListGroupsResponse {
+
+ /**
+ * Constructs a new ListGroupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListGroupsResponse);
+
+ /** ListGroupsResponse groups. */
+ public groups: google.cloud.vmmigration.v1.IGroup[];
+
+ /** ListGroupsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListGroupsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListGroupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListGroupsResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListGroupsResponse): google.cloud.vmmigration.v1.ListGroupsResponse;
+
+ /**
+ * Encodes the specified ListGroupsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListGroupsResponse.verify|verify} messages.
+ * @param message ListGroupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListGroupsResponse.verify|verify} messages.
+ * @param message ListGroupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListGroupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListGroupsResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListGroupsResponse;
+
+ /**
+ * Decodes a ListGroupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListGroupsResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListGroupsResponse;
+
+ /**
+ * Verifies a ListGroupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListGroupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListGroupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListGroupsResponse;
+
+ /**
+ * Creates a plain object from a ListGroupsResponse message. Also converts values to other types if specified.
+ * @param message ListGroupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListGroupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListGroupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetGroupRequest. */
+ interface IGetGroupRequest {
+
+ /** GetGroupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetGroupRequest. */
+ class GetGroupRequest implements IGetGroupRequest {
+
+ /**
+ * Constructs a new GetGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetGroupRequest);
+
+ /** GetGroupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetGroupRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetGroupRequest): google.cloud.vmmigration.v1.GetGroupRequest;
+
+ /**
+ * Encodes the specified GetGroupRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetGroupRequest.verify|verify} messages.
+ * @param message GetGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetGroupRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetGroupRequest.verify|verify} messages.
+ * @param message GetGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetGroupRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetGroupRequest;
+
+ /**
+ * Decodes a GetGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetGroupRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetGroupRequest;
+
+ /**
+ * Verifies a GetGroupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetGroupRequest;
+
+ /**
+ * Creates a plain object from a GetGroupRequest message. Also converts values to other types if specified.
+ * @param message GetGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateGroupRequest. */
+ interface ICreateGroupRequest {
+
+ /** CreateGroupRequest parent */
+ parent?: (string|null);
+
+ /** CreateGroupRequest groupId */
+ groupId?: (string|null);
+
+ /** CreateGroupRequest group */
+ group?: (google.cloud.vmmigration.v1.IGroup|null);
+
+ /** CreateGroupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateGroupRequest. */
+ class CreateGroupRequest implements ICreateGroupRequest {
+
+ /**
+ * Constructs a new CreateGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateGroupRequest);
+
+ /** CreateGroupRequest parent. */
+ public parent: string;
+
+ /** CreateGroupRequest groupId. */
+ public groupId: string;
+
+ /** CreateGroupRequest group. */
+ public group?: (google.cloud.vmmigration.v1.IGroup|null);
+
+ /** CreateGroupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateGroupRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateGroupRequest): google.cloud.vmmigration.v1.CreateGroupRequest;
+
+ /**
+ * Encodes the specified CreateGroupRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateGroupRequest.verify|verify} messages.
+ * @param message CreateGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateGroupRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateGroupRequest.verify|verify} messages.
+ * @param message CreateGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateGroupRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateGroupRequest;
+
+ /**
+ * Decodes a CreateGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateGroupRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateGroupRequest;
+
+ /**
+ * Verifies a CreateGroupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateGroupRequest;
+
+ /**
+ * Creates a plain object from a CreateGroupRequest message. Also converts values to other types if specified.
+ * @param message CreateGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateGroupRequest. */
+ interface IUpdateGroupRequest {
+
+ /** UpdateGroupRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateGroupRequest group */
+ group?: (google.cloud.vmmigration.v1.IGroup|null);
+
+ /** UpdateGroupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateGroupRequest. */
+ class UpdateGroupRequest implements IUpdateGroupRequest {
+
+ /**
+ * Constructs a new UpdateGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IUpdateGroupRequest);
+
+ /** UpdateGroupRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateGroupRequest group. */
+ public group?: (google.cloud.vmmigration.v1.IGroup|null);
+
+ /** UpdateGroupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateGroupRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IUpdateGroupRequest): google.cloud.vmmigration.v1.UpdateGroupRequest;
+
+ /**
+ * Encodes the specified UpdateGroupRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateGroupRequest.verify|verify} messages.
+ * @param message UpdateGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IUpdateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateGroupRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateGroupRequest.verify|verify} messages.
+ * @param message UpdateGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IUpdateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateGroupRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.UpdateGroupRequest;
+
+ /**
+ * Decodes an UpdateGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateGroupRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.UpdateGroupRequest;
+
+ /**
+ * Verifies an UpdateGroupRequest message.
+ * @param message Plain 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 UpdateGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.UpdateGroupRequest;
+
+ /**
+ * Creates a plain object from an UpdateGroupRequest message. Also converts values to other types if specified.
+ * @param message UpdateGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.UpdateGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteGroupRequest. */
+ interface IDeleteGroupRequest {
+
+ /** DeleteGroupRequest name */
+ name?: (string|null);
+
+ /** DeleteGroupRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteGroupRequest. */
+ class DeleteGroupRequest implements IDeleteGroupRequest {
+
+ /**
+ * Constructs a new DeleteGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IDeleteGroupRequest);
+
+ /** DeleteGroupRequest name. */
+ public name: string;
+
+ /** DeleteGroupRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteGroupRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IDeleteGroupRequest): google.cloud.vmmigration.v1.DeleteGroupRequest;
+
+ /**
+ * Encodes the specified DeleteGroupRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteGroupRequest.verify|verify} messages.
+ * @param message DeleteGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IDeleteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteGroupRequest.verify|verify} messages.
+ * @param message DeleteGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IDeleteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteGroupRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.DeleteGroupRequest;
+
+ /**
+ * Decodes a DeleteGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteGroupRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.DeleteGroupRequest;
+
+ /**
+ * Verifies a DeleteGroupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.DeleteGroupRequest;
+
+ /**
+ * Creates a plain object from a DeleteGroupRequest message. Also converts values to other types if specified.
+ * @param message DeleteGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.DeleteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AddGroupMigrationRequest. */
+ interface IAddGroupMigrationRequest {
+
+ /** AddGroupMigrationRequest group */
+ group?: (string|null);
+
+ /** AddGroupMigrationRequest migratingVm */
+ migratingVm?: (string|null);
+ }
+
+ /** Represents an AddGroupMigrationRequest. */
+ class AddGroupMigrationRequest implements IAddGroupMigrationRequest {
+
+ /**
+ * Constructs a new AddGroupMigrationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IAddGroupMigrationRequest);
+
+ /** AddGroupMigrationRequest group. */
+ public group: string;
+
+ /** AddGroupMigrationRequest migratingVm. */
+ public migratingVm: string;
+
+ /**
+ * Creates a new AddGroupMigrationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AddGroupMigrationRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IAddGroupMigrationRequest): google.cloud.vmmigration.v1.AddGroupMigrationRequest;
+
+ /**
+ * Encodes the specified AddGroupMigrationRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.AddGroupMigrationRequest.verify|verify} messages.
+ * @param message AddGroupMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IAddGroupMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AddGroupMigrationRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.AddGroupMigrationRequest.verify|verify} messages.
+ * @param message AddGroupMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IAddGroupMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AddGroupMigrationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AddGroupMigrationRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.AddGroupMigrationRequest;
+
+ /**
+ * Decodes an AddGroupMigrationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AddGroupMigrationRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.AddGroupMigrationRequest;
+
+ /**
+ * Verifies an AddGroupMigrationRequest message.
+ * @param message Plain 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 AddGroupMigrationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AddGroupMigrationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.AddGroupMigrationRequest;
+
+ /**
+ * Creates a plain object from an AddGroupMigrationRequest message. Also converts values to other types if specified.
+ * @param message AddGroupMigrationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.AddGroupMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AddGroupMigrationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AddGroupMigrationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AddGroupMigrationResponse. */
+ interface IAddGroupMigrationResponse {
+ }
+
+ /** Represents an AddGroupMigrationResponse. */
+ class AddGroupMigrationResponse implements IAddGroupMigrationResponse {
+
+ /**
+ * Constructs a new AddGroupMigrationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IAddGroupMigrationResponse);
+
+ /**
+ * Creates a new AddGroupMigrationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AddGroupMigrationResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IAddGroupMigrationResponse): google.cloud.vmmigration.v1.AddGroupMigrationResponse;
+
+ /**
+ * Encodes the specified AddGroupMigrationResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.AddGroupMigrationResponse.verify|verify} messages.
+ * @param message AddGroupMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IAddGroupMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AddGroupMigrationResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.AddGroupMigrationResponse.verify|verify} messages.
+ * @param message AddGroupMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IAddGroupMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AddGroupMigrationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AddGroupMigrationResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.AddGroupMigrationResponse;
+
+ /**
+ * Decodes an AddGroupMigrationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AddGroupMigrationResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.AddGroupMigrationResponse;
+
+ /**
+ * Verifies an AddGroupMigrationResponse message.
+ * @param message Plain 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 AddGroupMigrationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AddGroupMigrationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.AddGroupMigrationResponse;
+
+ /**
+ * Creates a plain object from an AddGroupMigrationResponse message. Also converts values to other types if specified.
+ * @param message AddGroupMigrationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.AddGroupMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AddGroupMigrationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AddGroupMigrationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RemoveGroupMigrationRequest. */
+ interface IRemoveGroupMigrationRequest {
+
+ /** RemoveGroupMigrationRequest group */
+ group?: (string|null);
+
+ /** RemoveGroupMigrationRequest migratingVm */
+ migratingVm?: (string|null);
+ }
+
+ /** Represents a RemoveGroupMigrationRequest. */
+ class RemoveGroupMigrationRequest implements IRemoveGroupMigrationRequest {
+
+ /**
+ * Constructs a new RemoveGroupMigrationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest);
+
+ /** RemoveGroupMigrationRequest group. */
+ public group: string;
+
+ /** RemoveGroupMigrationRequest migratingVm. */
+ public migratingVm: string;
+
+ /**
+ * Creates a new RemoveGroupMigrationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RemoveGroupMigrationRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest): google.cloud.vmmigration.v1.RemoveGroupMigrationRequest;
+
+ /**
+ * Encodes the specified RemoveGroupMigrationRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.RemoveGroupMigrationRequest.verify|verify} messages.
+ * @param message RemoveGroupMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RemoveGroupMigrationRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.RemoveGroupMigrationRequest.verify|verify} messages.
+ * @param message RemoveGroupMigrationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RemoveGroupMigrationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RemoveGroupMigrationRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.RemoveGroupMigrationRequest;
+
+ /**
+ * Decodes a RemoveGroupMigrationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RemoveGroupMigrationRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.RemoveGroupMigrationRequest;
+
+ /**
+ * Verifies a RemoveGroupMigrationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RemoveGroupMigrationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RemoveGroupMigrationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.RemoveGroupMigrationRequest;
+
+ /**
+ * Creates a plain object from a RemoveGroupMigrationRequest message. Also converts values to other types if specified.
+ * @param message RemoveGroupMigrationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.RemoveGroupMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RemoveGroupMigrationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RemoveGroupMigrationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RemoveGroupMigrationResponse. */
+ interface IRemoveGroupMigrationResponse {
+ }
+
+ /** Represents a RemoveGroupMigrationResponse. */
+ class RemoveGroupMigrationResponse implements IRemoveGroupMigrationResponse {
+
+ /**
+ * Constructs a new RemoveGroupMigrationResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IRemoveGroupMigrationResponse);
+
+ /**
+ * Creates a new RemoveGroupMigrationResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RemoveGroupMigrationResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IRemoveGroupMigrationResponse): google.cloud.vmmigration.v1.RemoveGroupMigrationResponse;
+
+ /**
+ * Encodes the specified RemoveGroupMigrationResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.RemoveGroupMigrationResponse.verify|verify} messages.
+ * @param message RemoveGroupMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IRemoveGroupMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RemoveGroupMigrationResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.RemoveGroupMigrationResponse.verify|verify} messages.
+ * @param message RemoveGroupMigrationResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IRemoveGroupMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RemoveGroupMigrationResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RemoveGroupMigrationResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.RemoveGroupMigrationResponse;
+
+ /**
+ * Decodes a RemoveGroupMigrationResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RemoveGroupMigrationResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.RemoveGroupMigrationResponse;
+
+ /**
+ * Verifies a RemoveGroupMigrationResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RemoveGroupMigrationResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RemoveGroupMigrationResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.RemoveGroupMigrationResponse;
+
+ /**
+ * Creates a plain object from a RemoveGroupMigrationResponse message. Also converts values to other types if specified.
+ * @param message RemoveGroupMigrationResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.RemoveGroupMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RemoveGroupMigrationResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RemoveGroupMigrationResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateCutoverJobRequest. */
+ interface ICreateCutoverJobRequest {
+
+ /** CreateCutoverJobRequest parent */
+ parent?: (string|null);
+
+ /** CreateCutoverJobRequest cutoverJobId */
+ cutoverJobId?: (string|null);
+
+ /** CreateCutoverJobRequest cutoverJob */
+ cutoverJob?: (google.cloud.vmmigration.v1.ICutoverJob|null);
+
+ /** CreateCutoverJobRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateCutoverJobRequest. */
+ class CreateCutoverJobRequest implements ICreateCutoverJobRequest {
+
+ /**
+ * Constructs a new CreateCutoverJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICreateCutoverJobRequest);
+
+ /** CreateCutoverJobRequest parent. */
+ public parent: string;
+
+ /** CreateCutoverJobRequest cutoverJobId. */
+ public cutoverJobId: string;
+
+ /** CreateCutoverJobRequest cutoverJob. */
+ public cutoverJob?: (google.cloud.vmmigration.v1.ICutoverJob|null);
+
+ /** CreateCutoverJobRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateCutoverJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateCutoverJobRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICreateCutoverJobRequest): google.cloud.vmmigration.v1.CreateCutoverJobRequest;
+
+ /**
+ * Encodes the specified CreateCutoverJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateCutoverJobRequest.verify|verify} messages.
+ * @param message CreateCutoverJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICreateCutoverJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateCutoverJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateCutoverJobRequest.verify|verify} messages.
+ * @param message CreateCutoverJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICreateCutoverJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateCutoverJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateCutoverJobRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CreateCutoverJobRequest;
+
+ /**
+ * Decodes a CreateCutoverJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateCutoverJobRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CreateCutoverJobRequest;
+
+ /**
+ * Verifies a CreateCutoverJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateCutoverJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateCutoverJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CreateCutoverJobRequest;
+
+ /**
+ * Creates a plain object from a CreateCutoverJobRequest message. Also converts values to other types if specified.
+ * @param message CreateCutoverJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CreateCutoverJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateCutoverJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateCutoverJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelCutoverJobRequest. */
+ interface ICancelCutoverJobRequest {
+
+ /** CancelCutoverJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelCutoverJobRequest. */
+ class CancelCutoverJobRequest implements ICancelCutoverJobRequest {
+
+ /**
+ * Constructs a new CancelCutoverJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICancelCutoverJobRequest);
+
+ /** CancelCutoverJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelCutoverJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelCutoverJobRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICancelCutoverJobRequest): google.cloud.vmmigration.v1.CancelCutoverJobRequest;
+
+ /**
+ * Encodes the specified CancelCutoverJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCutoverJobRequest.verify|verify} messages.
+ * @param message CancelCutoverJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICancelCutoverJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelCutoverJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCutoverJobRequest.verify|verify} messages.
+ * @param message CancelCutoverJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICancelCutoverJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelCutoverJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelCutoverJobRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CancelCutoverJobRequest;
+
+ /**
+ * Decodes a CancelCutoverJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelCutoverJobRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.CancelCutoverJobRequest;
+
+ /**
+ * Verifies a CancelCutoverJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelCutoverJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelCutoverJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CancelCutoverJobRequest;
+
+ /**
+ * Creates a plain object from a CancelCutoverJobRequest message. Also converts values to other types if specified.
+ * @param message CancelCutoverJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CancelCutoverJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelCutoverJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelCutoverJobRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelCutoverJobResponse. */
+ interface ICancelCutoverJobResponse {
+ }
+
+ /** Represents a CancelCutoverJobResponse. */
+ class CancelCutoverJobResponse implements ICancelCutoverJobResponse {
+
+ /**
+ * Constructs a new CancelCutoverJobResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.ICancelCutoverJobResponse);
+
+ /**
+ * Creates a new CancelCutoverJobResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelCutoverJobResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.ICancelCutoverJobResponse): google.cloud.vmmigration.v1.CancelCutoverJobResponse;
+
+ /**
+ * Encodes the specified CancelCutoverJobResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCutoverJobResponse.verify|verify} messages.
+ * @param message CancelCutoverJobResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.ICancelCutoverJobResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelCutoverJobResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCutoverJobResponse.verify|verify} messages.
+ * @param message CancelCutoverJobResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.ICancelCutoverJobResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelCutoverJobResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelCutoverJobResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.CancelCutoverJobResponse;
+
+ /**
+ * Decodes a CancelCutoverJobResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelCutoverJobResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.CancelCutoverJobResponse;
+
+ /**
+ * Verifies a CancelCutoverJobResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelCutoverJobResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelCutoverJobResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.CancelCutoverJobResponse;
+
+ /**
+ * Creates a plain object from a CancelCutoverJobResponse message. Also converts values to other types if specified.
+ * @param message CancelCutoverJobResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.CancelCutoverJobResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelCutoverJobResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelCutoverJobResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCutoverJobsRequest. */
+ interface IListCutoverJobsRequest {
+
+ /** ListCutoverJobsRequest parent */
+ parent?: (string|null);
+
+ /** ListCutoverJobsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListCutoverJobsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListCutoverJobsRequest filter */
+ filter?: (string|null);
+
+ /** ListCutoverJobsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListCutoverJobsRequest. */
+ class ListCutoverJobsRequest implements IListCutoverJobsRequest {
+
+ /**
+ * Constructs a new ListCutoverJobsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListCutoverJobsRequest);
+
+ /** ListCutoverJobsRequest parent. */
+ public parent: string;
+
+ /** ListCutoverJobsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListCutoverJobsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListCutoverJobsRequest filter. */
+ public filter: string;
+
+ /** ListCutoverJobsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListCutoverJobsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCutoverJobsRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListCutoverJobsRequest): google.cloud.vmmigration.v1.ListCutoverJobsRequest;
+
+ /**
+ * Encodes the specified ListCutoverJobsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListCutoverJobsRequest.verify|verify} messages.
+ * @param message ListCutoverJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListCutoverJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCutoverJobsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListCutoverJobsRequest.verify|verify} messages.
+ * @param message ListCutoverJobsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListCutoverJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCutoverJobsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCutoverJobsRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListCutoverJobsRequest;
+
+ /**
+ * Decodes a ListCutoverJobsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCutoverJobsRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.ListCutoverJobsRequest;
+
+ /**
+ * Verifies a ListCutoverJobsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCutoverJobsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCutoverJobsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListCutoverJobsRequest;
+
+ /**
+ * Creates a plain object from a ListCutoverJobsRequest message. Also converts values to other types if specified.
+ * @param message ListCutoverJobsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListCutoverJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCutoverJobsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCutoverJobsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListCutoverJobsResponse. */
+ interface IListCutoverJobsResponse {
+
+ /** ListCutoverJobsResponse cutoverJobs */
+ cutoverJobs?: (google.cloud.vmmigration.v1.ICutoverJob[]|null);
+
+ /** ListCutoverJobsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListCutoverJobsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListCutoverJobsResponse. */
+ class ListCutoverJobsResponse implements IListCutoverJobsResponse {
+
+ /**
+ * Constructs a new ListCutoverJobsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IListCutoverJobsResponse);
+
+ /** ListCutoverJobsResponse cutoverJobs. */
+ public cutoverJobs: google.cloud.vmmigration.v1.ICutoverJob[];
+
+ /** ListCutoverJobsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListCutoverJobsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListCutoverJobsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListCutoverJobsResponse instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IListCutoverJobsResponse): google.cloud.vmmigration.v1.ListCutoverJobsResponse;
+
+ /**
+ * Encodes the specified ListCutoverJobsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListCutoverJobsResponse.verify|verify} messages.
+ * @param message ListCutoverJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IListCutoverJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListCutoverJobsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListCutoverJobsResponse.verify|verify} messages.
+ * @param message ListCutoverJobsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IListCutoverJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListCutoverJobsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListCutoverJobsResponse
+ * @throws {Error} If the payload is not 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.vmmigration.v1.ListCutoverJobsResponse;
+
+ /**
+ * Decodes a ListCutoverJobsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListCutoverJobsResponse
+ * @throws {Error} If the payload 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.vmmigration.v1.ListCutoverJobsResponse;
+
+ /**
+ * Verifies a ListCutoverJobsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListCutoverJobsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListCutoverJobsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.ListCutoverJobsResponse;
+
+ /**
+ * Creates a plain object from a ListCutoverJobsResponse message. Also converts values to other types if specified.
+ * @param message ListCutoverJobsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.ListCutoverJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListCutoverJobsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListCutoverJobsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetCutoverJobRequest. */
+ interface IGetCutoverJobRequest {
+
+ /** GetCutoverJobRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetCutoverJobRequest. */
+ class GetCutoverJobRequest implements IGetCutoverJobRequest {
+
+ /**
+ * Constructs a new GetCutoverJobRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IGetCutoverJobRequest);
+
+ /** GetCutoverJobRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetCutoverJobRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetCutoverJobRequest instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IGetCutoverJobRequest): google.cloud.vmmigration.v1.GetCutoverJobRequest;
+
+ /**
+ * Encodes the specified GetCutoverJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetCutoverJobRequest.verify|verify} messages.
+ * @param message GetCutoverJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IGetCutoverJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetCutoverJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetCutoverJobRequest.verify|verify} messages.
+ * @param message GetCutoverJobRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IGetCutoverJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetCutoverJobRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetCutoverJobRequest
+ * @throws {Error} If the payload is not 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.vmmigration.v1.GetCutoverJobRequest;
+
+ /**
+ * Decodes a GetCutoverJobRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetCutoverJobRequest
+ * @throws {Error} If the payload 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.vmmigration.v1.GetCutoverJobRequest;
+
+ /**
+ * Verifies a GetCutoverJobRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetCutoverJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetCutoverJobRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.GetCutoverJobRequest;
+
+ /**
+ * Creates a plain object from a GetCutoverJobRequest message. Also converts values to other types if specified.
+ * @param message GetCutoverJobRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.GetCutoverJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetCutoverJobRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetCutoverJobRequest
+ * @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.vmmigration.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.vmmigration.v1.IOperationMetadata): google.cloud.vmmigration.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vmmigration.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.vmmigration.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vmmigration.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.vmmigration.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.vmmigration.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.vmmigration.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.vmmigration.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.vmmigration.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 MigrationError. */
+ interface IMigrationError {
+
+ /** MigrationError code */
+ code?: (google.cloud.vmmigration.v1.MigrationError.ErrorCode|keyof typeof google.cloud.vmmigration.v1.MigrationError.ErrorCode|null);
+
+ /** MigrationError errorMessage */
+ errorMessage?: (google.rpc.ILocalizedMessage|null);
+
+ /** MigrationError actionItem */
+ actionItem?: (google.rpc.ILocalizedMessage|null);
+
+ /** MigrationError helpLinks */
+ helpLinks?: (google.rpc.Help.ILink[]|null);
+
+ /** MigrationError errorTime */
+ errorTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a MigrationError. */
+ class MigrationError implements IMigrationError {
+
+ /**
+ * Constructs a new MigrationError.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.vmmigration.v1.IMigrationError);
+
+ /** MigrationError code. */
+ public code: (google.cloud.vmmigration.v1.MigrationError.ErrorCode|keyof typeof google.cloud.vmmigration.v1.MigrationError.ErrorCode);
+
+ /** MigrationError errorMessage. */
+ public errorMessage?: (google.rpc.ILocalizedMessage|null);
+
+ /** MigrationError actionItem. */
+ public actionItem?: (google.rpc.ILocalizedMessage|null);
+
+ /** MigrationError helpLinks. */
+ public helpLinks: google.rpc.Help.ILink[];
+
+ /** MigrationError errorTime. */
+ public errorTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new MigrationError instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MigrationError instance
+ */
+ public static create(properties?: google.cloud.vmmigration.v1.IMigrationError): google.cloud.vmmigration.v1.MigrationError;
+
+ /**
+ * Encodes the specified MigrationError message. Does not implicitly {@link google.cloud.vmmigration.v1.MigrationError.verify|verify} messages.
+ * @param message MigrationError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.vmmigration.v1.IMigrationError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MigrationError message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.MigrationError.verify|verify} messages.
+ * @param message MigrationError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.vmmigration.v1.IMigrationError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MigrationError message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MigrationError
+ * @throws {Error} If the payload is not 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.vmmigration.v1.MigrationError;
+
+ /**
+ * Decodes a MigrationError message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MigrationError
+ * @throws {Error} If the payload 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.vmmigration.v1.MigrationError;
+
+ /**
+ * Verifies a MigrationError message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MigrationError message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MigrationError
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.MigrationError;
+
+ /**
+ * Creates a plain object from a MigrationError message. Also converts values to other types if specified.
+ * @param message MigrationError
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.vmmigration.v1.MigrationError, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MigrationError to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MigrationError
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MigrationError {
+
+ /** ErrorCode enum. */
+ enum ErrorCode {
+ ERROR_CODE_UNSPECIFIED = 0,
+ UNKNOWN_ERROR = 1,
+ SOURCE_VALIDATION_ERROR = 2,
+ SOURCE_REPLICATION_ERROR = 3,
+ TARGET_REPLICATION_ERROR = 4,
+ OS_ADAPTATION_ERROR = 5,
+ CLONE_ERROR = 6,
+ CUTOVER_ERROR = 7,
+ UTILIZATION_REPORT_ERROR = 8,
+ APPLIANCE_UPGRADE_ERROR = 9
+ }
+ }
+ }
+ }
+ }
+
+ /** 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;
+ }
+
+ /** Properties of a RetryInfo. */
+ interface IRetryInfo {
+
+ /** RetryInfo retryDelay */
+ retryDelay?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a RetryInfo. */
+ class RetryInfo implements IRetryInfo {
+
+ /**
+ * Constructs a new RetryInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IRetryInfo);
+
+ /** RetryInfo retryDelay. */
+ public retryDelay?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new RetryInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RetryInfo instance
+ */
+ public static create(properties?: google.rpc.IRetryInfo): google.rpc.RetryInfo;
+
+ /**
+ * Encodes the specified RetryInfo message. Does not implicitly {@link google.rpc.RetryInfo.verify|verify} messages.
+ * @param message RetryInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IRetryInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RetryInfo message, length delimited. Does not implicitly {@link google.rpc.RetryInfo.verify|verify} messages.
+ * @param message RetryInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IRetryInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RetryInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RetryInfo
+ * @throws {Error} If the payload is not 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.RetryInfo;
+
+ /**
+ * Decodes a RetryInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RetryInfo
+ * @throws {Error} If the payload 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.RetryInfo;
+
+ /**
+ * Verifies a RetryInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RetryInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RetryInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.RetryInfo;
+
+ /**
+ * Creates a plain object from a RetryInfo message. Also converts values to other types if specified.
+ * @param message RetryInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.RetryInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RetryInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RetryInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DebugInfo. */
+ interface IDebugInfo {
+
+ /** DebugInfo stackEntries */
+ stackEntries?: (string[]|null);
+
+ /** DebugInfo detail */
+ detail?: (string|null);
+ }
+
+ /** Represents a DebugInfo. */
+ class DebugInfo implements IDebugInfo {
+
+ /**
+ * Constructs a new DebugInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IDebugInfo);
+
+ /** DebugInfo stackEntries. */
+ public stackEntries: string[];
+
+ /** DebugInfo detail. */
+ public detail: string;
+
+ /**
+ * Creates a new DebugInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DebugInfo instance
+ */
+ public static create(properties?: google.rpc.IDebugInfo): google.rpc.DebugInfo;
+
+ /**
+ * Encodes the specified DebugInfo message. Does not implicitly {@link google.rpc.DebugInfo.verify|verify} messages.
+ * @param message DebugInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IDebugInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DebugInfo message, length delimited. Does not implicitly {@link google.rpc.DebugInfo.verify|verify} messages.
+ * @param message DebugInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IDebugInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DebugInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DebugInfo
+ * @throws {Error} If the payload is not 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.DebugInfo;
+
+ /**
+ * Decodes a DebugInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DebugInfo
+ * @throws {Error} If the payload 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.DebugInfo;
+
+ /**
+ * Verifies a DebugInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DebugInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DebugInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.DebugInfo;
+
+ /**
+ * Creates a plain object from a DebugInfo message. Also converts values to other types if specified.
+ * @param message DebugInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.DebugInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DebugInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DebugInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QuotaFailure. */
+ interface IQuotaFailure {
+
+ /** QuotaFailure violations */
+ violations?: (google.rpc.QuotaFailure.IViolation[]|null);
+ }
+
+ /** Represents a QuotaFailure. */
+ class QuotaFailure implements IQuotaFailure {
+
+ /**
+ * Constructs a new QuotaFailure.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IQuotaFailure);
+
+ /** QuotaFailure violations. */
+ public violations: google.rpc.QuotaFailure.IViolation[];
+
+ /**
+ * Creates a new QuotaFailure instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QuotaFailure instance
+ */
+ public static create(properties?: google.rpc.IQuotaFailure): google.rpc.QuotaFailure;
+
+ /**
+ * Encodes the specified QuotaFailure message. Does not implicitly {@link google.rpc.QuotaFailure.verify|verify} messages.
+ * @param message QuotaFailure message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IQuotaFailure, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QuotaFailure message, length delimited. Does not implicitly {@link google.rpc.QuotaFailure.verify|verify} messages.
+ * @param message QuotaFailure message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IQuotaFailure, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QuotaFailure message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QuotaFailure
+ * @throws {Error} If the payload is not 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.QuotaFailure;
+
+ /**
+ * Decodes a QuotaFailure message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QuotaFailure
+ * @throws {Error} If the payload 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.QuotaFailure;
+
+ /**
+ * Verifies a QuotaFailure message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a QuotaFailure message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QuotaFailure
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.QuotaFailure;
+
+ /**
+ * Creates a plain object from a QuotaFailure message. Also converts values to other types if specified.
+ * @param message QuotaFailure
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.QuotaFailure, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QuotaFailure to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QuotaFailure
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace QuotaFailure {
+
+ /** Properties of a Violation. */
+ interface IViolation {
+
+ /** Violation subject */
+ subject?: (string|null);
+
+ /** Violation description */
+ description?: (string|null);
+ }
+
+ /** Represents a Violation. */
+ class Violation implements IViolation {
+
+ /**
+ * Constructs a new Violation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.QuotaFailure.IViolation);
+
+ /** Violation subject. */
+ public subject: string;
+
+ /** Violation description. */
+ public description: string;
+
+ /**
+ * Creates a new Violation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Violation instance
+ */
+ public static create(properties?: google.rpc.QuotaFailure.IViolation): google.rpc.QuotaFailure.Violation;
+
+ /**
+ * Encodes the specified Violation message. Does not implicitly {@link google.rpc.QuotaFailure.Violation.verify|verify} messages.
+ * @param message Violation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.QuotaFailure.IViolation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Violation message, length delimited. Does not implicitly {@link google.rpc.QuotaFailure.Violation.verify|verify} messages.
+ * @param message Violation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.QuotaFailure.IViolation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Violation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Violation
+ * @throws {Error} If the payload is not 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.QuotaFailure.Violation;
+
+ /**
+ * Decodes a Violation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Violation
+ * @throws {Error} If the payload 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.QuotaFailure.Violation;
+
+ /**
+ * Verifies a Violation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Violation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Violation
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.QuotaFailure.Violation;
+
+ /**
+ * Creates a plain object from a Violation message. Also converts values to other types if specified.
+ * @param message Violation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.QuotaFailure.Violation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Violation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Violation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ErrorInfo. */
+ interface IErrorInfo {
+
+ /** ErrorInfo reason */
+ reason?: (string|null);
+
+ /** ErrorInfo domain */
+ domain?: (string|null);
+
+ /** ErrorInfo metadata */
+ metadata?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an ErrorInfo. */
+ class ErrorInfo implements IErrorInfo {
+
+ /**
+ * Constructs a new ErrorInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IErrorInfo);
+
+ /** ErrorInfo reason. */
+ public reason: string;
+
+ /** ErrorInfo domain. */
+ public domain: string;
+
+ /** ErrorInfo metadata. */
+ public metadata: { [k: string]: string };
+
+ /**
+ * Creates a new ErrorInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ErrorInfo instance
+ */
+ public static create(properties?: google.rpc.IErrorInfo): google.rpc.ErrorInfo;
+
+ /**
+ * Encodes the specified ErrorInfo message. Does not implicitly {@link google.rpc.ErrorInfo.verify|verify} messages.
+ * @param message ErrorInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IErrorInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ErrorInfo message, length delimited. Does not implicitly {@link google.rpc.ErrorInfo.verify|verify} messages.
+ * @param message ErrorInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IErrorInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ErrorInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ErrorInfo
+ * @throws {Error} If the payload is not 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.ErrorInfo;
+
+ /**
+ * Decodes an ErrorInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ErrorInfo
+ * @throws {Error} If the payload 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.ErrorInfo;
+
+ /**
+ * Verifies an ErrorInfo message.
+ * @param message Plain 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 ErrorInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ErrorInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.ErrorInfo;
+
+ /**
+ * Creates a plain object from an ErrorInfo message. Also converts values to other types if specified.
+ * @param message ErrorInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.ErrorInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ErrorInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ErrorInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PreconditionFailure. */
+ interface IPreconditionFailure {
+
+ /** PreconditionFailure violations */
+ violations?: (google.rpc.PreconditionFailure.IViolation[]|null);
+ }
+
+ /** Represents a PreconditionFailure. */
+ class PreconditionFailure implements IPreconditionFailure {
+
+ /**
+ * Constructs a new PreconditionFailure.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IPreconditionFailure);
+
+ /** PreconditionFailure violations. */
+ public violations: google.rpc.PreconditionFailure.IViolation[];
+
+ /**
+ * Creates a new PreconditionFailure instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PreconditionFailure instance
+ */
+ public static create(properties?: google.rpc.IPreconditionFailure): google.rpc.PreconditionFailure;
+
+ /**
+ * Encodes the specified PreconditionFailure message. Does not implicitly {@link google.rpc.PreconditionFailure.verify|verify} messages.
+ * @param message PreconditionFailure message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IPreconditionFailure, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PreconditionFailure message, length delimited. Does not implicitly {@link google.rpc.PreconditionFailure.verify|verify} messages.
+ * @param message PreconditionFailure message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IPreconditionFailure, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PreconditionFailure message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PreconditionFailure
+ * @throws {Error} If the payload is not 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.PreconditionFailure;
+
+ /**
+ * Decodes a PreconditionFailure message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PreconditionFailure
+ * @throws {Error} If the payload 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.PreconditionFailure;
+
+ /**
+ * Verifies a PreconditionFailure message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PreconditionFailure message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PreconditionFailure
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.PreconditionFailure;
+
+ /**
+ * Creates a plain object from a PreconditionFailure message. Also converts values to other types if specified.
+ * @param message PreconditionFailure
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.PreconditionFailure, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PreconditionFailure to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PreconditionFailure
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PreconditionFailure {
+
+ /** Properties of a Violation. */
+ interface IViolation {
+
+ /** Violation type */
+ type?: (string|null);
+
+ /** Violation subject */
+ subject?: (string|null);
+
+ /** Violation description */
+ description?: (string|null);
+ }
+
+ /** Represents a Violation. */
+ class Violation implements IViolation {
+
+ /**
+ * Constructs a new Violation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.PreconditionFailure.IViolation);
+
+ /** Violation type. */
+ public type: string;
+
+ /** Violation subject. */
+ public subject: string;
+
+ /** Violation description. */
+ public description: string;
+
+ /**
+ * Creates a new Violation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Violation instance
+ */
+ public static create(properties?: google.rpc.PreconditionFailure.IViolation): google.rpc.PreconditionFailure.Violation;
+
+ /**
+ * Encodes the specified Violation message. Does not implicitly {@link google.rpc.PreconditionFailure.Violation.verify|verify} messages.
+ * @param message Violation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.PreconditionFailure.IViolation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Violation message, length delimited. Does not implicitly {@link google.rpc.PreconditionFailure.Violation.verify|verify} messages.
+ * @param message Violation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.PreconditionFailure.IViolation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Violation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Violation
+ * @throws {Error} If the payload is not 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.PreconditionFailure.Violation;
+
+ /**
+ * Decodes a Violation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Violation
+ * @throws {Error} If the payload 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.PreconditionFailure.Violation;
+
+ /**
+ * Verifies a Violation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Violation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Violation
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.PreconditionFailure.Violation;
+
+ /**
+ * Creates a plain object from a Violation message. Also converts values to other types if specified.
+ * @param message Violation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.PreconditionFailure.Violation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Violation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Violation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a BadRequest. */
+ interface IBadRequest {
+
+ /** BadRequest fieldViolations */
+ fieldViolations?: (google.rpc.BadRequest.IFieldViolation[]|null);
+ }
+
+ /** Represents a BadRequest. */
+ class BadRequest implements IBadRequest {
+
+ /**
+ * Constructs a new BadRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IBadRequest);
+
+ /** BadRequest fieldViolations. */
+ public fieldViolations: google.rpc.BadRequest.IFieldViolation[];
+
+ /**
+ * Creates a new BadRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BadRequest instance
+ */
+ public static create(properties?: google.rpc.IBadRequest): google.rpc.BadRequest;
+
+ /**
+ * Encodes the specified BadRequest message. Does not implicitly {@link google.rpc.BadRequest.verify|verify} messages.
+ * @param message BadRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IBadRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BadRequest message, length delimited. Does not implicitly {@link google.rpc.BadRequest.verify|verify} messages.
+ * @param message BadRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IBadRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BadRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BadRequest
+ * @throws {Error} If the payload is not 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.BadRequest;
+
+ /**
+ * Decodes a BadRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BadRequest
+ * @throws {Error} If the payload 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.BadRequest;
+
+ /**
+ * Verifies a BadRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BadRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BadRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.BadRequest;
+
+ /**
+ * Creates a plain object from a BadRequest message. Also converts values to other types if specified.
+ * @param message BadRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.BadRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BadRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BadRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BadRequest {
+
+ /** Properties of a FieldViolation. */
+ interface IFieldViolation {
+
+ /** FieldViolation field */
+ field?: (string|null);
+
+ /** FieldViolation description */
+ description?: (string|null);
+ }
+
+ /** Represents a FieldViolation. */
+ class FieldViolation implements IFieldViolation {
+
+ /**
+ * Constructs a new FieldViolation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.BadRequest.IFieldViolation);
+
+ /** FieldViolation field. */
+ public field: string;
+
+ /** FieldViolation description. */
+ public description: string;
+
+ /**
+ * Creates a new FieldViolation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldViolation instance
+ */
+ public static create(properties?: google.rpc.BadRequest.IFieldViolation): google.rpc.BadRequest.FieldViolation;
+
+ /**
+ * Encodes the specified FieldViolation message. Does not implicitly {@link google.rpc.BadRequest.FieldViolation.verify|verify} messages.
+ * @param message FieldViolation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.BadRequest.IFieldViolation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldViolation message, length delimited. Does not implicitly {@link google.rpc.BadRequest.FieldViolation.verify|verify} messages.
+ * @param message FieldViolation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.BadRequest.IFieldViolation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldViolation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldViolation
+ * @throws {Error} If the payload is not 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.BadRequest.FieldViolation;
+
+ /**
+ * Decodes a FieldViolation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldViolation
+ * @throws {Error} If the payload 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.BadRequest.FieldViolation;
+
+ /**
+ * Verifies a FieldViolation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldViolation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldViolation
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.BadRequest.FieldViolation;
+
+ /**
+ * Creates a plain object from a FieldViolation message. Also converts values to other types if specified.
+ * @param message FieldViolation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.BadRequest.FieldViolation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldViolation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldViolation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a RequestInfo. */
+ interface IRequestInfo {
+
+ /** RequestInfo requestId */
+ requestId?: (string|null);
+
+ /** RequestInfo servingData */
+ servingData?: (string|null);
+ }
+
+ /** Represents a RequestInfo. */
+ class RequestInfo implements IRequestInfo {
+
+ /**
+ * Constructs a new RequestInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IRequestInfo);
+
+ /** RequestInfo requestId. */
+ public requestId: string;
+
+ /** RequestInfo servingData. */
+ public servingData: string;
+
+ /**
+ * Creates a new RequestInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RequestInfo instance
+ */
+ public static create(properties?: google.rpc.IRequestInfo): google.rpc.RequestInfo;
+
+ /**
+ * Encodes the specified RequestInfo message. Does not implicitly {@link google.rpc.RequestInfo.verify|verify} messages.
+ * @param message RequestInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IRequestInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RequestInfo message, length delimited. Does not implicitly {@link google.rpc.RequestInfo.verify|verify} messages.
+ * @param message RequestInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IRequestInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RequestInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RequestInfo
+ * @throws {Error} If the payload is not 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.RequestInfo;
+
+ /**
+ * Decodes a RequestInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RequestInfo
+ * @throws {Error} If the payload 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.RequestInfo;
+
+ /**
+ * Verifies a RequestInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RequestInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RequestInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.RequestInfo;
+
+ /**
+ * Creates a plain object from a RequestInfo message. Also converts values to other types if specified.
+ * @param message RequestInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.RequestInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RequestInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RequestInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResourceInfo. */
+ interface IResourceInfo {
+
+ /** ResourceInfo resourceType */
+ resourceType?: (string|null);
+
+ /** ResourceInfo resourceName */
+ resourceName?: (string|null);
+
+ /** ResourceInfo owner */
+ owner?: (string|null);
+
+ /** ResourceInfo description */
+ description?: (string|null);
+ }
+
+ /** Represents a ResourceInfo. */
+ class ResourceInfo implements IResourceInfo {
+
+ /**
+ * Constructs a new ResourceInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IResourceInfo);
+
+ /** ResourceInfo resourceType. */
+ public resourceType: string;
+
+ /** ResourceInfo resourceName. */
+ public resourceName: string;
+
+ /** ResourceInfo owner. */
+ public owner: string;
+
+ /** ResourceInfo description. */
+ public description: string;
+
+ /**
+ * Creates a new ResourceInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceInfo instance
+ */
+ public static create(properties?: google.rpc.IResourceInfo): google.rpc.ResourceInfo;
+
+ /**
+ * Encodes the specified ResourceInfo message. Does not implicitly {@link google.rpc.ResourceInfo.verify|verify} messages.
+ * @param message ResourceInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceInfo message, length delimited. Does not implicitly {@link google.rpc.ResourceInfo.verify|verify} messages.
+ * @param message ResourceInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceInfo
+ * @throws {Error} If the payload is not 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.ResourceInfo;
+
+ /**
+ * Decodes a ResourceInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceInfo
+ * @throws {Error} If the payload 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.ResourceInfo;
+
+ /**
+ * Verifies a ResourceInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.ResourceInfo;
+
+ /**
+ * Creates a plain object from a ResourceInfo message. Also converts values to other types if specified.
+ * @param message ResourceInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.ResourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Help. */
+ interface IHelp {
+
+ /** Help links */
+ links?: (google.rpc.Help.ILink[]|null);
+ }
+
+ /** Represents a Help. */
+ class Help implements IHelp {
+
+ /**
+ * Constructs a new Help.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IHelp);
+
+ /** Help links. */
+ public links: google.rpc.Help.ILink[];
+
+ /**
+ * Creates a new Help instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Help instance
+ */
+ public static create(properties?: google.rpc.IHelp): google.rpc.Help;
+
+ /**
+ * Encodes the specified Help message. Does not implicitly {@link google.rpc.Help.verify|verify} messages.
+ * @param message Help message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IHelp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Help message, length delimited. Does not implicitly {@link google.rpc.Help.verify|verify} messages.
+ * @param message Help message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IHelp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Help message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Help
+ * @throws {Error} If the payload is not 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.Help;
+
+ /**
+ * Decodes a Help message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Help
+ * @throws {Error} If the payload 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.Help;
+
+ /**
+ * Verifies a Help message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Help message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Help
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Help;
+
+ /**
+ * Creates a plain object from a Help message. Also converts values to other types if specified.
+ * @param message Help
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Help, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Help to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Help
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Help {
+
+ /** Properties of a Link. */
+ interface ILink {
+
+ /** Link description */
+ description?: (string|null);
+
+ /** Link url */
+ url?: (string|null);
+ }
+
+ /** Represents a Link. */
+ class Link implements ILink {
+
+ /**
+ * Constructs a new Link.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.Help.ILink);
+
+ /** Link description. */
+ public description: string;
+
+ /** Link url. */
+ public url: string;
+
+ /**
+ * Creates a new Link instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Link instance
+ */
+ public static create(properties?: google.rpc.Help.ILink): google.rpc.Help.Link;
+
+ /**
+ * Encodes the specified Link message. Does not implicitly {@link google.rpc.Help.Link.verify|verify} messages.
+ * @param message Link message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.Help.ILink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Link message, length delimited. Does not implicitly {@link google.rpc.Help.Link.verify|verify} messages.
+ * @param message Link message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.Help.ILink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Link message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Link
+ * @throws {Error} If the payload is not 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.Help.Link;
+
+ /**
+ * Decodes a Link message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Link
+ * @throws {Error} If the payload 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.Help.Link;
+
+ /**
+ * Verifies a Link message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Link message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Link
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Help.Link;
+
+ /**
+ * Creates a plain object from a Link message. Also converts values to other types if specified.
+ * @param message Link
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Help.Link, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Link to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Link
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a LocalizedMessage. */
+ interface ILocalizedMessage {
+
+ /** LocalizedMessage locale */
+ locale?: (string|null);
+
+ /** LocalizedMessage message */
+ message?: (string|null);
+ }
+
+ /** Represents a LocalizedMessage. */
+ class LocalizedMessage implements ILocalizedMessage {
+
+ /**
+ * Constructs a new LocalizedMessage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.ILocalizedMessage);
+
+ /** LocalizedMessage locale. */
+ public locale: string;
+
+ /** LocalizedMessage message. */
+ public message: string;
+
+ /**
+ * Creates a new LocalizedMessage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LocalizedMessage instance
+ */
+ public static create(properties?: google.rpc.ILocalizedMessage): google.rpc.LocalizedMessage;
+
+ /**
+ * Encodes the specified LocalizedMessage message. Does not implicitly {@link google.rpc.LocalizedMessage.verify|verify} messages.
+ * @param message LocalizedMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.ILocalizedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LocalizedMessage message, length delimited. Does not implicitly {@link google.rpc.LocalizedMessage.verify|verify} messages.
+ * @param message LocalizedMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.ILocalizedMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LocalizedMessage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LocalizedMessage
+ * @throws {Error} If the payload is not 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.LocalizedMessage;
+
+ /**
+ * Decodes a LocalizedMessage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LocalizedMessage
+ * @throws {Error} If the payload 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.LocalizedMessage;
+
+ /**
+ * Verifies a LocalizedMessage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LocalizedMessage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LocalizedMessage
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.LocalizedMessage;
+
+ /**
+ * Creates a plain object from a LocalizedMessage message. Also converts values to other types if specified.
+ * @param message LocalizedMessage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.LocalizedMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LocalizedMessage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LocalizedMessage
+ * @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-vmmigration/protos/protos.js b/packages/google-cloud-vmmigration/protos/protos.js
new file mode 100644
index 00000000000..cad3d5430ae
--- /dev/null
+++ b/packages/google-cloud-vmmigration/protos/protos.js
@@ -0,0 +1,45450 @@
+// 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_vmmigration_protos || ($protobuf.roots._google_cloud_vmmigration_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.vmmigration = (function() {
+
+ /**
+ * Namespace vmmigration.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var vmmigration = {};
+
+ vmmigration.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.vmmigration
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.VmMigration = (function() {
+
+ /**
+ * Constructs a new VmMigration service.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a VmMigration
+ * @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 VmMigration(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (VmMigration.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = VmMigration;
+
+ /**
+ * Creates new VmMigration service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @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 {VmMigration} RPC service. Useful where requests and/or responses are streamed.
+ */
+ VmMigration.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listSources}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListSourcesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListSourcesResponse} [response] ListSourcesResponse
+ */
+
+ /**
+ * Calls ListSources.
+ * @function listSources
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListSourcesRequest} request ListSourcesRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListSourcesCallback} callback Node-style callback called with the error, if any, and ListSourcesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listSources = function listSources(request, callback) {
+ return this.rpcCall(listSources, $root.google.cloud.vmmigration.v1.ListSourcesRequest, $root.google.cloud.vmmigration.v1.ListSourcesResponse, request, callback);
+ }, "name", { value: "ListSources" });
+
+ /**
+ * Calls ListSources.
+ * @function listSources
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListSourcesRequest} request ListSourcesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getSource}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetSourceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.Source} [response] Source
+ */
+
+ /**
+ * Calls GetSource.
+ * @function getSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetSourceRequest} request GetSourceRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetSourceCallback} callback Node-style callback called with the error, if any, and Source
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getSource = function getSource(request, callback) {
+ return this.rpcCall(getSource, $root.google.cloud.vmmigration.v1.GetSourceRequest, $root.google.cloud.vmmigration.v1.Source, request, callback);
+ }, "name", { value: "GetSource" });
+
+ /**
+ * Calls GetSource.
+ * @function getSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetSourceRequest} request GetSourceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createSource}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateSourceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateSource.
+ * @function createSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateSourceRequest} request CreateSourceRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateSourceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createSource = function createSource(request, callback) {
+ return this.rpcCall(createSource, $root.google.cloud.vmmigration.v1.CreateSourceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateSource" });
+
+ /**
+ * Calls CreateSource.
+ * @function createSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateSourceRequest} request CreateSourceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateSource}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef UpdateSourceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateSource.
+ * @function updateSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateSourceRequest} request UpdateSourceRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.UpdateSourceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.updateSource = function updateSource(request, callback) {
+ return this.rpcCall(updateSource, $root.google.cloud.vmmigration.v1.UpdateSourceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateSource" });
+
+ /**
+ * Calls UpdateSource.
+ * @function updateSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateSourceRequest} request UpdateSourceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteSource}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef DeleteSourceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteSource.
+ * @function deleteSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteSourceRequest} request DeleteSourceRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.DeleteSourceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.deleteSource = function deleteSource(request, callback) {
+ return this.rpcCall(deleteSource, $root.google.cloud.vmmigration.v1.DeleteSourceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteSource" });
+
+ /**
+ * Calls DeleteSource.
+ * @function deleteSource
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteSourceRequest} request DeleteSourceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|fetchInventory}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef FetchInventoryCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.FetchInventoryResponse} [response] FetchInventoryResponse
+ */
+
+ /**
+ * Calls FetchInventory.
+ * @function fetchInventory
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryRequest} request FetchInventoryRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.FetchInventoryCallback} callback Node-style callback called with the error, if any, and FetchInventoryResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.fetchInventory = function fetchInventory(request, callback) {
+ return this.rpcCall(fetchInventory, $root.google.cloud.vmmigration.v1.FetchInventoryRequest, $root.google.cloud.vmmigration.v1.FetchInventoryResponse, request, callback);
+ }, "name", { value: "FetchInventory" });
+
+ /**
+ * Calls FetchInventory.
+ * @function fetchInventory
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryRequest} request FetchInventoryRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listUtilizationReports}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListUtilizationReportsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListUtilizationReportsResponse} [response] ListUtilizationReportsResponse
+ */
+
+ /**
+ * Calls ListUtilizationReports.
+ * @function listUtilizationReports
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsRequest} request ListUtilizationReportsRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListUtilizationReportsCallback} callback Node-style callback called with the error, if any, and ListUtilizationReportsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listUtilizationReports = function listUtilizationReports(request, callback) {
+ return this.rpcCall(listUtilizationReports, $root.google.cloud.vmmigration.v1.ListUtilizationReportsRequest, $root.google.cloud.vmmigration.v1.ListUtilizationReportsResponse, request, callback);
+ }, "name", { value: "ListUtilizationReports" });
+
+ /**
+ * Calls ListUtilizationReports.
+ * @function listUtilizationReports
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsRequest} request ListUtilizationReportsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getUtilizationReport}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetUtilizationReportCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.UtilizationReport} [response] UtilizationReport
+ */
+
+ /**
+ * Calls GetUtilizationReport.
+ * @function getUtilizationReport
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetUtilizationReportRequest} request GetUtilizationReportRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetUtilizationReportCallback} callback Node-style callback called with the error, if any, and UtilizationReport
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getUtilizationReport = function getUtilizationReport(request, callback) {
+ return this.rpcCall(getUtilizationReport, $root.google.cloud.vmmigration.v1.GetUtilizationReportRequest, $root.google.cloud.vmmigration.v1.UtilizationReport, request, callback);
+ }, "name", { value: "GetUtilizationReport" });
+
+ /**
+ * Calls GetUtilizationReport.
+ * @function getUtilizationReport
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetUtilizationReportRequest} request GetUtilizationReportRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createUtilizationReport}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateUtilizationReportCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateUtilizationReport.
+ * @function createUtilizationReport
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateUtilizationReportRequest} request CreateUtilizationReportRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReportCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createUtilizationReport = function createUtilizationReport(request, callback) {
+ return this.rpcCall(createUtilizationReport, $root.google.cloud.vmmigration.v1.CreateUtilizationReportRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateUtilizationReport" });
+
+ /**
+ * Calls CreateUtilizationReport.
+ * @function createUtilizationReport
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateUtilizationReportRequest} request CreateUtilizationReportRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteUtilizationReport}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef DeleteUtilizationReportCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteUtilizationReport.
+ * @function deleteUtilizationReport
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest} request DeleteUtilizationReportRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReportCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.deleteUtilizationReport = function deleteUtilizationReport(request, callback) {
+ return this.rpcCall(deleteUtilizationReport, $root.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteUtilizationReport" });
+
+ /**
+ * Calls DeleteUtilizationReport.
+ * @function deleteUtilizationReport
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteUtilizationReportRequest} request DeleteUtilizationReportRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listDatacenterConnectors}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListDatacenterConnectorsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse} [response] ListDatacenterConnectorsResponse
+ */
+
+ /**
+ * Calls ListDatacenterConnectors.
+ * @function listDatacenterConnectors
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest} request ListDatacenterConnectorsRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectorsCallback} callback Node-style callback called with the error, if any, and ListDatacenterConnectorsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listDatacenterConnectors = function listDatacenterConnectors(request, callback) {
+ return this.rpcCall(listDatacenterConnectors, $root.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest, $root.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse, request, callback);
+ }, "name", { value: "ListDatacenterConnectors" });
+
+ /**
+ * Calls ListDatacenterConnectors.
+ * @function listDatacenterConnectors
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListDatacenterConnectorsRequest} request ListDatacenterConnectorsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getDatacenterConnector}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetDatacenterConnectorCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.DatacenterConnector} [response] DatacenterConnector
+ */
+
+ /**
+ * Calls GetDatacenterConnector.
+ * @function getDatacenterConnector
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest} request GetDatacenterConnectorRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnectorCallback} callback Node-style callback called with the error, if any, and DatacenterConnector
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getDatacenterConnector = function getDatacenterConnector(request, callback) {
+ return this.rpcCall(getDatacenterConnector, $root.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest, $root.google.cloud.vmmigration.v1.DatacenterConnector, request, callback);
+ }, "name", { value: "GetDatacenterConnector" });
+
+ /**
+ * Calls GetDatacenterConnector.
+ * @function getDatacenterConnector
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetDatacenterConnectorRequest} request GetDatacenterConnectorRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createDatacenterConnector}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateDatacenterConnectorCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateDatacenterConnector.
+ * @function createDatacenterConnector
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest} request CreateDatacenterConnectorRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnectorCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createDatacenterConnector = function createDatacenterConnector(request, callback) {
+ return this.rpcCall(createDatacenterConnector, $root.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateDatacenterConnector" });
+
+ /**
+ * Calls CreateDatacenterConnector.
+ * @function createDatacenterConnector
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateDatacenterConnectorRequest} request CreateDatacenterConnectorRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteDatacenterConnector}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef DeleteDatacenterConnectorCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteDatacenterConnector.
+ * @function deleteDatacenterConnector
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest} request DeleteDatacenterConnectorRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnectorCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.deleteDatacenterConnector = function deleteDatacenterConnector(request, callback) {
+ return this.rpcCall(deleteDatacenterConnector, $root.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteDatacenterConnector" });
+
+ /**
+ * Calls DeleteDatacenterConnector.
+ * @function deleteDatacenterConnector
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteDatacenterConnectorRequest} request DeleteDatacenterConnectorRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|upgradeAppliance}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef UpgradeApplianceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpgradeAppliance.
+ * @function upgradeAppliance
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpgradeApplianceRequest} request UpgradeApplianceRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.UpgradeApplianceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.upgradeAppliance = function upgradeAppliance(request, callback) {
+ return this.rpcCall(upgradeAppliance, $root.google.cloud.vmmigration.v1.UpgradeApplianceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpgradeAppliance" });
+
+ /**
+ * Calls UpgradeAppliance.
+ * @function upgradeAppliance
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpgradeApplianceRequest} request UpgradeApplianceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createMigratingVm}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateMigratingVmCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateMigratingVm.
+ * @function createMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateMigratingVmRequest} request CreateMigratingVmRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateMigratingVmCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createMigratingVm = function createMigratingVm(request, callback) {
+ return this.rpcCall(createMigratingVm, $root.google.cloud.vmmigration.v1.CreateMigratingVmRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateMigratingVm" });
+
+ /**
+ * Calls CreateMigratingVm.
+ * @function createMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateMigratingVmRequest} request CreateMigratingVmRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listMigratingVms}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListMigratingVmsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListMigratingVmsResponse} [response] ListMigratingVmsResponse
+ */
+
+ /**
+ * Calls ListMigratingVms.
+ * @function listMigratingVms
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListMigratingVmsRequest} request ListMigratingVmsRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListMigratingVmsCallback} callback Node-style callback called with the error, if any, and ListMigratingVmsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listMigratingVms = function listMigratingVms(request, callback) {
+ return this.rpcCall(listMigratingVms, $root.google.cloud.vmmigration.v1.ListMigratingVmsRequest, $root.google.cloud.vmmigration.v1.ListMigratingVmsResponse, request, callback);
+ }, "name", { value: "ListMigratingVms" });
+
+ /**
+ * Calls ListMigratingVms.
+ * @function listMigratingVms
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListMigratingVmsRequest} request ListMigratingVmsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getMigratingVm}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetMigratingVmCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.MigratingVm} [response] MigratingVm
+ */
+
+ /**
+ * Calls GetMigratingVm.
+ * @function getMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetMigratingVmRequest} request GetMigratingVmRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetMigratingVmCallback} callback Node-style callback called with the error, if any, and MigratingVm
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getMigratingVm = function getMigratingVm(request, callback) {
+ return this.rpcCall(getMigratingVm, $root.google.cloud.vmmigration.v1.GetMigratingVmRequest, $root.google.cloud.vmmigration.v1.MigratingVm, request, callback);
+ }, "name", { value: "GetMigratingVm" });
+
+ /**
+ * Calls GetMigratingVm.
+ * @function getMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetMigratingVmRequest} request GetMigratingVmRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateMigratingVm}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef UpdateMigratingVmCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateMigratingVm.
+ * @function updateMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateMigratingVmRequest} request UpdateMigratingVmRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVmCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.updateMigratingVm = function updateMigratingVm(request, callback) {
+ return this.rpcCall(updateMigratingVm, $root.google.cloud.vmmigration.v1.UpdateMigratingVmRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateMigratingVm" });
+
+ /**
+ * Calls UpdateMigratingVm.
+ * @function updateMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateMigratingVmRequest} request UpdateMigratingVmRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteMigratingVm}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef DeleteMigratingVmCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteMigratingVm.
+ * @function deleteMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteMigratingVmRequest} request DeleteMigratingVmRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVmCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.deleteMigratingVm = function deleteMigratingVm(request, callback) {
+ return this.rpcCall(deleteMigratingVm, $root.google.cloud.vmmigration.v1.DeleteMigratingVmRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteMigratingVm" });
+
+ /**
+ * Calls DeleteMigratingVm.
+ * @function deleteMigratingVm
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteMigratingVmRequest} request DeleteMigratingVmRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|startMigration}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef StartMigrationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls StartMigration.
+ * @function startMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IStartMigrationRequest} request StartMigrationRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.StartMigrationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.startMigration = function startMigration(request, callback) {
+ return this.rpcCall(startMigration, $root.google.cloud.vmmigration.v1.StartMigrationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "StartMigration" });
+
+ /**
+ * Calls StartMigration.
+ * @function startMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IStartMigrationRequest} request StartMigrationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|resumeMigration}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ResumeMigrationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls ResumeMigration.
+ * @function resumeMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IResumeMigrationRequest} request ResumeMigrationRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ResumeMigrationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.resumeMigration = function resumeMigration(request, callback) {
+ return this.rpcCall(resumeMigration, $root.google.cloud.vmmigration.v1.ResumeMigrationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "ResumeMigration" });
+
+ /**
+ * Calls ResumeMigration.
+ * @function resumeMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IResumeMigrationRequest} request ResumeMigrationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|pauseMigration}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef PauseMigrationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls PauseMigration.
+ * @function pauseMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IPauseMigrationRequest} request PauseMigrationRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.PauseMigrationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.pauseMigration = function pauseMigration(request, callback) {
+ return this.rpcCall(pauseMigration, $root.google.cloud.vmmigration.v1.PauseMigrationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "PauseMigration" });
+
+ /**
+ * Calls PauseMigration.
+ * @function pauseMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IPauseMigrationRequest} request PauseMigrationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|finalizeMigration}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef FinalizeMigrationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls FinalizeMigration.
+ * @function finalizeMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IFinalizeMigrationRequest} request FinalizeMigrationRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.FinalizeMigrationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.finalizeMigration = function finalizeMigration(request, callback) {
+ return this.rpcCall(finalizeMigration, $root.google.cloud.vmmigration.v1.FinalizeMigrationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "FinalizeMigration" });
+
+ /**
+ * Calls FinalizeMigration.
+ * @function finalizeMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IFinalizeMigrationRequest} request FinalizeMigrationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createCloneJob}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateCloneJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateCloneJob.
+ * @function createCloneJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateCloneJobRequest} request CreateCloneJobRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateCloneJobCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createCloneJob = function createCloneJob(request, callback) {
+ return this.rpcCall(createCloneJob, $root.google.cloud.vmmigration.v1.CreateCloneJobRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateCloneJob" });
+
+ /**
+ * Calls CreateCloneJob.
+ * @function createCloneJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateCloneJobRequest} request CreateCloneJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|cancelCloneJob}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CancelCloneJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CancelCloneJob.
+ * @function cancelCloneJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobRequest} request CancelCloneJobRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CancelCloneJobCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.cancelCloneJob = function cancelCloneJob(request, callback) {
+ return this.rpcCall(cancelCloneJob, $root.google.cloud.vmmigration.v1.CancelCloneJobRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CancelCloneJob" });
+
+ /**
+ * Calls CancelCloneJob.
+ * @function cancelCloneJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobRequest} request CancelCloneJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listCloneJobs}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListCloneJobsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListCloneJobsResponse} [response] ListCloneJobsResponse
+ */
+
+ /**
+ * Calls ListCloneJobs.
+ * @function listCloneJobs
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsRequest} request ListCloneJobsRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListCloneJobsCallback} callback Node-style callback called with the error, if any, and ListCloneJobsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listCloneJobs = function listCloneJobs(request, callback) {
+ return this.rpcCall(listCloneJobs, $root.google.cloud.vmmigration.v1.ListCloneJobsRequest, $root.google.cloud.vmmigration.v1.ListCloneJobsResponse, request, callback);
+ }, "name", { value: "ListCloneJobs" });
+
+ /**
+ * Calls ListCloneJobs.
+ * @function listCloneJobs
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsRequest} request ListCloneJobsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getCloneJob}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetCloneJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.CloneJob} [response] CloneJob
+ */
+
+ /**
+ * Calls GetCloneJob.
+ * @function getCloneJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetCloneJobRequest} request GetCloneJobRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetCloneJobCallback} callback Node-style callback called with the error, if any, and CloneJob
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getCloneJob = function getCloneJob(request, callback) {
+ return this.rpcCall(getCloneJob, $root.google.cloud.vmmigration.v1.GetCloneJobRequest, $root.google.cloud.vmmigration.v1.CloneJob, request, callback);
+ }, "name", { value: "GetCloneJob" });
+
+ /**
+ * Calls GetCloneJob.
+ * @function getCloneJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetCloneJobRequest} request GetCloneJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createCutoverJob}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateCutoverJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateCutoverJob.
+ * @function createCutoverJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateCutoverJobRequest} request CreateCutoverJobRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateCutoverJobCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createCutoverJob = function createCutoverJob(request, callback) {
+ return this.rpcCall(createCutoverJob, $root.google.cloud.vmmigration.v1.CreateCutoverJobRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateCutoverJob" });
+
+ /**
+ * Calls CreateCutoverJob.
+ * @function createCutoverJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateCutoverJobRequest} request CreateCutoverJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|cancelCutoverJob}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CancelCutoverJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CancelCutoverJob.
+ * @function cancelCutoverJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICancelCutoverJobRequest} request CancelCutoverJobRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CancelCutoverJobCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.cancelCutoverJob = function cancelCutoverJob(request, callback) {
+ return this.rpcCall(cancelCutoverJob, $root.google.cloud.vmmigration.v1.CancelCutoverJobRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CancelCutoverJob" });
+
+ /**
+ * Calls CancelCutoverJob.
+ * @function cancelCutoverJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICancelCutoverJobRequest} request CancelCutoverJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listCutoverJobs}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListCutoverJobsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListCutoverJobsResponse} [response] ListCutoverJobsResponse
+ */
+
+ /**
+ * Calls ListCutoverJobs.
+ * @function listCutoverJobs
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListCutoverJobsRequest} request ListCutoverJobsRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListCutoverJobsCallback} callback Node-style callback called with the error, if any, and ListCutoverJobsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listCutoverJobs = function listCutoverJobs(request, callback) {
+ return this.rpcCall(listCutoverJobs, $root.google.cloud.vmmigration.v1.ListCutoverJobsRequest, $root.google.cloud.vmmigration.v1.ListCutoverJobsResponse, request, callback);
+ }, "name", { value: "ListCutoverJobs" });
+
+ /**
+ * Calls ListCutoverJobs.
+ * @function listCutoverJobs
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListCutoverJobsRequest} request ListCutoverJobsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getCutoverJob}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetCutoverJobCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.CutoverJob} [response] CutoverJob
+ */
+
+ /**
+ * Calls GetCutoverJob.
+ * @function getCutoverJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetCutoverJobRequest} request GetCutoverJobRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetCutoverJobCallback} callback Node-style callback called with the error, if any, and CutoverJob
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getCutoverJob = function getCutoverJob(request, callback) {
+ return this.rpcCall(getCutoverJob, $root.google.cloud.vmmigration.v1.GetCutoverJobRequest, $root.google.cloud.vmmigration.v1.CutoverJob, request, callback);
+ }, "name", { value: "GetCutoverJob" });
+
+ /**
+ * Calls GetCutoverJob.
+ * @function getCutoverJob
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetCutoverJobRequest} request GetCutoverJobRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listGroups}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListGroupsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListGroupsResponse} [response] ListGroupsResponse
+ */
+
+ /**
+ * Calls ListGroups.
+ * @function listGroups
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListGroupsRequest} request ListGroupsRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListGroupsCallback} callback Node-style callback called with the error, if any, and ListGroupsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listGroups = function listGroups(request, callback) {
+ return this.rpcCall(listGroups, $root.google.cloud.vmmigration.v1.ListGroupsRequest, $root.google.cloud.vmmigration.v1.ListGroupsResponse, request, callback);
+ }, "name", { value: "ListGroups" });
+
+ /**
+ * Calls ListGroups.
+ * @function listGroups
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListGroupsRequest} request ListGroupsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getGroup}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.Group} [response] Group
+ */
+
+ /**
+ * Calls GetGroup.
+ * @function getGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetGroupRequest} request GetGroupRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetGroupCallback} callback Node-style callback called with the error, if any, and Group
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getGroup = function getGroup(request, callback) {
+ return this.rpcCall(getGroup, $root.google.cloud.vmmigration.v1.GetGroupRequest, $root.google.cloud.vmmigration.v1.Group, request, callback);
+ }, "name", { value: "GetGroup" });
+
+ /**
+ * Calls GetGroup.
+ * @function getGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetGroupRequest} request GetGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createGroup}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateGroup.
+ * @function createGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateGroupRequest} request CreateGroupRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateGroupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createGroup = function createGroup(request, callback) {
+ return this.rpcCall(createGroup, $root.google.cloud.vmmigration.v1.CreateGroupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateGroup" });
+
+ /**
+ * Calls CreateGroup.
+ * @function createGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateGroupRequest} request CreateGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateGroup}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef UpdateGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateGroup.
+ * @function updateGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateGroupRequest} request UpdateGroupRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.UpdateGroupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.updateGroup = function updateGroup(request, callback) {
+ return this.rpcCall(updateGroup, $root.google.cloud.vmmigration.v1.UpdateGroupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateGroup" });
+
+ /**
+ * Calls UpdateGroup.
+ * @function updateGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateGroupRequest} request UpdateGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteGroup}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef DeleteGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteGroup.
+ * @function deleteGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteGroupRequest} request DeleteGroupRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.DeleteGroupCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.deleteGroup = function deleteGroup(request, callback) {
+ return this.rpcCall(deleteGroup, $root.google.cloud.vmmigration.v1.DeleteGroupRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteGroup" });
+
+ /**
+ * Calls DeleteGroup.
+ * @function deleteGroup
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteGroupRequest} request DeleteGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|addGroupMigration}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef AddGroupMigrationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls AddGroupMigration.
+ * @function addGroupMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IAddGroupMigrationRequest} request AddGroupMigrationRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.AddGroupMigrationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.addGroupMigration = function addGroupMigration(request, callback) {
+ return this.rpcCall(addGroupMigration, $root.google.cloud.vmmigration.v1.AddGroupMigrationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "AddGroupMigration" });
+
+ /**
+ * Calls AddGroupMigration.
+ * @function addGroupMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IAddGroupMigrationRequest} request AddGroupMigrationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|removeGroupMigration}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef RemoveGroupMigrationCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RemoveGroupMigration.
+ * @function removeGroupMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest} request RemoveGroupMigrationRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigrationCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.removeGroupMigration = function removeGroupMigration(request, callback) {
+ return this.rpcCall(removeGroupMigration, $root.google.cloud.vmmigration.v1.RemoveGroupMigrationRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RemoveGroupMigration" });
+
+ /**
+ * Calls RemoveGroupMigration.
+ * @function removeGroupMigration
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IRemoveGroupMigrationRequest} request RemoveGroupMigrationRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|listTargetProjects}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef ListTargetProjectsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.ListTargetProjectsResponse} [response] ListTargetProjectsResponse
+ */
+
+ /**
+ * Calls ListTargetProjects.
+ * @function listTargetProjects
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListTargetProjectsRequest} request ListTargetProjectsRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.ListTargetProjectsCallback} callback Node-style callback called with the error, if any, and ListTargetProjectsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.listTargetProjects = function listTargetProjects(request, callback) {
+ return this.rpcCall(listTargetProjects, $root.google.cloud.vmmigration.v1.ListTargetProjectsRequest, $root.google.cloud.vmmigration.v1.ListTargetProjectsResponse, request, callback);
+ }, "name", { value: "ListTargetProjects" });
+
+ /**
+ * Calls ListTargetProjects.
+ * @function listTargetProjects
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IListTargetProjectsRequest} request ListTargetProjectsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|getTargetProject}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef GetTargetProjectCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.vmmigration.v1.TargetProject} [response] TargetProject
+ */
+
+ /**
+ * Calls GetTargetProject.
+ * @function getTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetTargetProjectRequest} request GetTargetProjectRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.GetTargetProjectCallback} callback Node-style callback called with the error, if any, and TargetProject
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.getTargetProject = function getTargetProject(request, callback) {
+ return this.rpcCall(getTargetProject, $root.google.cloud.vmmigration.v1.GetTargetProjectRequest, $root.google.cloud.vmmigration.v1.TargetProject, request, callback);
+ }, "name", { value: "GetTargetProject" });
+
+ /**
+ * Calls GetTargetProject.
+ * @function getTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IGetTargetProjectRequest} request GetTargetProjectRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|createTargetProject}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef CreateTargetProjectCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateTargetProject.
+ * @function createTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateTargetProjectRequest} request CreateTargetProjectRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.CreateTargetProjectCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.createTargetProject = function createTargetProject(request, callback) {
+ return this.rpcCall(createTargetProject, $root.google.cloud.vmmigration.v1.CreateTargetProjectRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateTargetProject" });
+
+ /**
+ * Calls CreateTargetProject.
+ * @function createTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.ICreateTargetProjectRequest} request CreateTargetProjectRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|updateTargetProject}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef UpdateTargetProjectCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateTargetProject.
+ * @function updateTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateTargetProjectRequest} request UpdateTargetProjectRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.UpdateTargetProjectCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.updateTargetProject = function updateTargetProject(request, callback) {
+ return this.rpcCall(updateTargetProject, $root.google.cloud.vmmigration.v1.UpdateTargetProjectRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateTargetProject" });
+
+ /**
+ * Calls UpdateTargetProject.
+ * @function updateTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IUpdateTargetProjectRequest} request UpdateTargetProjectRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.vmmigration.v1.VmMigration|deleteTargetProject}.
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @typedef DeleteTargetProjectCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteTargetProject.
+ * @function deleteTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteTargetProjectRequest} request DeleteTargetProjectRequest message or plain object
+ * @param {google.cloud.vmmigration.v1.VmMigration.DeleteTargetProjectCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(VmMigration.prototype.deleteTargetProject = function deleteTargetProject(request, callback) {
+ return this.rpcCall(deleteTargetProject, $root.google.cloud.vmmigration.v1.DeleteTargetProjectRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteTargetProject" });
+
+ /**
+ * Calls DeleteTargetProject.
+ * @function deleteTargetProject
+ * @memberof google.cloud.vmmigration.v1.VmMigration
+ * @instance
+ * @param {google.cloud.vmmigration.v1.IDeleteTargetProjectRequest} request DeleteTargetProjectRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return VmMigration;
+ })();
+
+ /**
+ * UtilizationReportView enum.
+ * @name google.cloud.vmmigration.v1.UtilizationReportView
+ * @enum {number}
+ * @property {number} UTILIZATION_REPORT_VIEW_UNSPECIFIED=0 UTILIZATION_REPORT_VIEW_UNSPECIFIED value
+ * @property {number} BASIC=1 BASIC value
+ * @property {number} FULL=2 FULL value
+ */
+ v1.UtilizationReportView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "UTILIZATION_REPORT_VIEW_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "BASIC"] = 1;
+ values[valuesById[2] = "FULL"] = 2;
+ return values;
+ })();
+
+ /**
+ * MigratingVmView enum.
+ * @name google.cloud.vmmigration.v1.MigratingVmView
+ * @enum {number}
+ * @property {number} MIGRATING_VM_VIEW_UNSPECIFIED=0 MIGRATING_VM_VIEW_UNSPECIFIED value
+ * @property {number} MIGRATING_VM_VIEW_BASIC=1 MIGRATING_VM_VIEW_BASIC value
+ * @property {number} MIGRATING_VM_VIEW_FULL=2 MIGRATING_VM_VIEW_FULL value
+ */
+ v1.MigratingVmView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "MIGRATING_VM_VIEW_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "MIGRATING_VM_VIEW_BASIC"] = 1;
+ values[valuesById[2] = "MIGRATING_VM_VIEW_FULL"] = 2;
+ return values;
+ })();
+
+ /**
+ * ComputeEngineDiskType enum.
+ * @name google.cloud.vmmigration.v1.ComputeEngineDiskType
+ * @enum {number}
+ * @property {number} COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED=0 COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED value
+ * @property {number} COMPUTE_ENGINE_DISK_TYPE_STANDARD=1 COMPUTE_ENGINE_DISK_TYPE_STANDARD value
+ * @property {number} COMPUTE_ENGINE_DISK_TYPE_SSD=2 COMPUTE_ENGINE_DISK_TYPE_SSD value
+ * @property {number} COMPUTE_ENGINE_DISK_TYPE_BALANCED=3 COMPUTE_ENGINE_DISK_TYPE_BALANCED value
+ */
+ v1.ComputeEngineDiskType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "COMPUTE_ENGINE_DISK_TYPE_STANDARD"] = 1;
+ values[valuesById[2] = "COMPUTE_ENGINE_DISK_TYPE_SSD"] = 2;
+ values[valuesById[3] = "COMPUTE_ENGINE_DISK_TYPE_BALANCED"] = 3;
+ return values;
+ })();
+
+ /**
+ * ComputeEngineLicenseType enum.
+ * @name google.cloud.vmmigration.v1.ComputeEngineLicenseType
+ * @enum {number}
+ * @property {number} COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT=0 COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT value
+ * @property {number} COMPUTE_ENGINE_LICENSE_TYPE_PAYG=1 COMPUTE_ENGINE_LICENSE_TYPE_PAYG value
+ * @property {number} COMPUTE_ENGINE_LICENSE_TYPE_BYOL=2 COMPUTE_ENGINE_LICENSE_TYPE_BYOL value
+ */
+ v1.ComputeEngineLicenseType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT"] = 0;
+ values[valuesById[1] = "COMPUTE_ENGINE_LICENSE_TYPE_PAYG"] = 1;
+ values[valuesById[2] = "COMPUTE_ENGINE_LICENSE_TYPE_BYOL"] = 2;
+ return values;
+ })();
+
+ /**
+ * ComputeEngineBootOption enum.
+ * @name google.cloud.vmmigration.v1.ComputeEngineBootOption
+ * @enum {number}
+ * @property {number} COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED=0 COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED value
+ * @property {number} COMPUTE_ENGINE_BOOT_OPTION_EFI=1 COMPUTE_ENGINE_BOOT_OPTION_EFI value
+ * @property {number} COMPUTE_ENGINE_BOOT_OPTION_BIOS=2 COMPUTE_ENGINE_BOOT_OPTION_BIOS value
+ */
+ v1.ComputeEngineBootOption = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "COMPUTE_ENGINE_BOOT_OPTION_EFI"] = 1;
+ values[valuesById[2] = "COMPUTE_ENGINE_BOOT_OPTION_BIOS"] = 2;
+ return values;
+ })();
+
+ v1.ReplicationCycle = (function() {
+
+ /**
+ * Properties of a ReplicationCycle.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IReplicationCycle
+ * @property {google.protobuf.ITimestamp|null} [startTime] ReplicationCycle startTime
+ * @property {number|null} [progressPercent] ReplicationCycle progressPercent
+ */
+
+ /**
+ * Constructs a new ReplicationCycle.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ReplicationCycle.
+ * @implements IReplicationCycle
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IReplicationCycle=} [properties] Properties to set
+ */
+ function ReplicationCycle(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]];
+ }
+
+ /**
+ * ReplicationCycle startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @instance
+ */
+ ReplicationCycle.prototype.startTime = null;
+
+ /**
+ * ReplicationCycle progressPercent.
+ * @member {number} progressPercent
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @instance
+ */
+ ReplicationCycle.prototype.progressPercent = 0;
+
+ /**
+ * Creates a new ReplicationCycle instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {google.cloud.vmmigration.v1.IReplicationCycle=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ReplicationCycle} ReplicationCycle instance
+ */
+ ReplicationCycle.create = function create(properties) {
+ return new ReplicationCycle(properties);
+ };
+
+ /**
+ * Encodes the specified ReplicationCycle message. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationCycle.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {google.cloud.vmmigration.v1.IReplicationCycle} message ReplicationCycle message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReplicationCycle.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.progressPercent);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ReplicationCycle message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationCycle.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {google.cloud.vmmigration.v1.IReplicationCycle} message ReplicationCycle message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReplicationCycle.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReplicationCycle message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ReplicationCycle} ReplicationCycle
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReplicationCycle.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.vmmigration.v1.ReplicationCycle();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.progressPercent = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ReplicationCycle message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ReplicationCycle} ReplicationCycle
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReplicationCycle.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReplicationCycle message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReplicationCycle.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ if (!$util.isInteger(message.progressPercent))
+ return "progressPercent: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ReplicationCycle message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ReplicationCycle} ReplicationCycle
+ */
+ ReplicationCycle.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ReplicationCycle)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ReplicationCycle();
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.ReplicationCycle.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.progressPercent != null)
+ message.progressPercent = object.progressPercent | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ReplicationCycle message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {google.cloud.vmmigration.v1.ReplicationCycle} message ReplicationCycle
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReplicationCycle.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.startTime = null;
+ object.progressPercent = 0;
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ object.progressPercent = message.progressPercent;
+ return object;
+ };
+
+ /**
+ * Converts this ReplicationCycle to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReplicationCycle.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ReplicationCycle
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ReplicationCycle
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReplicationCycle.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ReplicationCycle";
+ };
+
+ return ReplicationCycle;
+ })();
+
+ v1.ReplicationSync = (function() {
+
+ /**
+ * Properties of a ReplicationSync.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IReplicationSync
+ * @property {google.protobuf.ITimestamp|null} [lastSyncTime] ReplicationSync lastSyncTime
+ */
+
+ /**
+ * Constructs a new ReplicationSync.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ReplicationSync.
+ * @implements IReplicationSync
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IReplicationSync=} [properties] Properties to set
+ */
+ function ReplicationSync(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]];
+ }
+
+ /**
+ * ReplicationSync lastSyncTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} lastSyncTime
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @instance
+ */
+ ReplicationSync.prototype.lastSyncTime = null;
+
+ /**
+ * Creates a new ReplicationSync instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {google.cloud.vmmigration.v1.IReplicationSync=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ReplicationSync} ReplicationSync instance
+ */
+ ReplicationSync.create = function create(properties) {
+ return new ReplicationSync(properties);
+ };
+
+ /**
+ * Encodes the specified ReplicationSync message. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationSync.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {google.cloud.vmmigration.v1.IReplicationSync} message ReplicationSync message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReplicationSync.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.lastSyncTime != null && Object.hasOwnProperty.call(message, "lastSyncTime"))
+ $root.google.protobuf.Timestamp.encode(message.lastSyncTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ReplicationSync message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ReplicationSync.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {google.cloud.vmmigration.v1.IReplicationSync} message ReplicationSync message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReplicationSync.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReplicationSync message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ReplicationSync} ReplicationSync
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReplicationSync.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.vmmigration.v1.ReplicationSync();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.lastSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ReplicationSync message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ReplicationSync} ReplicationSync
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReplicationSync.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReplicationSync message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReplicationSync.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.lastSyncTime != null && message.hasOwnProperty("lastSyncTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.lastSyncTime);
+ if (error)
+ return "lastSyncTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ReplicationSync message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ReplicationSync} ReplicationSync
+ */
+ ReplicationSync.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ReplicationSync)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ReplicationSync();
+ if (object.lastSyncTime != null) {
+ if (typeof object.lastSyncTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.ReplicationSync.lastSyncTime: object expected");
+ message.lastSyncTime = $root.google.protobuf.Timestamp.fromObject(object.lastSyncTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ReplicationSync message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {google.cloud.vmmigration.v1.ReplicationSync} message ReplicationSync
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReplicationSync.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.lastSyncTime = null;
+ if (message.lastSyncTime != null && message.hasOwnProperty("lastSyncTime"))
+ object.lastSyncTime = $root.google.protobuf.Timestamp.toObject(message.lastSyncTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this ReplicationSync to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReplicationSync.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ReplicationSync
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ReplicationSync
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReplicationSync.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ReplicationSync";
+ };
+
+ return ReplicationSync;
+ })();
+
+ v1.MigratingVm = (function() {
+
+ /**
+ * Properties of a MigratingVm.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IMigratingVm
+ * @property {google.cloud.vmmigration.v1.IComputeEngineTargetDefaults|null} [computeEngineTargetDefaults] MigratingVm computeEngineTargetDefaults
+ * @property {string|null} [name] MigratingVm name
+ * @property {string|null} [sourceVmId] MigratingVm sourceVmId
+ * @property {string|null} [displayName] MigratingVm displayName
+ * @property {string|null} [description] MigratingVm description
+ * @property {google.cloud.vmmigration.v1.ISchedulePolicy|null} [policy] MigratingVm policy
+ * @property {google.protobuf.ITimestamp|null} [createTime] MigratingVm createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] MigratingVm updateTime
+ * @property {google.cloud.vmmigration.v1.IReplicationSync|null} [lastSync] MigratingVm lastSync
+ * @property {google.cloud.vmmigration.v1.MigratingVm.State|null} [state] MigratingVm state
+ * @property {google.protobuf.ITimestamp|null} [stateTime] MigratingVm stateTime
+ * @property {google.cloud.vmmigration.v1.IReplicationCycle|null} [currentSyncInfo] MigratingVm currentSyncInfo
+ * @property {string|null} [group] MigratingVm group
+ * @property {Object.|null} [labels] MigratingVm labels
+ * @property {Array.|null} [recentCloneJobs] MigratingVm recentCloneJobs
+ * @property {google.rpc.IStatus|null} [error] MigratingVm error
+ * @property {Array.|null} [recentCutoverJobs] MigratingVm recentCutoverJobs
+ */
+
+ /**
+ * Constructs a new MigratingVm.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a MigratingVm.
+ * @implements IMigratingVm
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IMigratingVm=} [properties] Properties to set
+ */
+ function MigratingVm(properties) {
+ this.labels = {};
+ this.recentCloneJobs = [];
+ this.recentCutoverJobs = [];
+ 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]];
+ }
+
+ /**
+ * MigratingVm computeEngineTargetDefaults.
+ * @member {google.cloud.vmmigration.v1.IComputeEngineTargetDefaults|null|undefined} computeEngineTargetDefaults
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.computeEngineTargetDefaults = null;
+
+ /**
+ * MigratingVm name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.name = "";
+
+ /**
+ * MigratingVm sourceVmId.
+ * @member {string} sourceVmId
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.sourceVmId = "";
+
+ /**
+ * MigratingVm displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.displayName = "";
+
+ /**
+ * MigratingVm description.
+ * @member {string} description
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.description = "";
+
+ /**
+ * MigratingVm policy.
+ * @member {google.cloud.vmmigration.v1.ISchedulePolicy|null|undefined} policy
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.policy = null;
+
+ /**
+ * MigratingVm createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.createTime = null;
+
+ /**
+ * MigratingVm updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.updateTime = null;
+
+ /**
+ * MigratingVm lastSync.
+ * @member {google.cloud.vmmigration.v1.IReplicationSync|null|undefined} lastSync
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.lastSync = null;
+
+ /**
+ * MigratingVm state.
+ * @member {google.cloud.vmmigration.v1.MigratingVm.State} state
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.state = 0;
+
+ /**
+ * MigratingVm stateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} stateTime
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.stateTime = null;
+
+ /**
+ * MigratingVm currentSyncInfo.
+ * @member {google.cloud.vmmigration.v1.IReplicationCycle|null|undefined} currentSyncInfo
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.currentSyncInfo = null;
+
+ /**
+ * MigratingVm group.
+ * @member {string} group
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.group = "";
+
+ /**
+ * MigratingVm labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.labels = $util.emptyObject;
+
+ /**
+ * MigratingVm recentCloneJobs.
+ * @member {Array.} recentCloneJobs
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.recentCloneJobs = $util.emptyArray;
+
+ /**
+ * MigratingVm error.
+ * @member {google.rpc.IStatus|null|undefined} error
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.error = null;
+
+ /**
+ * MigratingVm recentCutoverJobs.
+ * @member {Array.} recentCutoverJobs
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ MigratingVm.prototype.recentCutoverJobs = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * MigratingVm targetVmDefaults.
+ * @member {"computeEngineTargetDefaults"|undefined} targetVmDefaults
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ */
+ Object.defineProperty(MigratingVm.prototype, "targetVmDefaults", {
+ get: $util.oneOfGetter($oneOfFields = ["computeEngineTargetDefaults"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new MigratingVm instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {google.cloud.vmmigration.v1.IMigratingVm=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.MigratingVm} MigratingVm instance
+ */
+ MigratingVm.create = function create(properties) {
+ return new MigratingVm(properties);
+ };
+
+ /**
+ * Encodes the specified MigratingVm message. Does not implicitly {@link google.cloud.vmmigration.v1.MigratingVm.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {google.cloud.vmmigration.v1.IMigratingVm} message MigratingVm message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MigratingVm.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.sourceVmId != null && Object.hasOwnProperty.call(message, "sourceVmId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceVmId);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.policy != null && Object.hasOwnProperty.call(message, "policy"))
+ $root.google.cloud.vmmigration.v1.SchedulePolicy.encode(message.policy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.lastSync != null && Object.hasOwnProperty.call(message, "lastSync"))
+ $root.google.cloud.vmmigration.v1.ReplicationSync.encode(message.lastSync, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.currentSyncInfo != null && Object.hasOwnProperty.call(message, "currentSyncInfo"))
+ $root.google.cloud.vmmigration.v1.ReplicationCycle.encode(message.currentSyncInfo, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.group != null && Object.hasOwnProperty.call(message, "group"))
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.group);
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.recentCloneJobs != null && message.recentCloneJobs.length)
+ for (var i = 0; i < message.recentCloneJobs.length; ++i)
+ $root.google.cloud.vmmigration.v1.CloneJob.encode(message.recentCloneJobs[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 18, wireType 2 =*/146).string(message.displayName);
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
+ if (message.recentCutoverJobs != null && message.recentCutoverJobs.length)
+ for (var i = 0; i < message.recentCutoverJobs.length; ++i)
+ $root.google.cloud.vmmigration.v1.CutoverJob.encode(message.recentCutoverJobs[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
+ if (message.stateTime != null && Object.hasOwnProperty.call(message, "stateTime"))
+ $root.google.protobuf.Timestamp.encode(message.stateTime, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 23, wireType 0 =*/184).int32(message.state);
+ if (message.computeEngineTargetDefaults != null && Object.hasOwnProperty.call(message, "computeEngineTargetDefaults"))
+ $root.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.encode(message.computeEngineTargetDefaults, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MigratingVm message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.MigratingVm.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {google.cloud.vmmigration.v1.IMigratingVm} message MigratingVm message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MigratingVm.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MigratingVm message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.MigratingVm} MigratingVm
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MigratingVm.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.vmmigration.v1.MigratingVm(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 26: {
+ message.computeEngineTargetDefaults = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.sourceVmId = reader.string();
+ break;
+ }
+ case 18: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 8: {
+ message.policy = $root.google.cloud.vmmigration.v1.SchedulePolicy.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.lastSync = $root.google.cloud.vmmigration.v1.ReplicationSync.decode(reader, reader.uint32());
+ break;
+ }
+ case 23: {
+ message.state = reader.int32();
+ break;
+ }
+ case 22: {
+ message.stateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.currentSyncInfo = $root.google.cloud.vmmigration.v1.ReplicationCycle.decode(reader, reader.uint32());
+ break;
+ }
+ case 15: {
+ message.group = reader.string();
+ break;
+ }
+ case 16: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 17: {
+ if (!(message.recentCloneJobs && message.recentCloneJobs.length))
+ message.recentCloneJobs = [];
+ message.recentCloneJobs.push($root.google.cloud.vmmigration.v1.CloneJob.decode(reader, reader.uint32()));
+ break;
+ }
+ case 19: {
+ message.error = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ case 20: {
+ if (!(message.recentCutoverJobs && message.recentCutoverJobs.length))
+ message.recentCutoverJobs = [];
+ message.recentCutoverJobs.push($root.google.cloud.vmmigration.v1.CutoverJob.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MigratingVm message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.MigratingVm} MigratingVm
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MigratingVm.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MigratingVm message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MigratingVm.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.computeEngineTargetDefaults != null && message.hasOwnProperty("computeEngineTargetDefaults")) {
+ properties.targetVmDefaults = 1;
+ {
+ var error = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.verify(message.computeEngineTargetDefaults);
+ if (error)
+ return "computeEngineTargetDefaults." + error;
+ }
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.sourceVmId != null && message.hasOwnProperty("sourceVmId"))
+ if (!$util.isString(message.sourceVmId))
+ return "sourceVmId: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.policy != null && message.hasOwnProperty("policy")) {
+ var error = $root.google.cloud.vmmigration.v1.SchedulePolicy.verify(message.policy);
+ if (error)
+ return "policy." + error;
+ }
+ 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.lastSync != null && message.hasOwnProperty("lastSync")) {
+ var error = $root.google.cloud.vmmigration.v1.ReplicationSync.verify(message.lastSync);
+ if (error)
+ return "lastSync." + 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 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ break;
+ }
+ if (message.stateTime != null && message.hasOwnProperty("stateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.stateTime);
+ if (error)
+ return "stateTime." + error;
+ }
+ if (message.currentSyncInfo != null && message.hasOwnProperty("currentSyncInfo")) {
+ var error = $root.google.cloud.vmmigration.v1.ReplicationCycle.verify(message.currentSyncInfo);
+ if (error)
+ return "currentSyncInfo." + error;
+ }
+ if (message.group != null && message.hasOwnProperty("group"))
+ if (!$util.isString(message.group))
+ return "group: string expected";
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.recentCloneJobs != null && message.hasOwnProperty("recentCloneJobs")) {
+ if (!Array.isArray(message.recentCloneJobs))
+ return "recentCloneJobs: array expected";
+ for (var i = 0; i < message.recentCloneJobs.length; ++i) {
+ var error = $root.google.cloud.vmmigration.v1.CloneJob.verify(message.recentCloneJobs[i]);
+ if (error)
+ return "recentCloneJobs." + error;
+ }
+ }
+ if (message.error != null && message.hasOwnProperty("error")) {
+ var error = $root.google.rpc.Status.verify(message.error);
+ if (error)
+ return "error." + error;
+ }
+ if (message.recentCutoverJobs != null && message.hasOwnProperty("recentCutoverJobs")) {
+ if (!Array.isArray(message.recentCutoverJobs))
+ return "recentCutoverJobs: array expected";
+ for (var i = 0; i < message.recentCutoverJobs.length; ++i) {
+ var error = $root.google.cloud.vmmigration.v1.CutoverJob.verify(message.recentCutoverJobs[i]);
+ if (error)
+ return "recentCutoverJobs." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MigratingVm message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.MigratingVm} MigratingVm
+ */
+ MigratingVm.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.MigratingVm)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.MigratingVm();
+ if (object.computeEngineTargetDefaults != null) {
+ if (typeof object.computeEngineTargetDefaults !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.computeEngineTargetDefaults: object expected");
+ message.computeEngineTargetDefaults = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.fromObject(object.computeEngineTargetDefaults);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.sourceVmId != null)
+ message.sourceVmId = String(object.sourceVmId);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.policy != null) {
+ if (typeof object.policy !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.policy: object expected");
+ message.policy = $root.google.cloud.vmmigration.v1.SchedulePolicy.fromObject(object.policy);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.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.vmmigration.v1.MigratingVm.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.lastSync != null) {
+ if (typeof object.lastSync !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.lastSync: object expected");
+ message.lastSync = $root.google.cloud.vmmigration.v1.ReplicationSync.fromObject(object.lastSync);
+ }
+ 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 "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "READY":
+ case 2:
+ message.state = 2;
+ break;
+ case "FIRST_SYNC":
+ case 3:
+ message.state = 3;
+ break;
+ case "ACTIVE":
+ case 4:
+ message.state = 4;
+ break;
+ case "CUTTING_OVER":
+ case 7:
+ message.state = 7;
+ break;
+ case "CUTOVER":
+ case 8:
+ message.state = 8;
+ break;
+ case "FINAL_SYNC":
+ case 9:
+ message.state = 9;
+ break;
+ case "PAUSED":
+ case 10:
+ message.state = 10;
+ break;
+ case "FINALIZING":
+ case 11:
+ message.state = 11;
+ break;
+ case "FINALIZED":
+ case 12:
+ message.state = 12;
+ break;
+ case "ERROR":
+ case 13:
+ message.state = 13;
+ break;
+ }
+ if (object.stateTime != null) {
+ if (typeof object.stateTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.stateTime: object expected");
+ message.stateTime = $root.google.protobuf.Timestamp.fromObject(object.stateTime);
+ }
+ if (object.currentSyncInfo != null) {
+ if (typeof object.currentSyncInfo !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.currentSyncInfo: object expected");
+ message.currentSyncInfo = $root.google.cloud.vmmigration.v1.ReplicationCycle.fromObject(object.currentSyncInfo);
+ }
+ if (object.group != null)
+ message.group = String(object.group);
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.recentCloneJobs) {
+ if (!Array.isArray(object.recentCloneJobs))
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.recentCloneJobs: array expected");
+ message.recentCloneJobs = [];
+ for (var i = 0; i < object.recentCloneJobs.length; ++i) {
+ if (typeof object.recentCloneJobs[i] !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.recentCloneJobs: object expected");
+ message.recentCloneJobs[i] = $root.google.cloud.vmmigration.v1.CloneJob.fromObject(object.recentCloneJobs[i]);
+ }
+ }
+ if (object.error != null) {
+ if (typeof object.error !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.error: object expected");
+ message.error = $root.google.rpc.Status.fromObject(object.error);
+ }
+ if (object.recentCutoverJobs) {
+ if (!Array.isArray(object.recentCutoverJobs))
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.recentCutoverJobs: array expected");
+ message.recentCutoverJobs = [];
+ for (var i = 0; i < object.recentCutoverJobs.length; ++i) {
+ if (typeof object.recentCutoverJobs[i] !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.MigratingVm.recentCutoverJobs: object expected");
+ message.recentCutoverJobs[i] = $root.google.cloud.vmmigration.v1.CutoverJob.fromObject(object.recentCutoverJobs[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MigratingVm message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {google.cloud.vmmigration.v1.MigratingVm} message MigratingVm
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MigratingVm.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.recentCloneJobs = [];
+ object.recentCutoverJobs = [];
+ }
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.sourceVmId = "";
+ object.description = "";
+ object.policy = null;
+ object.createTime = null;
+ object.updateTime = null;
+ object.lastSync = null;
+ object.currentSyncInfo = null;
+ object.group = "";
+ object.displayName = "";
+ object.error = null;
+ object.stateTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.sourceVmId != null && message.hasOwnProperty("sourceVmId"))
+ object.sourceVmId = message.sourceVmId;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.policy != null && message.hasOwnProperty("policy"))
+ object.policy = $root.google.cloud.vmmigration.v1.SchedulePolicy.toObject(message.policy, options);
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.lastSync != null && message.hasOwnProperty("lastSync"))
+ object.lastSync = $root.google.cloud.vmmigration.v1.ReplicationSync.toObject(message.lastSync, options);
+ if (message.currentSyncInfo != null && message.hasOwnProperty("currentSyncInfo"))
+ object.currentSyncInfo = $root.google.cloud.vmmigration.v1.ReplicationCycle.toObject(message.currentSyncInfo, options);
+ if (message.group != null && message.hasOwnProperty("group"))
+ object.group = message.group;
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.recentCloneJobs && message.recentCloneJobs.length) {
+ object.recentCloneJobs = [];
+ for (var j = 0; j < message.recentCloneJobs.length; ++j)
+ object.recentCloneJobs[j] = $root.google.cloud.vmmigration.v1.CloneJob.toObject(message.recentCloneJobs[j], options);
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = $root.google.rpc.Status.toObject(message.error, options);
+ if (message.recentCutoverJobs && message.recentCutoverJobs.length) {
+ object.recentCutoverJobs = [];
+ for (var j = 0; j < message.recentCutoverJobs.length; ++j)
+ object.recentCutoverJobs[j] = $root.google.cloud.vmmigration.v1.CutoverJob.toObject(message.recentCutoverJobs[j], options);
+ }
+ if (message.stateTime != null && message.hasOwnProperty("stateTime"))
+ object.stateTime = $root.google.protobuf.Timestamp.toObject(message.stateTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmmigration.v1.MigratingVm.State[message.state] === undefined ? message.state : $root.google.cloud.vmmigration.v1.MigratingVm.State[message.state] : message.state;
+ if (message.computeEngineTargetDefaults != null && message.hasOwnProperty("computeEngineTargetDefaults")) {
+ object.computeEngineTargetDefaults = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.toObject(message.computeEngineTargetDefaults, options);
+ if (options.oneofs)
+ object.targetVmDefaults = "computeEngineTargetDefaults";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MigratingVm to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MigratingVm.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MigratingVm
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.MigratingVm
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MigratingVm.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.MigratingVm";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmmigration.v1.MigratingVm.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} READY=2 READY value
+ * @property {number} FIRST_SYNC=3 FIRST_SYNC value
+ * @property {number} ACTIVE=4 ACTIVE value
+ * @property {number} CUTTING_OVER=7 CUTTING_OVER value
+ * @property {number} CUTOVER=8 CUTOVER value
+ * @property {number} FINAL_SYNC=9 FINAL_SYNC value
+ * @property {number} PAUSED=10 PAUSED value
+ * @property {number} FINALIZING=11 FINALIZING value
+ * @property {number} FINALIZED=12 FINALIZED value
+ * @property {number} ERROR=13 ERROR value
+ */
+ MigratingVm.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "READY"] = 2;
+ values[valuesById[3] = "FIRST_SYNC"] = 3;
+ values[valuesById[4] = "ACTIVE"] = 4;
+ values[valuesById[7] = "CUTTING_OVER"] = 7;
+ values[valuesById[8] = "CUTOVER"] = 8;
+ values[valuesById[9] = "FINAL_SYNC"] = 9;
+ values[valuesById[10] = "PAUSED"] = 10;
+ values[valuesById[11] = "FINALIZING"] = 11;
+ values[valuesById[12] = "FINALIZED"] = 12;
+ values[valuesById[13] = "ERROR"] = 13;
+ return values;
+ })();
+
+ return MigratingVm;
+ })();
+
+ v1.CloneJob = (function() {
+
+ /**
+ * Properties of a CloneJob.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface ICloneJob
+ * @property {google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null} [computeEngineTargetDetails] CloneJob computeEngineTargetDetails
+ * @property {google.protobuf.ITimestamp|null} [createTime] CloneJob createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] CloneJob endTime
+ * @property {string|null} [name] CloneJob name
+ * @property {google.cloud.vmmigration.v1.CloneJob.State|null} [state] CloneJob state
+ * @property {google.protobuf.ITimestamp|null} [stateTime] CloneJob stateTime
+ * @property {google.rpc.IStatus|null} [error] CloneJob error
+ */
+
+ /**
+ * Constructs a new CloneJob.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a CloneJob.
+ * @implements ICloneJob
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.ICloneJob=} [properties] Properties to set
+ */
+ function CloneJob(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]];
+ }
+
+ /**
+ * CloneJob computeEngineTargetDetails.
+ * @member {google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null|undefined} computeEngineTargetDetails
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ CloneJob.prototype.computeEngineTargetDetails = null;
+
+ /**
+ * CloneJob createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ CloneJob.prototype.createTime = null;
+
+ /**
+ * CloneJob endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ CloneJob.prototype.endTime = null;
+
+ /**
+ * CloneJob name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ CloneJob.prototype.name = "";
+
+ /**
+ * CloneJob state.
+ * @member {google.cloud.vmmigration.v1.CloneJob.State} state
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ CloneJob.prototype.state = 0;
+
+ /**
+ * CloneJob stateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} stateTime
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ CloneJob.prototype.stateTime = null;
+
+ /**
+ * CloneJob error.
+ * @member {google.rpc.IStatus|null|undefined} error
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ CloneJob.prototype.error = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * CloneJob targetVmDetails.
+ * @member {"computeEngineTargetDetails"|undefined} targetVmDetails
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ */
+ Object.defineProperty(CloneJob.prototype, "targetVmDetails", {
+ get: $util.oneOfGetter($oneOfFields = ["computeEngineTargetDetails"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new CloneJob instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICloneJob=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.CloneJob} CloneJob instance
+ */
+ CloneJob.create = function create(properties) {
+ return new CloneJob(properties);
+ };
+
+ /**
+ * Encodes the specified CloneJob message. Does not implicitly {@link google.cloud.vmmigration.v1.CloneJob.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICloneJob} message CloneJob message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloneJob.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.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int32(message.state);
+ if (message.stateTime != null && Object.hasOwnProperty.call(message, "stateTime"))
+ $root.google.protobuf.Timestamp.encode(message.stateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
+ if (message.computeEngineTargetDetails != null && Object.hasOwnProperty.call(message, "computeEngineTargetDetails"))
+ $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.encode(message.computeEngineTargetDetails, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CloneJob message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CloneJob.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICloneJob} message CloneJob message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloneJob.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CloneJob message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.CloneJob} CloneJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloneJob.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.vmmigration.v1.CloneJob();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 20: {
+ message.computeEngineTargetDetails = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 22: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.name = reader.string();
+ break;
+ }
+ case 12: {
+ message.state = reader.int32();
+ break;
+ }
+ case 14: {
+ message.stateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 17: {
+ message.error = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CloneJob message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.CloneJob} CloneJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloneJob.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CloneJob message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CloneJob.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.computeEngineTargetDetails != null && message.hasOwnProperty("computeEngineTargetDetails")) {
+ properties.targetVmDetails = 1;
+ {
+ var error = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.verify(message.computeEngineTargetDetails);
+ if (error)
+ return "computeEngineTargetDetails." + error;
+ }
+ }
+ 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.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.stateTime != null && message.hasOwnProperty("stateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.stateTime);
+ if (error)
+ return "stateTime." + error;
+ }
+ if (message.error != null && message.hasOwnProperty("error")) {
+ var error = $root.google.rpc.Status.verify(message.error);
+ if (error)
+ return "error." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CloneJob message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.CloneJob} CloneJob
+ */
+ CloneJob.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.CloneJob)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.CloneJob();
+ if (object.computeEngineTargetDetails != null) {
+ if (typeof object.computeEngineTargetDetails !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CloneJob.computeEngineTargetDetails: object expected");
+ message.computeEngineTargetDetails = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.fromObject(object.computeEngineTargetDetails);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CloneJob.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.vmmigration.v1.CloneJob.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "ACTIVE":
+ case 2:
+ message.state = 2;
+ break;
+ case "FAILED":
+ case 3:
+ message.state = 3;
+ break;
+ case "SUCCEEDED":
+ case 4:
+ message.state = 4;
+ break;
+ case "CANCELLED":
+ case 5:
+ message.state = 5;
+ break;
+ case "CANCELLING":
+ case 6:
+ message.state = 6;
+ break;
+ case "ADAPTING_OS":
+ case 7:
+ message.state = 7;
+ break;
+ }
+ if (object.stateTime != null) {
+ if (typeof object.stateTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CloneJob.stateTime: object expected");
+ message.stateTime = $root.google.protobuf.Timestamp.fromObject(object.stateTime);
+ }
+ if (object.error != null) {
+ if (typeof object.error !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CloneJob.error: object expected");
+ message.error = $root.google.rpc.Status.fromObject(object.error);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CloneJob message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.CloneJob} message CloneJob
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CloneJob.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.name = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateTime = null;
+ object.error = null;
+ object.endTime = null;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmmigration.v1.CloneJob.State[message.state] === undefined ? message.state : $root.google.cloud.vmmigration.v1.CloneJob.State[message.state] : message.state;
+ if (message.stateTime != null && message.hasOwnProperty("stateTime"))
+ object.stateTime = $root.google.protobuf.Timestamp.toObject(message.stateTime, options);
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = $root.google.rpc.Status.toObject(message.error, options);
+ if (message.computeEngineTargetDetails != null && message.hasOwnProperty("computeEngineTargetDetails")) {
+ object.computeEngineTargetDetails = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.toObject(message.computeEngineTargetDetails, options);
+ if (options.oneofs)
+ object.targetVmDetails = "computeEngineTargetDetails";
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this CloneJob to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CloneJob.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CloneJob
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.CloneJob
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CloneJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.CloneJob";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmmigration.v1.CloneJob.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} ACTIVE=2 ACTIVE value
+ * @property {number} FAILED=3 FAILED value
+ * @property {number} SUCCEEDED=4 SUCCEEDED value
+ * @property {number} CANCELLED=5 CANCELLED value
+ * @property {number} CANCELLING=6 CANCELLING value
+ * @property {number} ADAPTING_OS=7 ADAPTING_OS value
+ */
+ CloneJob.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "ACTIVE"] = 2;
+ values[valuesById[3] = "FAILED"] = 3;
+ values[valuesById[4] = "SUCCEEDED"] = 4;
+ values[valuesById[5] = "CANCELLED"] = 5;
+ values[valuesById[6] = "CANCELLING"] = 6;
+ values[valuesById[7] = "ADAPTING_OS"] = 7;
+ return values;
+ })();
+
+ return CloneJob;
+ })();
+
+ v1.CutoverJob = (function() {
+
+ /**
+ * Properties of a CutoverJob.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface ICutoverJob
+ * @property {google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null} [computeEngineTargetDetails] CutoverJob computeEngineTargetDetails
+ * @property {google.protobuf.ITimestamp|null} [createTime] CutoverJob createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] CutoverJob endTime
+ * @property {string|null} [name] CutoverJob name
+ * @property {google.cloud.vmmigration.v1.CutoverJob.State|null} [state] CutoverJob state
+ * @property {google.protobuf.ITimestamp|null} [stateTime] CutoverJob stateTime
+ * @property {number|null} [progressPercent] CutoverJob progressPercent
+ * @property {google.rpc.IStatus|null} [error] CutoverJob error
+ * @property {string|null} [stateMessage] CutoverJob stateMessage
+ */
+
+ /**
+ * Constructs a new CutoverJob.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a CutoverJob.
+ * @implements ICutoverJob
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.ICutoverJob=} [properties] Properties to set
+ */
+ function CutoverJob(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]];
+ }
+
+ /**
+ * CutoverJob computeEngineTargetDetails.
+ * @member {google.cloud.vmmigration.v1.IComputeEngineTargetDetails|null|undefined} computeEngineTargetDetails
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.computeEngineTargetDetails = null;
+
+ /**
+ * CutoverJob createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.createTime = null;
+
+ /**
+ * CutoverJob endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.endTime = null;
+
+ /**
+ * CutoverJob name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.name = "";
+
+ /**
+ * CutoverJob state.
+ * @member {google.cloud.vmmigration.v1.CutoverJob.State} state
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.state = 0;
+
+ /**
+ * CutoverJob stateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} stateTime
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.stateTime = null;
+
+ /**
+ * CutoverJob progressPercent.
+ * @member {number} progressPercent
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.progressPercent = 0;
+
+ /**
+ * CutoverJob error.
+ * @member {google.rpc.IStatus|null|undefined} error
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.error = null;
+
+ /**
+ * CutoverJob stateMessage.
+ * @member {string} stateMessage
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ CutoverJob.prototype.stateMessage = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * CutoverJob targetVmDetails.
+ * @member {"computeEngineTargetDetails"|undefined} targetVmDetails
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ */
+ Object.defineProperty(CutoverJob.prototype, "targetVmDetails", {
+ get: $util.oneOfGetter($oneOfFields = ["computeEngineTargetDetails"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new CutoverJob instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICutoverJob=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.CutoverJob} CutoverJob instance
+ */
+ CutoverJob.create = function create(properties) {
+ return new CutoverJob(properties);
+ };
+
+ /**
+ * Encodes the specified CutoverJob message. Does not implicitly {@link google.cloud.vmmigration.v1.CutoverJob.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICutoverJob} message CutoverJob message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CutoverJob.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.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.stateTime != null && Object.hasOwnProperty.call(message, "stateTime"))
+ $root.google.protobuf.Timestamp.encode(message.stateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.stateMessage != null && Object.hasOwnProperty.call(message, "stateMessage"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.stateMessage);
+ if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent"))
+ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.progressPercent);
+ if (message.computeEngineTargetDetails != null && Object.hasOwnProperty.call(message, "computeEngineTargetDetails"))
+ $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.encode(message.computeEngineTargetDetails, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CutoverJob message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CutoverJob.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICutoverJob} message CutoverJob message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CutoverJob.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CutoverJob message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.CutoverJob} CutoverJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CutoverJob.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.vmmigration.v1.CutoverJob();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 14: {
+ message.computeEngineTargetDetails = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.name = reader.string();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 6: {
+ message.stateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.progressPercent = reader.int32();
+ break;
+ }
+ case 9: {
+ message.error = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.stateMessage = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CutoverJob message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.CutoverJob} CutoverJob
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CutoverJob.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CutoverJob message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CutoverJob.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.computeEngineTargetDetails != null && message.hasOwnProperty("computeEngineTargetDetails")) {
+ properties.targetVmDetails = 1;
+ {
+ var error = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.verify(message.computeEngineTargetDetails);
+ if (error)
+ return "computeEngineTargetDetails." + error;
+ }
+ }
+ 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.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.stateTime != null && message.hasOwnProperty("stateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.stateTime);
+ if (error)
+ return "stateTime." + error;
+ }
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ if (!$util.isInteger(message.progressPercent))
+ return "progressPercent: integer expected";
+ if (message.error != null && message.hasOwnProperty("error")) {
+ var error = $root.google.rpc.Status.verify(message.error);
+ if (error)
+ return "error." + error;
+ }
+ if (message.stateMessage != null && message.hasOwnProperty("stateMessage"))
+ if (!$util.isString(message.stateMessage))
+ return "stateMessage: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CutoverJob message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.CutoverJob} CutoverJob
+ */
+ CutoverJob.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.CutoverJob)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.CutoverJob();
+ if (object.computeEngineTargetDetails != null) {
+ if (typeof object.computeEngineTargetDetails !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CutoverJob.computeEngineTargetDetails: object expected");
+ message.computeEngineTargetDetails = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.fromObject(object.computeEngineTargetDetails);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CutoverJob.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.vmmigration.v1.CutoverJob.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "FAILED":
+ case 2:
+ message.state = 2;
+ break;
+ case "SUCCEEDED":
+ case 3:
+ message.state = 3;
+ break;
+ case "CANCELLED":
+ case 4:
+ message.state = 4;
+ break;
+ case "CANCELLING":
+ case 5:
+ message.state = 5;
+ break;
+ case "ACTIVE":
+ case 6:
+ message.state = 6;
+ break;
+ case "ADAPTING_OS":
+ case 7:
+ message.state = 7;
+ break;
+ }
+ if (object.stateTime != null) {
+ if (typeof object.stateTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CutoverJob.stateTime: object expected");
+ message.stateTime = $root.google.protobuf.Timestamp.fromObject(object.stateTime);
+ }
+ if (object.progressPercent != null)
+ message.progressPercent = object.progressPercent | 0;
+ if (object.error != null) {
+ if (typeof object.error !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CutoverJob.error: object expected");
+ message.error = $root.google.rpc.Status.fromObject(object.error);
+ }
+ if (object.stateMessage != null)
+ message.stateMessage = String(object.stateMessage);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CutoverJob message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {google.cloud.vmmigration.v1.CutoverJob} message CutoverJob
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CutoverJob.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.name = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateTime = null;
+ object.error = null;
+ object.stateMessage = "";
+ object.progressPercent = 0;
+ object.endTime = null;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmmigration.v1.CutoverJob.State[message.state] === undefined ? message.state : $root.google.cloud.vmmigration.v1.CutoverJob.State[message.state] : message.state;
+ if (message.stateTime != null && message.hasOwnProperty("stateTime"))
+ object.stateTime = $root.google.protobuf.Timestamp.toObject(message.stateTime, options);
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = $root.google.rpc.Status.toObject(message.error, options);
+ if (message.stateMessage != null && message.hasOwnProperty("stateMessage"))
+ object.stateMessage = message.stateMessage;
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ object.progressPercent = message.progressPercent;
+ if (message.computeEngineTargetDetails != null && message.hasOwnProperty("computeEngineTargetDetails")) {
+ object.computeEngineTargetDetails = $root.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.toObject(message.computeEngineTargetDetails, options);
+ if (options.oneofs)
+ object.targetVmDetails = "computeEngineTargetDetails";
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this CutoverJob to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CutoverJob.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CutoverJob
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.CutoverJob
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CutoverJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.CutoverJob";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmmigration.v1.CutoverJob.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} FAILED=2 FAILED value
+ * @property {number} SUCCEEDED=3 SUCCEEDED value
+ * @property {number} CANCELLED=4 CANCELLED value
+ * @property {number} CANCELLING=5 CANCELLING value
+ * @property {number} ACTIVE=6 ACTIVE value
+ * @property {number} ADAPTING_OS=7 ADAPTING_OS value
+ */
+ CutoverJob.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "FAILED"] = 2;
+ values[valuesById[3] = "SUCCEEDED"] = 3;
+ values[valuesById[4] = "CANCELLED"] = 4;
+ values[valuesById[5] = "CANCELLING"] = 5;
+ values[valuesById[6] = "ACTIVE"] = 6;
+ values[valuesById[7] = "ADAPTING_OS"] = 7;
+ return values;
+ })();
+
+ return CutoverJob;
+ })();
+
+ v1.CreateCloneJobRequest = (function() {
+
+ /**
+ * Properties of a CreateCloneJobRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface ICreateCloneJobRequest
+ * @property {string|null} [parent] CreateCloneJobRequest parent
+ * @property {string|null} [cloneJobId] CreateCloneJobRequest cloneJobId
+ * @property {google.cloud.vmmigration.v1.ICloneJob|null} [cloneJob] CreateCloneJobRequest cloneJob
+ * @property {string|null} [requestId] CreateCloneJobRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateCloneJobRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a CreateCloneJobRequest.
+ * @implements ICreateCloneJobRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.ICreateCloneJobRequest=} [properties] Properties to set
+ */
+ function CreateCloneJobRequest(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]];
+ }
+
+ /**
+ * CreateCloneJobRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @instance
+ */
+ CreateCloneJobRequest.prototype.parent = "";
+
+ /**
+ * CreateCloneJobRequest cloneJobId.
+ * @member {string} cloneJobId
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @instance
+ */
+ CreateCloneJobRequest.prototype.cloneJobId = "";
+
+ /**
+ * CreateCloneJobRequest cloneJob.
+ * @member {google.cloud.vmmigration.v1.ICloneJob|null|undefined} cloneJob
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @instance
+ */
+ CreateCloneJobRequest.prototype.cloneJob = null;
+
+ /**
+ * CreateCloneJobRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @instance
+ */
+ CreateCloneJobRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateCloneJobRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICreateCloneJobRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.CreateCloneJobRequest} CreateCloneJobRequest instance
+ */
+ CreateCloneJobRequest.create = function create(properties) {
+ return new CreateCloneJobRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateCloneJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateCloneJobRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICreateCloneJobRequest} message CreateCloneJobRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateCloneJobRequest.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.cloneJobId != null && Object.hasOwnProperty.call(message, "cloneJobId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.cloneJobId);
+ if (message.cloneJob != null && Object.hasOwnProperty.call(message, "cloneJob"))
+ $root.google.cloud.vmmigration.v1.CloneJob.encode(message.cloneJob, 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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateCloneJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateCloneJobRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICreateCloneJobRequest} message CreateCloneJobRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateCloneJobRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateCloneJobRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.CreateCloneJobRequest} CreateCloneJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateCloneJobRequest.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.vmmigration.v1.CreateCloneJobRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.cloneJobId = reader.string();
+ break;
+ }
+ case 3: {
+ message.cloneJob = $root.google.cloud.vmmigration.v1.CloneJob.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateCloneJobRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.CreateCloneJobRequest} CreateCloneJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateCloneJobRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateCloneJobRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateCloneJobRequest.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.cloneJobId != null && message.hasOwnProperty("cloneJobId"))
+ if (!$util.isString(message.cloneJobId))
+ return "cloneJobId: string expected";
+ if (message.cloneJob != null && message.hasOwnProperty("cloneJob")) {
+ var error = $root.google.cloud.vmmigration.v1.CloneJob.verify(message.cloneJob);
+ if (error)
+ return "cloneJob." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateCloneJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.CreateCloneJobRequest} CreateCloneJobRequest
+ */
+ CreateCloneJobRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.CreateCloneJobRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.CreateCloneJobRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.cloneJobId != null)
+ message.cloneJobId = String(object.cloneJobId);
+ if (object.cloneJob != null) {
+ if (typeof object.cloneJob !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CreateCloneJobRequest.cloneJob: object expected");
+ message.cloneJob = $root.google.cloud.vmmigration.v1.CloneJob.fromObject(object.cloneJob);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateCloneJobRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.CreateCloneJobRequest} message CreateCloneJobRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateCloneJobRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.cloneJobId = "";
+ object.cloneJob = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.cloneJobId != null && message.hasOwnProperty("cloneJobId"))
+ object.cloneJobId = message.cloneJobId;
+ if (message.cloneJob != null && message.hasOwnProperty("cloneJob"))
+ object.cloneJob = $root.google.cloud.vmmigration.v1.CloneJob.toObject(message.cloneJob, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateCloneJobRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateCloneJobRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateCloneJobRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.CreateCloneJobRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateCloneJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.CreateCloneJobRequest";
+ };
+
+ return CreateCloneJobRequest;
+ })();
+
+ v1.CancelCloneJobRequest = (function() {
+
+ /**
+ * Properties of a CancelCloneJobRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface ICancelCloneJobRequest
+ * @property {string|null} [name] CancelCloneJobRequest name
+ */
+
+ /**
+ * Constructs a new CancelCloneJobRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a CancelCloneJobRequest.
+ * @implements ICancelCloneJobRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobRequest=} [properties] Properties to set
+ */
+ function CancelCloneJobRequest(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]];
+ }
+
+ /**
+ * CancelCloneJobRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @instance
+ */
+ CancelCloneJobRequest.prototype.name = "";
+
+ /**
+ * Creates a new CancelCloneJobRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobRequest} CancelCloneJobRequest instance
+ */
+ CancelCloneJobRequest.create = function create(properties) {
+ return new CancelCloneJobRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CancelCloneJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobRequest} message CancelCloneJobRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CancelCloneJobRequest.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 CancelCloneJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobRequest} message CancelCloneJobRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CancelCloneJobRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CancelCloneJobRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobRequest} CancelCloneJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CancelCloneJobRequest.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.vmmigration.v1.CancelCloneJobRequest();
+ 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 CancelCloneJobRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobRequest} CancelCloneJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CancelCloneJobRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CancelCloneJobRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CancelCloneJobRequest.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 CancelCloneJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobRequest} CancelCloneJobRequest
+ */
+ CancelCloneJobRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.CancelCloneJobRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.CancelCloneJobRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CancelCloneJobRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.CancelCloneJobRequest} message CancelCloneJobRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CancelCloneJobRequest.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 CancelCloneJobRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CancelCloneJobRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CancelCloneJobRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CancelCloneJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.CancelCloneJobRequest";
+ };
+
+ return CancelCloneJobRequest;
+ })();
+
+ v1.CancelCloneJobResponse = (function() {
+
+ /**
+ * Properties of a CancelCloneJobResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface ICancelCloneJobResponse
+ */
+
+ /**
+ * Constructs a new CancelCloneJobResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a CancelCloneJobResponse.
+ * @implements ICancelCloneJobResponse
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobResponse=} [properties] Properties to set
+ */
+ function CancelCloneJobResponse(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new CancelCloneJobResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobResponse} CancelCloneJobResponse instance
+ */
+ CancelCloneJobResponse.create = function create(properties) {
+ return new CancelCloneJobResponse(properties);
+ };
+
+ /**
+ * Encodes the specified CancelCloneJobResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobResponse} message CancelCloneJobResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CancelCloneJobResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CancelCloneJobResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CancelCloneJobResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICancelCloneJobResponse} message CancelCloneJobResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CancelCloneJobResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CancelCloneJobResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobResponse} CancelCloneJobResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CancelCloneJobResponse.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.vmmigration.v1.CancelCloneJobResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CancelCloneJobResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobResponse} CancelCloneJobResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CancelCloneJobResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CancelCloneJobResponse message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CancelCloneJobResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a CancelCloneJobResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.CancelCloneJobResponse} CancelCloneJobResponse
+ */
+ CancelCloneJobResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.CancelCloneJobResponse)
+ return object;
+ return new $root.google.cloud.vmmigration.v1.CancelCloneJobResponse();
+ };
+
+ /**
+ * Creates a plain object from a CancelCloneJobResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.CancelCloneJobResponse} message CancelCloneJobResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CancelCloneJobResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this CancelCloneJobResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CancelCloneJobResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CancelCloneJobResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.CancelCloneJobResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CancelCloneJobResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.CancelCloneJobResponse";
+ };
+
+ return CancelCloneJobResponse;
+ })();
+
+ v1.ListCloneJobsRequest = (function() {
+
+ /**
+ * Properties of a ListCloneJobsRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IListCloneJobsRequest
+ * @property {string|null} [parent] ListCloneJobsRequest parent
+ * @property {number|null} [pageSize] ListCloneJobsRequest pageSize
+ * @property {string|null} [pageToken] ListCloneJobsRequest pageToken
+ * @property {string|null} [filter] ListCloneJobsRequest filter
+ * @property {string|null} [orderBy] ListCloneJobsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListCloneJobsRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ListCloneJobsRequest.
+ * @implements IListCloneJobsRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsRequest=} [properties] Properties to set
+ */
+ function ListCloneJobsRequest(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]];
+ }
+
+ /**
+ * ListCloneJobsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @instance
+ */
+ ListCloneJobsRequest.prototype.parent = "";
+
+ /**
+ * ListCloneJobsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @instance
+ */
+ ListCloneJobsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListCloneJobsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @instance
+ */
+ ListCloneJobsRequest.prototype.pageToken = "";
+
+ /**
+ * ListCloneJobsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @instance
+ */
+ ListCloneJobsRequest.prototype.filter = "";
+
+ /**
+ * ListCloneJobsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @instance
+ */
+ ListCloneJobsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListCloneJobsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsRequest} ListCloneJobsRequest instance
+ */
+ ListCloneJobsRequest.create = function create(properties) {
+ return new ListCloneJobsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListCloneJobsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsRequest} message ListCloneJobsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCloneJobsRequest.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 ListCloneJobsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsRequest} message ListCloneJobsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCloneJobsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListCloneJobsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsRequest} ListCloneJobsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCloneJobsRequest.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.vmmigration.v1.ListCloneJobsRequest();
+ 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 ListCloneJobsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsRequest} ListCloneJobsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCloneJobsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListCloneJobsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListCloneJobsRequest.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 ListCloneJobsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsRequest} ListCloneJobsRequest
+ */
+ ListCloneJobsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ListCloneJobsRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ListCloneJobsRequest();
+ 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 ListCloneJobsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ListCloneJobsRequest} message ListCloneJobsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListCloneJobsRequest.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 ListCloneJobsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListCloneJobsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListCloneJobsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListCloneJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ListCloneJobsRequest";
+ };
+
+ return ListCloneJobsRequest;
+ })();
+
+ v1.ListCloneJobsResponse = (function() {
+
+ /**
+ * Properties of a ListCloneJobsResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IListCloneJobsResponse
+ * @property {Array.|null} [cloneJobs] ListCloneJobsResponse cloneJobs
+ * @property {string|null} [nextPageToken] ListCloneJobsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListCloneJobsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListCloneJobsResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ListCloneJobsResponse.
+ * @implements IListCloneJobsResponse
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsResponse=} [properties] Properties to set
+ */
+ function ListCloneJobsResponse(properties) {
+ this.cloneJobs = [];
+ 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]];
+ }
+
+ /**
+ * ListCloneJobsResponse cloneJobs.
+ * @member {Array.} cloneJobs
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @instance
+ */
+ ListCloneJobsResponse.prototype.cloneJobs = $util.emptyArray;
+
+ /**
+ * ListCloneJobsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @instance
+ */
+ ListCloneJobsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListCloneJobsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @instance
+ */
+ ListCloneJobsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListCloneJobsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsResponse} ListCloneJobsResponse instance
+ */
+ ListCloneJobsResponse.create = function create(properties) {
+ return new ListCloneJobsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListCloneJobsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsResponse} message ListCloneJobsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCloneJobsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cloneJobs != null && message.cloneJobs.length)
+ for (var i = 0; i < message.cloneJobs.length; ++i)
+ $root.google.cloud.vmmigration.v1.CloneJob.encode(message.cloneJobs[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 ListCloneJobsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListCloneJobsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListCloneJobsResponse} message ListCloneJobsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListCloneJobsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListCloneJobsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsResponse} ListCloneJobsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCloneJobsResponse.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.vmmigration.v1.ListCloneJobsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.cloneJobs && message.cloneJobs.length))
+ message.cloneJobs = [];
+ message.cloneJobs.push($root.google.cloud.vmmigration.v1.CloneJob.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 ListCloneJobsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsResponse} ListCloneJobsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListCloneJobsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListCloneJobsResponse message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListCloneJobsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.cloneJobs != null && message.hasOwnProperty("cloneJobs")) {
+ if (!Array.isArray(message.cloneJobs))
+ return "cloneJobs: array expected";
+ for (var i = 0; i < message.cloneJobs.length; ++i) {
+ var error = $root.google.cloud.vmmigration.v1.CloneJob.verify(message.cloneJobs[i]);
+ if (error)
+ return "cloneJobs." + 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 ListCloneJobsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ListCloneJobsResponse} ListCloneJobsResponse
+ */
+ ListCloneJobsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ListCloneJobsResponse)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ListCloneJobsResponse();
+ if (object.cloneJobs) {
+ if (!Array.isArray(object.cloneJobs))
+ throw TypeError(".google.cloud.vmmigration.v1.ListCloneJobsResponse.cloneJobs: array expected");
+ message.cloneJobs = [];
+ for (var i = 0; i < object.cloneJobs.length; ++i) {
+ if (typeof object.cloneJobs[i] !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.ListCloneJobsResponse.cloneJobs: object expected");
+ message.cloneJobs[i] = $root.google.cloud.vmmigration.v1.CloneJob.fromObject(object.cloneJobs[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.vmmigration.v1.ListCloneJobsResponse.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 ListCloneJobsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.ListCloneJobsResponse} message ListCloneJobsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListCloneJobsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.cloneJobs = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.cloneJobs && message.cloneJobs.length) {
+ object.cloneJobs = [];
+ for (var j = 0; j < message.cloneJobs.length; ++j)
+ object.cloneJobs[j] = $root.google.cloud.vmmigration.v1.CloneJob.toObject(message.cloneJobs[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 ListCloneJobsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListCloneJobsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListCloneJobsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ListCloneJobsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListCloneJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ListCloneJobsResponse";
+ };
+
+ return ListCloneJobsResponse;
+ })();
+
+ v1.GetCloneJobRequest = (function() {
+
+ /**
+ * Properties of a GetCloneJobRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IGetCloneJobRequest
+ * @property {string|null} [name] GetCloneJobRequest name
+ */
+
+ /**
+ * Constructs a new GetCloneJobRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a GetCloneJobRequest.
+ * @implements IGetCloneJobRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IGetCloneJobRequest=} [properties] Properties to set
+ */
+ function GetCloneJobRequest(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]];
+ }
+
+ /**
+ * GetCloneJobRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @instance
+ */
+ GetCloneJobRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetCloneJobRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetCloneJobRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.GetCloneJobRequest} GetCloneJobRequest instance
+ */
+ GetCloneJobRequest.create = function create(properties) {
+ return new GetCloneJobRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetCloneJobRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetCloneJobRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetCloneJobRequest} message GetCloneJobRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetCloneJobRequest.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 GetCloneJobRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetCloneJobRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetCloneJobRequest} message GetCloneJobRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetCloneJobRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetCloneJobRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.GetCloneJobRequest} GetCloneJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetCloneJobRequest.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.vmmigration.v1.GetCloneJobRequest();
+ 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 GetCloneJobRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.GetCloneJobRequest} GetCloneJobRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetCloneJobRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetCloneJobRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetCloneJobRequest.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 GetCloneJobRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.GetCloneJobRequest} GetCloneJobRequest
+ */
+ GetCloneJobRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.GetCloneJobRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.GetCloneJobRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetCloneJobRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.GetCloneJobRequest} message GetCloneJobRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetCloneJobRequest.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 GetCloneJobRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetCloneJobRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetCloneJobRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.GetCloneJobRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetCloneJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.GetCloneJobRequest";
+ };
+
+ return GetCloneJobRequest;
+ })();
+
+ v1.Source = (function() {
+
+ /**
+ * Properties of a Source.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface ISource
+ * @property {google.cloud.vmmigration.v1.IVmwareSourceDetails|null} [vmware] Source vmware
+ * @property {string|null} [name] Source name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Source createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Source updateTime
+ * @property {Object.|null} [labels] Source labels
+ * @property {string|null} [description] Source description
+ */
+
+ /**
+ * Constructs a new Source.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a Source.
+ * @implements ISource
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.ISource=} [properties] Properties to set
+ */
+ function Source(properties) {
+ this.labels = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Source vmware.
+ * @member {google.cloud.vmmigration.v1.IVmwareSourceDetails|null|undefined} vmware
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ */
+ Source.prototype.vmware = null;
+
+ /**
+ * Source name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ */
+ Source.prototype.name = "";
+
+ /**
+ * Source createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ */
+ Source.prototype.createTime = null;
+
+ /**
+ * Source updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ */
+ Source.prototype.updateTime = null;
+
+ /**
+ * Source labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ */
+ Source.prototype.labels = $util.emptyObject;
+
+ /**
+ * Source description.
+ * @member {string} description
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ */
+ Source.prototype.description = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Source sourceDetails.
+ * @member {"vmware"|undefined} sourceDetails
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ */
+ Object.defineProperty(Source.prototype, "sourceDetails", {
+ get: $util.oneOfGetter($oneOfFields = ["vmware"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {google.cloud.vmmigration.v1.ISource=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.Source} Source instance
+ */
+ Source.create = function create(properties) {
+ return new Source(properties);
+ };
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.vmmigration.v1.Source.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {google.cloud.vmmigration.v1.ISource} message Source message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Source.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.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
+ if (message.vmware != null && Object.hasOwnProperty.call(message, "vmware"))
+ $root.google.cloud.vmmigration.v1.VmwareSourceDetails.encode(message.vmware, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.Source.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {google.cloud.vmmigration.v1.ISource} message Source message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Source.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.Source} Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Source.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.vmmigration.v1.Source(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 10: {
+ message.vmware = $root.google.cloud.vmmigration.v1.VmwareSourceDetails.decode(reader, reader.uint32());
+ break;
+ }
+ 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: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 6: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.Source} Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Source.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Source message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Source.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.vmware != null && message.hasOwnProperty("vmware")) {
+ properties.sourceDetails = 1;
+ {
+ var error = $root.google.cloud.vmmigration.v1.VmwareSourceDetails.verify(message.vmware);
+ if (error)
+ return "vmware." + error;
+ }
+ }
+ 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.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.Source} Source
+ */
+ Source.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.Source)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.Source();
+ if (object.vmware != null) {
+ if (typeof object.vmware !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.Source.vmware: object expected");
+ message.vmware = $root.google.cloud.vmmigration.v1.VmwareSourceDetails.fromObject(object.vmware);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.Source.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.vmmigration.v1.Source.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.Source.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {google.cloud.vmmigration.v1.Source} message Source
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Source.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.description = "";
+ }
+ 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);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.vmware != null && message.hasOwnProperty("vmware")) {
+ object.vmware = $root.google.cloud.vmmigration.v1.VmwareSourceDetails.toObject(message.vmware, options);
+ if (options.oneofs)
+ object.sourceDetails = "vmware";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Source to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Source.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Source
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.Source
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Source.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.Source";
+ };
+
+ return Source;
+ })();
+
+ v1.VmwareSourceDetails = (function() {
+
+ /**
+ * Properties of a VmwareSourceDetails.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IVmwareSourceDetails
+ * @property {string|null} [username] VmwareSourceDetails username
+ * @property {string|null} [password] VmwareSourceDetails password
+ * @property {string|null} [vcenterIp] VmwareSourceDetails vcenterIp
+ * @property {string|null} [thumbprint] VmwareSourceDetails thumbprint
+ */
+
+ /**
+ * Constructs a new VmwareSourceDetails.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a VmwareSourceDetails.
+ * @implements IVmwareSourceDetails
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IVmwareSourceDetails=} [properties] Properties to set
+ */
+ function VmwareSourceDetails(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]];
+ }
+
+ /**
+ * VmwareSourceDetails username.
+ * @member {string} username
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @instance
+ */
+ VmwareSourceDetails.prototype.username = "";
+
+ /**
+ * VmwareSourceDetails password.
+ * @member {string} password
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @instance
+ */
+ VmwareSourceDetails.prototype.password = "";
+
+ /**
+ * VmwareSourceDetails vcenterIp.
+ * @member {string} vcenterIp
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @instance
+ */
+ VmwareSourceDetails.prototype.vcenterIp = "";
+
+ /**
+ * VmwareSourceDetails thumbprint.
+ * @member {string} thumbprint
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @instance
+ */
+ VmwareSourceDetails.prototype.thumbprint = "";
+
+ /**
+ * Creates a new VmwareSourceDetails instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareSourceDetails=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.VmwareSourceDetails} VmwareSourceDetails instance
+ */
+ VmwareSourceDetails.create = function create(properties) {
+ return new VmwareSourceDetails(properties);
+ };
+
+ /**
+ * Encodes the specified VmwareSourceDetails message. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareSourceDetails.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareSourceDetails} message VmwareSourceDetails message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmwareSourceDetails.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);
+ if (message.vcenterIp != null && Object.hasOwnProperty.call(message, "vcenterIp"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.vcenterIp);
+ if (message.thumbprint != null && Object.hasOwnProperty.call(message, "thumbprint"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.thumbprint);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VmwareSourceDetails message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareSourceDetails.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareSourceDetails} message VmwareSourceDetails message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmwareSourceDetails.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VmwareSourceDetails message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.VmwareSourceDetails} VmwareSourceDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmwareSourceDetails.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.vmmigration.v1.VmwareSourceDetails();
+ 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;
+ }
+ case 3: {
+ message.vcenterIp = reader.string();
+ break;
+ }
+ case 4: {
+ message.thumbprint = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VmwareSourceDetails message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.VmwareSourceDetails} VmwareSourceDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmwareSourceDetails.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VmwareSourceDetails message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VmwareSourceDetails.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";
+ if (message.vcenterIp != null && message.hasOwnProperty("vcenterIp"))
+ if (!$util.isString(message.vcenterIp))
+ return "vcenterIp: string expected";
+ if (message.thumbprint != null && message.hasOwnProperty("thumbprint"))
+ if (!$util.isString(message.thumbprint))
+ return "thumbprint: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a VmwareSourceDetails message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.VmwareSourceDetails} VmwareSourceDetails
+ */
+ VmwareSourceDetails.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.VmwareSourceDetails)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.VmwareSourceDetails();
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.password != null)
+ message.password = String(object.password);
+ if (object.vcenterIp != null)
+ message.vcenterIp = String(object.vcenterIp);
+ if (object.thumbprint != null)
+ message.thumbprint = String(object.thumbprint);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VmwareSourceDetails message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.VmwareSourceDetails} message VmwareSourceDetails
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VmwareSourceDetails.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.username = "";
+ object.password = "";
+ object.vcenterIp = "";
+ object.thumbprint = "";
+ }
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.password != null && message.hasOwnProperty("password"))
+ object.password = message.password;
+ if (message.vcenterIp != null && message.hasOwnProperty("vcenterIp"))
+ object.vcenterIp = message.vcenterIp;
+ if (message.thumbprint != null && message.hasOwnProperty("thumbprint"))
+ object.thumbprint = message.thumbprint;
+ return object;
+ };
+
+ /**
+ * Converts this VmwareSourceDetails to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VmwareSourceDetails.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VmwareSourceDetails
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.VmwareSourceDetails
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VmwareSourceDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.VmwareSourceDetails";
+ };
+
+ return VmwareSourceDetails;
+ })();
+
+ v1.DatacenterConnector = (function() {
+
+ /**
+ * Properties of a DatacenterConnector.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IDatacenterConnector
+ * @property {google.protobuf.ITimestamp|null} [createTime] DatacenterConnector createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] DatacenterConnector updateTime
+ * @property {string|null} [name] DatacenterConnector name
+ * @property {string|null} [registrationId] DatacenterConnector registrationId
+ * @property {string|null} [serviceAccount] DatacenterConnector serviceAccount
+ * @property {string|null} [version] DatacenterConnector version
+ * @property {string|null} [bucket] DatacenterConnector bucket
+ * @property {google.cloud.vmmigration.v1.DatacenterConnector.State|null} [state] DatacenterConnector state
+ * @property {google.protobuf.ITimestamp|null} [stateTime] DatacenterConnector stateTime
+ * @property {google.rpc.IStatus|null} [error] DatacenterConnector error
+ * @property {string|null} [applianceInfrastructureVersion] DatacenterConnector applianceInfrastructureVersion
+ * @property {string|null} [applianceSoftwareVersion] DatacenterConnector applianceSoftwareVersion
+ * @property {google.cloud.vmmigration.v1.IAvailableUpdates|null} [availableVersions] DatacenterConnector availableVersions
+ * @property {google.cloud.vmmigration.v1.IUpgradeStatus|null} [upgradeStatus] DatacenterConnector upgradeStatus
+ */
+
+ /**
+ * Constructs a new DatacenterConnector.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a DatacenterConnector.
+ * @implements IDatacenterConnector
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IDatacenterConnector=} [properties] Properties to set
+ */
+ function DatacenterConnector(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]];
+ }
+
+ /**
+ * DatacenterConnector createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.createTime = null;
+
+ /**
+ * DatacenterConnector updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.updateTime = null;
+
+ /**
+ * DatacenterConnector name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.name = "";
+
+ /**
+ * DatacenterConnector registrationId.
+ * @member {string} registrationId
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.registrationId = "";
+
+ /**
+ * DatacenterConnector serviceAccount.
+ * @member {string} serviceAccount
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.serviceAccount = "";
+
+ /**
+ * DatacenterConnector version.
+ * @member {string} version
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.version = "";
+
+ /**
+ * DatacenterConnector bucket.
+ * @member {string} bucket
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.bucket = "";
+
+ /**
+ * DatacenterConnector state.
+ * @member {google.cloud.vmmigration.v1.DatacenterConnector.State} state
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.state = 0;
+
+ /**
+ * DatacenterConnector stateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} stateTime
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.stateTime = null;
+
+ /**
+ * DatacenterConnector error.
+ * @member {google.rpc.IStatus|null|undefined} error
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.error = null;
+
+ /**
+ * DatacenterConnector applianceInfrastructureVersion.
+ * @member {string} applianceInfrastructureVersion
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.applianceInfrastructureVersion = "";
+
+ /**
+ * DatacenterConnector applianceSoftwareVersion.
+ * @member {string} applianceSoftwareVersion
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.applianceSoftwareVersion = "";
+
+ /**
+ * DatacenterConnector availableVersions.
+ * @member {google.cloud.vmmigration.v1.IAvailableUpdates|null|undefined} availableVersions
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.availableVersions = null;
+
+ /**
+ * DatacenterConnector upgradeStatus.
+ * @member {google.cloud.vmmigration.v1.IUpgradeStatus|null|undefined} upgradeStatus
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ */
+ DatacenterConnector.prototype.upgradeStatus = null;
+
+ /**
+ * Creates a new DatacenterConnector instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {google.cloud.vmmigration.v1.IDatacenterConnector=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.DatacenterConnector} DatacenterConnector instance
+ */
+ DatacenterConnector.create = function create(properties) {
+ return new DatacenterConnector(properties);
+ };
+
+ /**
+ * Encodes the specified DatacenterConnector message. Does not implicitly {@link google.cloud.vmmigration.v1.DatacenterConnector.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {google.cloud.vmmigration.v1.IDatacenterConnector} message DatacenterConnector message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatacenterConnector.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.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
+ if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceAccount);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.version);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state);
+ if (message.stateTime != null && Object.hasOwnProperty.call(message, "stateTime"))
+ $root.google.protobuf.Timestamp.encode(message.stateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.bucket);
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.registrationId != null && Object.hasOwnProperty.call(message, "registrationId"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.registrationId);
+ if (message.applianceInfrastructureVersion != null && Object.hasOwnProperty.call(message, "applianceInfrastructureVersion"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.applianceInfrastructureVersion);
+ if (message.applianceSoftwareVersion != null && Object.hasOwnProperty.call(message, "applianceSoftwareVersion"))
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.applianceSoftwareVersion);
+ if (message.availableVersions != null && Object.hasOwnProperty.call(message, "availableVersions"))
+ $root.google.cloud.vmmigration.v1.AvailableUpdates.encode(message.availableVersions, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.upgradeStatus != null && Object.hasOwnProperty.call(message, "upgradeStatus"))
+ $root.google.cloud.vmmigration.v1.UpgradeStatus.encode(message.upgradeStatus, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatacenterConnector message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DatacenterConnector.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {google.cloud.vmmigration.v1.IDatacenterConnector} message DatacenterConnector message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatacenterConnector.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatacenterConnector message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.DatacenterConnector} DatacenterConnector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatacenterConnector.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.vmmigration.v1.DatacenterConnector();
+ 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.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.name = reader.string();
+ break;
+ }
+ case 12: {
+ message.registrationId = reader.string();
+ break;
+ }
+ case 5: {
+ message.serviceAccount = reader.string();
+ break;
+ }
+ case 6: {
+ message.version = reader.string();
+ break;
+ }
+ case 10: {
+ message.bucket = reader.string();
+ break;
+ }
+ case 7: {
+ message.state = reader.int32();
+ break;
+ }
+ case 8: {
+ message.stateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.error = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.applianceInfrastructureVersion = reader.string();
+ break;
+ }
+ case 14: {
+ message.applianceSoftwareVersion = reader.string();
+ break;
+ }
+ case 15: {
+ message.availableVersions = $root.google.cloud.vmmigration.v1.AvailableUpdates.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.upgradeStatus = $root.google.cloud.vmmigration.v1.UpgradeStatus.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatacenterConnector message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.DatacenterConnector} DatacenterConnector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatacenterConnector.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatacenterConnector message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatacenterConnector.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.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.registrationId != null && message.hasOwnProperty("registrationId"))
+ if (!$util.isString(message.registrationId))
+ return "registrationId: string expected";
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ if (!$util.isString(message.serviceAccount))
+ return "serviceAccount: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.bucket != null && message.hasOwnProperty("bucket"))
+ if (!$util.isString(message.bucket))
+ return "bucket: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.stateTime != null && message.hasOwnProperty("stateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.stateTime);
+ if (error)
+ return "stateTime." + error;
+ }
+ if (message.error != null && message.hasOwnProperty("error")) {
+ var error = $root.google.rpc.Status.verify(message.error);
+ if (error)
+ return "error." + error;
+ }
+ if (message.applianceInfrastructureVersion != null && message.hasOwnProperty("applianceInfrastructureVersion"))
+ if (!$util.isString(message.applianceInfrastructureVersion))
+ return "applianceInfrastructureVersion: string expected";
+ if (message.applianceSoftwareVersion != null && message.hasOwnProperty("applianceSoftwareVersion"))
+ if (!$util.isString(message.applianceSoftwareVersion))
+ return "applianceSoftwareVersion: string expected";
+ if (message.availableVersions != null && message.hasOwnProperty("availableVersions")) {
+ var error = $root.google.cloud.vmmigration.v1.AvailableUpdates.verify(message.availableVersions);
+ if (error)
+ return "availableVersions." + error;
+ }
+ if (message.upgradeStatus != null && message.hasOwnProperty("upgradeStatus")) {
+ var error = $root.google.cloud.vmmigration.v1.UpgradeStatus.verify(message.upgradeStatus);
+ if (error)
+ return "upgradeStatus." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DatacenterConnector message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.DatacenterConnector} DatacenterConnector
+ */
+ DatacenterConnector.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.DatacenterConnector)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.DatacenterConnector();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.DatacenterConnector.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.vmmigration.v1.DatacenterConnector.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.registrationId != null)
+ message.registrationId = String(object.registrationId);
+ if (object.serviceAccount != null)
+ message.serviceAccount = String(object.serviceAccount);
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.bucket != null)
+ message.bucket = String(object.bucket);
+ 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 "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "OFFLINE":
+ case 2:
+ message.state = 2;
+ break;
+ case "FAILED":
+ case 3:
+ message.state = 3;
+ break;
+ case "ACTIVE":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ if (object.stateTime != null) {
+ if (typeof object.stateTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.DatacenterConnector.stateTime: object expected");
+ message.stateTime = $root.google.protobuf.Timestamp.fromObject(object.stateTime);
+ }
+ if (object.error != null) {
+ if (typeof object.error !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.DatacenterConnector.error: object expected");
+ message.error = $root.google.rpc.Status.fromObject(object.error);
+ }
+ if (object.applianceInfrastructureVersion != null)
+ message.applianceInfrastructureVersion = String(object.applianceInfrastructureVersion);
+ if (object.applianceSoftwareVersion != null)
+ message.applianceSoftwareVersion = String(object.applianceSoftwareVersion);
+ if (object.availableVersions != null) {
+ if (typeof object.availableVersions !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.DatacenterConnector.availableVersions: object expected");
+ message.availableVersions = $root.google.cloud.vmmigration.v1.AvailableUpdates.fromObject(object.availableVersions);
+ }
+ if (object.upgradeStatus != null) {
+ if (typeof object.upgradeStatus !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.DatacenterConnector.upgradeStatus: object expected");
+ message.upgradeStatus = $root.google.cloud.vmmigration.v1.UpgradeStatus.fromObject(object.upgradeStatus);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DatacenterConnector message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {google.cloud.vmmigration.v1.DatacenterConnector} message DatacenterConnector
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatacenterConnector.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.updateTime = null;
+ object.name = "";
+ object.serviceAccount = "";
+ object.version = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateTime = null;
+ object.bucket = "";
+ object.error = null;
+ object.registrationId = "";
+ object.applianceInfrastructureVersion = "";
+ object.applianceSoftwareVersion = "";
+ object.availableVersions = null;
+ object.upgradeStatus = null;
+ }
+ 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.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ object.serviceAccount = message.serviceAccount;
+ 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.vmmigration.v1.DatacenterConnector.State[message.state] === undefined ? message.state : $root.google.cloud.vmmigration.v1.DatacenterConnector.State[message.state] : message.state;
+ if (message.stateTime != null && message.hasOwnProperty("stateTime"))
+ object.stateTime = $root.google.protobuf.Timestamp.toObject(message.stateTime, options);
+ if (message.bucket != null && message.hasOwnProperty("bucket"))
+ object.bucket = message.bucket;
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = $root.google.rpc.Status.toObject(message.error, options);
+ if (message.registrationId != null && message.hasOwnProperty("registrationId"))
+ object.registrationId = message.registrationId;
+ if (message.applianceInfrastructureVersion != null && message.hasOwnProperty("applianceInfrastructureVersion"))
+ object.applianceInfrastructureVersion = message.applianceInfrastructureVersion;
+ if (message.applianceSoftwareVersion != null && message.hasOwnProperty("applianceSoftwareVersion"))
+ object.applianceSoftwareVersion = message.applianceSoftwareVersion;
+ if (message.availableVersions != null && message.hasOwnProperty("availableVersions"))
+ object.availableVersions = $root.google.cloud.vmmigration.v1.AvailableUpdates.toObject(message.availableVersions, options);
+ if (message.upgradeStatus != null && message.hasOwnProperty("upgradeStatus"))
+ object.upgradeStatus = $root.google.cloud.vmmigration.v1.UpgradeStatus.toObject(message.upgradeStatus, options);
+ return object;
+ };
+
+ /**
+ * Converts this DatacenterConnector to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatacenterConnector.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatacenterConnector
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.DatacenterConnector
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatacenterConnector.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.DatacenterConnector";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmmigration.v1.DatacenterConnector.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} OFFLINE=2 OFFLINE value
+ * @property {number} FAILED=3 FAILED value
+ * @property {number} ACTIVE=4 ACTIVE value
+ */
+ DatacenterConnector.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "OFFLINE"] = 2;
+ values[valuesById[3] = "FAILED"] = 3;
+ values[valuesById[4] = "ACTIVE"] = 4;
+ return values;
+ })();
+
+ return DatacenterConnector;
+ })();
+
+ v1.UpgradeStatus = (function() {
+
+ /**
+ * Properties of an UpgradeStatus.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IUpgradeStatus
+ * @property {string|null} [version] UpgradeStatus version
+ * @property {google.cloud.vmmigration.v1.UpgradeStatus.State|null} [state] UpgradeStatus state
+ * @property {google.rpc.IStatus|null} [error] UpgradeStatus error
+ * @property {google.protobuf.ITimestamp|null} [startTime] UpgradeStatus startTime
+ * @property {string|null} [previousVersion] UpgradeStatus previousVersion
+ */
+
+ /**
+ * Constructs a new UpgradeStatus.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents an UpgradeStatus.
+ * @implements IUpgradeStatus
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IUpgradeStatus=} [properties] Properties to set
+ */
+ function UpgradeStatus(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]];
+ }
+
+ /**
+ * UpgradeStatus version.
+ * @member {string} version
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @instance
+ */
+ UpgradeStatus.prototype.version = "";
+
+ /**
+ * UpgradeStatus state.
+ * @member {google.cloud.vmmigration.v1.UpgradeStatus.State} state
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @instance
+ */
+ UpgradeStatus.prototype.state = 0;
+
+ /**
+ * UpgradeStatus error.
+ * @member {google.rpc.IStatus|null|undefined} error
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @instance
+ */
+ UpgradeStatus.prototype.error = null;
+
+ /**
+ * UpgradeStatus startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @instance
+ */
+ UpgradeStatus.prototype.startTime = null;
+
+ /**
+ * UpgradeStatus previousVersion.
+ * @member {string} previousVersion
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @instance
+ */
+ UpgradeStatus.prototype.previousVersion = "";
+
+ /**
+ * Creates a new UpgradeStatus instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUpgradeStatus=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.UpgradeStatus} UpgradeStatus instance
+ */
+ UpgradeStatus.create = function create(properties) {
+ return new UpgradeStatus(properties);
+ };
+
+ /**
+ * Encodes the specified UpgradeStatus message. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeStatus.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUpgradeStatus} message UpgradeStatus message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpgradeStatus.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state);
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.previousVersion != null && Object.hasOwnProperty.call(message, "previousVersion"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.previousVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpgradeStatus message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpgradeStatus.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUpgradeStatus} message UpgradeStatus message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpgradeStatus.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpgradeStatus message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.UpgradeStatus} UpgradeStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpgradeStatus.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.vmmigration.v1.UpgradeStatus();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.state = reader.int32();
+ break;
+ }
+ case 3: {
+ message.error = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.previousVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpgradeStatus message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.UpgradeStatus} UpgradeStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpgradeStatus.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpgradeStatus message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpgradeStatus.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object 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:
+ case 3:
+ break;
+ }
+ if (message.error != null && message.hasOwnProperty("error")) {
+ var error = $root.google.rpc.Status.verify(message.error);
+ if (error)
+ return "error." + error;
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.previousVersion != null && message.hasOwnProperty("previousVersion"))
+ if (!$util.isString(message.previousVersion))
+ return "previousVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpgradeStatus message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.UpgradeStatus} UpgradeStatus
+ */
+ UpgradeStatus.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.UpgradeStatus)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.UpgradeStatus();
+ 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 "RUNNING":
+ case 1:
+ message.state = 1;
+ break;
+ case "FAILED":
+ case 2:
+ message.state = 2;
+ break;
+ case "SUCCEEDED":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ if (object.error != null) {
+ if (typeof object.error !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UpgradeStatus.error: object expected");
+ message.error = $root.google.rpc.Status.fromObject(object.error);
+ }
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UpgradeStatus.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.previousVersion != null)
+ message.previousVersion = String(object.previousVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpgradeStatus message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {google.cloud.vmmigration.v1.UpgradeStatus} message UpgradeStatus
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpgradeStatus.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.error = null;
+ object.startTime = null;
+ object.previousVersion = "";
+ }
+ 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.vmmigration.v1.UpgradeStatus.State[message.state] === undefined ? message.state : $root.google.cloud.vmmigration.v1.UpgradeStatus.State[message.state] : message.state;
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = $root.google.rpc.Status.toObject(message.error, options);
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.previousVersion != null && message.hasOwnProperty("previousVersion"))
+ object.previousVersion = message.previousVersion;
+ return object;
+ };
+
+ /**
+ * Converts this UpgradeStatus to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpgradeStatus.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpgradeStatus
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.UpgradeStatus
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpgradeStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.UpgradeStatus";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmmigration.v1.UpgradeStatus.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} RUNNING=1 RUNNING value
+ * @property {number} FAILED=2 FAILED value
+ * @property {number} SUCCEEDED=3 SUCCEEDED value
+ */
+ UpgradeStatus.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "RUNNING"] = 1;
+ values[valuesById[2] = "FAILED"] = 2;
+ values[valuesById[3] = "SUCCEEDED"] = 3;
+ return values;
+ })();
+
+ return UpgradeStatus;
+ })();
+
+ v1.AvailableUpdates = (function() {
+
+ /**
+ * Properties of an AvailableUpdates.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IAvailableUpdates
+ * @property {google.cloud.vmmigration.v1.IApplianceVersion|null} [newDeployableAppliance] AvailableUpdates newDeployableAppliance
+ * @property {google.cloud.vmmigration.v1.IApplianceVersion|null} [inPlaceUpdate] AvailableUpdates inPlaceUpdate
+ */
+
+ /**
+ * Constructs a new AvailableUpdates.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents an AvailableUpdates.
+ * @implements IAvailableUpdates
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IAvailableUpdates=} [properties] Properties to set
+ */
+ function AvailableUpdates(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]];
+ }
+
+ /**
+ * AvailableUpdates newDeployableAppliance.
+ * @member {google.cloud.vmmigration.v1.IApplianceVersion|null|undefined} newDeployableAppliance
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @instance
+ */
+ AvailableUpdates.prototype.newDeployableAppliance = null;
+
+ /**
+ * AvailableUpdates inPlaceUpdate.
+ * @member {google.cloud.vmmigration.v1.IApplianceVersion|null|undefined} inPlaceUpdate
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @instance
+ */
+ AvailableUpdates.prototype.inPlaceUpdate = null;
+
+ /**
+ * Creates a new AvailableUpdates instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {google.cloud.vmmigration.v1.IAvailableUpdates=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.AvailableUpdates} AvailableUpdates instance
+ */
+ AvailableUpdates.create = function create(properties) {
+ return new AvailableUpdates(properties);
+ };
+
+ /**
+ * Encodes the specified AvailableUpdates message. Does not implicitly {@link google.cloud.vmmigration.v1.AvailableUpdates.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {google.cloud.vmmigration.v1.IAvailableUpdates} message AvailableUpdates message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AvailableUpdates.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.newDeployableAppliance != null && Object.hasOwnProperty.call(message, "newDeployableAppliance"))
+ $root.google.cloud.vmmigration.v1.ApplianceVersion.encode(message.newDeployableAppliance, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.inPlaceUpdate != null && Object.hasOwnProperty.call(message, "inPlaceUpdate"))
+ $root.google.cloud.vmmigration.v1.ApplianceVersion.encode(message.inPlaceUpdate, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AvailableUpdates message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.AvailableUpdates.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {google.cloud.vmmigration.v1.IAvailableUpdates} message AvailableUpdates message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AvailableUpdates.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AvailableUpdates message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.AvailableUpdates} AvailableUpdates
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AvailableUpdates.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.vmmigration.v1.AvailableUpdates();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.newDeployableAppliance = $root.google.cloud.vmmigration.v1.ApplianceVersion.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.inPlaceUpdate = $root.google.cloud.vmmigration.v1.ApplianceVersion.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AvailableUpdates message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.AvailableUpdates} AvailableUpdates
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AvailableUpdates.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AvailableUpdates message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AvailableUpdates.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.newDeployableAppliance != null && message.hasOwnProperty("newDeployableAppliance")) {
+ var error = $root.google.cloud.vmmigration.v1.ApplianceVersion.verify(message.newDeployableAppliance);
+ if (error)
+ return "newDeployableAppliance." + error;
+ }
+ if (message.inPlaceUpdate != null && message.hasOwnProperty("inPlaceUpdate")) {
+ var error = $root.google.cloud.vmmigration.v1.ApplianceVersion.verify(message.inPlaceUpdate);
+ if (error)
+ return "inPlaceUpdate." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AvailableUpdates message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.AvailableUpdates} AvailableUpdates
+ */
+ AvailableUpdates.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.AvailableUpdates)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.AvailableUpdates();
+ if (object.newDeployableAppliance != null) {
+ if (typeof object.newDeployableAppliance !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.AvailableUpdates.newDeployableAppliance: object expected");
+ message.newDeployableAppliance = $root.google.cloud.vmmigration.v1.ApplianceVersion.fromObject(object.newDeployableAppliance);
+ }
+ if (object.inPlaceUpdate != null) {
+ if (typeof object.inPlaceUpdate !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.AvailableUpdates.inPlaceUpdate: object expected");
+ message.inPlaceUpdate = $root.google.cloud.vmmigration.v1.ApplianceVersion.fromObject(object.inPlaceUpdate);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AvailableUpdates message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {google.cloud.vmmigration.v1.AvailableUpdates} message AvailableUpdates
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AvailableUpdates.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.newDeployableAppliance = null;
+ object.inPlaceUpdate = null;
+ }
+ if (message.newDeployableAppliance != null && message.hasOwnProperty("newDeployableAppliance"))
+ object.newDeployableAppliance = $root.google.cloud.vmmigration.v1.ApplianceVersion.toObject(message.newDeployableAppliance, options);
+ if (message.inPlaceUpdate != null && message.hasOwnProperty("inPlaceUpdate"))
+ object.inPlaceUpdate = $root.google.cloud.vmmigration.v1.ApplianceVersion.toObject(message.inPlaceUpdate, options);
+ return object;
+ };
+
+ /**
+ * Converts this AvailableUpdates to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AvailableUpdates.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AvailableUpdates
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.AvailableUpdates
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AvailableUpdates.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.AvailableUpdates";
+ };
+
+ return AvailableUpdates;
+ })();
+
+ v1.ApplianceVersion = (function() {
+
+ /**
+ * Properties of an ApplianceVersion.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IApplianceVersion
+ * @property {string|null} [version] ApplianceVersion version
+ * @property {string|null} [uri] ApplianceVersion uri
+ * @property {boolean|null} [critical] ApplianceVersion critical
+ * @property {string|null} [releaseNotesUri] ApplianceVersion releaseNotesUri
+ */
+
+ /**
+ * Constructs a new ApplianceVersion.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents an ApplianceVersion.
+ * @implements IApplianceVersion
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IApplianceVersion=} [properties] Properties to set
+ */
+ function ApplianceVersion(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]];
+ }
+
+ /**
+ * ApplianceVersion version.
+ * @member {string} version
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @instance
+ */
+ ApplianceVersion.prototype.version = "";
+
+ /**
+ * ApplianceVersion uri.
+ * @member {string} uri
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @instance
+ */
+ ApplianceVersion.prototype.uri = "";
+
+ /**
+ * ApplianceVersion critical.
+ * @member {boolean} critical
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @instance
+ */
+ ApplianceVersion.prototype.critical = false;
+
+ /**
+ * ApplianceVersion releaseNotesUri.
+ * @member {string} releaseNotesUri
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @instance
+ */
+ ApplianceVersion.prototype.releaseNotesUri = "";
+
+ /**
+ * Creates a new ApplianceVersion instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {google.cloud.vmmigration.v1.IApplianceVersion=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ApplianceVersion} ApplianceVersion instance
+ */
+ ApplianceVersion.create = function create(properties) {
+ return new ApplianceVersion(properties);
+ };
+
+ /**
+ * Encodes the specified ApplianceVersion message. Does not implicitly {@link google.cloud.vmmigration.v1.ApplianceVersion.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {google.cloud.vmmigration.v1.IApplianceVersion} message ApplianceVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApplianceVersion.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri);
+ if (message.critical != null && Object.hasOwnProperty.call(message, "critical"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.critical);
+ if (message.releaseNotesUri != null && Object.hasOwnProperty.call(message, "releaseNotesUri"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.releaseNotesUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ApplianceVersion message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ApplianceVersion.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {google.cloud.vmmigration.v1.IApplianceVersion} message ApplianceVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApplianceVersion.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ApplianceVersion message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ApplianceVersion} ApplianceVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApplianceVersion.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.vmmigration.v1.ApplianceVersion();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.uri = reader.string();
+ break;
+ }
+ case 3: {
+ message.critical = reader.bool();
+ break;
+ }
+ case 4: {
+ message.releaseNotesUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ApplianceVersion message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ApplianceVersion} ApplianceVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApplianceVersion.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ApplianceVersion message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ApplianceVersion.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ if (!$util.isString(message.uri))
+ return "uri: string expected";
+ if (message.critical != null && message.hasOwnProperty("critical"))
+ if (typeof message.critical !== "boolean")
+ return "critical: boolean expected";
+ if (message.releaseNotesUri != null && message.hasOwnProperty("releaseNotesUri"))
+ if (!$util.isString(message.releaseNotesUri))
+ return "releaseNotesUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an ApplianceVersion message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ApplianceVersion} ApplianceVersion
+ */
+ ApplianceVersion.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ApplianceVersion)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ApplianceVersion();
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.uri != null)
+ message.uri = String(object.uri);
+ if (object.critical != null)
+ message.critical = Boolean(object.critical);
+ if (object.releaseNotesUri != null)
+ message.releaseNotesUri = String(object.releaseNotesUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ApplianceVersion message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {google.cloud.vmmigration.v1.ApplianceVersion} message ApplianceVersion
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ApplianceVersion.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.uri = "";
+ object.critical = false;
+ object.releaseNotesUri = "";
+ }
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ object.uri = message.uri;
+ if (message.critical != null && message.hasOwnProperty("critical"))
+ object.critical = message.critical;
+ if (message.releaseNotesUri != null && message.hasOwnProperty("releaseNotesUri"))
+ object.releaseNotesUri = message.releaseNotesUri;
+ return object;
+ };
+
+ /**
+ * Converts this ApplianceVersion to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ApplianceVersion.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ApplianceVersion
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ApplianceVersion
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ApplianceVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ApplianceVersion";
+ };
+
+ return ApplianceVersion;
+ })();
+
+ v1.ListSourcesRequest = (function() {
+
+ /**
+ * Properties of a ListSourcesRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IListSourcesRequest
+ * @property {string|null} [parent] ListSourcesRequest parent
+ * @property {number|null} [pageSize] ListSourcesRequest pageSize
+ * @property {string|null} [pageToken] ListSourcesRequest pageToken
+ * @property {string|null} [filter] ListSourcesRequest filter
+ * @property {string|null} [orderBy] ListSourcesRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListSourcesRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ListSourcesRequest.
+ * @implements IListSourcesRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IListSourcesRequest=} [properties] Properties to set
+ */
+ function ListSourcesRequest(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]];
+ }
+
+ /**
+ * ListSourcesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @instance
+ */
+ ListSourcesRequest.prototype.parent = "";
+
+ /**
+ * ListSourcesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @instance
+ */
+ ListSourcesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListSourcesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @instance
+ */
+ ListSourcesRequest.prototype.pageToken = "";
+
+ /**
+ * ListSourcesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @instance
+ */
+ ListSourcesRequest.prototype.filter = "";
+
+ /**
+ * ListSourcesRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @instance
+ */
+ ListSourcesRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListSourcesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListSourcesRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ListSourcesRequest} ListSourcesRequest instance
+ */
+ ListSourcesRequest.create = function create(properties) {
+ return new ListSourcesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListSourcesRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListSourcesRequest} message ListSourcesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSourcesRequest.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 ListSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListSourcesRequest} message ListSourcesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSourcesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ListSourcesRequest} ListSourcesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSourcesRequest.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.vmmigration.v1.ListSourcesRequest();
+ 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 ListSourcesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ListSourcesRequest} ListSourcesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSourcesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSourcesRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSourcesRequest.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 ListSourcesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ListSourcesRequest} ListSourcesRequest
+ */
+ ListSourcesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ListSourcesRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ListSourcesRequest();
+ 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 ListSourcesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ListSourcesRequest} message ListSourcesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSourcesRequest.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 ListSourcesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSourcesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSourcesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ListSourcesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ListSourcesRequest";
+ };
+
+ return ListSourcesRequest;
+ })();
+
+ v1.ListSourcesResponse = (function() {
+
+ /**
+ * Properties of a ListSourcesResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IListSourcesResponse
+ * @property {Array.|null} [sources] ListSourcesResponse sources
+ * @property {string|null} [nextPageToken] ListSourcesResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListSourcesResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListSourcesResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ListSourcesResponse.
+ * @implements IListSourcesResponse
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IListSourcesResponse=} [properties] Properties to set
+ */
+ function ListSourcesResponse(properties) {
+ this.sources = [];
+ 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]];
+ }
+
+ /**
+ * ListSourcesResponse sources.
+ * @member {Array.} sources
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @instance
+ */
+ ListSourcesResponse.prototype.sources = $util.emptyArray;
+
+ /**
+ * ListSourcesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @instance
+ */
+ ListSourcesResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListSourcesResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @instance
+ */
+ ListSourcesResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListSourcesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListSourcesResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ListSourcesResponse} ListSourcesResponse instance
+ */
+ ListSourcesResponse.create = function create(properties) {
+ return new ListSourcesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListSourcesResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListSourcesResponse} message ListSourcesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSourcesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.sources != null && message.sources.length)
+ for (var i = 0; i < message.sources.length; ++i)
+ $root.google.cloud.vmmigration.v1.Source.encode(message.sources[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 ListSourcesResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListSourcesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListSourcesResponse} message ListSourcesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListSourcesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListSourcesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ListSourcesResponse} ListSourcesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSourcesResponse.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.vmmigration.v1.ListSourcesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.sources && message.sources.length))
+ message.sources = [];
+ message.sources.push($root.google.cloud.vmmigration.v1.Source.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 ListSourcesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ListSourcesResponse} ListSourcesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListSourcesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListSourcesResponse message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListSourcesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.sources != null && message.hasOwnProperty("sources")) {
+ if (!Array.isArray(message.sources))
+ return "sources: array expected";
+ for (var i = 0; i < message.sources.length; ++i) {
+ var error = $root.google.cloud.vmmigration.v1.Source.verify(message.sources[i]);
+ if (error)
+ return "sources." + 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 ListSourcesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ListSourcesResponse} ListSourcesResponse
+ */
+ ListSourcesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ListSourcesResponse)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ListSourcesResponse();
+ if (object.sources) {
+ if (!Array.isArray(object.sources))
+ throw TypeError(".google.cloud.vmmigration.v1.ListSourcesResponse.sources: array expected");
+ message.sources = [];
+ for (var i = 0; i < object.sources.length; ++i) {
+ if (typeof object.sources[i] !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.ListSourcesResponse.sources: object expected");
+ message.sources[i] = $root.google.cloud.vmmigration.v1.Source.fromObject(object.sources[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.vmmigration.v1.ListSourcesResponse.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 ListSourcesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.ListSourcesResponse} message ListSourcesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListSourcesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.sources = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.sources && message.sources.length) {
+ object.sources = [];
+ for (var j = 0; j < message.sources.length; ++j)
+ object.sources[j] = $root.google.cloud.vmmigration.v1.Source.toObject(message.sources[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 ListSourcesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListSourcesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListSourcesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ListSourcesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListSourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ListSourcesResponse";
+ };
+
+ return ListSourcesResponse;
+ })();
+
+ v1.GetSourceRequest = (function() {
+
+ /**
+ * Properties of a GetSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IGetSourceRequest
+ * @property {string|null} [name] GetSourceRequest name
+ */
+
+ /**
+ * Constructs a new GetSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a GetSourceRequest.
+ * @implements IGetSourceRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IGetSourceRequest=} [properties] Properties to set
+ */
+ function GetSourceRequest(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]];
+ }
+
+ /**
+ * GetSourceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @instance
+ */
+ GetSourceRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetSourceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetSourceRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.GetSourceRequest} GetSourceRequest instance
+ */
+ GetSourceRequest.create = function create(properties) {
+ return new GetSourceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetSourceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetSourceRequest} message GetSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetSourceRequest.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 GetSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetSourceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetSourceRequest} message GetSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetSourceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetSourceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.GetSourceRequest} GetSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetSourceRequest.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.vmmigration.v1.GetSourceRequest();
+ 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 GetSourceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.GetSourceRequest} GetSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetSourceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetSourceRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetSourceRequest.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 GetSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.GetSourceRequest} GetSourceRequest
+ */
+ GetSourceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.GetSourceRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.GetSourceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetSourceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.GetSourceRequest} message GetSourceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetSourceRequest.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 GetSourceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetSourceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetSourceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.GetSourceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.GetSourceRequest";
+ };
+
+ return GetSourceRequest;
+ })();
+
+ v1.CreateSourceRequest = (function() {
+
+ /**
+ * Properties of a CreateSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface ICreateSourceRequest
+ * @property {string|null} [parent] CreateSourceRequest parent
+ * @property {string|null} [sourceId] CreateSourceRequest sourceId
+ * @property {google.cloud.vmmigration.v1.ISource|null} [source] CreateSourceRequest source
+ * @property {string|null} [requestId] CreateSourceRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a CreateSourceRequest.
+ * @implements ICreateSourceRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.ICreateSourceRequest=} [properties] Properties to set
+ */
+ function CreateSourceRequest(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]];
+ }
+
+ /**
+ * CreateSourceRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @instance
+ */
+ CreateSourceRequest.prototype.parent = "";
+
+ /**
+ * CreateSourceRequest sourceId.
+ * @member {string} sourceId
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @instance
+ */
+ CreateSourceRequest.prototype.sourceId = "";
+
+ /**
+ * CreateSourceRequest source.
+ * @member {google.cloud.vmmigration.v1.ISource|null|undefined} source
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @instance
+ */
+ CreateSourceRequest.prototype.source = null;
+
+ /**
+ * CreateSourceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @instance
+ */
+ CreateSourceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateSourceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICreateSourceRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.CreateSourceRequest} CreateSourceRequest instance
+ */
+ CreateSourceRequest.create = function create(properties) {
+ return new CreateSourceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.CreateSourceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICreateSourceRequest} message CreateSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateSourceRequest.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.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceId);
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.google.cloud.vmmigration.v1.Source.encode(message.source, 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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.CreateSourceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ICreateSourceRequest} message CreateSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateSourceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateSourceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.CreateSourceRequest} CreateSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateSourceRequest.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.vmmigration.v1.CreateSourceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.sourceId = reader.string();
+ break;
+ }
+ case 3: {
+ message.source = $root.google.cloud.vmmigration.v1.Source.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateSourceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.CreateSourceRequest} CreateSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateSourceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateSourceRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateSourceRequest.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.sourceId != null && message.hasOwnProperty("sourceId"))
+ if (!$util.isString(message.sourceId))
+ return "sourceId: string expected";
+ if (message.source != null && message.hasOwnProperty("source")) {
+ var error = $root.google.cloud.vmmigration.v1.Source.verify(message.source);
+ if (error)
+ return "source." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.CreateSourceRequest} CreateSourceRequest
+ */
+ CreateSourceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.CreateSourceRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.CreateSourceRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.sourceId != null)
+ message.sourceId = String(object.sourceId);
+ if (object.source != null) {
+ if (typeof object.source !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.CreateSourceRequest.source: object expected");
+ message.source = $root.google.cloud.vmmigration.v1.Source.fromObject(object.source);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateSourceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.CreateSourceRequest} message CreateSourceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateSourceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.sourceId = "";
+ object.source = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
+ object.sourceId = message.sourceId;
+ if (message.source != null && message.hasOwnProperty("source"))
+ object.source = $root.google.cloud.vmmigration.v1.Source.toObject(message.source, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateSourceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateSourceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateSourceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.CreateSourceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.CreateSourceRequest";
+ };
+
+ return CreateSourceRequest;
+ })();
+
+ v1.UpdateSourceRequest = (function() {
+
+ /**
+ * Properties of an UpdateSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IUpdateSourceRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSourceRequest updateMask
+ * @property {google.cloud.vmmigration.v1.ISource|null} [source] UpdateSourceRequest source
+ * @property {string|null} [requestId] UpdateSourceRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdateSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents an UpdateSourceRequest.
+ * @implements IUpdateSourceRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IUpdateSourceRequest=} [properties] Properties to set
+ */
+ function UpdateSourceRequest(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]];
+ }
+
+ /**
+ * UpdateSourceRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @instance
+ */
+ UpdateSourceRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateSourceRequest source.
+ * @member {google.cloud.vmmigration.v1.ISource|null|undefined} source
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @instance
+ */
+ UpdateSourceRequest.prototype.source = null;
+
+ /**
+ * UpdateSourceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @instance
+ */
+ UpdateSourceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdateSourceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUpdateSourceRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.UpdateSourceRequest} UpdateSourceRequest instance
+ */
+ UpdateSourceRequest.create = function create(properties) {
+ return new UpdateSourceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateSourceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUpdateSourceRequest} message UpdateSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateSourceRequest.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.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.google.cloud.vmmigration.v1.Source.encode(message.source, 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 UpdateSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UpdateSourceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUpdateSourceRequest} message UpdateSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateSourceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateSourceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.UpdateSourceRequest} UpdateSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateSourceRequest.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.vmmigration.v1.UpdateSourceRequest();
+ 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.source = $root.google.cloud.vmmigration.v1.Source.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateSourceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.UpdateSourceRequest} UpdateSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateSourceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateSourceRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateSourceRequest.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.source != null && message.hasOwnProperty("source")) {
+ var error = $root.google.cloud.vmmigration.v1.Source.verify(message.source);
+ if (error)
+ return "source." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.UpdateSourceRequest} UpdateSourceRequest
+ */
+ UpdateSourceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.UpdateSourceRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.UpdateSourceRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UpdateSourceRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.source != null) {
+ if (typeof object.source !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UpdateSourceRequest.source: object expected");
+ message.source = $root.google.cloud.vmmigration.v1.Source.fromObject(object.source);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateSourceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.UpdateSourceRequest} message UpdateSourceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateSourceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.source = null;
+ object.requestId = "";
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.source != null && message.hasOwnProperty("source"))
+ object.source = $root.google.cloud.vmmigration.v1.Source.toObject(message.source, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateSourceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateSourceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateSourceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.UpdateSourceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.UpdateSourceRequest";
+ };
+
+ return UpdateSourceRequest;
+ })();
+
+ v1.DeleteSourceRequest = (function() {
+
+ /**
+ * Properties of a DeleteSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IDeleteSourceRequest
+ * @property {string|null} [name] DeleteSourceRequest name
+ * @property {string|null} [requestId] DeleteSourceRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteSourceRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a DeleteSourceRequest.
+ * @implements IDeleteSourceRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IDeleteSourceRequest=} [properties] Properties to set
+ */
+ function DeleteSourceRequest(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]];
+ }
+
+ /**
+ * DeleteSourceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @instance
+ */
+ DeleteSourceRequest.prototype.name = "";
+
+ /**
+ * DeleteSourceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @instance
+ */
+ DeleteSourceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DeleteSourceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IDeleteSourceRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.DeleteSourceRequest} DeleteSourceRequest instance
+ */
+ DeleteSourceRequest.create = function create(properties) {
+ return new DeleteSourceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteSourceRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteSourceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IDeleteSourceRequest} message DeleteSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteSourceRequest.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 DeleteSourceRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.DeleteSourceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IDeleteSourceRequest} message DeleteSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteSourceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteSourceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.DeleteSourceRequest} DeleteSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteSourceRequest.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.vmmigration.v1.DeleteSourceRequest();
+ 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 DeleteSourceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.DeleteSourceRequest} DeleteSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteSourceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteSourceRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteSourceRequest.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 DeleteSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.DeleteSourceRequest} DeleteSourceRequest
+ */
+ DeleteSourceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.DeleteSourceRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.DeleteSourceRequest();
+ 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 DeleteSourceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.DeleteSourceRequest} message DeleteSourceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteSourceRequest.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 DeleteSourceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteSourceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteSourceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.DeleteSourceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.DeleteSourceRequest";
+ };
+
+ return DeleteSourceRequest;
+ })();
+
+ v1.FetchInventoryRequest = (function() {
+
+ /**
+ * Properties of a FetchInventoryRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IFetchInventoryRequest
+ * @property {string|null} [source] FetchInventoryRequest source
+ * @property {boolean|null} [forceRefresh] FetchInventoryRequest forceRefresh
+ */
+
+ /**
+ * Constructs a new FetchInventoryRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a FetchInventoryRequest.
+ * @implements IFetchInventoryRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryRequest=} [properties] Properties to set
+ */
+ function FetchInventoryRequest(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]];
+ }
+
+ /**
+ * FetchInventoryRequest source.
+ * @member {string} source
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @instance
+ */
+ FetchInventoryRequest.prototype.source = "";
+
+ /**
+ * FetchInventoryRequest forceRefresh.
+ * @member {boolean} forceRefresh
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @instance
+ */
+ FetchInventoryRequest.prototype.forceRefresh = false;
+
+ /**
+ * Creates a new FetchInventoryRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryRequest} FetchInventoryRequest instance
+ */
+ FetchInventoryRequest.create = function create(properties) {
+ return new FetchInventoryRequest(properties);
+ };
+
+ /**
+ * Encodes the specified FetchInventoryRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryRequest} message FetchInventoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchInventoryRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.source);
+ if (message.forceRefresh != null && Object.hasOwnProperty.call(message, "forceRefresh"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.forceRefresh);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchInventoryRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryRequest} message FetchInventoryRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchInventoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchInventoryRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryRequest} FetchInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchInventoryRequest.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.vmmigration.v1.FetchInventoryRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.source = reader.string();
+ break;
+ }
+ case 2: {
+ message.forceRefresh = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchInventoryRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryRequest} FetchInventoryRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchInventoryRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchInventoryRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchInventoryRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.source != null && message.hasOwnProperty("source"))
+ if (!$util.isString(message.source))
+ return "source: string expected";
+ if (message.forceRefresh != null && message.hasOwnProperty("forceRefresh"))
+ if (typeof message.forceRefresh !== "boolean")
+ return "forceRefresh: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchInventoryRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryRequest} FetchInventoryRequest
+ */
+ FetchInventoryRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.FetchInventoryRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.FetchInventoryRequest();
+ if (object.source != null)
+ message.source = String(object.source);
+ if (object.forceRefresh != null)
+ message.forceRefresh = Boolean(object.forceRefresh);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchInventoryRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.FetchInventoryRequest} message FetchInventoryRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchInventoryRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.source = "";
+ object.forceRefresh = false;
+ }
+ if (message.source != null && message.hasOwnProperty("source"))
+ object.source = message.source;
+ if (message.forceRefresh != null && message.hasOwnProperty("forceRefresh"))
+ object.forceRefresh = message.forceRefresh;
+ return object;
+ };
+
+ /**
+ * Converts this FetchInventoryRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchInventoryRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchInventoryRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchInventoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.FetchInventoryRequest";
+ };
+
+ return FetchInventoryRequest;
+ })();
+
+ v1.VmwareVmDetails = (function() {
+
+ /**
+ * Properties of a VmwareVmDetails.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IVmwareVmDetails
+ * @property {string|null} [vmId] VmwareVmDetails vmId
+ * @property {string|null} [datacenterId] VmwareVmDetails datacenterId
+ * @property {string|null} [datacenterDescription] VmwareVmDetails datacenterDescription
+ * @property {string|null} [uuid] VmwareVmDetails uuid
+ * @property {string|null} [displayName] VmwareVmDetails displayName
+ * @property {google.cloud.vmmigration.v1.VmwareVmDetails.PowerState|null} [powerState] VmwareVmDetails powerState
+ * @property {number|null} [cpuCount] VmwareVmDetails cpuCount
+ * @property {number|null} [memoryMb] VmwareVmDetails memoryMb
+ * @property {number|null} [diskCount] VmwareVmDetails diskCount
+ * @property {number|Long|null} [committedStorageMb] VmwareVmDetails committedStorageMb
+ * @property {string|null} [guestDescription] VmwareVmDetails guestDescription
+ * @property {google.cloud.vmmigration.v1.VmwareVmDetails.BootOption|null} [bootOption] VmwareVmDetails bootOption
+ */
+
+ /**
+ * Constructs a new VmwareVmDetails.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a VmwareVmDetails.
+ * @implements IVmwareVmDetails
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IVmwareVmDetails=} [properties] Properties to set
+ */
+ function VmwareVmDetails(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]];
+ }
+
+ /**
+ * VmwareVmDetails vmId.
+ * @member {string} vmId
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.vmId = "";
+
+ /**
+ * VmwareVmDetails datacenterId.
+ * @member {string} datacenterId
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.datacenterId = "";
+
+ /**
+ * VmwareVmDetails datacenterDescription.
+ * @member {string} datacenterDescription
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.datacenterDescription = "";
+
+ /**
+ * VmwareVmDetails uuid.
+ * @member {string} uuid
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.uuid = "";
+
+ /**
+ * VmwareVmDetails displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.displayName = "";
+
+ /**
+ * VmwareVmDetails powerState.
+ * @member {google.cloud.vmmigration.v1.VmwareVmDetails.PowerState} powerState
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.powerState = 0;
+
+ /**
+ * VmwareVmDetails cpuCount.
+ * @member {number} cpuCount
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.cpuCount = 0;
+
+ /**
+ * VmwareVmDetails memoryMb.
+ * @member {number} memoryMb
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.memoryMb = 0;
+
+ /**
+ * VmwareVmDetails diskCount.
+ * @member {number} diskCount
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.diskCount = 0;
+
+ /**
+ * VmwareVmDetails committedStorageMb.
+ * @member {number|Long} committedStorageMb
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.committedStorageMb = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * VmwareVmDetails guestDescription.
+ * @member {string} guestDescription
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.guestDescription = "";
+
+ /**
+ * VmwareVmDetails bootOption.
+ * @member {google.cloud.vmmigration.v1.VmwareVmDetails.BootOption} bootOption
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ */
+ VmwareVmDetails.prototype.bootOption = 0;
+
+ /**
+ * Creates a new VmwareVmDetails instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareVmDetails=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.VmwareVmDetails} VmwareVmDetails instance
+ */
+ VmwareVmDetails.create = function create(properties) {
+ return new VmwareVmDetails(properties);
+ };
+
+ /**
+ * Encodes the specified VmwareVmDetails message. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmDetails.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareVmDetails} message VmwareVmDetails message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmwareVmDetails.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.vmId != null && Object.hasOwnProperty.call(message, "vmId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.vmId);
+ if (message.datacenterId != null && Object.hasOwnProperty.call(message, "datacenterId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.datacenterId);
+ if (message.datacenterDescription != null && Object.hasOwnProperty.call(message, "datacenterDescription"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.datacenterDescription);
+ if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.uuid);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName);
+ if (message.powerState != null && Object.hasOwnProperty.call(message, "powerState"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.powerState);
+ if (message.cpuCount != null && Object.hasOwnProperty.call(message, "cpuCount"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.cpuCount);
+ if (message.memoryMb != null && Object.hasOwnProperty.call(message, "memoryMb"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.memoryMb);
+ if (message.diskCount != null && Object.hasOwnProperty.call(message, "diskCount"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.diskCount);
+ if (message.guestDescription != null && Object.hasOwnProperty.call(message, "guestDescription"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.guestDescription);
+ if (message.committedStorageMb != null && Object.hasOwnProperty.call(message, "committedStorageMb"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int64(message.committedStorageMb);
+ if (message.bootOption != null && Object.hasOwnProperty.call(message, "bootOption"))
+ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.bootOption);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VmwareVmDetails message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmDetails.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareVmDetails} message VmwareVmDetails message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmwareVmDetails.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VmwareVmDetails message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.VmwareVmDetails} VmwareVmDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmwareVmDetails.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.vmmigration.v1.VmwareVmDetails();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.vmId = reader.string();
+ break;
+ }
+ case 2: {
+ message.datacenterId = reader.string();
+ break;
+ }
+ case 3: {
+ message.datacenterDescription = reader.string();
+ break;
+ }
+ case 4: {
+ message.uuid = reader.string();
+ break;
+ }
+ case 5: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 6: {
+ message.powerState = reader.int32();
+ break;
+ }
+ case 7: {
+ message.cpuCount = reader.int32();
+ break;
+ }
+ case 8: {
+ message.memoryMb = reader.int32();
+ break;
+ }
+ case 9: {
+ message.diskCount = reader.int32();
+ break;
+ }
+ case 12: {
+ message.committedStorageMb = reader.int64();
+ break;
+ }
+ case 11: {
+ message.guestDescription = reader.string();
+ break;
+ }
+ case 13: {
+ message.bootOption = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VmwareVmDetails message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.VmwareVmDetails} VmwareVmDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmwareVmDetails.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VmwareVmDetails message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VmwareVmDetails.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.vmId != null && message.hasOwnProperty("vmId"))
+ if (!$util.isString(message.vmId))
+ return "vmId: string expected";
+ if (message.datacenterId != null && message.hasOwnProperty("datacenterId"))
+ if (!$util.isString(message.datacenterId))
+ return "datacenterId: string expected";
+ if (message.datacenterDescription != null && message.hasOwnProperty("datacenterDescription"))
+ if (!$util.isString(message.datacenterDescription))
+ return "datacenterDescription: string expected";
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
+ if (!$util.isString(message.uuid))
+ return "uuid: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.powerState != null && message.hasOwnProperty("powerState"))
+ switch (message.powerState) {
+ default:
+ return "powerState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.cpuCount != null && message.hasOwnProperty("cpuCount"))
+ if (!$util.isInteger(message.cpuCount))
+ return "cpuCount: integer expected";
+ if (message.memoryMb != null && message.hasOwnProperty("memoryMb"))
+ if (!$util.isInteger(message.memoryMb))
+ return "memoryMb: integer expected";
+ if (message.diskCount != null && message.hasOwnProperty("diskCount"))
+ if (!$util.isInteger(message.diskCount))
+ return "diskCount: integer expected";
+ if (message.committedStorageMb != null && message.hasOwnProperty("committedStorageMb"))
+ if (!$util.isInteger(message.committedStorageMb) && !(message.committedStorageMb && $util.isInteger(message.committedStorageMb.low) && $util.isInteger(message.committedStorageMb.high)))
+ return "committedStorageMb: integer|Long expected";
+ if (message.guestDescription != null && message.hasOwnProperty("guestDescription"))
+ if (!$util.isString(message.guestDescription))
+ return "guestDescription: string expected";
+ if (message.bootOption != null && message.hasOwnProperty("bootOption"))
+ switch (message.bootOption) {
+ default:
+ return "bootOption: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VmwareVmDetails message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.VmwareVmDetails} VmwareVmDetails
+ */
+ VmwareVmDetails.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.VmwareVmDetails)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.VmwareVmDetails();
+ if (object.vmId != null)
+ message.vmId = String(object.vmId);
+ if (object.datacenterId != null)
+ message.datacenterId = String(object.datacenterId);
+ if (object.datacenterDescription != null)
+ message.datacenterDescription = String(object.datacenterDescription);
+ if (object.uuid != null)
+ message.uuid = String(object.uuid);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ switch (object.powerState) {
+ default:
+ if (typeof object.powerState === "number") {
+ message.powerState = object.powerState;
+ break;
+ }
+ break;
+ case "POWER_STATE_UNSPECIFIED":
+ case 0:
+ message.powerState = 0;
+ break;
+ case "ON":
+ case 1:
+ message.powerState = 1;
+ break;
+ case "OFF":
+ case 2:
+ message.powerState = 2;
+ break;
+ case "SUSPENDED":
+ case 3:
+ message.powerState = 3;
+ break;
+ }
+ if (object.cpuCount != null)
+ message.cpuCount = object.cpuCount | 0;
+ if (object.memoryMb != null)
+ message.memoryMb = object.memoryMb | 0;
+ if (object.diskCount != null)
+ message.diskCount = object.diskCount | 0;
+ if (object.committedStorageMb != null)
+ if ($util.Long)
+ (message.committedStorageMb = $util.Long.fromValue(object.committedStorageMb)).unsigned = false;
+ else if (typeof object.committedStorageMb === "string")
+ message.committedStorageMb = parseInt(object.committedStorageMb, 10);
+ else if (typeof object.committedStorageMb === "number")
+ message.committedStorageMb = object.committedStorageMb;
+ else if (typeof object.committedStorageMb === "object")
+ message.committedStorageMb = new $util.LongBits(object.committedStorageMb.low >>> 0, object.committedStorageMb.high >>> 0).toNumber();
+ if (object.guestDescription != null)
+ message.guestDescription = String(object.guestDescription);
+ switch (object.bootOption) {
+ default:
+ if (typeof object.bootOption === "number") {
+ message.bootOption = object.bootOption;
+ break;
+ }
+ break;
+ case "BOOT_OPTION_UNSPECIFIED":
+ case 0:
+ message.bootOption = 0;
+ break;
+ case "EFI":
+ case 1:
+ message.bootOption = 1;
+ break;
+ case "BIOS":
+ case 2:
+ message.bootOption = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VmwareVmDetails message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.VmwareVmDetails} message VmwareVmDetails
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VmwareVmDetails.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.vmId = "";
+ object.datacenterId = "";
+ object.datacenterDescription = "";
+ object.uuid = "";
+ object.displayName = "";
+ object.powerState = options.enums === String ? "POWER_STATE_UNSPECIFIED" : 0;
+ object.cpuCount = 0;
+ object.memoryMb = 0;
+ object.diskCount = 0;
+ object.guestDescription = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.committedStorageMb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.committedStorageMb = options.longs === String ? "0" : 0;
+ object.bootOption = options.enums === String ? "BOOT_OPTION_UNSPECIFIED" : 0;
+ }
+ if (message.vmId != null && message.hasOwnProperty("vmId"))
+ object.vmId = message.vmId;
+ if (message.datacenterId != null && message.hasOwnProperty("datacenterId"))
+ object.datacenterId = message.datacenterId;
+ if (message.datacenterDescription != null && message.hasOwnProperty("datacenterDescription"))
+ object.datacenterDescription = message.datacenterDescription;
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
+ object.uuid = message.uuid;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.powerState != null && message.hasOwnProperty("powerState"))
+ object.powerState = options.enums === String ? $root.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState[message.powerState] === undefined ? message.powerState : $root.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState[message.powerState] : message.powerState;
+ if (message.cpuCount != null && message.hasOwnProperty("cpuCount"))
+ object.cpuCount = message.cpuCount;
+ if (message.memoryMb != null && message.hasOwnProperty("memoryMb"))
+ object.memoryMb = message.memoryMb;
+ if (message.diskCount != null && message.hasOwnProperty("diskCount"))
+ object.diskCount = message.diskCount;
+ if (message.guestDescription != null && message.hasOwnProperty("guestDescription"))
+ object.guestDescription = message.guestDescription;
+ if (message.committedStorageMb != null && message.hasOwnProperty("committedStorageMb"))
+ if (typeof message.committedStorageMb === "number")
+ object.committedStorageMb = options.longs === String ? String(message.committedStorageMb) : message.committedStorageMb;
+ else
+ object.committedStorageMb = options.longs === String ? $util.Long.prototype.toString.call(message.committedStorageMb) : options.longs === Number ? new $util.LongBits(message.committedStorageMb.low >>> 0, message.committedStorageMb.high >>> 0).toNumber() : message.committedStorageMb;
+ if (message.bootOption != null && message.hasOwnProperty("bootOption"))
+ object.bootOption = options.enums === String ? $root.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption[message.bootOption] === undefined ? message.bootOption : $root.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption[message.bootOption] : message.bootOption;
+ return object;
+ };
+
+ /**
+ * Converts this VmwareVmDetails to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VmwareVmDetails.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VmwareVmDetails
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.VmwareVmDetails
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VmwareVmDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.VmwareVmDetails";
+ };
+
+ /**
+ * PowerState enum.
+ * @name google.cloud.vmmigration.v1.VmwareVmDetails.PowerState
+ * @enum {number}
+ * @property {number} POWER_STATE_UNSPECIFIED=0 POWER_STATE_UNSPECIFIED value
+ * @property {number} ON=1 ON value
+ * @property {number} OFF=2 OFF value
+ * @property {number} SUSPENDED=3 SUSPENDED value
+ */
+ VmwareVmDetails.PowerState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "POWER_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ON"] = 1;
+ values[valuesById[2] = "OFF"] = 2;
+ values[valuesById[3] = "SUSPENDED"] = 3;
+ return values;
+ })();
+
+ /**
+ * BootOption enum.
+ * @name google.cloud.vmmigration.v1.VmwareVmDetails.BootOption
+ * @enum {number}
+ * @property {number} BOOT_OPTION_UNSPECIFIED=0 BOOT_OPTION_UNSPECIFIED value
+ * @property {number} EFI=1 EFI value
+ * @property {number} BIOS=2 BIOS value
+ */
+ VmwareVmDetails.BootOption = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "BOOT_OPTION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "EFI"] = 1;
+ values[valuesById[2] = "BIOS"] = 2;
+ return values;
+ })();
+
+ return VmwareVmDetails;
+ })();
+
+ v1.VmwareVmsDetails = (function() {
+
+ /**
+ * Properties of a VmwareVmsDetails.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IVmwareVmsDetails
+ * @property {Array.|null} [details] VmwareVmsDetails details
+ */
+
+ /**
+ * Constructs a new VmwareVmsDetails.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a VmwareVmsDetails.
+ * @implements IVmwareVmsDetails
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IVmwareVmsDetails=} [properties] Properties to set
+ */
+ function VmwareVmsDetails(properties) {
+ this.details = [];
+ 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]];
+ }
+
+ /**
+ * VmwareVmsDetails details.
+ * @member {Array.} details
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @instance
+ */
+ VmwareVmsDetails.prototype.details = $util.emptyArray;
+
+ /**
+ * Creates a new VmwareVmsDetails instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareVmsDetails=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.VmwareVmsDetails} VmwareVmsDetails instance
+ */
+ VmwareVmsDetails.create = function create(properties) {
+ return new VmwareVmsDetails(properties);
+ };
+
+ /**
+ * Encodes the specified VmwareVmsDetails message. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmsDetails.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareVmsDetails} message VmwareVmsDetails message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmwareVmsDetails.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.details != null && message.details.length)
+ for (var i = 0; i < message.details.length; ++i)
+ $root.google.cloud.vmmigration.v1.VmwareVmDetails.encode(message.details[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VmwareVmsDetails message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmwareVmsDetails.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmwareVmsDetails} message VmwareVmsDetails message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmwareVmsDetails.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VmwareVmsDetails message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.VmwareVmsDetails} VmwareVmsDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmwareVmsDetails.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.vmmigration.v1.VmwareVmsDetails();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.details && message.details.length))
+ message.details = [];
+ message.details.push($root.google.cloud.vmmigration.v1.VmwareVmDetails.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VmwareVmsDetails message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.VmwareVmsDetails} VmwareVmsDetails
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmwareVmsDetails.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VmwareVmsDetails message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VmwareVmsDetails.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.details != null && message.hasOwnProperty("details")) {
+ if (!Array.isArray(message.details))
+ return "details: array expected";
+ for (var i = 0; i < message.details.length; ++i) {
+ var error = $root.google.cloud.vmmigration.v1.VmwareVmDetails.verify(message.details[i]);
+ if (error)
+ return "details." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VmwareVmsDetails message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.VmwareVmsDetails} VmwareVmsDetails
+ */
+ VmwareVmsDetails.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.VmwareVmsDetails)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.VmwareVmsDetails();
+ if (object.details) {
+ if (!Array.isArray(object.details))
+ throw TypeError(".google.cloud.vmmigration.v1.VmwareVmsDetails.details: array expected");
+ message.details = [];
+ for (var i = 0; i < object.details.length; ++i) {
+ if (typeof object.details[i] !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.VmwareVmsDetails.details: object expected");
+ message.details[i] = $root.google.cloud.vmmigration.v1.VmwareVmDetails.fromObject(object.details[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VmwareVmsDetails message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {google.cloud.vmmigration.v1.VmwareVmsDetails} message VmwareVmsDetails
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VmwareVmsDetails.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.details = [];
+ if (message.details && message.details.length) {
+ object.details = [];
+ for (var j = 0; j < message.details.length; ++j)
+ object.details[j] = $root.google.cloud.vmmigration.v1.VmwareVmDetails.toObject(message.details[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this VmwareVmsDetails to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VmwareVmsDetails.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VmwareVmsDetails
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.VmwareVmsDetails
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VmwareVmsDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.VmwareVmsDetails";
+ };
+
+ return VmwareVmsDetails;
+ })();
+
+ v1.FetchInventoryResponse = (function() {
+
+ /**
+ * Properties of a FetchInventoryResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IFetchInventoryResponse
+ * @property {google.cloud.vmmigration.v1.IVmwareVmsDetails|null} [vmwareVms] FetchInventoryResponse vmwareVms
+ * @property {google.protobuf.ITimestamp|null} [updateTime] FetchInventoryResponse updateTime
+ */
+
+ /**
+ * Constructs a new FetchInventoryResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a FetchInventoryResponse.
+ * @implements IFetchInventoryResponse
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryResponse=} [properties] Properties to set
+ */
+ function FetchInventoryResponse(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]];
+ }
+
+ /**
+ * FetchInventoryResponse vmwareVms.
+ * @member {google.cloud.vmmigration.v1.IVmwareVmsDetails|null|undefined} vmwareVms
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @instance
+ */
+ FetchInventoryResponse.prototype.vmwareVms = null;
+
+ /**
+ * FetchInventoryResponse updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @instance
+ */
+ FetchInventoryResponse.prototype.updateTime = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * FetchInventoryResponse SourceVms.
+ * @member {"vmwareVms"|undefined} SourceVms
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @instance
+ */
+ Object.defineProperty(FetchInventoryResponse.prototype, "SourceVms", {
+ get: $util.oneOfGetter($oneOfFields = ["vmwareVms"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new FetchInventoryResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryResponse} FetchInventoryResponse instance
+ */
+ FetchInventoryResponse.create = function create(properties) {
+ return new FetchInventoryResponse(properties);
+ };
+
+ /**
+ * Encodes the specified FetchInventoryResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryResponse} message FetchInventoryResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchInventoryResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.vmwareVms != null && Object.hasOwnProperty.call(message, "vmwareVms"))
+ $root.google.cloud.vmmigration.v1.VmwareVmsDetails.encode(message.vmwareVms, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchInventoryResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.FetchInventoryResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IFetchInventoryResponse} message FetchInventoryResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchInventoryResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchInventoryResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryResponse} FetchInventoryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchInventoryResponse.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.vmmigration.v1.FetchInventoryResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.vmwareVms = $root.google.cloud.vmmigration.v1.VmwareVmsDetails.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchInventoryResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryResponse} FetchInventoryResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchInventoryResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchInventoryResponse message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchInventoryResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.vmwareVms != null && message.hasOwnProperty("vmwareVms")) {
+ properties.SourceVms = 1;
+ {
+ var error = $root.google.cloud.vmmigration.v1.VmwareVmsDetails.verify(message.vmwareVms);
+ if (error)
+ return "vmwareVms." + error;
+ }
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FetchInventoryResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.FetchInventoryResponse} FetchInventoryResponse
+ */
+ FetchInventoryResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.FetchInventoryResponse)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.FetchInventoryResponse();
+ if (object.vmwareVms != null) {
+ if (typeof object.vmwareVms !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.FetchInventoryResponse.vmwareVms: object expected");
+ message.vmwareVms = $root.google.cloud.vmmigration.v1.VmwareVmsDetails.fromObject(object.vmwareVms);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.FetchInventoryResponse.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchInventoryResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.FetchInventoryResponse} message FetchInventoryResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchInventoryResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.updateTime = null;
+ if (message.vmwareVms != null && message.hasOwnProperty("vmwareVms")) {
+ object.vmwareVms = $root.google.cloud.vmmigration.v1.VmwareVmsDetails.toObject(message.vmwareVms, options);
+ if (options.oneofs)
+ object.SourceVms = "vmwareVms";
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this FetchInventoryResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchInventoryResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchInventoryResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.FetchInventoryResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchInventoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.FetchInventoryResponse";
+ };
+
+ return FetchInventoryResponse;
+ })();
+
+ v1.UtilizationReport = (function() {
+
+ /**
+ * Properties of an UtilizationReport.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IUtilizationReport
+ * @property {string|null} [name] UtilizationReport name
+ * @property {string|null} [displayName] UtilizationReport displayName
+ * @property {google.cloud.vmmigration.v1.UtilizationReport.State|null} [state] UtilizationReport state
+ * @property {google.protobuf.ITimestamp|null} [stateTime] UtilizationReport stateTime
+ * @property {google.rpc.IStatus|null} [error] UtilizationReport error
+ * @property {google.protobuf.ITimestamp|null} [createTime] UtilizationReport createTime
+ * @property {google.cloud.vmmigration.v1.UtilizationReport.TimeFrame|null} [timeFrame] UtilizationReport timeFrame
+ * @property {google.protobuf.ITimestamp|null} [frameEndTime] UtilizationReport frameEndTime
+ * @property {number|null} [vmCount] UtilizationReport vmCount
+ * @property {Array.|null} [vms] UtilizationReport vms
+ */
+
+ /**
+ * Constructs a new UtilizationReport.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents an UtilizationReport.
+ * @implements IUtilizationReport
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IUtilizationReport=} [properties] Properties to set
+ */
+ function UtilizationReport(properties) {
+ this.vms = [];
+ 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]];
+ }
+
+ /**
+ * UtilizationReport name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.name = "";
+
+ /**
+ * UtilizationReport displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.displayName = "";
+
+ /**
+ * UtilizationReport state.
+ * @member {google.cloud.vmmigration.v1.UtilizationReport.State} state
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.state = 0;
+
+ /**
+ * UtilizationReport stateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} stateTime
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.stateTime = null;
+
+ /**
+ * UtilizationReport error.
+ * @member {google.rpc.IStatus|null|undefined} error
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.error = null;
+
+ /**
+ * UtilizationReport createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.createTime = null;
+
+ /**
+ * UtilizationReport timeFrame.
+ * @member {google.cloud.vmmigration.v1.UtilizationReport.TimeFrame} timeFrame
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.timeFrame = 0;
+
+ /**
+ * UtilizationReport frameEndTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} frameEndTime
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.frameEndTime = null;
+
+ /**
+ * UtilizationReport vmCount.
+ * @member {number} vmCount
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.vmCount = 0;
+
+ /**
+ * UtilizationReport vms.
+ * @member {Array.} vms
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ */
+ UtilizationReport.prototype.vms = $util.emptyArray;
+
+ /**
+ * Creates a new UtilizationReport instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUtilizationReport=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.UtilizationReport} UtilizationReport instance
+ */
+ UtilizationReport.create = function create(properties) {
+ return new UtilizationReport(properties);
+ };
+
+ /**
+ * Encodes the specified UtilizationReport message. Does not implicitly {@link google.cloud.vmmigration.v1.UtilizationReport.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUtilizationReport} message UtilizationReport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UtilizationReport.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.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
+ if (message.stateTime != null && Object.hasOwnProperty.call(message, "stateTime"))
+ $root.google.protobuf.Timestamp.encode(message.stateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.timeFrame != null && Object.hasOwnProperty.call(message, "timeFrame"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.timeFrame);
+ if (message.frameEndTime != null && Object.hasOwnProperty.call(message, "frameEndTime"))
+ $root.google.protobuf.Timestamp.encode(message.frameEndTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.vmCount != null && Object.hasOwnProperty.call(message, "vmCount"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.vmCount);
+ if (message.vms != null && message.vms.length)
+ for (var i = 0; i < message.vms.length; ++i)
+ $root.google.cloud.vmmigration.v1.VmUtilizationInfo.encode(message.vms[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UtilizationReport message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.UtilizationReport.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {google.cloud.vmmigration.v1.IUtilizationReport} message UtilizationReport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UtilizationReport.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UtilizationReport message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.UtilizationReport} UtilizationReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UtilizationReport.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.vmmigration.v1.UtilizationReport();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.state = reader.int32();
+ break;
+ }
+ case 4: {
+ message.stateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.error = $root.google.rpc.Status.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.timeFrame = reader.int32();
+ break;
+ }
+ case 8: {
+ message.frameEndTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.vmCount = reader.int32();
+ break;
+ }
+ case 10: {
+ if (!(message.vms && message.vms.length))
+ message.vms = [];
+ message.vms.push($root.google.cloud.vmmigration.v1.VmUtilizationInfo.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UtilizationReport message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.UtilizationReport} UtilizationReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UtilizationReport.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UtilizationReport message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UtilizationReport.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.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: 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:
+ break;
+ }
+ if (message.stateTime != null && message.hasOwnProperty("stateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.stateTime);
+ if (error)
+ return "stateTime." + error;
+ }
+ if (message.error != null && message.hasOwnProperty("error")) {
+ var error = $root.google.rpc.Status.verify(message.error);
+ if (error)
+ return "error." + error;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.timeFrame != null && message.hasOwnProperty("timeFrame"))
+ switch (message.timeFrame) {
+ default:
+ return "timeFrame: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.frameEndTime != null && message.hasOwnProperty("frameEndTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.frameEndTime);
+ if (error)
+ return "frameEndTime." + error;
+ }
+ if (message.vmCount != null && message.hasOwnProperty("vmCount"))
+ if (!$util.isInteger(message.vmCount))
+ return "vmCount: integer expected";
+ if (message.vms != null && message.hasOwnProperty("vms")) {
+ if (!Array.isArray(message.vms))
+ return "vms: array expected";
+ for (var i = 0; i < message.vms.length; ++i) {
+ var error = $root.google.cloud.vmmigration.v1.VmUtilizationInfo.verify(message.vms[i]);
+ if (error)
+ return "vms." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UtilizationReport message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.UtilizationReport} UtilizationReport
+ */
+ UtilizationReport.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.UtilizationReport)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.UtilizationReport();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "SUCCEEDED":
+ case 2:
+ message.state = 2;
+ break;
+ case "FAILED":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ if (object.stateTime != null) {
+ if (typeof object.stateTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UtilizationReport.stateTime: object expected");
+ message.stateTime = $root.google.protobuf.Timestamp.fromObject(object.stateTime);
+ }
+ if (object.error != null) {
+ if (typeof object.error !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UtilizationReport.error: object expected");
+ message.error = $root.google.rpc.Status.fromObject(object.error);
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UtilizationReport.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ switch (object.timeFrame) {
+ default:
+ if (typeof object.timeFrame === "number") {
+ message.timeFrame = object.timeFrame;
+ break;
+ }
+ break;
+ case "TIME_FRAME_UNSPECIFIED":
+ case 0:
+ message.timeFrame = 0;
+ break;
+ case "WEEK":
+ case 1:
+ message.timeFrame = 1;
+ break;
+ case "MONTH":
+ case 2:
+ message.timeFrame = 2;
+ break;
+ case "YEAR":
+ case 3:
+ message.timeFrame = 3;
+ break;
+ }
+ if (object.frameEndTime != null) {
+ if (typeof object.frameEndTime !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UtilizationReport.frameEndTime: object expected");
+ message.frameEndTime = $root.google.protobuf.Timestamp.fromObject(object.frameEndTime);
+ }
+ if (object.vmCount != null)
+ message.vmCount = object.vmCount | 0;
+ if (object.vms) {
+ if (!Array.isArray(object.vms))
+ throw TypeError(".google.cloud.vmmigration.v1.UtilizationReport.vms: array expected");
+ message.vms = [];
+ for (var i = 0; i < object.vms.length; ++i) {
+ if (typeof object.vms[i] !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.UtilizationReport.vms: object expected");
+ message.vms[i] = $root.google.cloud.vmmigration.v1.VmUtilizationInfo.fromObject(object.vms[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UtilizationReport message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {google.cloud.vmmigration.v1.UtilizationReport} message UtilizationReport
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UtilizationReport.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.vms = [];
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateTime = null;
+ object.error = null;
+ object.createTime = null;
+ object.timeFrame = options.enums === String ? "TIME_FRAME_UNSPECIFIED" : 0;
+ object.frameEndTime = null;
+ object.vmCount = 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.vmmigration.v1.UtilizationReport.State[message.state] === undefined ? message.state : $root.google.cloud.vmmigration.v1.UtilizationReport.State[message.state] : message.state;
+ if (message.stateTime != null && message.hasOwnProperty("stateTime"))
+ object.stateTime = $root.google.protobuf.Timestamp.toObject(message.stateTime, options);
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = $root.google.rpc.Status.toObject(message.error, options);
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.timeFrame != null && message.hasOwnProperty("timeFrame"))
+ object.timeFrame = options.enums === String ? $root.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame[message.timeFrame] === undefined ? message.timeFrame : $root.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame[message.timeFrame] : message.timeFrame;
+ if (message.frameEndTime != null && message.hasOwnProperty("frameEndTime"))
+ object.frameEndTime = $root.google.protobuf.Timestamp.toObject(message.frameEndTime, options);
+ if (message.vmCount != null && message.hasOwnProperty("vmCount"))
+ object.vmCount = message.vmCount;
+ if (message.vms && message.vms.length) {
+ object.vms = [];
+ for (var j = 0; j < message.vms.length; ++j)
+ object.vms[j] = $root.google.cloud.vmmigration.v1.VmUtilizationInfo.toObject(message.vms[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this UtilizationReport to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UtilizationReport.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UtilizationReport
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.UtilizationReport
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UtilizationReport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.UtilizationReport";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.vmmigration.v1.UtilizationReport.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} SUCCEEDED=2 SUCCEEDED value
+ * @property {number} FAILED=3 FAILED value
+ */
+ UtilizationReport.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "SUCCEEDED"] = 2;
+ values[valuesById[3] = "FAILED"] = 3;
+ return values;
+ })();
+
+ /**
+ * TimeFrame enum.
+ * @name google.cloud.vmmigration.v1.UtilizationReport.TimeFrame
+ * @enum {number}
+ * @property {number} TIME_FRAME_UNSPECIFIED=0 TIME_FRAME_UNSPECIFIED value
+ * @property {number} WEEK=1 WEEK value
+ * @property {number} MONTH=2 MONTH value
+ * @property {number} YEAR=3 YEAR value
+ */
+ UtilizationReport.TimeFrame = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TIME_FRAME_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "WEEK"] = 1;
+ values[valuesById[2] = "MONTH"] = 2;
+ values[valuesById[3] = "YEAR"] = 3;
+ return values;
+ })();
+
+ return UtilizationReport;
+ })();
+
+ v1.VmUtilizationInfo = (function() {
+
+ /**
+ * Properties of a VmUtilizationInfo.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IVmUtilizationInfo
+ * @property {google.cloud.vmmigration.v1.IVmwareVmDetails|null} [vmwareVmDetails] VmUtilizationInfo vmwareVmDetails
+ * @property {string|null} [vmId] VmUtilizationInfo vmId
+ * @property {google.cloud.vmmigration.v1.IVmUtilizationMetrics|null} [utilization] VmUtilizationInfo utilization
+ */
+
+ /**
+ * Constructs a new VmUtilizationInfo.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a VmUtilizationInfo.
+ * @implements IVmUtilizationInfo
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationInfo=} [properties] Properties to set
+ */
+ function VmUtilizationInfo(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]];
+ }
+
+ /**
+ * VmUtilizationInfo vmwareVmDetails.
+ * @member {google.cloud.vmmigration.v1.IVmwareVmDetails|null|undefined} vmwareVmDetails
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @instance
+ */
+ VmUtilizationInfo.prototype.vmwareVmDetails = null;
+
+ /**
+ * VmUtilizationInfo vmId.
+ * @member {string} vmId
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @instance
+ */
+ VmUtilizationInfo.prototype.vmId = "";
+
+ /**
+ * VmUtilizationInfo utilization.
+ * @member {google.cloud.vmmigration.v1.IVmUtilizationMetrics|null|undefined} utilization
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @instance
+ */
+ VmUtilizationInfo.prototype.utilization = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * VmUtilizationInfo VmDetails.
+ * @member {"vmwareVmDetails"|undefined} VmDetails
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @instance
+ */
+ Object.defineProperty(VmUtilizationInfo.prototype, "VmDetails", {
+ get: $util.oneOfGetter($oneOfFields = ["vmwareVmDetails"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new VmUtilizationInfo instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationInfo=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationInfo} VmUtilizationInfo instance
+ */
+ VmUtilizationInfo.create = function create(properties) {
+ return new VmUtilizationInfo(properties);
+ };
+
+ /**
+ * Encodes the specified VmUtilizationInfo message. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationInfo} message VmUtilizationInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmUtilizationInfo.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.vmwareVmDetails != null && Object.hasOwnProperty.call(message, "vmwareVmDetails"))
+ $root.google.cloud.vmmigration.v1.VmwareVmDetails.encode(message.vmwareVmDetails, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.utilization != null && Object.hasOwnProperty.call(message, "utilization"))
+ $root.google.cloud.vmmigration.v1.VmUtilizationMetrics.encode(message.utilization, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.vmId != null && Object.hasOwnProperty.call(message, "vmId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.vmId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VmUtilizationInfo message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationInfo} message VmUtilizationInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmUtilizationInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VmUtilizationInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationInfo} VmUtilizationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmUtilizationInfo.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.vmmigration.v1.VmUtilizationInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.vmwareVmDetails = $root.google.cloud.vmmigration.v1.VmwareVmDetails.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.vmId = reader.string();
+ break;
+ }
+ case 2: {
+ message.utilization = $root.google.cloud.vmmigration.v1.VmUtilizationMetrics.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VmUtilizationInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationInfo} VmUtilizationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmUtilizationInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VmUtilizationInfo message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VmUtilizationInfo.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.vmwareVmDetails != null && message.hasOwnProperty("vmwareVmDetails")) {
+ properties.VmDetails = 1;
+ {
+ var error = $root.google.cloud.vmmigration.v1.VmwareVmDetails.verify(message.vmwareVmDetails);
+ if (error)
+ return "vmwareVmDetails." + error;
+ }
+ }
+ if (message.vmId != null && message.hasOwnProperty("vmId"))
+ if (!$util.isString(message.vmId))
+ return "vmId: string expected";
+ if (message.utilization != null && message.hasOwnProperty("utilization")) {
+ var error = $root.google.cloud.vmmigration.v1.VmUtilizationMetrics.verify(message.utilization);
+ if (error)
+ return "utilization." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a VmUtilizationInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationInfo} VmUtilizationInfo
+ */
+ VmUtilizationInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.VmUtilizationInfo)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.VmUtilizationInfo();
+ if (object.vmwareVmDetails != null) {
+ if (typeof object.vmwareVmDetails !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.VmUtilizationInfo.vmwareVmDetails: object expected");
+ message.vmwareVmDetails = $root.google.cloud.vmmigration.v1.VmwareVmDetails.fromObject(object.vmwareVmDetails);
+ }
+ if (object.vmId != null)
+ message.vmId = String(object.vmId);
+ if (object.utilization != null) {
+ if (typeof object.utilization !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.VmUtilizationInfo.utilization: object expected");
+ message.utilization = $root.google.cloud.vmmigration.v1.VmUtilizationMetrics.fromObject(object.utilization);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VmUtilizationInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {google.cloud.vmmigration.v1.VmUtilizationInfo} message VmUtilizationInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VmUtilizationInfo.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.utilization = null;
+ object.vmId = "";
+ }
+ if (message.vmwareVmDetails != null && message.hasOwnProperty("vmwareVmDetails")) {
+ object.vmwareVmDetails = $root.google.cloud.vmmigration.v1.VmwareVmDetails.toObject(message.vmwareVmDetails, options);
+ if (options.oneofs)
+ object.VmDetails = "vmwareVmDetails";
+ }
+ if (message.utilization != null && message.hasOwnProperty("utilization"))
+ object.utilization = $root.google.cloud.vmmigration.v1.VmUtilizationMetrics.toObject(message.utilization, options);
+ if (message.vmId != null && message.hasOwnProperty("vmId"))
+ object.vmId = message.vmId;
+ return object;
+ };
+
+ /**
+ * Converts this VmUtilizationInfo to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VmUtilizationInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VmUtilizationInfo
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VmUtilizationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.VmUtilizationInfo";
+ };
+
+ return VmUtilizationInfo;
+ })();
+
+ v1.VmUtilizationMetrics = (function() {
+
+ /**
+ * Properties of a VmUtilizationMetrics.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IVmUtilizationMetrics
+ * @property {number|null} [cpuMaxPercent] VmUtilizationMetrics cpuMaxPercent
+ * @property {number|null} [cpuAveragePercent] VmUtilizationMetrics cpuAveragePercent
+ * @property {number|null} [memoryMaxPercent] VmUtilizationMetrics memoryMaxPercent
+ * @property {number|null} [memoryAveragePercent] VmUtilizationMetrics memoryAveragePercent
+ * @property {number|Long|null} [diskIoRateMaxKbps] VmUtilizationMetrics diskIoRateMaxKbps
+ * @property {number|Long|null} [diskIoRateAverageKbps] VmUtilizationMetrics diskIoRateAverageKbps
+ * @property {number|Long|null} [networkThroughputMaxKbps] VmUtilizationMetrics networkThroughputMaxKbps
+ * @property {number|Long|null} [networkThroughputAverageKbps] VmUtilizationMetrics networkThroughputAverageKbps
+ */
+
+ /**
+ * Constructs a new VmUtilizationMetrics.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a VmUtilizationMetrics.
+ * @implements IVmUtilizationMetrics
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationMetrics=} [properties] Properties to set
+ */
+ function VmUtilizationMetrics(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]];
+ }
+
+ /**
+ * VmUtilizationMetrics cpuMaxPercent.
+ * @member {number} cpuMaxPercent
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.cpuMaxPercent = 0;
+
+ /**
+ * VmUtilizationMetrics cpuAveragePercent.
+ * @member {number} cpuAveragePercent
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.cpuAveragePercent = 0;
+
+ /**
+ * VmUtilizationMetrics memoryMaxPercent.
+ * @member {number} memoryMaxPercent
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.memoryMaxPercent = 0;
+
+ /**
+ * VmUtilizationMetrics memoryAveragePercent.
+ * @member {number} memoryAveragePercent
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.memoryAveragePercent = 0;
+
+ /**
+ * VmUtilizationMetrics diskIoRateMaxKbps.
+ * @member {number|Long} diskIoRateMaxKbps
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.diskIoRateMaxKbps = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * VmUtilizationMetrics diskIoRateAverageKbps.
+ * @member {number|Long} diskIoRateAverageKbps
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.diskIoRateAverageKbps = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * VmUtilizationMetrics networkThroughputMaxKbps.
+ * @member {number|Long} networkThroughputMaxKbps
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.networkThroughputMaxKbps = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * VmUtilizationMetrics networkThroughputAverageKbps.
+ * @member {number|Long} networkThroughputAverageKbps
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ */
+ VmUtilizationMetrics.prototype.networkThroughputAverageKbps = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new VmUtilizationMetrics instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationMetrics=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationMetrics} VmUtilizationMetrics instance
+ */
+ VmUtilizationMetrics.create = function create(properties) {
+ return new VmUtilizationMetrics(properties);
+ };
+
+ /**
+ * Encodes the specified VmUtilizationMetrics message. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationMetrics.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationMetrics} message VmUtilizationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmUtilizationMetrics.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cpuMaxPercent != null && Object.hasOwnProperty.call(message, "cpuMaxPercent"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.cpuMaxPercent);
+ if (message.cpuAveragePercent != null && Object.hasOwnProperty.call(message, "cpuAveragePercent"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.cpuAveragePercent);
+ if (message.memoryMaxPercent != null && Object.hasOwnProperty.call(message, "memoryMaxPercent"))
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.memoryMaxPercent);
+ if (message.memoryAveragePercent != null && Object.hasOwnProperty.call(message, "memoryAveragePercent"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int32(message.memoryAveragePercent);
+ if (message.diskIoRateMaxKbps != null && Object.hasOwnProperty.call(message, "diskIoRateMaxKbps"))
+ writer.uint32(/* id 13, wireType 0 =*/104).int64(message.diskIoRateMaxKbps);
+ if (message.diskIoRateAverageKbps != null && Object.hasOwnProperty.call(message, "diskIoRateAverageKbps"))
+ writer.uint32(/* id 14, wireType 0 =*/112).int64(message.diskIoRateAverageKbps);
+ if (message.networkThroughputMaxKbps != null && Object.hasOwnProperty.call(message, "networkThroughputMaxKbps"))
+ writer.uint32(/* id 15, wireType 0 =*/120).int64(message.networkThroughputMaxKbps);
+ if (message.networkThroughputAverageKbps != null && Object.hasOwnProperty.call(message, "networkThroughputAverageKbps"))
+ writer.uint32(/* id 16, wireType 0 =*/128).int64(message.networkThroughputAverageKbps);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified VmUtilizationMetrics message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.VmUtilizationMetrics.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {google.cloud.vmmigration.v1.IVmUtilizationMetrics} message VmUtilizationMetrics message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ VmUtilizationMetrics.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a VmUtilizationMetrics message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationMetrics} VmUtilizationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmUtilizationMetrics.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.vmmigration.v1.VmUtilizationMetrics();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 9: {
+ message.cpuMaxPercent = reader.int32();
+ break;
+ }
+ case 10: {
+ message.cpuAveragePercent = reader.int32();
+ break;
+ }
+ case 11: {
+ message.memoryMaxPercent = reader.int32();
+ break;
+ }
+ case 12: {
+ message.memoryAveragePercent = reader.int32();
+ break;
+ }
+ case 13: {
+ message.diskIoRateMaxKbps = reader.int64();
+ break;
+ }
+ case 14: {
+ message.diskIoRateAverageKbps = reader.int64();
+ break;
+ }
+ case 15: {
+ message.networkThroughputMaxKbps = reader.int64();
+ break;
+ }
+ case 16: {
+ message.networkThroughputAverageKbps = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a VmUtilizationMetrics message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationMetrics} VmUtilizationMetrics
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ VmUtilizationMetrics.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a VmUtilizationMetrics message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ VmUtilizationMetrics.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.cpuMaxPercent != null && message.hasOwnProperty("cpuMaxPercent"))
+ if (!$util.isInteger(message.cpuMaxPercent))
+ return "cpuMaxPercent: integer expected";
+ if (message.cpuAveragePercent != null && message.hasOwnProperty("cpuAveragePercent"))
+ if (!$util.isInteger(message.cpuAveragePercent))
+ return "cpuAveragePercent: integer expected";
+ if (message.memoryMaxPercent != null && message.hasOwnProperty("memoryMaxPercent"))
+ if (!$util.isInteger(message.memoryMaxPercent))
+ return "memoryMaxPercent: integer expected";
+ if (message.memoryAveragePercent != null && message.hasOwnProperty("memoryAveragePercent"))
+ if (!$util.isInteger(message.memoryAveragePercent))
+ return "memoryAveragePercent: integer expected";
+ if (message.diskIoRateMaxKbps != null && message.hasOwnProperty("diskIoRateMaxKbps"))
+ if (!$util.isInteger(message.diskIoRateMaxKbps) && !(message.diskIoRateMaxKbps && $util.isInteger(message.diskIoRateMaxKbps.low) && $util.isInteger(message.diskIoRateMaxKbps.high)))
+ return "diskIoRateMaxKbps: integer|Long expected";
+ if (message.diskIoRateAverageKbps != null && message.hasOwnProperty("diskIoRateAverageKbps"))
+ if (!$util.isInteger(message.diskIoRateAverageKbps) && !(message.diskIoRateAverageKbps && $util.isInteger(message.diskIoRateAverageKbps.low) && $util.isInteger(message.diskIoRateAverageKbps.high)))
+ return "diskIoRateAverageKbps: integer|Long expected";
+ if (message.networkThroughputMaxKbps != null && message.hasOwnProperty("networkThroughputMaxKbps"))
+ if (!$util.isInteger(message.networkThroughputMaxKbps) && !(message.networkThroughputMaxKbps && $util.isInteger(message.networkThroughputMaxKbps.low) && $util.isInteger(message.networkThroughputMaxKbps.high)))
+ return "networkThroughputMaxKbps: integer|Long expected";
+ if (message.networkThroughputAverageKbps != null && message.hasOwnProperty("networkThroughputAverageKbps"))
+ if (!$util.isInteger(message.networkThroughputAverageKbps) && !(message.networkThroughputAverageKbps && $util.isInteger(message.networkThroughputAverageKbps.low) && $util.isInteger(message.networkThroughputAverageKbps.high)))
+ return "networkThroughputAverageKbps: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a VmUtilizationMetrics message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.VmUtilizationMetrics} VmUtilizationMetrics
+ */
+ VmUtilizationMetrics.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.VmUtilizationMetrics)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.VmUtilizationMetrics();
+ if (object.cpuMaxPercent != null)
+ message.cpuMaxPercent = object.cpuMaxPercent | 0;
+ if (object.cpuAveragePercent != null)
+ message.cpuAveragePercent = object.cpuAveragePercent | 0;
+ if (object.memoryMaxPercent != null)
+ message.memoryMaxPercent = object.memoryMaxPercent | 0;
+ if (object.memoryAveragePercent != null)
+ message.memoryAveragePercent = object.memoryAveragePercent | 0;
+ if (object.diskIoRateMaxKbps != null)
+ if ($util.Long)
+ (message.diskIoRateMaxKbps = $util.Long.fromValue(object.diskIoRateMaxKbps)).unsigned = false;
+ else if (typeof object.diskIoRateMaxKbps === "string")
+ message.diskIoRateMaxKbps = parseInt(object.diskIoRateMaxKbps, 10);
+ else if (typeof object.diskIoRateMaxKbps === "number")
+ message.diskIoRateMaxKbps = object.diskIoRateMaxKbps;
+ else if (typeof object.diskIoRateMaxKbps === "object")
+ message.diskIoRateMaxKbps = new $util.LongBits(object.diskIoRateMaxKbps.low >>> 0, object.diskIoRateMaxKbps.high >>> 0).toNumber();
+ if (object.diskIoRateAverageKbps != null)
+ if ($util.Long)
+ (message.diskIoRateAverageKbps = $util.Long.fromValue(object.diskIoRateAverageKbps)).unsigned = false;
+ else if (typeof object.diskIoRateAverageKbps === "string")
+ message.diskIoRateAverageKbps = parseInt(object.diskIoRateAverageKbps, 10);
+ else if (typeof object.diskIoRateAverageKbps === "number")
+ message.diskIoRateAverageKbps = object.diskIoRateAverageKbps;
+ else if (typeof object.diskIoRateAverageKbps === "object")
+ message.diskIoRateAverageKbps = new $util.LongBits(object.diskIoRateAverageKbps.low >>> 0, object.diskIoRateAverageKbps.high >>> 0).toNumber();
+ if (object.networkThroughputMaxKbps != null)
+ if ($util.Long)
+ (message.networkThroughputMaxKbps = $util.Long.fromValue(object.networkThroughputMaxKbps)).unsigned = false;
+ else if (typeof object.networkThroughputMaxKbps === "string")
+ message.networkThroughputMaxKbps = parseInt(object.networkThroughputMaxKbps, 10);
+ else if (typeof object.networkThroughputMaxKbps === "number")
+ message.networkThroughputMaxKbps = object.networkThroughputMaxKbps;
+ else if (typeof object.networkThroughputMaxKbps === "object")
+ message.networkThroughputMaxKbps = new $util.LongBits(object.networkThroughputMaxKbps.low >>> 0, object.networkThroughputMaxKbps.high >>> 0).toNumber();
+ if (object.networkThroughputAverageKbps != null)
+ if ($util.Long)
+ (message.networkThroughputAverageKbps = $util.Long.fromValue(object.networkThroughputAverageKbps)).unsigned = false;
+ else if (typeof object.networkThroughputAverageKbps === "string")
+ message.networkThroughputAverageKbps = parseInt(object.networkThroughputAverageKbps, 10);
+ else if (typeof object.networkThroughputAverageKbps === "number")
+ message.networkThroughputAverageKbps = object.networkThroughputAverageKbps;
+ else if (typeof object.networkThroughputAverageKbps === "object")
+ message.networkThroughputAverageKbps = new $util.LongBits(object.networkThroughputAverageKbps.low >>> 0, object.networkThroughputAverageKbps.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a VmUtilizationMetrics message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {google.cloud.vmmigration.v1.VmUtilizationMetrics} message VmUtilizationMetrics
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ VmUtilizationMetrics.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.cpuMaxPercent = 0;
+ object.cpuAveragePercent = 0;
+ object.memoryMaxPercent = 0;
+ object.memoryAveragePercent = 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.diskIoRateMaxKbps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.diskIoRateMaxKbps = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.diskIoRateAverageKbps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.diskIoRateAverageKbps = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.networkThroughputMaxKbps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.networkThroughputMaxKbps = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.networkThroughputAverageKbps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.networkThroughputAverageKbps = options.longs === String ? "0" : 0;
+ }
+ if (message.cpuMaxPercent != null && message.hasOwnProperty("cpuMaxPercent"))
+ object.cpuMaxPercent = message.cpuMaxPercent;
+ if (message.cpuAveragePercent != null && message.hasOwnProperty("cpuAveragePercent"))
+ object.cpuAveragePercent = message.cpuAveragePercent;
+ if (message.memoryMaxPercent != null && message.hasOwnProperty("memoryMaxPercent"))
+ object.memoryMaxPercent = message.memoryMaxPercent;
+ if (message.memoryAveragePercent != null && message.hasOwnProperty("memoryAveragePercent"))
+ object.memoryAveragePercent = message.memoryAveragePercent;
+ if (message.diskIoRateMaxKbps != null && message.hasOwnProperty("diskIoRateMaxKbps"))
+ if (typeof message.diskIoRateMaxKbps === "number")
+ object.diskIoRateMaxKbps = options.longs === String ? String(message.diskIoRateMaxKbps) : message.diskIoRateMaxKbps;
+ else
+ object.diskIoRateMaxKbps = options.longs === String ? $util.Long.prototype.toString.call(message.diskIoRateMaxKbps) : options.longs === Number ? new $util.LongBits(message.diskIoRateMaxKbps.low >>> 0, message.diskIoRateMaxKbps.high >>> 0).toNumber() : message.diskIoRateMaxKbps;
+ if (message.diskIoRateAverageKbps != null && message.hasOwnProperty("diskIoRateAverageKbps"))
+ if (typeof message.diskIoRateAverageKbps === "number")
+ object.diskIoRateAverageKbps = options.longs === String ? String(message.diskIoRateAverageKbps) : message.diskIoRateAverageKbps;
+ else
+ object.diskIoRateAverageKbps = options.longs === String ? $util.Long.prototype.toString.call(message.diskIoRateAverageKbps) : options.longs === Number ? new $util.LongBits(message.diskIoRateAverageKbps.low >>> 0, message.diskIoRateAverageKbps.high >>> 0).toNumber() : message.diskIoRateAverageKbps;
+ if (message.networkThroughputMaxKbps != null && message.hasOwnProperty("networkThroughputMaxKbps"))
+ if (typeof message.networkThroughputMaxKbps === "number")
+ object.networkThroughputMaxKbps = options.longs === String ? String(message.networkThroughputMaxKbps) : message.networkThroughputMaxKbps;
+ else
+ object.networkThroughputMaxKbps = options.longs === String ? $util.Long.prototype.toString.call(message.networkThroughputMaxKbps) : options.longs === Number ? new $util.LongBits(message.networkThroughputMaxKbps.low >>> 0, message.networkThroughputMaxKbps.high >>> 0).toNumber() : message.networkThroughputMaxKbps;
+ if (message.networkThroughputAverageKbps != null && message.hasOwnProperty("networkThroughputAverageKbps"))
+ if (typeof message.networkThroughputAverageKbps === "number")
+ object.networkThroughputAverageKbps = options.longs === String ? String(message.networkThroughputAverageKbps) : message.networkThroughputAverageKbps;
+ else
+ object.networkThroughputAverageKbps = options.longs === String ? $util.Long.prototype.toString.call(message.networkThroughputAverageKbps) : options.longs === Number ? new $util.LongBits(message.networkThroughputAverageKbps.low >>> 0, message.networkThroughputAverageKbps.high >>> 0).toNumber() : message.networkThroughputAverageKbps;
+ return object;
+ };
+
+ /**
+ * Converts this VmUtilizationMetrics to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ VmUtilizationMetrics.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for VmUtilizationMetrics
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.VmUtilizationMetrics
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ VmUtilizationMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.VmUtilizationMetrics";
+ };
+
+ return VmUtilizationMetrics;
+ })();
+
+ v1.ListUtilizationReportsRequest = (function() {
+
+ /**
+ * Properties of a ListUtilizationReportsRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IListUtilizationReportsRequest
+ * @property {string|null} [parent] ListUtilizationReportsRequest parent
+ * @property {google.cloud.vmmigration.v1.UtilizationReportView|null} [view] ListUtilizationReportsRequest view
+ * @property {number|null} [pageSize] ListUtilizationReportsRequest pageSize
+ * @property {string|null} [pageToken] ListUtilizationReportsRequest pageToken
+ * @property {string|null} [filter] ListUtilizationReportsRequest filter
+ * @property {string|null} [orderBy] ListUtilizationReportsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListUtilizationReportsRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ListUtilizationReportsRequest.
+ * @implements IListUtilizationReportsRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsRequest=} [properties] Properties to set
+ */
+ function ListUtilizationReportsRequest(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]];
+ }
+
+ /**
+ * ListUtilizationReportsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @instance
+ */
+ ListUtilizationReportsRequest.prototype.parent = "";
+
+ /**
+ * ListUtilizationReportsRequest view.
+ * @member {google.cloud.vmmigration.v1.UtilizationReportView} view
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @instance
+ */
+ ListUtilizationReportsRequest.prototype.view = 0;
+
+ /**
+ * ListUtilizationReportsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @instance
+ */
+ ListUtilizationReportsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListUtilizationReportsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @instance
+ */
+ ListUtilizationReportsRequest.prototype.pageToken = "";
+
+ /**
+ * ListUtilizationReportsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @instance
+ */
+ ListUtilizationReportsRequest.prototype.filter = "";
+
+ /**
+ * ListUtilizationReportsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @instance
+ */
+ ListUtilizationReportsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListUtilizationReportsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsRequest} ListUtilizationReportsRequest instance
+ */
+ ListUtilizationReportsRequest.create = function create(properties) {
+ return new ListUtilizationReportsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListUtilizationReportsRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsRequest} message ListUtilizationReportsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUtilizationReportsRequest.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.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.view);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListUtilizationReportsRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsRequest} message ListUtilizationReportsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUtilizationReportsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListUtilizationReportsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsRequest} ListUtilizationReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUtilizationReportsRequest.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.vmmigration.v1.ListUtilizationReportsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.view = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ case 6: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListUtilizationReportsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsRequest} ListUtilizationReportsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUtilizationReportsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListUtilizationReportsRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListUtilizationReportsRequest.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.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ 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 ListUtilizationReportsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsRequest} ListUtilizationReportsRequest
+ */
+ ListUtilizationReportsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ListUtilizationReportsRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ListUtilizationReportsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "UTILIZATION_REPORT_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ 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 ListUtilizationReportsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.ListUtilizationReportsRequest} message ListUtilizationReportsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListUtilizationReportsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.view = options.enums === String ? "UTILIZATION_REPORT_VIEW_UNSPECIFIED" : 0;
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.cloud.vmmigration.v1.UtilizationReportView[message.view] === undefined ? message.view : $root.google.cloud.vmmigration.v1.UtilizationReportView[message.view] : message.view;
+ 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 ListUtilizationReportsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListUtilizationReportsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListUtilizationReportsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListUtilizationReportsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ListUtilizationReportsRequest";
+ };
+
+ return ListUtilizationReportsRequest;
+ })();
+
+ v1.ListUtilizationReportsResponse = (function() {
+
+ /**
+ * Properties of a ListUtilizationReportsResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IListUtilizationReportsResponse
+ * @property {Array.|null} [utilizationReports] ListUtilizationReportsResponse utilizationReports
+ * @property {string|null} [nextPageToken] ListUtilizationReportsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListUtilizationReportsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListUtilizationReportsResponse.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a ListUtilizationReportsResponse.
+ * @implements IListUtilizationReportsResponse
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsResponse=} [properties] Properties to set
+ */
+ function ListUtilizationReportsResponse(properties) {
+ this.utilizationReports = [];
+ 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]];
+ }
+
+ /**
+ * ListUtilizationReportsResponse utilizationReports.
+ * @member {Array.} utilizationReports
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @instance
+ */
+ ListUtilizationReportsResponse.prototype.utilizationReports = $util.emptyArray;
+
+ /**
+ * ListUtilizationReportsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @instance
+ */
+ ListUtilizationReportsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListUtilizationReportsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @instance
+ */
+ ListUtilizationReportsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListUtilizationReportsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsResponse=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsResponse} ListUtilizationReportsResponse instance
+ */
+ ListUtilizationReportsResponse.create = function create(properties) {
+ return new ListUtilizationReportsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListUtilizationReportsResponse message. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsResponse} message ListUtilizationReportsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUtilizationReportsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.utilizationReports != null && message.utilizationReports.length)
+ for (var i = 0; i < message.utilizationReports.length; ++i)
+ $root.google.cloud.vmmigration.v1.UtilizationReport.encode(message.utilizationReports[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 ListUtilizationReportsResponse message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.ListUtilizationReportsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.IListUtilizationReportsResponse} message ListUtilizationReportsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListUtilizationReportsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListUtilizationReportsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsResponse} ListUtilizationReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUtilizationReportsResponse.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.vmmigration.v1.ListUtilizationReportsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.utilizationReports && message.utilizationReports.length))
+ message.utilizationReports = [];
+ message.utilizationReports.push($root.google.cloud.vmmigration.v1.UtilizationReport.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 ListUtilizationReportsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsResponse} ListUtilizationReportsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListUtilizationReportsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListUtilizationReportsResponse message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListUtilizationReportsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.utilizationReports != null && message.hasOwnProperty("utilizationReports")) {
+ if (!Array.isArray(message.utilizationReports))
+ return "utilizationReports: array expected";
+ for (var i = 0; i < message.utilizationReports.length; ++i) {
+ var error = $root.google.cloud.vmmigration.v1.UtilizationReport.verify(message.utilizationReports[i]);
+ if (error)
+ return "utilizationReports." + 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 ListUtilizationReportsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.ListUtilizationReportsResponse} ListUtilizationReportsResponse
+ */
+ ListUtilizationReportsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.ListUtilizationReportsResponse)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.ListUtilizationReportsResponse();
+ if (object.utilizationReports) {
+ if (!Array.isArray(object.utilizationReports))
+ throw TypeError(".google.cloud.vmmigration.v1.ListUtilizationReportsResponse.utilizationReports: array expected");
+ message.utilizationReports = [];
+ for (var i = 0; i < object.utilizationReports.length; ++i) {
+ if (typeof object.utilizationReports[i] !== "object")
+ throw TypeError(".google.cloud.vmmigration.v1.ListUtilizationReportsResponse.utilizationReports: object expected");
+ message.utilizationReports[i] = $root.google.cloud.vmmigration.v1.UtilizationReport.fromObject(object.utilizationReports[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.vmmigration.v1.ListUtilizationReportsResponse.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 ListUtilizationReportsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {google.cloud.vmmigration.v1.ListUtilizationReportsResponse} message ListUtilizationReportsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListUtilizationReportsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.utilizationReports = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.utilizationReports && message.utilizationReports.length) {
+ object.utilizationReports = [];
+ for (var j = 0; j < message.utilizationReports.length; ++j)
+ object.utilizationReports[j] = $root.google.cloud.vmmigration.v1.UtilizationReport.toObject(message.utilizationReports[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 ListUtilizationReportsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListUtilizationReportsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListUtilizationReportsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.vmmigration.v1.ListUtilizationReportsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListUtilizationReportsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.vmmigration.v1.ListUtilizationReportsResponse";
+ };
+
+ return ListUtilizationReportsResponse;
+ })();
+
+ v1.GetUtilizationReportRequest = (function() {
+
+ /**
+ * Properties of a GetUtilizationReportRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @interface IGetUtilizationReportRequest
+ * @property {string|null} [name] GetUtilizationReportRequest name
+ * @property {google.cloud.vmmigration.v1.UtilizationReportView|null} [view] GetUtilizationReportRequest view
+ */
+
+ /**
+ * Constructs a new GetUtilizationReportRequest.
+ * @memberof google.cloud.vmmigration.v1
+ * @classdesc Represents a GetUtilizationReportRequest.
+ * @implements IGetUtilizationReportRequest
+ * @constructor
+ * @param {google.cloud.vmmigration.v1.IGetUtilizationReportRequest=} [properties] Properties to set
+ */
+ function GetUtilizationReportRequest(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]];
+ }
+
+ /**
+ * GetUtilizationReportRequest name.
+ * @member {string} name
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @instance
+ */
+ GetUtilizationReportRequest.prototype.name = "";
+
+ /**
+ * GetUtilizationReportRequest view.
+ * @member {google.cloud.vmmigration.v1.UtilizationReportView} view
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @instance
+ */
+ GetUtilizationReportRequest.prototype.view = 0;
+
+ /**
+ * Creates a new GetUtilizationReportRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetUtilizationReportRequest=} [properties] Properties to set
+ * @returns {google.cloud.vmmigration.v1.GetUtilizationReportRequest} GetUtilizationReportRequest instance
+ */
+ GetUtilizationReportRequest.create = function create(properties) {
+ return new GetUtilizationReportRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetUtilizationReportRequest message. Does not implicitly {@link google.cloud.vmmigration.v1.GetUtilizationReportRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetUtilizationReportRequest} message GetUtilizationReportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetUtilizationReportRequest.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.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.view);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetUtilizationReportRequest message, length delimited. Does not implicitly {@link google.cloud.vmmigration.v1.GetUtilizationReportRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.IGetUtilizationReportRequest} message GetUtilizationReportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetUtilizationReportRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetUtilizationReportRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.vmmigration.v1.GetUtilizationReportRequest} GetUtilizationReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetUtilizationReportRequest.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.vmmigration.v1.GetUtilizationReportRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.view = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetUtilizationReportRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.vmmigration.v1.GetUtilizationReportRequest} GetUtilizationReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetUtilizationReportRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetUtilizationReportRequest message.
+ * @function verify
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetUtilizationReportRequest.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.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GetUtilizationReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.vmmigration.v1.GetUtilizationReportRequest} GetUtilizationReportRequest
+ */
+ GetUtilizationReportRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.vmmigration.v1.GetUtilizationReportRequest)
+ return object;
+ var message = new $root.google.cloud.vmmigration.v1.GetUtilizationReportRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "UTILIZATION_REPORT_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetUtilizationReportRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.vmmigration.v1.GetUtilizationReportRequest
+ * @static
+ * @param {google.cloud.vmmigration.v1.GetUtilizationReportRequest} message GetUtilizationReportRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.