diff --git a/packages/google-api-servicemanagement/.eslintignore b/packages/google-api-servicemanagement/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-api-servicemanagement/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-api-servicemanagement/.eslintrc.json b/packages/google-api-servicemanagement/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-api-servicemanagement/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-api-servicemanagement/.gitattributes b/packages/google-api-servicemanagement/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-api-servicemanagement/.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-api-servicemanagement/.github/.OwlBot.yaml b/packages/google-api-servicemanagement/.github/.OwlBot.yaml
new file mode 100644
index 00000000000..b5a6d445b4f
--- /dev/null
+++ b/packages/google-api-servicemanagement/.github/.OwlBot.yaml
@@ -0,0 +1,26 @@
+# 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/api/servicemanagement/(v.*)/.*-nodejs/(.*)
+ dest: /owl-bot-staging/$1/$2
+
+begin-after-commit-hash: ea0f18027eafb4801813fa253f16ffeef904b4c6
+
diff --git a/packages/google-api-servicemanagement/.gitignore b/packages/google-api-servicemanagement/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-api-servicemanagement/.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-api-servicemanagement/.jsdoc.js b/packages/google-api-servicemanagement/.jsdoc.js
new file mode 100644
index 00000000000..888e97fc97b
--- /dev/null
+++ b/packages/google-api-servicemanagement/.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/service-management',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-api-servicemanagement/.mocharc.js b/packages/google-api-servicemanagement/.mocharc.js
new file mode 100644
index 00000000000..0b600509bed
--- /dev/null
+++ b/packages/google-api-servicemanagement/.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-api-servicemanagement/.nycrc b/packages/google-api-servicemanagement/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-api-servicemanagement/.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-api-servicemanagement/.prettierignore b/packages/google-api-servicemanagement/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-api-servicemanagement/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-api-servicemanagement/.prettierrc.js b/packages/google-api-servicemanagement/.prettierrc.js
new file mode 100644
index 00000000000..d1b95106f4c
--- /dev/null
+++ b/packages/google-api-servicemanagement/.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-api-servicemanagement/.repo-metadata.json b/packages/google-api-servicemanagement/.repo-metadata.json
new file mode 100644
index 00000000000..3d7bc77f36e
--- /dev/null
+++ b/packages/google-api-servicemanagement/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "issue_tracker": "https://github.com/googleapis/nodejs-service-management/issues",
+ "distribution_name": "@google-cloud/service-management",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/service-management/latest",
+ "product_documentation": "https://cloud.google.com/service-infrastructure/docs/overview/",
+ "name_pretty": "Service Management API",
+ "release_level": "stable",
+ "default_version": "v1",
+ "name": "service-management",
+ "api_id": "servicemanagement.googleapis.com",
+ "requires_billing": true,
+ "language": "nodejs",
+ "repo": "googleapis/nodejs-service-management",
+ "api_shortname": "servicemanagement",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-api-servicemanagement/CHANGELOG.md b/packages/google-api-servicemanagement/CHANGELOG.md
new file mode 100644
index 00000000000..050fb3c7123
--- /dev/null
+++ b/packages/google-api-servicemanagement/CHANGELOG.md
@@ -0,0 +1,157 @@
+# Changelog
+
+## [1.1.3](https://github.com/googleapis/nodejs-service-management/compare/v1.1.2...v1.1.3) (2022-11-10)
+
+
+### Bug Fixes
+
+* Preserve default values in x-goog-request-params header ([#169](https://github.com/googleapis/nodejs-service-management/issues/169)) ([ef47431](https://github.com/googleapis/nodejs-service-management/commit/ef4743106afc35191647a626c8f3a8a08634ebd1))
+* Regenerated protos JS and TS definitions ([#178](https://github.com/googleapis/nodejs-service-management/issues/178)) ([9c00293](https://github.com/googleapis/nodejs-service-management/commit/9c00293b6213b8ba0e2d56fd2208d90b60c38d0d))
+
+## [1.1.2](https://github.com/googleapis/nodejs-service-management/compare/v1.1.1...v1.1.2) (2022-09-01)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#166](https://github.com/googleapis/nodejs-service-management/issues/166)) ([deda310](https://github.com/googleapis/nodejs-service-management/commit/deda3102c60ed95a03de5f4ae123c858d9af1cf4))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-service-management/issues/1553)) ([#165](https://github.com/googleapis/nodejs-service-management/issues/165)) ([aa21cf2](https://github.com/googleapis/nodejs-service-management/commit/aa21cf2c463c6410be8f9dc8906493dc78f131c1))
+
+## [1.1.1](https://github.com/googleapis/nodejs-service-management/compare/v1.1.0...v1.1.1) (2022-08-23)
+
+
+### Bug Fixes
+
+* better support for fallback mode ([#161](https://github.com/googleapis/nodejs-service-management/issues/161)) ([a84e12c](https://github.com/googleapis/nodejs-service-management/commit/a84e12c4dd4edc5b8486f7b1d47ce109b1927099))
+* change import long to require ([#162](https://github.com/googleapis/nodejs-service-management/issues/162)) ([309942f](https://github.com/googleapis/nodejs-service-management/commit/309942f977356bcaaf77a1ee439e5d4389f011ec))
+* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-service-management/issues/1546)) ([#164](https://github.com/googleapis/nodejs-service-management/issues/164)) ([41397e6](https://github.com/googleapis/nodejs-service-management/commit/41397e628dcbc33e54d1f052343df51d8ae8a771))
+
+## [1.1.0](https://github.com/googleapis/nodejs-service-management/compare/v1.0.0...v1.1.0) (2022-06-30)
+
+
+### Features
+
+* support regapic LRO ([#154](https://github.com/googleapis/nodejs-service-management/issues/154)) ([9871067](https://github.com/googleapis/nodejs-service-management/commit/9871067a828e4ec332906f2013956f9b2ade2b00))
+
+## [1.0.0](https://github.com/googleapis/nodejs-service-management/compare/v0.4.0...v1.0.0) (2022-05-31)
+
+
+### ⚠ BREAKING CHANGES
+
+* promote to stable (#140)
+* update library to use Node 12 (#138)
+
+### Features
+
+* promote to stable ([#140](https://github.com/googleapis/nodejs-service-management/issues/140)) ([f40509e](https://github.com/googleapis/nodejs-service-management/commit/f40509ee35dbafff16e4300d2173be5c41abacf4))
+
+
+### Bug Fixes
+
+* fixes for dynamic routing and streaming descriptors ([#142](https://github.com/googleapis/nodejs-service-management/issues/142)) ([6d02ca8](https://github.com/googleapis/nodejs-service-management/commit/6d02ca800a29eb3b6383127efe43ad8e603992c3))
+
+
+### Build System
+
+* update library to use Node 12 ([#138](https://github.com/googleapis/nodejs-service-management/issues/138)) ([a9eed29](https://github.com/googleapis/nodejs-service-management/commit/a9eed29598c8b56d4c80161d0046be0db4430c66))
+
+## [0.4.0](https://github.com/googleapis/nodejs-service-management/compare/v0.3.1...v0.4.0) (2022-03-08)
+
+
+### ⚠ BREAKING CHANGES
+
+* Remove EnableService and DisableService RPC methods and related protos from service management API
+
+### Features
+
+* Remove EnableService and DisableService RPC methods and related protos from service management API ([d3919ab](https://github.com/googleapis/nodejs-service-management/commit/d3919abbf7ba458cc71e8038604f56d598571fe4))
+
+### [0.3.1](https://www.github.com/googleapis/nodejs-service-management/compare/v0.3.0...v0.3.1) (2021-09-10)
+
+
+### Bug Fixes
+
+* **build:** set default branch to main ([#85](https://www.github.com/googleapis/nodejs-service-management/issues/85)) ([b343eac](https://www.github.com/googleapis/nodejs-service-management/commit/b343eaca04b4f651c737d8a84baa5a75a361c4b0))
+
+## [0.3.0](https://www.github.com/googleapis/nodejs-service-management/compare/v0.2.6...v0.3.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#81](https://www.github.com/googleapis/nodejs-service-management/issues/81)) ([237698f](https://www.github.com/googleapis/nodejs-service-management/commit/237698f72dfdd14e95d956a2e45f6db423e45e23))
+
+### [0.2.6](https://www.github.com/googleapis/nodejs-service-management/compare/v0.2.5...v0.2.6) (2021-08-17)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.24.1 ([#79](https://www.github.com/googleapis/nodejs-service-management/issues/79)) ([b679b6c](https://www.github.com/googleapis/nodejs-service-management/commit/b679b6c3dff457764698044b8b325a52922fbb46))
+
+### [0.2.5](https://www.github.com/googleapis/nodejs-service-management/compare/v0.2.4...v0.2.5) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#70](https://www.github.com/googleapis/nodejs-service-management/issues/70)) ([fc4f996](https://www.github.com/googleapis/nodejs-service-management/commit/fc4f99666252f8f06f399438aedebb6e5502f2e9))
+
+### [0.2.4](https://www.github.com/googleapis/nodejs-service-management/compare/v0.2.3...v0.2.4) (2021-06-30)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#67](https://www.github.com/googleapis/nodejs-service-management/issues/67)) ([39328cd](https://www.github.com/googleapis/nodejs-service-management/commit/39328cdd1389ab2bddb1744bb8a77774e5a924c2))
+
+### [0.2.3](https://www.github.com/googleapis/nodejs-service-management/compare/v0.2.2...v0.2.3) (2021-06-25)
+
+
+### Bug Fixes
+
+* make request optional in all cases ([#61](https://www.github.com/googleapis/nodejs-service-management/issues/61)) ([8ba608c](https://www.github.com/googleapis/nodejs-service-management/commit/8ba608caad06f54c0f4fb650b18948a1143440f4))
+
+### [0.2.2](https://www.github.com/googleapis/nodejs-service-management/compare/v0.2.1...v0.2.2) (2021-05-25)
+
+
+### Bug Fixes
+
+* GoogleAdsError missing using generator version after 1.3.0 ([#54](https://www.github.com/googleapis/nodejs-service-management/issues/54)) ([9376a6c](https://www.github.com/googleapis/nodejs-service-management/commit/9376a6c9836b9460d512a8fbd32094cc4f5ccb85))
+
+### [0.2.1](https://www.github.com/googleapis/nodejs-service-management/compare/v0.2.0...v0.2.1) (2021-05-24)
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#48](https://www.github.com/googleapis/nodejs-service-management/issues/48)) ([e679ea9](https://www.github.com/googleapis/nodejs-service-management/commit/e679ea9d735b9edd25913b990e3a0d037025c984))
+* use require() to load JSON protos ([#50](https://www.github.com/googleapis/nodejs-service-management/issues/50)) ([786af32](https://www.github.com/googleapis/nodejs-service-management/commit/786af32612aed97ef4ec55b2d0b02932e351be38))
+
+## 0.2.0 (2021-03-30)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial stub of library
+
+### Features
+
+* add initial samples ([#2](https://www.github.com/googleapis/nodejs-service-management/issues/2)) ([e12039f](https://www.github.com/googleapis/nodejs-service-management/commit/e12039fff76d1d76692c7f87852c2e878c0f847f))
+* initial stub of library ([728ac20](https://www.github.com/googleapis/nodejs-service-management/commit/728ac209c44ba39714fb8c8acb38a7c0163acd6c))
+
+
+### Bug Fixes
+
+* **build:** release first version of library as v0.2.0 ([#14](https://www.github.com/googleapis/nodejs-service-management/issues/14)) ([3707e68](https://www.github.com/googleapis/nodejs-service-management/commit/3707e680f7cd038ea4b6c7589a5846b8ce5fcc96))
+
+## 0.2.0 (2021-03-30)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial stub of library
+
+### Features
+
+* add initial samples ([#2](https://www.github.com/googleapis/nodejs-service-management/issues/2)) ([e12039f](https://www.github.com/googleapis/nodejs-service-management/commit/e12039fff76d1d76692c7f87852c2e878c0f847f))
+* initial stub of library ([728ac20](https://www.github.com/googleapis/nodejs-service-management/commit/728ac209c44ba39714fb8c8acb38a7c0163acd6c))
+
+
+### Bug Fixes
+
+* **build:** release first version of library as v0.2.0 ([#14](https://www.github.com/googleapis/nodejs-service-management/issues/14)) ([3707e68](https://www.github.com/googleapis/nodejs-service-management/commit/3707e680f7cd038ea4b6c7589a5846b8ce5fcc96))
diff --git a/packages/google-api-servicemanagement/CODE_OF_CONDUCT.md b/packages/google-api-servicemanagement/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-api-servicemanagement/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-api-servicemanagement/CONTRIBUTING.md b/packages/google-api-servicemanagement/CONTRIBUTING.md
new file mode 100644
index 00000000000..99a0d03ee1c
--- /dev/null
+++ b/packages/google-api-servicemanagement/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 Service Management API API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+
+## Running the tests
+
+1. [Prepare your environment for Node.js setup][setup].
+
+1. Install dependencies:
+
+ npm install
+
+1. Run the tests:
+
+ # Run unit tests.
+ npm test
+
+ # Run sample integration tests.
+ npm run samples-test
+
+ # Run all system tests.
+ npm run system-test
+
+1. Lint (and maybe fix) any changes:
+
+ npm run fix
+
+[setup]: https://cloud.google.com/nodejs/docs/setup
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=servicemanagement.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-api-servicemanagement/LICENSE b/packages/google-api-servicemanagement/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-api-servicemanagement/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-api-servicemanagement/README.md b/packages/google-api-servicemanagement/README.md
new file mode 100644
index 00000000000..30f8741a145
--- /dev/null
+++ b/packages/google-api-servicemanagement/README.md
@@ -0,0 +1,158 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Service Management API: Node.js Client](https://github.com/googleapis/nodejs-service-management)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/service-management)
+
+
+
+
+Service management client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/nodejs-service-management/blob/main/CHANGELOG.md).
+
+* [Service Management API Node.js Client API Reference][client-docs]
+* [Service Management API Documentation][product-docs]
+* [github.com/googleapis/nodejs-service-management](https://github.com/googleapis/nodejs-service-management)
+
+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 Service Management API API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+### Installing the client library
+
+```bash
+npm install @google-cloud/service-management
+```
+
+
+### Using the client library
+
+```javascript
+
+// Imports the Google Cloud client library
+const {ServiceManagerClient} = require('@google-cloud/service-management');
+
+// TODO(developer): replace with your prefered project ID.
+// const projectId = 'my-project'
+
+// Creates a client
+const client = new ServiceManagerClient();
+
+async function listServices() {
+ const [services] = await client.listServices({
+ producerProjectId: projectId,
+ });
+ console.info(services);
+}
+listServices();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/nodejs-service-management/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-service-management/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-service-management&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+
+
+
+The [Service Management API Node.js Client API Reference][client-docs] documentation
+also contains samples.
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/service-management@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-service-management/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-service-management/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/service-management/latest
+[product-docs]: https://cloud.google.com/service-infrastructure/docs/overview/
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=servicemanagement.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-api-servicemanagement/linkinator.config.json b/packages/google-api-servicemanagement/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-api-servicemanagement/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-api-servicemanagement/package.json b/packages/google-api-servicemanagement/package.json
new file mode 100644
index 00000000000..1a1dbb2e967
--- /dev/null
+++ b/packages/google-api-servicemanagement/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@google-cloud/service-management",
+ "version": "1.1.3",
+ "description": "Service management client for Node.js",
+ "repository": "googleapis/nodejs-service-management",
+ "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 servicemanagement",
+ "servicemanagement",
+ "service manager"
+ ],
+ "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",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^3.3.0"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.6.0",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.24.4",
+ "webpack-cli": "^4.5.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-api-servicemanagement/protos/google/api/servicemanagement/v1/resources.proto b/packages/google-api-servicemanagement/protos/google/api/servicemanagement/v1/resources.proto
new file mode 100644
index 00000000000..57ffd770b94
--- /dev/null
+++ b/packages/google-api-servicemanagement/protos/google/api/servicemanagement/v1/resources.proto
@@ -0,0 +1,295 @@
+// 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.api.servicemanagement.v1;
+
+import "google/api/config_change.proto";
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.ServiceManagement.V1";
+option go_package = "google.golang.org/genproto/googleapis/api/servicemanagement/v1;servicemanagement";
+option java_multiple_files = true;
+option java_outer_classname = "ResourcesProto";
+option java_package = "com.google.api.servicemanagement.v1";
+option objc_class_prefix = "GASM";
+option php_namespace = "Google\\Cloud\\ServiceManagement\\V1";
+option ruby_package = "Google::Cloud::ServiceManagement::V1";
+
+// The full representation of a Service that is managed by
+// Google Service Management.
+message ManagedService {
+ // The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview)
+ // for naming requirements.
+ string service_name = 2;
+
+ // ID of the project that produces and owns this service.
+ string producer_project_id = 3;
+}
+
+// The metadata associated with a long running operation resource.
+message OperationMetadata {
+ // Represents the status of one operation step.
+ message Step {
+ // The short description of the step.
+ string description = 2;
+
+ // The status code.
+ Status status = 4;
+ }
+
+ // Code describes the status of the operation (or one of its steps).
+ enum Status {
+ // Unspecifed code.
+ STATUS_UNSPECIFIED = 0;
+
+ // The operation or step has completed without errors.
+ DONE = 1;
+
+ // The operation or step has not started yet.
+ NOT_STARTED = 2;
+
+ // The operation or step is in progress.
+ IN_PROGRESS = 3;
+
+ // The operation or step has completed with errors. If the operation is
+ // rollbackable, the rollback completed with errors too.
+ FAILED = 4;
+
+ // The operation or step has completed with cancellation.
+ CANCELLED = 5;
+ }
+
+ // The full name of the resources that this operation is directly
+ // associated with.
+ repeated string resource_names = 1;
+
+ // Detailed status information for each step. The order is undetermined.
+ repeated Step steps = 2;
+
+ // Percentage of completion of this operation, ranging from 0 to 100.
+ int32 progress_percentage = 3;
+
+ // The start time of the operation.
+ google.protobuf.Timestamp start_time = 4;
+}
+
+// Represents a diagnostic message (error or warning)
+message Diagnostic {
+ // The kind of diagnostic information possible.
+ enum Kind {
+ // Warnings and errors
+ WARNING = 0;
+
+ // Only errors
+ ERROR = 1;
+ }
+
+ // File name and line number of the error or warning.
+ string location = 1;
+
+ // The kind of diagnostic information provided.
+ Kind kind = 2;
+
+ // Message describing the error or warning.
+ string message = 3;
+}
+
+// Represents a source file which is used to generate the service configuration
+// defined by `google.api.Service`.
+message ConfigSource {
+ // A unique ID for a specific instance of this message, typically assigned
+ // by the client for tracking purpose. If empty, the server may choose to
+ // generate one instead.
+ string id = 5;
+
+ // Set of source configuration files that are used to generate a service
+ // configuration (`google.api.Service`).
+ repeated ConfigFile files = 2;
+}
+
+// Generic specification of a source configuration file
+message ConfigFile {
+ enum FileType {
+ // Unknown file type.
+ FILE_TYPE_UNSPECIFIED = 0;
+
+ // YAML-specification of service.
+ SERVICE_CONFIG_YAML = 1;
+
+ // OpenAPI specification, serialized in JSON.
+ OPEN_API_JSON = 2;
+
+ // OpenAPI specification, serialized in YAML.
+ OPEN_API_YAML = 3;
+
+ // FileDescriptorSet, generated by protoc.
+ //
+ // To generate, use protoc with imports and source info included.
+ // For an example test.proto file, the following command would put the value
+ // in a new file named out.pb.
+ //
+ // $protoc --include_imports --include_source_info test.proto -o out.pb
+ FILE_DESCRIPTOR_SET_PROTO = 4;
+
+ // Uncompiled Proto file. Used for storage and display purposes only,
+ // currently server-side compilation is not supported. Should match the
+ // inputs to 'protoc' command used to generated FILE_DESCRIPTOR_SET_PROTO. A
+ // file of this type can only be included if at least one file of type
+ // FILE_DESCRIPTOR_SET_PROTO is included.
+ PROTO_FILE = 6;
+ }
+
+ // The file name of the configuration file (full or relative path).
+ string file_path = 1;
+
+ // The bytes that constitute the file.
+ bytes file_contents = 3;
+
+ // The type of configuration file this represents.
+ FileType file_type = 4;
+}
+
+// Represents a service configuration with its name and id.
+message ConfigRef {
+ // Resource name of a service config. It must have the following
+ // format: "services/{service name}/configs/{config id}".
+ string name = 1;
+}
+
+// Change report associated with a particular service configuration.
+//
+// It contains a list of ConfigChanges based on the comparison between
+// two service configurations.
+message ChangeReport {
+ // List of changes between two service configurations.
+ // The changes will be alphabetically sorted based on the identifier
+ // of each change.
+ // A ConfigChange identifier is a dot separated path to the configuration.
+ // Example: visibility.rules[selector='LibraryService.CreateBook'].restriction
+ repeated google.api.ConfigChange config_changes = 1;
+}
+
+// A rollout resource that defines how service configuration versions are pushed
+// to control plane systems. Typically, you create a new version of the
+// service config, and then create a Rollout to push the service config.
+message Rollout {
+ // Strategy that specifies how clients of Google Service Controller want to
+ // send traffic to use different config versions. This is generally
+ // used by API proxy to split traffic based on your configured percentage for
+ // each config version.
+ //
+ // One example of how to gradually rollout a new service configuration using
+ // this
+ // strategy:
+ // Day 1
+ //
+ // Rollout {
+ // id: "example.googleapis.com/rollout_20160206"
+ // traffic_percent_strategy {
+ // percentages: {
+ // "example.googleapis.com/20160201": 70.00
+ // "example.googleapis.com/20160206": 30.00
+ // }
+ // }
+ // }
+ //
+ // Day 2
+ //
+ // Rollout {
+ // id: "example.googleapis.com/rollout_20160207"
+ // traffic_percent_strategy: {
+ // percentages: {
+ // "example.googleapis.com/20160206": 100.00
+ // }
+ // }
+ // }
+ message TrafficPercentStrategy {
+ // Maps service configuration IDs to their corresponding traffic percentage.
+ // Key is the service configuration ID, Value is the traffic percentage
+ // which must be greater than 0.0 and the sum must equal to 100.0.
+ map percentages = 1;
+ }
+
+ // Strategy used to delete a service. This strategy is a placeholder only
+ // used by the system generated rollout to delete a service.
+ message DeleteServiceStrategy {}
+
+ // Status of a Rollout.
+ enum RolloutStatus {
+ // No status specified.
+ ROLLOUT_STATUS_UNSPECIFIED = 0;
+
+ // The Rollout is in progress.
+ IN_PROGRESS = 1;
+
+ // The Rollout has completed successfully.
+ SUCCESS = 2;
+
+ // The Rollout has been cancelled. This can happen if you have overlapping
+ // Rollout pushes, and the previous ones will be cancelled.
+ CANCELLED = 3;
+
+ // The Rollout has failed and the rollback attempt has failed too.
+ FAILED = 4;
+
+ // The Rollout has not started yet and is pending for execution.
+ PENDING = 5;
+
+ // The Rollout has failed and rolled back to the previous successful
+ // Rollout.
+ FAILED_ROLLED_BACK = 6;
+ }
+
+ // Optional. Unique identifier of this Rollout. Must be no longer than 63
+ // characters and only lower case letters, digits, '.', '_' and '-' are
+ // allowed.
+ //
+ // If not specified by client, the server will generate one. The generated id
+ // will have the form of , where "date" is the create
+ // date in ISO 8601 format. "revision number" is a monotonically increasing
+ // positive number that is reset every day for each service.
+ // An example of the generated rollout_id is '2016-02-16r1'
+ string rollout_id = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Creation time of the rollout. Readonly.
+ google.protobuf.Timestamp create_time = 2;
+
+ // The user who created the Rollout. Readonly.
+ string created_by = 3;
+
+ // The status of this rollout. Readonly. In case of a failed rollout,
+ // the system will automatically rollback to the current Rollout
+ // version. Readonly.
+ RolloutStatus status = 4;
+
+ // Strategy that defines which versions of service configurations should be
+ // pushed
+ // and how they should be used at runtime.
+ oneof strategy {
+ // Google Service Control selects service configurations based on
+ // traffic percentage.
+ TrafficPercentStrategy traffic_percent_strategy = 5;
+
+ // The strategy associated with a rollout to delete a `ManagedService`.
+ // Readonly.
+ DeleteServiceStrategy delete_service_strategy = 200;
+ }
+
+ // The name of the service associated with this Rollout.
+ string service_name = 8;
+}
diff --git a/packages/google-api-servicemanagement/protos/google/api/servicemanagement/v1/servicemanager.proto b/packages/google-api-servicemanagement/protos/google/api/servicemanagement/v1/servicemanager.proto
new file mode 100644
index 00000000000..c863cd41924
--- /dev/null
+++ b/packages/google-api-servicemanagement/protos/google/api/servicemanagement/v1/servicemanager.proto
@@ -0,0 +1,501 @@
+// 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.api.servicemanagement.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/service.proto";
+import "google/api/servicemanagement/v1/resources.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/any.proto";
+
+option csharp_namespace = "Google.Cloud.ServiceManagement.V1";
+option go_package = "google.golang.org/genproto/googleapis/api/servicemanagement/v1;servicemanagement";
+option java_multiple_files = true;
+option java_outer_classname = "ServiceManagerProto";
+option java_package = "com.google.api.servicemanagement.v1";
+option objc_class_prefix = "GASM";
+option php_namespace = "Google\\Cloud\\ServiceManagement\\V1";
+option ruby_package = "Google::Cloud::ServiceManagement::V1";
+
+// [Google Service Management
+// API](https://cloud.google.com/service-infrastructure/docs/overview)
+service ServiceManager {
+ option (google.api.default_host) = "servicemanagement.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only,"
+ "https://www.googleapis.com/auth/service.management,"
+ "https://www.googleapis.com/auth/service.management.readonly";
+
+ // Lists managed services.
+ //
+ // Returns all public services. For authenticated users, also returns all
+ // services the calling user has "servicemanagement.services.get" permission
+ // for.
+ rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
+ option (google.api.http) = {
+ get: "/v1/services"
+ };
+ option (google.api.method_signature) = "producer_project_id,consumer_id";
+ }
+
+ // Gets a managed service. Authentication is required unless the service is
+ // public.
+ rpc GetService(GetServiceRequest) returns (ManagedService) {
+ option (google.api.http) = {
+ get: "/v1/services/{service_name}"
+ };
+ option (google.api.method_signature) = "service_name";
+ }
+
+ // Creates a new managed service.
+ //
+ // A managed service is immutable, and is subject to mandatory 30-day
+ // data retention. You cannot move a service or recreate it within 30 days
+ // after deletion.
+ //
+ // One producer project can own no more than 500 services. For security and
+ // reliability purposes, a production service should be hosted in a
+ // dedicated producer project.
+ //
+ // Operation
+ rpc CreateService(CreateServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/services"
+ body: "service"
+ };
+ option (google.api.method_signature) = "service";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.api.servicemanagement.v1.ManagedService"
+ metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
+ };
+ }
+
+ // Deletes a managed service. This method will change the service to the
+ // `Soft-Delete` state for 30 days. Within this period, service producers may
+ // call
+ // [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService]
+ // to restore the service. After 30 days, the service will be permanently
+ // deleted.
+ //
+ // Operation
+ rpc DeleteService(DeleteServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/services/{service_name}"
+ };
+ option (google.api.method_signature) = "service_name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
+ };
+ }
+
+ // Revives a previously deleted managed service. The method restores the
+ // service using the configuration at the time the service was deleted.
+ // The target service must exist and must have been deleted within the
+ // last 30 days.
+ //
+ // Operation
+ rpc UndeleteService(UndeleteServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/services/{service_name}:undelete"
+ };
+ option (google.api.method_signature) = "service_name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.api.servicemanagement.v1.UndeleteServiceResponse"
+ metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
+ };
+ }
+
+ // Lists the history of the service configuration for a managed service,
+ // from the newest to the oldest.
+ rpc ListServiceConfigs(ListServiceConfigsRequest)
+ returns (ListServiceConfigsResponse) {
+ option (google.api.http) = {
+ get: "/v1/services/{service_name}/configs"
+ };
+ option (google.api.method_signature) = "service_name";
+ }
+
+ // Gets a service configuration (version) for a managed service.
+ rpc GetServiceConfig(GetServiceConfigRequest) returns (google.api.Service) {
+ option (google.api.http) = {
+ get: "/v1/services/{service_name}/configs/{config_id}"
+ additional_bindings { get: "/v1/services/{service_name}/config" }
+ };
+ option (google.api.method_signature) = "service_name,config_id,view";
+ }
+
+ // Creates a new service configuration (version) for a managed service.
+ // This method only stores the service configuration. To roll out the service
+ // configuration to backend systems please call
+ // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
+ //
+ // Only the 100 most recent service configurations and ones referenced by
+ // existing rollouts are kept for each service. The rest will be deleted
+ // eventually.
+ rpc CreateServiceConfig(CreateServiceConfigRequest)
+ returns (google.api.Service) {
+ option (google.api.http) = {
+ post: "/v1/services/{service_name}/configs"
+ body: "service_config"
+ };
+ option (google.api.method_signature) = "service_name,service_config";
+ }
+
+ // Creates a new service configuration (version) for a managed service based
+ // on
+ // user-supplied configuration source files (for example: OpenAPI
+ // Specification). This method stores the source configurations as well as the
+ // generated service configuration. To rollout the service configuration to
+ // other services,
+ // please call
+ // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
+ //
+ // Only the 100 most recent configuration sources and ones referenced by
+ // existing service configurtions are kept for each service. The rest will be
+ // deleted eventually.
+ //
+ // Operation
+ rpc SubmitConfigSource(SubmitConfigSourceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/services/{service_name}/configs:submit"
+ body: "*"
+ };
+ option (google.api.method_signature) =
+ "service_name,config_source,validate_only";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.api.servicemanagement.v1.SubmitConfigSourceResponse"
+ metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
+ };
+ }
+
+ // Lists the history of the service configuration rollouts for a managed
+ // service, from the newest to the oldest.
+ rpc ListServiceRollouts(ListServiceRolloutsRequest)
+ returns (ListServiceRolloutsResponse) {
+ option (google.api.http) = {
+ get: "/v1/services/{service_name}/rollouts"
+ };
+ option (google.api.method_signature) = "service_name,filter";
+ }
+
+ // Gets a service configuration
+ // [rollout][google.api.servicemanagement.v1.Rollout].
+ rpc GetServiceRollout(GetServiceRolloutRequest) returns (Rollout) {
+ option (google.api.http) = {
+ get: "/v1/services/{service_name}/rollouts/{rollout_id}"
+ };
+ option (google.api.method_signature) = "service_name,rollout_id";
+ }
+
+ // Creates a new service configuration rollout. Based on rollout, the
+ // Google Service Management will roll out the service configurations to
+ // different backend services. For example, the logging configuration will be
+ // pushed to Google Cloud Logging.
+ //
+ // Please note that any previous pending and running Rollouts and associated
+ // Operations will be automatically cancelled so that the latest Rollout will
+ // not be blocked by previous Rollouts.
+ //
+ // Only the 100 most recent (in any state) and the last 10 successful (if not
+ // already part of the set of 100 most recent) rollouts are kept for each
+ // service. The rest will be deleted eventually.
+ //
+ // Operation
+ rpc CreateServiceRollout(CreateServiceRolloutRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/services/{service_name}/rollouts"
+ body: "rollout"
+ };
+ option (google.api.method_signature) = "service_name,rollout";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.api.servicemanagement.v1.Rollout"
+ metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
+ };
+ }
+
+ // Generates and returns a report (errors, warnings and changes from
+ // existing configurations) associated with
+ // GenerateConfigReportRequest.new_value
+ //
+ // If GenerateConfigReportRequest.old_value is specified,
+ // GenerateConfigReportRequest will contain a single ChangeReport based on the
+ // comparison between GenerateConfigReportRequest.new_value and
+ // GenerateConfigReportRequest.old_value.
+ // If GenerateConfigReportRequest.old_value is not specified, this method
+ // will compare GenerateConfigReportRequest.new_value with the last pushed
+ // service configuration.
+ rpc GenerateConfigReport(GenerateConfigReportRequest)
+ returns (GenerateConfigReportResponse) {
+ option (google.api.http) = {
+ post: "/v1/services:generateConfigReport"
+ body: "*"
+ };
+ option (google.api.method_signature) = "new_config,old_config";
+ }
+}
+
+// Request message for `ListServices` method.
+message ListServicesRequest {
+ // Include services produced by the specified project.
+ string producer_project_id = 1;
+
+ // The max number of items to include in the response list. Page size is 50
+ // if not specified. Maximum value is 100.
+ int32 page_size = 5;
+
+ // Token identifying which result to start with; returned by a previous list
+ // call.
+ string page_token = 6;
+
+ // Include services consumed by the specified consumer.
+ //
+ // The Google Service Management implementation accepts the following
+ // forms:
+ // - project:
+ string consumer_id = 7 [deprecated = true];
+}
+
+// Response message for `ListServices` method.
+message ListServicesResponse {
+ // The returned services will only have the name field set.
+ repeated ManagedService services = 1;
+
+ // Token that can be passed to `ListServices` to resume a paginated query.
+ string next_page_token = 2;
+}
+
+// Request message for `GetService` method.
+message GetServiceRequest {
+ // Required. The name of the service. See the `ServiceManager` overview for
+ // naming requirements. For example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for CreateService method.
+message CreateServiceRequest {
+ // Required. Initial values for the service resource.
+ ManagedService service = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for DeleteService method.
+message DeleteServiceRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for UndeleteService method.
+message UndeleteServiceRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response message for UndeleteService method.
+message UndeleteServiceResponse {
+ // Revived service resource.
+ ManagedService service = 1;
+}
+
+// Request message for GetServiceConfig method.
+message GetServiceConfigRequest {
+ enum ConfigView {
+ // Server response includes all fields except SourceInfo.
+ BASIC = 0;
+
+ // Server response includes all fields including SourceInfo.
+ // SourceFiles are of type 'google.api.servicemanagement.v1.ConfigFile'
+ // and are only available for configs created using the
+ // SubmitConfigSource method.
+ FULL = 1;
+ }
+
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The id of the service configuration resource.
+ //
+ // This field must be specified for the server to return all fields, including
+ // `SourceInfo`.
+ string config_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Specifies which parts of the Service Config should be returned in the
+ // response.
+ ConfigView view = 3;
+}
+
+// Request message for ListServiceConfigs method.
+message ListServiceConfigsRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The token of the page to retrieve.
+ string page_token = 2;
+
+ // The max number of items to include in the response list. Page size is 50
+ // if not specified. Maximum value is 100.
+ int32 page_size = 3;
+}
+
+// Response message for ListServiceConfigs method.
+message ListServiceConfigsResponse {
+ // The list of service configuration resources.
+ repeated google.api.Service service_configs = 1;
+
+ // The token of the next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for CreateServiceConfig method.
+message CreateServiceConfigRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The service configuration resource.
+ google.api.Service service_config = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for SubmitConfigSource method.
+message SubmitConfigSourceRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The source configuration for the service.
+ ConfigSource config_source = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If set, this will result in the generation of a
+ // `google.api.Service` configuration based on the `ConfigSource` provided,
+ // but the generated config and the sources will NOT be persisted.
+ bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for SubmitConfigSource method.
+message SubmitConfigSourceResponse {
+ // The generated service configuration.
+ google.api.Service service_config = 1;
+}
+
+// Request message for 'CreateServiceRollout'
+message CreateServiceRolloutRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The rollout resource. The `service_name` field is output only.
+ Rollout rollout = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for 'ListServiceRollouts'
+message ListServiceRolloutsRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The token of the page to retrieve.
+ string page_token = 2;
+
+ // The max number of items to include in the response list. Page size is 50
+ // if not specified. Maximum value is 100.
+ int32 page_size = 3;
+
+ // Required. Use `filter` to return subset of rollouts.
+ // The following filters are supported:
+ // -- To limit the results to only those in
+ // status (google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',
+ // use filter='status=SUCCESS'
+ // -- To limit the results to those in
+ // status (google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'
+ // or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
+ string filter = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response message for ListServiceRollouts method.
+message ListServiceRolloutsResponse {
+ // The list of rollout resources.
+ repeated Rollout rollouts = 1;
+
+ // The token of the next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for GetServiceRollout method.
+message GetServiceRolloutRequest {
+ // Required. The name of the service. See the
+ // [overview](https://cloud.google.com/service-infrastructure/docs/overview) for naming requirements. For
+ // example: `example.googleapis.com`.
+ string service_name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The id of the rollout resource.
+ string rollout_id = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for GenerateConfigReport method.
+message GenerateConfigReportRequest {
+ // Required. Service configuration for which we want to generate the report.
+ // For this version of API, the supported types are
+ // [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef],
+ // [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource],
+ // and [google.api.Service][google.api.Service]
+ google.protobuf.Any new_config = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Service configuration against which the comparison will be done.
+ // For this version of API, the supported types are
+ // [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef],
+ // [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource],
+ // and [google.api.Service][google.api.Service]
+ google.protobuf.Any old_config = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for GenerateConfigReport method.
+message GenerateConfigReportResponse {
+ // Name of the service this report belongs to.
+ string service_name = 1;
+
+ // ID of the service configuration this report belongs to.
+ string id = 2;
+
+ // list of ChangeReport, each corresponding to comparison between two
+ // service configurations.
+ repeated ChangeReport change_reports = 3;
+
+ // Errors / Linter warnings associated with the service definition this
+ // report
+ // belongs to.
+ repeated Diagnostic diagnostics = 4;
+}
diff --git a/packages/google-api-servicemanagement/protos/protos.d.ts b/packages/google-api-servicemanagement/protos/protos.d.ts
new file mode 100644
index 00000000000..4eb92441444
--- /dev/null
+++ b/packages/google-api-servicemanagement/protos/protos.d.ts
@@ -0,0 +1,15764 @@
+// 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 api. */
+ namespace api {
+
+ /** Namespace servicemanagement. */
+ namespace servicemanagement {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a ManagedService. */
+ interface IManagedService {
+
+ /** ManagedService serviceName */
+ serviceName?: (string|null);
+
+ /** ManagedService producerProjectId */
+ producerProjectId?: (string|null);
+ }
+
+ /** Represents a ManagedService. */
+ class ManagedService implements IManagedService {
+
+ /**
+ * Constructs a new ManagedService.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IManagedService);
+
+ /** ManagedService serviceName. */
+ public serviceName: string;
+
+ /** ManagedService producerProjectId. */
+ public producerProjectId: string;
+
+ /**
+ * Creates a new ManagedService instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ManagedService instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IManagedService): google.api.servicemanagement.v1.ManagedService;
+
+ /**
+ * Encodes the specified ManagedService message. Does not implicitly {@link google.api.servicemanagement.v1.ManagedService.verify|verify} messages.
+ * @param message ManagedService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IManagedService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ManagedService message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ManagedService.verify|verify} messages.
+ * @param message ManagedService message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IManagedService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ManagedService message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ManagedService
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ManagedService;
+
+ /**
+ * Decodes a ManagedService message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ManagedService
+ * @throws {Error} If the payload 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.servicemanagement.v1.ManagedService;
+
+ /**
+ * Verifies a ManagedService message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ManagedService message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ManagedService
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ManagedService;
+
+ /**
+ * Creates a plain object from a ManagedService message. Also converts values to other types if specified.
+ * @param message ManagedService
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ManagedService, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ManagedService to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ManagedService
+ * @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 resourceNames */
+ resourceNames?: (string[]|null);
+
+ /** OperationMetadata steps */
+ steps?: (google.api.servicemanagement.v1.OperationMetadata.IStep[]|null);
+
+ /** OperationMetadata progressPercentage */
+ progressPercentage?: (number|null);
+
+ /** OperationMetadata startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IOperationMetadata);
+
+ /** OperationMetadata resourceNames. */
+ public resourceNames: string[];
+
+ /** OperationMetadata steps. */
+ public steps: google.api.servicemanagement.v1.OperationMetadata.IStep[];
+
+ /** OperationMetadata progressPercentage. */
+ public progressPercentage: number;
+
+ /** OperationMetadata startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IOperationMetadata): google.api.servicemanagement.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.api.servicemanagement.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.api.servicemanagement.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.api.servicemanagement.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.api.servicemanagement.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.api.servicemanagement.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.api.servicemanagement.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.api.servicemanagement.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.api.servicemanagement.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;
+ }
+
+ namespace OperationMetadata {
+
+ /** Properties of a Step. */
+ interface IStep {
+
+ /** Step description */
+ description?: (string|null);
+
+ /** Step status */
+ status?: (google.api.servicemanagement.v1.OperationMetadata.Status|keyof typeof google.api.servicemanagement.v1.OperationMetadata.Status|null);
+ }
+
+ /** Represents a Step. */
+ class Step implements IStep {
+
+ /**
+ * Constructs a new Step.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.OperationMetadata.IStep);
+
+ /** Step description. */
+ public description: string;
+
+ /** Step status. */
+ public status: (google.api.servicemanagement.v1.OperationMetadata.Status|keyof typeof google.api.servicemanagement.v1.OperationMetadata.Status);
+
+ /**
+ * Creates a new Step instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Step instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.OperationMetadata.IStep): google.api.servicemanagement.v1.OperationMetadata.Step;
+
+ /**
+ * Encodes the specified Step message. Does not implicitly {@link google.api.servicemanagement.v1.OperationMetadata.Step.verify|verify} messages.
+ * @param message Step message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.OperationMetadata.IStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Step message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.OperationMetadata.Step.verify|verify} messages.
+ * @param message Step message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.OperationMetadata.IStep, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Step message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Step
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.OperationMetadata.Step;
+
+ /**
+ * Decodes a Step message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Step
+ * @throws {Error} If the payload 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.servicemanagement.v1.OperationMetadata.Step;
+
+ /**
+ * Verifies a Step message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Step message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Step
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.OperationMetadata.Step;
+
+ /**
+ * Creates a plain object from a Step message. Also converts values to other types if specified.
+ * @param message Step
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.OperationMetadata.Step, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Step to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Step
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Status enum. */
+ enum Status {
+ STATUS_UNSPECIFIED = 0,
+ DONE = 1,
+ NOT_STARTED = 2,
+ IN_PROGRESS = 3,
+ FAILED = 4,
+ CANCELLED = 5
+ }
+ }
+
+ /** Properties of a Diagnostic. */
+ interface IDiagnostic {
+
+ /** Diagnostic location */
+ location?: (string|null);
+
+ /** Diagnostic kind */
+ kind?: (google.api.servicemanagement.v1.Diagnostic.Kind|keyof typeof google.api.servicemanagement.v1.Diagnostic.Kind|null);
+
+ /** Diagnostic message */
+ message?: (string|null);
+ }
+
+ /** Represents a Diagnostic. */
+ class Diagnostic implements IDiagnostic {
+
+ /**
+ * Constructs a new Diagnostic.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IDiagnostic);
+
+ /** Diagnostic location. */
+ public location: string;
+
+ /** Diagnostic kind. */
+ public kind: (google.api.servicemanagement.v1.Diagnostic.Kind|keyof typeof google.api.servicemanagement.v1.Diagnostic.Kind);
+
+ /** Diagnostic message. */
+ public message: string;
+
+ /**
+ * Creates a new Diagnostic instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Diagnostic instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IDiagnostic): google.api.servicemanagement.v1.Diagnostic;
+
+ /**
+ * Encodes the specified Diagnostic message. Does not implicitly {@link google.api.servicemanagement.v1.Diagnostic.verify|verify} messages.
+ * @param message Diagnostic message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IDiagnostic, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Diagnostic message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Diagnostic.verify|verify} messages.
+ * @param message Diagnostic message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IDiagnostic, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Diagnostic message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Diagnostic
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.Diagnostic;
+
+ /**
+ * Decodes a Diagnostic message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Diagnostic
+ * @throws {Error} If the payload 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.servicemanagement.v1.Diagnostic;
+
+ /**
+ * Verifies a Diagnostic message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Diagnostic message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Diagnostic
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.Diagnostic;
+
+ /**
+ * Creates a plain object from a Diagnostic message. Also converts values to other types if specified.
+ * @param message Diagnostic
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.Diagnostic, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Diagnostic to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Diagnostic
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Diagnostic {
+
+ /** Kind enum. */
+ enum Kind {
+ WARNING = 0,
+ ERROR = 1
+ }
+ }
+
+ /** Properties of a ConfigSource. */
+ interface IConfigSource {
+
+ /** ConfigSource id */
+ id?: (string|null);
+
+ /** ConfigSource files */
+ files?: (google.api.servicemanagement.v1.IConfigFile[]|null);
+ }
+
+ /** Represents a ConfigSource. */
+ class ConfigSource implements IConfigSource {
+
+ /**
+ * Constructs a new ConfigSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IConfigSource);
+
+ /** ConfigSource id. */
+ public id: string;
+
+ /** ConfigSource files. */
+ public files: google.api.servicemanagement.v1.IConfigFile[];
+
+ /**
+ * Creates a new ConfigSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfigSource instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IConfigSource): google.api.servicemanagement.v1.ConfigSource;
+
+ /**
+ * Encodes the specified ConfigSource message. Does not implicitly {@link google.api.servicemanagement.v1.ConfigSource.verify|verify} messages.
+ * @param message ConfigSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IConfigSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfigSource message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ConfigSource.verify|verify} messages.
+ * @param message ConfigSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IConfigSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfigSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfigSource
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ConfigSource;
+
+ /**
+ * Decodes a ConfigSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfigSource
+ * @throws {Error} If the payload 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.servicemanagement.v1.ConfigSource;
+
+ /**
+ * Verifies a ConfigSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfigSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfigSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ConfigSource;
+
+ /**
+ * Creates a plain object from a ConfigSource message. Also converts values to other types if specified.
+ * @param message ConfigSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ConfigSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfigSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfigSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConfigFile. */
+ interface IConfigFile {
+
+ /** ConfigFile filePath */
+ filePath?: (string|null);
+
+ /** ConfigFile fileContents */
+ fileContents?: (Uint8Array|string|null);
+
+ /** ConfigFile fileType */
+ fileType?: (google.api.servicemanagement.v1.ConfigFile.FileType|keyof typeof google.api.servicemanagement.v1.ConfigFile.FileType|null);
+ }
+
+ /** Represents a ConfigFile. */
+ class ConfigFile implements IConfigFile {
+
+ /**
+ * Constructs a new ConfigFile.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IConfigFile);
+
+ /** ConfigFile filePath. */
+ public filePath: string;
+
+ /** ConfigFile fileContents. */
+ public fileContents: (Uint8Array|string);
+
+ /** ConfigFile fileType. */
+ public fileType: (google.api.servicemanagement.v1.ConfigFile.FileType|keyof typeof google.api.servicemanagement.v1.ConfigFile.FileType);
+
+ /**
+ * Creates a new ConfigFile instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfigFile instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IConfigFile): google.api.servicemanagement.v1.ConfigFile;
+
+ /**
+ * Encodes the specified ConfigFile message. Does not implicitly {@link google.api.servicemanagement.v1.ConfigFile.verify|verify} messages.
+ * @param message ConfigFile message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IConfigFile, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfigFile message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ConfigFile.verify|verify} messages.
+ * @param message ConfigFile message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IConfigFile, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfigFile message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfigFile
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ConfigFile;
+
+ /**
+ * Decodes a ConfigFile message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfigFile
+ * @throws {Error} If the payload 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.servicemanagement.v1.ConfigFile;
+
+ /**
+ * Verifies a ConfigFile message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfigFile message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfigFile
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ConfigFile;
+
+ /**
+ * Creates a plain object from a ConfigFile message. Also converts values to other types if specified.
+ * @param message ConfigFile
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ConfigFile, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfigFile to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfigFile
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConfigFile {
+
+ /** FileType enum. */
+ enum FileType {
+ FILE_TYPE_UNSPECIFIED = 0,
+ SERVICE_CONFIG_YAML = 1,
+ OPEN_API_JSON = 2,
+ OPEN_API_YAML = 3,
+ FILE_DESCRIPTOR_SET_PROTO = 4,
+ PROTO_FILE = 6
+ }
+ }
+
+ /** Properties of a ConfigRef. */
+ interface IConfigRef {
+
+ /** ConfigRef name */
+ name?: (string|null);
+ }
+
+ /** Represents a ConfigRef. */
+ class ConfigRef implements IConfigRef {
+
+ /**
+ * Constructs a new ConfigRef.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IConfigRef);
+
+ /** ConfigRef name. */
+ public name: string;
+
+ /**
+ * Creates a new ConfigRef instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfigRef instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IConfigRef): google.api.servicemanagement.v1.ConfigRef;
+
+ /**
+ * Encodes the specified ConfigRef message. Does not implicitly {@link google.api.servicemanagement.v1.ConfigRef.verify|verify} messages.
+ * @param message ConfigRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IConfigRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfigRef message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ConfigRef.verify|verify} messages.
+ * @param message ConfigRef message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IConfigRef, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfigRef message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfigRef
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ConfigRef;
+
+ /**
+ * Decodes a ConfigRef message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfigRef
+ * @throws {Error} If the payload 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.servicemanagement.v1.ConfigRef;
+
+ /**
+ * Verifies a ConfigRef message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfigRef message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfigRef
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ConfigRef;
+
+ /**
+ * Creates a plain object from a ConfigRef message. Also converts values to other types if specified.
+ * @param message ConfigRef
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ConfigRef, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfigRef to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfigRef
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ChangeReport. */
+ interface IChangeReport {
+
+ /** ChangeReport configChanges */
+ configChanges?: (google.api.IConfigChange[]|null);
+ }
+
+ /** Represents a ChangeReport. */
+ class ChangeReport implements IChangeReport {
+
+ /**
+ * Constructs a new ChangeReport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IChangeReport);
+
+ /** ChangeReport configChanges. */
+ public configChanges: google.api.IConfigChange[];
+
+ /**
+ * Creates a new ChangeReport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ChangeReport instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IChangeReport): google.api.servicemanagement.v1.ChangeReport;
+
+ /**
+ * Encodes the specified ChangeReport message. Does not implicitly {@link google.api.servicemanagement.v1.ChangeReport.verify|verify} messages.
+ * @param message ChangeReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IChangeReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ChangeReport message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ChangeReport.verify|verify} messages.
+ * @param message ChangeReport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IChangeReport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ChangeReport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ChangeReport
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ChangeReport;
+
+ /**
+ * Decodes a ChangeReport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ChangeReport
+ * @throws {Error} If the payload 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.servicemanagement.v1.ChangeReport;
+
+ /**
+ * Verifies a ChangeReport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ChangeReport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ChangeReport
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ChangeReport;
+
+ /**
+ * Creates a plain object from a ChangeReport message. Also converts values to other types if specified.
+ * @param message ChangeReport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ChangeReport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ChangeReport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ChangeReport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Rollout. */
+ interface IRollout {
+
+ /** Rollout rolloutId */
+ rolloutId?: (string|null);
+
+ /** Rollout createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Rollout createdBy */
+ createdBy?: (string|null);
+
+ /** Rollout status */
+ status?: (google.api.servicemanagement.v1.Rollout.RolloutStatus|keyof typeof google.api.servicemanagement.v1.Rollout.RolloutStatus|null);
+
+ /** Rollout trafficPercentStrategy */
+ trafficPercentStrategy?: (google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy|null);
+
+ /** Rollout deleteServiceStrategy */
+ deleteServiceStrategy?: (google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy|null);
+
+ /** Rollout serviceName */
+ serviceName?: (string|null);
+ }
+
+ /** Represents a Rollout. */
+ class Rollout implements IRollout {
+
+ /**
+ * Constructs a new Rollout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IRollout);
+
+ /** Rollout rolloutId. */
+ public rolloutId: string;
+
+ /** Rollout createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Rollout createdBy. */
+ public createdBy: string;
+
+ /** Rollout status. */
+ public status: (google.api.servicemanagement.v1.Rollout.RolloutStatus|keyof typeof google.api.servicemanagement.v1.Rollout.RolloutStatus);
+
+ /** Rollout trafficPercentStrategy. */
+ public trafficPercentStrategy?: (google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy|null);
+
+ /** Rollout deleteServiceStrategy. */
+ public deleteServiceStrategy?: (google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy|null);
+
+ /** Rollout serviceName. */
+ public serviceName: string;
+
+ /** Rollout strategy. */
+ public strategy?: ("trafficPercentStrategy"|"deleteServiceStrategy");
+
+ /**
+ * Creates a new Rollout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Rollout instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IRollout): google.api.servicemanagement.v1.Rollout;
+
+ /**
+ * Encodes the specified Rollout message. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.verify|verify} messages.
+ * @param message Rollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Rollout message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.verify|verify} messages.
+ * @param message Rollout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Rollout
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.Rollout;
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Rollout
+ * @throws {Error} If the payload 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.servicemanagement.v1.Rollout;
+
+ /**
+ * Verifies a Rollout message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Rollout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Rollout
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.Rollout;
+
+ /**
+ * Creates a plain object from a Rollout message. Also converts values to other types if specified.
+ * @param message Rollout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.Rollout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Rollout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Rollout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Rollout {
+
+ /** Properties of a TrafficPercentStrategy. */
+ interface ITrafficPercentStrategy {
+
+ /** TrafficPercentStrategy percentages */
+ percentages?: ({ [k: string]: number }|null);
+ }
+
+ /** Represents a TrafficPercentStrategy. */
+ class TrafficPercentStrategy implements ITrafficPercentStrategy {
+
+ /**
+ * Constructs a new TrafficPercentStrategy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy);
+
+ /** TrafficPercentStrategy percentages. */
+ public percentages: { [k: string]: number };
+
+ /**
+ * Creates a new TrafficPercentStrategy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TrafficPercentStrategy instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy): google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy;
+
+ /**
+ * Encodes the specified TrafficPercentStrategy message. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.verify|verify} messages.
+ * @param message TrafficPercentStrategy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TrafficPercentStrategy message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.verify|verify} messages.
+ * @param message TrafficPercentStrategy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TrafficPercentStrategy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TrafficPercentStrategy
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.Rollout.TrafficPercentStrategy;
+
+ /**
+ * Decodes a TrafficPercentStrategy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TrafficPercentStrategy
+ * @throws {Error} If the payload 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.servicemanagement.v1.Rollout.TrafficPercentStrategy;
+
+ /**
+ * Verifies a TrafficPercentStrategy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TrafficPercentStrategy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TrafficPercentStrategy
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy;
+
+ /**
+ * Creates a plain object from a TrafficPercentStrategy message. Also converts values to other types if specified.
+ * @param message TrafficPercentStrategy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TrafficPercentStrategy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TrafficPercentStrategy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteServiceStrategy. */
+ interface IDeleteServiceStrategy {
+ }
+
+ /** Represents a DeleteServiceStrategy. */
+ class DeleteServiceStrategy implements IDeleteServiceStrategy {
+
+ /**
+ * Constructs a new DeleteServiceStrategy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy);
+
+ /**
+ * Creates a new DeleteServiceStrategy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteServiceStrategy instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy): google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy;
+
+ /**
+ * Encodes the specified DeleteServiceStrategy message. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.verify|verify} messages.
+ * @param message DeleteServiceStrategy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteServiceStrategy message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.verify|verify} messages.
+ * @param message DeleteServiceStrategy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteServiceStrategy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteServiceStrategy
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.Rollout.DeleteServiceStrategy;
+
+ /**
+ * Decodes a DeleteServiceStrategy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteServiceStrategy
+ * @throws {Error} If the payload 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.servicemanagement.v1.Rollout.DeleteServiceStrategy;
+
+ /**
+ * Verifies a DeleteServiceStrategy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteServiceStrategy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteServiceStrategy
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy;
+
+ /**
+ * Creates a plain object from a DeleteServiceStrategy message. Also converts values to other types if specified.
+ * @param message DeleteServiceStrategy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteServiceStrategy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteServiceStrategy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RolloutStatus enum. */
+ enum RolloutStatus {
+ ROLLOUT_STATUS_UNSPECIFIED = 0,
+ IN_PROGRESS = 1,
+ SUCCESS = 2,
+ CANCELLED = 3,
+ FAILED = 4,
+ PENDING = 5,
+ FAILED_ROLLED_BACK = 6
+ }
+ }
+
+ /** Represents a ServiceManager */
+ class ServiceManager extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ServiceManager 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 ServiceManager 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): ServiceManager;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListServicesResponse
+ */
+ public listServices(request: google.api.servicemanagement.v1.IListServicesRequest, callback: google.api.servicemanagement.v1.ServiceManager.ListServicesCallback): void;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @returns Promise
+ */
+ public listServices(request: google.api.servicemanagement.v1.IListServicesRequest): Promise;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ManagedService
+ */
+ public getService(request: google.api.servicemanagement.v1.IGetServiceRequest, callback: google.api.servicemanagement.v1.ServiceManager.GetServiceCallback): void;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @returns Promise
+ */
+ public getService(request: google.api.servicemanagement.v1.IGetServiceRequest): Promise;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createService(request: google.api.servicemanagement.v1.ICreateServiceRequest, callback: google.api.servicemanagement.v1.ServiceManager.CreateServiceCallback): void;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public createService(request: google.api.servicemanagement.v1.ICreateServiceRequest): Promise;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteService(request: google.api.servicemanagement.v1.IDeleteServiceRequest, callback: google.api.servicemanagement.v1.ServiceManager.DeleteServiceCallback): void;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteService(request: google.api.servicemanagement.v1.IDeleteServiceRequest): Promise;
+
+ /**
+ * Calls UndeleteService.
+ * @param request UndeleteServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public undeleteService(request: google.api.servicemanagement.v1.IUndeleteServiceRequest, callback: google.api.servicemanagement.v1.ServiceManager.UndeleteServiceCallback): void;
+
+ /**
+ * Calls UndeleteService.
+ * @param request UndeleteServiceRequest message or plain object
+ * @returns Promise
+ */
+ public undeleteService(request: google.api.servicemanagement.v1.IUndeleteServiceRequest): Promise;
+
+ /**
+ * Calls ListServiceConfigs.
+ * @param request ListServiceConfigsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListServiceConfigsResponse
+ */
+ public listServiceConfigs(request: google.api.servicemanagement.v1.IListServiceConfigsRequest, callback: google.api.servicemanagement.v1.ServiceManager.ListServiceConfigsCallback): void;
+
+ /**
+ * Calls ListServiceConfigs.
+ * @param request ListServiceConfigsRequest message or plain object
+ * @returns Promise
+ */
+ public listServiceConfigs(request: google.api.servicemanagement.v1.IListServiceConfigsRequest): Promise;
+
+ /**
+ * Calls GetServiceConfig.
+ * @param request GetServiceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Service
+ */
+ public getServiceConfig(request: google.api.servicemanagement.v1.IGetServiceConfigRequest, callback: google.api.servicemanagement.v1.ServiceManager.GetServiceConfigCallback): void;
+
+ /**
+ * Calls GetServiceConfig.
+ * @param request GetServiceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getServiceConfig(request: google.api.servicemanagement.v1.IGetServiceConfigRequest): Promise;
+
+ /**
+ * Calls CreateServiceConfig.
+ * @param request CreateServiceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Service
+ */
+ public createServiceConfig(request: google.api.servicemanagement.v1.ICreateServiceConfigRequest, callback: google.api.servicemanagement.v1.ServiceManager.CreateServiceConfigCallback): void;
+
+ /**
+ * Calls CreateServiceConfig.
+ * @param request CreateServiceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public createServiceConfig(request: google.api.servicemanagement.v1.ICreateServiceConfigRequest): Promise;
+
+ /**
+ * Calls SubmitConfigSource.
+ * @param request SubmitConfigSourceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public submitConfigSource(request: google.api.servicemanagement.v1.ISubmitConfigSourceRequest, callback: google.api.servicemanagement.v1.ServiceManager.SubmitConfigSourceCallback): void;
+
+ /**
+ * Calls SubmitConfigSource.
+ * @param request SubmitConfigSourceRequest message or plain object
+ * @returns Promise
+ */
+ public submitConfigSource(request: google.api.servicemanagement.v1.ISubmitConfigSourceRequest): Promise;
+
+ /**
+ * Calls ListServiceRollouts.
+ * @param request ListServiceRolloutsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListServiceRolloutsResponse
+ */
+ public listServiceRollouts(request: google.api.servicemanagement.v1.IListServiceRolloutsRequest, callback: google.api.servicemanagement.v1.ServiceManager.ListServiceRolloutsCallback): void;
+
+ /**
+ * Calls ListServiceRollouts.
+ * @param request ListServiceRolloutsRequest message or plain object
+ * @returns Promise
+ */
+ public listServiceRollouts(request: google.api.servicemanagement.v1.IListServiceRolloutsRequest): Promise;
+
+ /**
+ * Calls GetServiceRollout.
+ * @param request GetServiceRolloutRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Rollout
+ */
+ public getServiceRollout(request: google.api.servicemanagement.v1.IGetServiceRolloutRequest, callback: google.api.servicemanagement.v1.ServiceManager.GetServiceRolloutCallback): void;
+
+ /**
+ * Calls GetServiceRollout.
+ * @param request GetServiceRolloutRequest message or plain object
+ * @returns Promise
+ */
+ public getServiceRollout(request: google.api.servicemanagement.v1.IGetServiceRolloutRequest): Promise;
+
+ /**
+ * Calls CreateServiceRollout.
+ * @param request CreateServiceRolloutRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createServiceRollout(request: google.api.servicemanagement.v1.ICreateServiceRolloutRequest, callback: google.api.servicemanagement.v1.ServiceManager.CreateServiceRolloutCallback): void;
+
+ /**
+ * Calls CreateServiceRollout.
+ * @param request CreateServiceRolloutRequest message or plain object
+ * @returns Promise
+ */
+ public createServiceRollout(request: google.api.servicemanagement.v1.ICreateServiceRolloutRequest): Promise;
+
+ /**
+ * Calls GenerateConfigReport.
+ * @param request GenerateConfigReportRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateConfigReportResponse
+ */
+ public generateConfigReport(request: google.api.servicemanagement.v1.IGenerateConfigReportRequest, callback: google.api.servicemanagement.v1.ServiceManager.GenerateConfigReportCallback): void;
+
+ /**
+ * Calls GenerateConfigReport.
+ * @param request GenerateConfigReportRequest message or plain object
+ * @returns Promise
+ */
+ public generateConfigReport(request: google.api.servicemanagement.v1.IGenerateConfigReportRequest): Promise;
+ }
+
+ namespace ServiceManager {
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|listServices}.
+ * @param error Error, if any
+ * @param [response] ListServicesResponse
+ */
+ type ListServicesCallback = (error: (Error|null), response?: google.api.servicemanagement.v1.ListServicesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|getService}.
+ * @param error Error, if any
+ * @param [response] ManagedService
+ */
+ type GetServiceCallback = (error: (Error|null), response?: google.api.servicemanagement.v1.ManagedService) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|createService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|deleteService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|undeleteService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UndeleteServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|listServiceConfigs}.
+ * @param error Error, if any
+ * @param [response] ListServiceConfigsResponse
+ */
+ type ListServiceConfigsCallback = (error: (Error|null), response?: google.api.servicemanagement.v1.ListServiceConfigsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|getServiceConfig}.
+ * @param error Error, if any
+ * @param [response] Service
+ */
+ type GetServiceConfigCallback = (error: (Error|null), response?: google.api.Service) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|createServiceConfig}.
+ * @param error Error, if any
+ * @param [response] Service
+ */
+ type CreateServiceConfigCallback = (error: (Error|null), response?: google.api.Service) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|submitConfigSource}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type SubmitConfigSourceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|listServiceRollouts}.
+ * @param error Error, if any
+ * @param [response] ListServiceRolloutsResponse
+ */
+ type ListServiceRolloutsCallback = (error: (Error|null), response?: google.api.servicemanagement.v1.ListServiceRolloutsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|getServiceRollout}.
+ * @param error Error, if any
+ * @param [response] Rollout
+ */
+ type GetServiceRolloutCallback = (error: (Error|null), response?: google.api.servicemanagement.v1.Rollout) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|createServiceRollout}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateServiceRolloutCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|generateConfigReport}.
+ * @param error Error, if any
+ * @param [response] GenerateConfigReportResponse
+ */
+ type GenerateConfigReportCallback = (error: (Error|null), response?: google.api.servicemanagement.v1.GenerateConfigReportResponse) => void;
+ }
+
+ /** Properties of a ListServicesRequest. */
+ interface IListServicesRequest {
+
+ /** ListServicesRequest producerProjectId */
+ producerProjectId?: (string|null);
+
+ /** ListServicesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListServicesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListServicesRequest consumerId */
+ consumerId?: (string|null);
+ }
+
+ /** Represents a ListServicesRequest. */
+ class ListServicesRequest implements IListServicesRequest {
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IListServicesRequest);
+
+ /** ListServicesRequest producerProjectId. */
+ public producerProjectId: string;
+
+ /** ListServicesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListServicesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListServicesRequest consumerId. */
+ public consumerId: string;
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IListServicesRequest): google.api.servicemanagement.v1.ListServicesRequest;
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ListServicesRequest;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.ListServicesRequest;
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ListServicesRequest;
+
+ /**
+ * Creates a plain object from a ListServicesRequest message. Also converts values to other types if specified.
+ * @param message ListServicesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ListServicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServicesResponse. */
+ interface IListServicesResponse {
+
+ /** ListServicesResponse services */
+ services?: (google.api.servicemanagement.v1.IManagedService[]|null);
+
+ /** ListServicesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListServicesResponse. */
+ class ListServicesResponse implements IListServicesResponse {
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IListServicesResponse);
+
+ /** ListServicesResponse services. */
+ public services: google.api.servicemanagement.v1.IManagedService[];
+
+ /** ListServicesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesResponse instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IListServicesResponse): google.api.servicemanagement.v1.ListServicesResponse;
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ListServicesResponse;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload 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.servicemanagement.v1.ListServicesResponse;
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ListServicesResponse;
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @param message ListServicesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ListServicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceRequest. */
+ interface IGetServiceRequest {
+
+ /** GetServiceRequest serviceName */
+ serviceName?: (string|null);
+ }
+
+ /** Represents a GetServiceRequest. */
+ class GetServiceRequest implements IGetServiceRequest {
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IGetServiceRequest);
+
+ /** GetServiceRequest serviceName. */
+ public serviceName: string;
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IGetServiceRequest): google.api.servicemanagement.v1.GetServiceRequest;
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.GetServiceRequest;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.GetServiceRequest;
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.GetServiceRequest;
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @param message GetServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.GetServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateServiceRequest. */
+ interface ICreateServiceRequest {
+
+ /** CreateServiceRequest service */
+ service?: (google.api.servicemanagement.v1.IManagedService|null);
+ }
+
+ /** Represents a CreateServiceRequest. */
+ class CreateServiceRequest implements ICreateServiceRequest {
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.ICreateServiceRequest);
+
+ /** CreateServiceRequest service. */
+ public service?: (google.api.servicemanagement.v1.IManagedService|null);
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateServiceRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.ICreateServiceRequest): google.api.servicemanagement.v1.CreateServiceRequest;
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.CreateServiceRequest;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.CreateServiceRequest;
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.CreateServiceRequest;
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @param message CreateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.CreateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteServiceRequest. */
+ interface IDeleteServiceRequest {
+
+ /** DeleteServiceRequest serviceName */
+ serviceName?: (string|null);
+ }
+
+ /** Represents a DeleteServiceRequest. */
+ class DeleteServiceRequest implements IDeleteServiceRequest {
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IDeleteServiceRequest);
+
+ /** DeleteServiceRequest serviceName. */
+ public serviceName: string;
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteServiceRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IDeleteServiceRequest): google.api.servicemanagement.v1.DeleteServiceRequest;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.DeleteServiceRequest;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.DeleteServiceRequest;
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.DeleteServiceRequest;
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @param message DeleteServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.DeleteServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeleteServiceRequest. */
+ interface IUndeleteServiceRequest {
+
+ /** UndeleteServiceRequest serviceName */
+ serviceName?: (string|null);
+ }
+
+ /** Represents an UndeleteServiceRequest. */
+ class UndeleteServiceRequest implements IUndeleteServiceRequest {
+
+ /**
+ * Constructs a new UndeleteServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IUndeleteServiceRequest);
+
+ /** UndeleteServiceRequest serviceName. */
+ public serviceName: string;
+
+ /**
+ * Creates a new UndeleteServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeleteServiceRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IUndeleteServiceRequest): google.api.servicemanagement.v1.UndeleteServiceRequest;
+
+ /**
+ * Encodes the specified UndeleteServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceRequest.verify|verify} messages.
+ * @param message UndeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IUndeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeleteServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceRequest.verify|verify} messages.
+ * @param message UndeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IUndeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeleteServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeleteServiceRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.UndeleteServiceRequest;
+
+ /**
+ * Decodes an UndeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeleteServiceRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.UndeleteServiceRequest;
+
+ /**
+ * Verifies an UndeleteServiceRequest message.
+ * @param message Plain 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 UndeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeleteServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.UndeleteServiceRequest;
+
+ /**
+ * Creates a plain object from an UndeleteServiceRequest message. Also converts values to other types if specified.
+ * @param message UndeleteServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.UndeleteServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeleteServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeleteServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UndeleteServiceResponse. */
+ interface IUndeleteServiceResponse {
+
+ /** UndeleteServiceResponse service */
+ service?: (google.api.servicemanagement.v1.IManagedService|null);
+ }
+
+ /** Represents an UndeleteServiceResponse. */
+ class UndeleteServiceResponse implements IUndeleteServiceResponse {
+
+ /**
+ * Constructs a new UndeleteServiceResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IUndeleteServiceResponse);
+
+ /** UndeleteServiceResponse service. */
+ public service?: (google.api.servicemanagement.v1.IManagedService|null);
+
+ /**
+ * Creates a new UndeleteServiceResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UndeleteServiceResponse instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IUndeleteServiceResponse): google.api.servicemanagement.v1.UndeleteServiceResponse;
+
+ /**
+ * Encodes the specified UndeleteServiceResponse message. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceResponse.verify|verify} messages.
+ * @param message UndeleteServiceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IUndeleteServiceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UndeleteServiceResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceResponse.verify|verify} messages.
+ * @param message UndeleteServiceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IUndeleteServiceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UndeleteServiceResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UndeleteServiceResponse
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.UndeleteServiceResponse;
+
+ /**
+ * Decodes an UndeleteServiceResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UndeleteServiceResponse
+ * @throws {Error} If the payload 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.servicemanagement.v1.UndeleteServiceResponse;
+
+ /**
+ * Verifies an UndeleteServiceResponse message.
+ * @param message Plain 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 UndeleteServiceResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UndeleteServiceResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.UndeleteServiceResponse;
+
+ /**
+ * Creates a plain object from an UndeleteServiceResponse message. Also converts values to other types if specified.
+ * @param message UndeleteServiceResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.UndeleteServiceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UndeleteServiceResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UndeleteServiceResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceConfigRequest. */
+ interface IGetServiceConfigRequest {
+
+ /** GetServiceConfigRequest serviceName */
+ serviceName?: (string|null);
+
+ /** GetServiceConfigRequest configId */
+ configId?: (string|null);
+
+ /** GetServiceConfigRequest view */
+ view?: (google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView|keyof typeof google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView|null);
+ }
+
+ /** Represents a GetServiceConfigRequest. */
+ class GetServiceConfigRequest implements IGetServiceConfigRequest {
+
+ /**
+ * Constructs a new GetServiceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IGetServiceConfigRequest);
+
+ /** GetServiceConfigRequest serviceName. */
+ public serviceName: string;
+
+ /** GetServiceConfigRequest configId. */
+ public configId: string;
+
+ /** GetServiceConfigRequest view. */
+ public view: (google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView|keyof typeof google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView);
+
+ /**
+ * Creates a new GetServiceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceConfigRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IGetServiceConfigRequest): google.api.servicemanagement.v1.GetServiceConfigRequest;
+
+ /**
+ * Encodes the specified GetServiceConfigRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceConfigRequest.verify|verify} messages.
+ * @param message GetServiceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IGetServiceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceConfigRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceConfigRequest.verify|verify} messages.
+ * @param message GetServiceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IGetServiceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceConfigRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.GetServiceConfigRequest;
+
+ /**
+ * Decodes a GetServiceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceConfigRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.GetServiceConfigRequest;
+
+ /**
+ * Verifies a GetServiceConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetServiceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.GetServiceConfigRequest;
+
+ /**
+ * Creates a plain object from a GetServiceConfigRequest message. Also converts values to other types if specified.
+ * @param message GetServiceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.GetServiceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GetServiceConfigRequest {
+
+ /** ConfigView enum. */
+ enum ConfigView {
+ BASIC = 0,
+ FULL = 1
+ }
+ }
+
+ /** Properties of a ListServiceConfigsRequest. */
+ interface IListServiceConfigsRequest {
+
+ /** ListServiceConfigsRequest serviceName */
+ serviceName?: (string|null);
+
+ /** ListServiceConfigsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListServiceConfigsRequest pageSize */
+ pageSize?: (number|null);
+ }
+
+ /** Represents a ListServiceConfigsRequest. */
+ class ListServiceConfigsRequest implements IListServiceConfigsRequest {
+
+ /**
+ * Constructs a new ListServiceConfigsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IListServiceConfigsRequest);
+
+ /** ListServiceConfigsRequest serviceName. */
+ public serviceName: string;
+
+ /** ListServiceConfigsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListServiceConfigsRequest pageSize. */
+ public pageSize: number;
+
+ /**
+ * Creates a new ListServiceConfigsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServiceConfigsRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IListServiceConfigsRequest): google.api.servicemanagement.v1.ListServiceConfigsRequest;
+
+ /**
+ * Encodes the specified ListServiceConfigsRequest message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsRequest.verify|verify} messages.
+ * @param message ListServiceConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IListServiceConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServiceConfigsRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsRequest.verify|verify} messages.
+ * @param message ListServiceConfigsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IListServiceConfigsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServiceConfigsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServiceConfigsRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ListServiceConfigsRequest;
+
+ /**
+ * Decodes a ListServiceConfigsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServiceConfigsRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.ListServiceConfigsRequest;
+
+ /**
+ * Verifies a ListServiceConfigsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServiceConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServiceConfigsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ListServiceConfigsRequest;
+
+ /**
+ * Creates a plain object from a ListServiceConfigsRequest message. Also converts values to other types if specified.
+ * @param message ListServiceConfigsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ListServiceConfigsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServiceConfigsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServiceConfigsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServiceConfigsResponse. */
+ interface IListServiceConfigsResponse {
+
+ /** ListServiceConfigsResponse serviceConfigs */
+ serviceConfigs?: (google.api.IService[]|null);
+
+ /** ListServiceConfigsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListServiceConfigsResponse. */
+ class ListServiceConfigsResponse implements IListServiceConfigsResponse {
+
+ /**
+ * Constructs a new ListServiceConfigsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IListServiceConfigsResponse);
+
+ /** ListServiceConfigsResponse serviceConfigs. */
+ public serviceConfigs: google.api.IService[];
+
+ /** ListServiceConfigsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListServiceConfigsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServiceConfigsResponse instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IListServiceConfigsResponse): google.api.servicemanagement.v1.ListServiceConfigsResponse;
+
+ /**
+ * Encodes the specified ListServiceConfigsResponse message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsResponse.verify|verify} messages.
+ * @param message ListServiceConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IListServiceConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServiceConfigsResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsResponse.verify|verify} messages.
+ * @param message ListServiceConfigsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IListServiceConfigsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServiceConfigsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServiceConfigsResponse
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ListServiceConfigsResponse;
+
+ /**
+ * Decodes a ListServiceConfigsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServiceConfigsResponse
+ * @throws {Error} If the payload 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.servicemanagement.v1.ListServiceConfigsResponse;
+
+ /**
+ * Verifies a ListServiceConfigsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServiceConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServiceConfigsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ListServiceConfigsResponse;
+
+ /**
+ * Creates a plain object from a ListServiceConfigsResponse message. Also converts values to other types if specified.
+ * @param message ListServiceConfigsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ListServiceConfigsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServiceConfigsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServiceConfigsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateServiceConfigRequest. */
+ interface ICreateServiceConfigRequest {
+
+ /** CreateServiceConfigRequest serviceName */
+ serviceName?: (string|null);
+
+ /** CreateServiceConfigRequest serviceConfig */
+ serviceConfig?: (google.api.IService|null);
+ }
+
+ /** Represents a CreateServiceConfigRequest. */
+ class CreateServiceConfigRequest implements ICreateServiceConfigRequest {
+
+ /**
+ * Constructs a new CreateServiceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.ICreateServiceConfigRequest);
+
+ /** CreateServiceConfigRequest serviceName. */
+ public serviceName: string;
+
+ /** CreateServiceConfigRequest serviceConfig. */
+ public serviceConfig?: (google.api.IService|null);
+
+ /**
+ * Creates a new CreateServiceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateServiceConfigRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.ICreateServiceConfigRequest): google.api.servicemanagement.v1.CreateServiceConfigRequest;
+
+ /**
+ * Encodes the specified CreateServiceConfigRequest message. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceConfigRequest.verify|verify} messages.
+ * @param message CreateServiceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.ICreateServiceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateServiceConfigRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceConfigRequest.verify|verify} messages.
+ * @param message CreateServiceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.ICreateServiceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateServiceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateServiceConfigRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.CreateServiceConfigRequest;
+
+ /**
+ * Decodes a CreateServiceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateServiceConfigRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.CreateServiceConfigRequest;
+
+ /**
+ * Verifies a CreateServiceConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateServiceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateServiceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.CreateServiceConfigRequest;
+
+ /**
+ * Creates a plain object from a CreateServiceConfigRequest message. Also converts values to other types if specified.
+ * @param message CreateServiceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.CreateServiceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateServiceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateServiceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SubmitConfigSourceRequest. */
+ interface ISubmitConfigSourceRequest {
+
+ /** SubmitConfigSourceRequest serviceName */
+ serviceName?: (string|null);
+
+ /** SubmitConfigSourceRequest configSource */
+ configSource?: (google.api.servicemanagement.v1.IConfigSource|null);
+
+ /** SubmitConfigSourceRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a SubmitConfigSourceRequest. */
+ class SubmitConfigSourceRequest implements ISubmitConfigSourceRequest {
+
+ /**
+ * Constructs a new SubmitConfigSourceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.ISubmitConfigSourceRequest);
+
+ /** SubmitConfigSourceRequest serviceName. */
+ public serviceName: string;
+
+ /** SubmitConfigSourceRequest configSource. */
+ public configSource?: (google.api.servicemanagement.v1.IConfigSource|null);
+
+ /** SubmitConfigSourceRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new SubmitConfigSourceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SubmitConfigSourceRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.ISubmitConfigSourceRequest): google.api.servicemanagement.v1.SubmitConfigSourceRequest;
+
+ /**
+ * Encodes the specified SubmitConfigSourceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceRequest.verify|verify} messages.
+ * @param message SubmitConfigSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.ISubmitConfigSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SubmitConfigSourceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceRequest.verify|verify} messages.
+ * @param message SubmitConfigSourceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.ISubmitConfigSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SubmitConfigSourceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SubmitConfigSourceRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.SubmitConfigSourceRequest;
+
+ /**
+ * Decodes a SubmitConfigSourceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SubmitConfigSourceRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.SubmitConfigSourceRequest;
+
+ /**
+ * Verifies a SubmitConfigSourceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SubmitConfigSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SubmitConfigSourceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.SubmitConfigSourceRequest;
+
+ /**
+ * Creates a plain object from a SubmitConfigSourceRequest message. Also converts values to other types if specified.
+ * @param message SubmitConfigSourceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.SubmitConfigSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SubmitConfigSourceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SubmitConfigSourceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SubmitConfigSourceResponse. */
+ interface ISubmitConfigSourceResponse {
+
+ /** SubmitConfigSourceResponse serviceConfig */
+ serviceConfig?: (google.api.IService|null);
+ }
+
+ /** Represents a SubmitConfigSourceResponse. */
+ class SubmitConfigSourceResponse implements ISubmitConfigSourceResponse {
+
+ /**
+ * Constructs a new SubmitConfigSourceResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.ISubmitConfigSourceResponse);
+
+ /** SubmitConfigSourceResponse serviceConfig. */
+ public serviceConfig?: (google.api.IService|null);
+
+ /**
+ * Creates a new SubmitConfigSourceResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SubmitConfigSourceResponse instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.ISubmitConfigSourceResponse): google.api.servicemanagement.v1.SubmitConfigSourceResponse;
+
+ /**
+ * Encodes the specified SubmitConfigSourceResponse message. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceResponse.verify|verify} messages.
+ * @param message SubmitConfigSourceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.ISubmitConfigSourceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SubmitConfigSourceResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceResponse.verify|verify} messages.
+ * @param message SubmitConfigSourceResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.ISubmitConfigSourceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SubmitConfigSourceResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SubmitConfigSourceResponse
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.SubmitConfigSourceResponse;
+
+ /**
+ * Decodes a SubmitConfigSourceResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SubmitConfigSourceResponse
+ * @throws {Error} If the payload 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.servicemanagement.v1.SubmitConfigSourceResponse;
+
+ /**
+ * Verifies a SubmitConfigSourceResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SubmitConfigSourceResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SubmitConfigSourceResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.SubmitConfigSourceResponse;
+
+ /**
+ * Creates a plain object from a SubmitConfigSourceResponse message. Also converts values to other types if specified.
+ * @param message SubmitConfigSourceResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.SubmitConfigSourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SubmitConfigSourceResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SubmitConfigSourceResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateServiceRolloutRequest. */
+ interface ICreateServiceRolloutRequest {
+
+ /** CreateServiceRolloutRequest serviceName */
+ serviceName?: (string|null);
+
+ /** CreateServiceRolloutRequest rollout */
+ rollout?: (google.api.servicemanagement.v1.IRollout|null);
+ }
+
+ /** Represents a CreateServiceRolloutRequest. */
+ class CreateServiceRolloutRequest implements ICreateServiceRolloutRequest {
+
+ /**
+ * Constructs a new CreateServiceRolloutRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.ICreateServiceRolloutRequest);
+
+ /** CreateServiceRolloutRequest serviceName. */
+ public serviceName: string;
+
+ /** CreateServiceRolloutRequest rollout. */
+ public rollout?: (google.api.servicemanagement.v1.IRollout|null);
+
+ /**
+ * Creates a new CreateServiceRolloutRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateServiceRolloutRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.ICreateServiceRolloutRequest): google.api.servicemanagement.v1.CreateServiceRolloutRequest;
+
+ /**
+ * Encodes the specified CreateServiceRolloutRequest message. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRolloutRequest.verify|verify} messages.
+ * @param message CreateServiceRolloutRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.ICreateServiceRolloutRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateServiceRolloutRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRolloutRequest.verify|verify} messages.
+ * @param message CreateServiceRolloutRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.ICreateServiceRolloutRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateServiceRolloutRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateServiceRolloutRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.CreateServiceRolloutRequest;
+
+ /**
+ * Decodes a CreateServiceRolloutRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateServiceRolloutRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.CreateServiceRolloutRequest;
+
+ /**
+ * Verifies a CreateServiceRolloutRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateServiceRolloutRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateServiceRolloutRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.CreateServiceRolloutRequest;
+
+ /**
+ * Creates a plain object from a CreateServiceRolloutRequest message. Also converts values to other types if specified.
+ * @param message CreateServiceRolloutRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.CreateServiceRolloutRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateServiceRolloutRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateServiceRolloutRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServiceRolloutsRequest. */
+ interface IListServiceRolloutsRequest {
+
+ /** ListServiceRolloutsRequest serviceName */
+ serviceName?: (string|null);
+
+ /** ListServiceRolloutsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListServiceRolloutsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListServiceRolloutsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListServiceRolloutsRequest. */
+ class ListServiceRolloutsRequest implements IListServiceRolloutsRequest {
+
+ /**
+ * Constructs a new ListServiceRolloutsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IListServiceRolloutsRequest);
+
+ /** ListServiceRolloutsRequest serviceName. */
+ public serviceName: string;
+
+ /** ListServiceRolloutsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListServiceRolloutsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListServiceRolloutsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListServiceRolloutsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServiceRolloutsRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IListServiceRolloutsRequest): google.api.servicemanagement.v1.ListServiceRolloutsRequest;
+
+ /**
+ * Encodes the specified ListServiceRolloutsRequest message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsRequest.verify|verify} messages.
+ * @param message ListServiceRolloutsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IListServiceRolloutsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServiceRolloutsRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsRequest.verify|verify} messages.
+ * @param message ListServiceRolloutsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IListServiceRolloutsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServiceRolloutsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServiceRolloutsRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ListServiceRolloutsRequest;
+
+ /**
+ * Decodes a ListServiceRolloutsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServiceRolloutsRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.ListServiceRolloutsRequest;
+
+ /**
+ * Verifies a ListServiceRolloutsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServiceRolloutsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServiceRolloutsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ListServiceRolloutsRequest;
+
+ /**
+ * Creates a plain object from a ListServiceRolloutsRequest message. Also converts values to other types if specified.
+ * @param message ListServiceRolloutsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ListServiceRolloutsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServiceRolloutsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServiceRolloutsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServiceRolloutsResponse. */
+ interface IListServiceRolloutsResponse {
+
+ /** ListServiceRolloutsResponse rollouts */
+ rollouts?: (google.api.servicemanagement.v1.IRollout[]|null);
+
+ /** ListServiceRolloutsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListServiceRolloutsResponse. */
+ class ListServiceRolloutsResponse implements IListServiceRolloutsResponse {
+
+ /**
+ * Constructs a new ListServiceRolloutsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IListServiceRolloutsResponse);
+
+ /** ListServiceRolloutsResponse rollouts. */
+ public rollouts: google.api.servicemanagement.v1.IRollout[];
+
+ /** ListServiceRolloutsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListServiceRolloutsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServiceRolloutsResponse instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IListServiceRolloutsResponse): google.api.servicemanagement.v1.ListServiceRolloutsResponse;
+
+ /**
+ * Encodes the specified ListServiceRolloutsResponse message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsResponse.verify|verify} messages.
+ * @param message ListServiceRolloutsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IListServiceRolloutsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServiceRolloutsResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsResponse.verify|verify} messages.
+ * @param message ListServiceRolloutsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IListServiceRolloutsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServiceRolloutsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServiceRolloutsResponse
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.ListServiceRolloutsResponse;
+
+ /**
+ * Decodes a ListServiceRolloutsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServiceRolloutsResponse
+ * @throws {Error} If the payload 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.servicemanagement.v1.ListServiceRolloutsResponse;
+
+ /**
+ * Verifies a ListServiceRolloutsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServiceRolloutsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServiceRolloutsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.ListServiceRolloutsResponse;
+
+ /**
+ * Creates a plain object from a ListServiceRolloutsResponse message. Also converts values to other types if specified.
+ * @param message ListServiceRolloutsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.ListServiceRolloutsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServiceRolloutsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServiceRolloutsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceRolloutRequest. */
+ interface IGetServiceRolloutRequest {
+
+ /** GetServiceRolloutRequest serviceName */
+ serviceName?: (string|null);
+
+ /** GetServiceRolloutRequest rolloutId */
+ rolloutId?: (string|null);
+ }
+
+ /** Represents a GetServiceRolloutRequest. */
+ class GetServiceRolloutRequest implements IGetServiceRolloutRequest {
+
+ /**
+ * Constructs a new GetServiceRolloutRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IGetServiceRolloutRequest);
+
+ /** GetServiceRolloutRequest serviceName. */
+ public serviceName: string;
+
+ /** GetServiceRolloutRequest rolloutId. */
+ public rolloutId: string;
+
+ /**
+ * Creates a new GetServiceRolloutRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceRolloutRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IGetServiceRolloutRequest): google.api.servicemanagement.v1.GetServiceRolloutRequest;
+
+ /**
+ * Encodes the specified GetServiceRolloutRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRolloutRequest.verify|verify} messages.
+ * @param message GetServiceRolloutRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IGetServiceRolloutRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceRolloutRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRolloutRequest.verify|verify} messages.
+ * @param message GetServiceRolloutRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IGetServiceRolloutRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceRolloutRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceRolloutRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.GetServiceRolloutRequest;
+
+ /**
+ * Decodes a GetServiceRolloutRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceRolloutRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.GetServiceRolloutRequest;
+
+ /**
+ * Verifies a GetServiceRolloutRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetServiceRolloutRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceRolloutRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.GetServiceRolloutRequest;
+
+ /**
+ * Creates a plain object from a GetServiceRolloutRequest message. Also converts values to other types if specified.
+ * @param message GetServiceRolloutRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.GetServiceRolloutRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceRolloutRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceRolloutRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateConfigReportRequest. */
+ interface IGenerateConfigReportRequest {
+
+ /** GenerateConfigReportRequest newConfig */
+ newConfig?: (google.protobuf.IAny|null);
+
+ /** GenerateConfigReportRequest oldConfig */
+ oldConfig?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents a GenerateConfigReportRequest. */
+ class GenerateConfigReportRequest implements IGenerateConfigReportRequest {
+
+ /**
+ * Constructs a new GenerateConfigReportRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IGenerateConfigReportRequest);
+
+ /** GenerateConfigReportRequest newConfig. */
+ public newConfig?: (google.protobuf.IAny|null);
+
+ /** GenerateConfigReportRequest oldConfig. */
+ public oldConfig?: (google.protobuf.IAny|null);
+
+ /**
+ * Creates a new GenerateConfigReportRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateConfigReportRequest instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IGenerateConfigReportRequest): google.api.servicemanagement.v1.GenerateConfigReportRequest;
+
+ /**
+ * Encodes the specified GenerateConfigReportRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportRequest.verify|verify} messages.
+ * @param message GenerateConfigReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IGenerateConfigReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateConfigReportRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportRequest.verify|verify} messages.
+ * @param message GenerateConfigReportRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IGenerateConfigReportRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateConfigReportRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateConfigReportRequest
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.GenerateConfigReportRequest;
+
+ /**
+ * Decodes a GenerateConfigReportRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateConfigReportRequest
+ * @throws {Error} If the payload 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.servicemanagement.v1.GenerateConfigReportRequest;
+
+ /**
+ * Verifies a GenerateConfigReportRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateConfigReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateConfigReportRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.GenerateConfigReportRequest;
+
+ /**
+ * Creates a plain object from a GenerateConfigReportRequest message. Also converts values to other types if specified.
+ * @param message GenerateConfigReportRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.GenerateConfigReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateConfigReportRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateConfigReportRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateConfigReportResponse. */
+ interface IGenerateConfigReportResponse {
+
+ /** GenerateConfigReportResponse serviceName */
+ serviceName?: (string|null);
+
+ /** GenerateConfigReportResponse id */
+ id?: (string|null);
+
+ /** GenerateConfigReportResponse changeReports */
+ changeReports?: (google.api.servicemanagement.v1.IChangeReport[]|null);
+
+ /** GenerateConfigReportResponse diagnostics */
+ diagnostics?: (google.api.servicemanagement.v1.IDiagnostic[]|null);
+ }
+
+ /** Represents a GenerateConfigReportResponse. */
+ class GenerateConfigReportResponse implements IGenerateConfigReportResponse {
+
+ /**
+ * Constructs a new GenerateConfigReportResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.servicemanagement.v1.IGenerateConfigReportResponse);
+
+ /** GenerateConfigReportResponse serviceName. */
+ public serviceName: string;
+
+ /** GenerateConfigReportResponse id. */
+ public id: string;
+
+ /** GenerateConfigReportResponse changeReports. */
+ public changeReports: google.api.servicemanagement.v1.IChangeReport[];
+
+ /** GenerateConfigReportResponse diagnostics. */
+ public diagnostics: google.api.servicemanagement.v1.IDiagnostic[];
+
+ /**
+ * Creates a new GenerateConfigReportResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateConfigReportResponse instance
+ */
+ public static create(properties?: google.api.servicemanagement.v1.IGenerateConfigReportResponse): google.api.servicemanagement.v1.GenerateConfigReportResponse;
+
+ /**
+ * Encodes the specified GenerateConfigReportResponse message. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportResponse.verify|verify} messages.
+ * @param message GenerateConfigReportResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.servicemanagement.v1.IGenerateConfigReportResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateConfigReportResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportResponse.verify|verify} messages.
+ * @param message GenerateConfigReportResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.servicemanagement.v1.IGenerateConfigReportResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateConfigReportResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateConfigReportResponse
+ * @throws {Error} If the payload is not 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.servicemanagement.v1.GenerateConfigReportResponse;
+
+ /**
+ * Decodes a GenerateConfigReportResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateConfigReportResponse
+ * @throws {Error} If the payload 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.servicemanagement.v1.GenerateConfigReportResponse;
+
+ /**
+ * Verifies a GenerateConfigReportResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateConfigReportResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateConfigReportResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.servicemanagement.v1.GenerateConfigReportResponse;
+
+ /**
+ * Creates a plain object from a GenerateConfigReportResponse message. Also converts values to other types if specified.
+ * @param message GenerateConfigReportResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.servicemanagement.v1.GenerateConfigReportResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateConfigReportResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateConfigReportResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a ConfigChange. */
+ interface IConfigChange {
+
+ /** ConfigChange element */
+ element?: (string|null);
+
+ /** ConfigChange oldValue */
+ oldValue?: (string|null);
+
+ /** ConfigChange newValue */
+ newValue?: (string|null);
+
+ /** ConfigChange changeType */
+ changeType?: (google.api.ChangeType|keyof typeof google.api.ChangeType|null);
+
+ /** ConfigChange advices */
+ advices?: (google.api.IAdvice[]|null);
+ }
+
+ /** Represents a ConfigChange. */
+ class ConfigChange implements IConfigChange {
+
+ /**
+ * Constructs a new ConfigChange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IConfigChange);
+
+ /** ConfigChange element. */
+ public element: string;
+
+ /** ConfigChange oldValue. */
+ public oldValue: string;
+
+ /** ConfigChange newValue. */
+ public newValue: string;
+
+ /** ConfigChange changeType. */
+ public changeType: (google.api.ChangeType|keyof typeof google.api.ChangeType);
+
+ /** ConfigChange advices. */
+ public advices: google.api.IAdvice[];
+
+ /**
+ * Creates a new ConfigChange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfigChange instance
+ */
+ public static create(properties?: google.api.IConfigChange): google.api.ConfigChange;
+
+ /**
+ * Encodes the specified ConfigChange message. Does not implicitly {@link google.api.ConfigChange.verify|verify} messages.
+ * @param message ConfigChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IConfigChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfigChange message, length delimited. Does not implicitly {@link google.api.ConfigChange.verify|verify} messages.
+ * @param message ConfigChange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IConfigChange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfigChange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfigChange
+ * @throws {Error} If the payload is not 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.ConfigChange;
+
+ /**
+ * Decodes a ConfigChange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfigChange
+ * @throws {Error} If the payload 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.ConfigChange;
+
+ /**
+ * Verifies a ConfigChange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfigChange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfigChange
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ConfigChange;
+
+ /**
+ * Creates a plain object from a ConfigChange message. Also converts values to other types if specified.
+ * @param message ConfigChange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ConfigChange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfigChange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfigChange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Advice. */
+ interface IAdvice {
+
+ /** Advice description */
+ description?: (string|null);
+ }
+
+ /** Represents an Advice. */
+ class Advice implements IAdvice {
+
+ /**
+ * Constructs a new Advice.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IAdvice);
+
+ /** Advice description. */
+ public description: string;
+
+ /**
+ * Creates a new Advice instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Advice instance
+ */
+ public static create(properties?: google.api.IAdvice): google.api.Advice;
+
+ /**
+ * Encodes the specified Advice message. Does not implicitly {@link google.api.Advice.verify|verify} messages.
+ * @param message Advice message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IAdvice, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Advice message, length delimited. Does not implicitly {@link google.api.Advice.verify|verify} messages.
+ * @param message Advice message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IAdvice, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Advice message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Advice
+ * @throws {Error} If the payload is not 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.Advice;
+
+ /**
+ * Decodes an Advice message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Advice
+ * @throws {Error} If the payload 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.Advice;
+
+ /**
+ * Verifies an Advice message.
+ * @param message Plain 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 Advice message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Advice
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Advice;
+
+ /**
+ * Creates a plain object from an Advice message. Also converts values to other types if specified.
+ * @param message Advice
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Advice, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Advice to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Advice
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** ChangeType enum. */
+ enum ChangeType {
+ CHANGE_TYPE_UNSPECIFIED = 0,
+ ADDED = 1,
+ REMOVED = 2,
+ MODIFIED = 3
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Service. */
+ interface IService {
+
+ /** Service name */
+ name?: (string|null);
+
+ /** Service title */
+ title?: (string|null);
+
+ /** Service producerProjectId */
+ producerProjectId?: (string|null);
+
+ /** Service id */
+ id?: (string|null);
+
+ /** Service apis */
+ apis?: (google.protobuf.IApi[]|null);
+
+ /** Service types */
+ types?: (google.protobuf.IType[]|null);
+
+ /** Service enums */
+ enums?: (google.protobuf.IEnum[]|null);
+
+ /** Service documentation */
+ documentation?: (google.api.IDocumentation|null);
+
+ /** Service backend */
+ backend?: (google.api.IBackend|null);
+
+ /** Service http */
+ http?: (google.api.IHttp|null);
+
+ /** Service quota */
+ quota?: (google.api.IQuota|null);
+
+ /** Service authentication */
+ authentication?: (google.api.IAuthentication|null);
+
+ /** Service context */
+ context?: (google.api.IContext|null);
+
+ /** Service usage */
+ usage?: (google.api.IUsage|null);
+
+ /** Service endpoints */
+ endpoints?: (google.api.IEndpoint[]|null);
+
+ /** Service control */
+ control?: (google.api.IControl|null);
+
+ /** Service logs */
+ logs?: (google.api.ILogDescriptor[]|null);
+
+ /** Service metrics */
+ metrics?: (google.api.IMetricDescriptor[]|null);
+
+ /** Service monitoredResources */
+ monitoredResources?: (google.api.IMonitoredResourceDescriptor[]|null);
+
+ /** Service billing */
+ billing?: (google.api.IBilling|null);
+
+ /** Service logging */
+ logging?: (google.api.ILogging|null);
+
+ /** Service monitoring */
+ monitoring?: (google.api.IMonitoring|null);
+
+ /** Service systemParameters */
+ systemParameters?: (google.api.ISystemParameters|null);
+
+ /** Service sourceInfo */
+ sourceInfo?: (google.api.ISourceInfo|null);
+
+ /** Service configVersion */
+ configVersion?: (google.protobuf.IUInt32Value|null);
+ }
+
+ /** Represents a Service. */
+ class Service implements IService {
+
+ /**
+ * Constructs a new Service.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IService);
+
+ /** Service name. */
+ public name: string;
+
+ /** Service title. */
+ public title: string;
+
+ /** Service producerProjectId. */
+ public producerProjectId: string;
+
+ /** Service id. */
+ public id: string;
+
+ /** Service apis. */
+ public apis: google.protobuf.IApi[];
+
+ /** Service types. */
+ public types: google.protobuf.IType[];
+
+ /** Service enums. */
+ public enums: google.protobuf.IEnum[];
+
+ /** Service documentation. */
+ public documentation?: (google.api.IDocumentation|null);
+
+ /** Service backend. */
+ public backend?: (google.api.IBackend|null);
+
+ /** Service http. */
+ public http?: (google.api.IHttp|null);
+
+ /** Service quota. */
+ public quota?: (google.api.IQuota|null);
+
+ /** Service authentication. */
+ public authentication?: (google.api.IAuthentication|null);
+
+ /** Service context. */
+ public context?: (google.api.IContext|null);
+
+ /** Service usage. */
+ public usage?: (google.api.IUsage|null);
+
+ /** Service endpoints. */
+ public endpoints: google.api.IEndpoint[];
+
+ /** Service control. */
+ public control?: (google.api.IControl|null);
+
+ /** Service logs. */
+ public logs: google.api.ILogDescriptor[];
+
+ /** Service metrics. */
+ public metrics: google.api.IMetricDescriptor[];
+
+ /** Service monitoredResources. */
+ public monitoredResources: google.api.IMonitoredResourceDescriptor[];
+
+ /** Service billing. */
+ public billing?: (google.api.IBilling|null);
+
+ /** Service logging. */
+ public logging?: (google.api.ILogging|null);
+
+ /** Service monitoring. */
+ public monitoring?: (google.api.IMonitoring|null);
+
+ /** Service systemParameters. */
+ public systemParameters?: (google.api.ISystemParameters|null);
+
+ /** Service sourceInfo. */
+ public sourceInfo?: (google.api.ISourceInfo|null);
+
+ /** Service configVersion. */
+ public configVersion?: (google.protobuf.IUInt32Value|null);
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Service instance
+ */
+ public static create(properties?: google.api.IService): google.api.Service;
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.api.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.api.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Service
+ * @throws {Error} If the payload is not 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.Service;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Service
+ * @throws {Error} If the payload 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.Service;
+
+ /**
+ * Verifies a Service message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Service
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Service;
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @param message Service
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Service, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Service to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Service
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Authentication. */
+ interface IAuthentication {
+
+ /** Authentication rules */
+ rules?: (google.api.IAuthenticationRule[]|null);
+
+ /** Authentication providers */
+ providers?: (google.api.IAuthProvider[]|null);
+ }
+
+ /** Represents an Authentication. */
+ class Authentication implements IAuthentication {
+
+ /**
+ * Constructs a new Authentication.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IAuthentication);
+
+ /** Authentication rules. */
+ public rules: google.api.IAuthenticationRule[];
+
+ /** Authentication providers. */
+ public providers: google.api.IAuthProvider[];
+
+ /**
+ * Creates a new Authentication instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Authentication instance
+ */
+ public static create(properties?: google.api.IAuthentication): google.api.Authentication;
+
+ /**
+ * Encodes the specified Authentication message. Does not implicitly {@link google.api.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Authentication message, length delimited. Does not implicitly {@link google.api.Authentication.verify|verify} messages.
+ * @param message Authentication message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IAuthentication, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Authentication
+ * @throws {Error} If the payload is not 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.Authentication;
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Authentication
+ * @throws {Error} If the payload 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.Authentication;
+
+ /**
+ * Verifies an Authentication message.
+ * @param message Plain 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 Authentication message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Authentication
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Authentication;
+
+ /**
+ * Creates a plain object from an Authentication message. Also converts values to other types if specified.
+ * @param message Authentication
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Authentication, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Authentication to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Authentication
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuthenticationRule. */
+ interface IAuthenticationRule {
+
+ /** AuthenticationRule selector */
+ selector?: (string|null);
+
+ /** AuthenticationRule oauth */
+ oauth?: (google.api.IOAuthRequirements|null);
+
+ /** AuthenticationRule allowWithoutCredential */
+ allowWithoutCredential?: (boolean|null);
+
+ /** AuthenticationRule requirements */
+ requirements?: (google.api.IAuthRequirement[]|null);
+ }
+
+ /** Represents an AuthenticationRule. */
+ class AuthenticationRule implements IAuthenticationRule {
+
+ /**
+ * Constructs a new AuthenticationRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IAuthenticationRule);
+
+ /** AuthenticationRule selector. */
+ public selector: string;
+
+ /** AuthenticationRule oauth. */
+ public oauth?: (google.api.IOAuthRequirements|null);
+
+ /** AuthenticationRule allowWithoutCredential. */
+ public allowWithoutCredential: boolean;
+
+ /** AuthenticationRule requirements. */
+ public requirements: google.api.IAuthRequirement[];
+
+ /**
+ * Creates a new AuthenticationRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthenticationRule instance
+ */
+ public static create(properties?: google.api.IAuthenticationRule): google.api.AuthenticationRule;
+
+ /**
+ * Encodes the specified AuthenticationRule message. Does not implicitly {@link google.api.AuthenticationRule.verify|verify} messages.
+ * @param message AuthenticationRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IAuthenticationRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthenticationRule message, length delimited. Does not implicitly {@link google.api.AuthenticationRule.verify|verify} messages.
+ * @param message AuthenticationRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IAuthenticationRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthenticationRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthenticationRule
+ * @throws {Error} If the payload is not 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.AuthenticationRule;
+
+ /**
+ * Decodes an AuthenticationRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthenticationRule
+ * @throws {Error} If the payload 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.AuthenticationRule;
+
+ /**
+ * Verifies an AuthenticationRule message.
+ * @param message Plain 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 AuthenticationRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthenticationRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.AuthenticationRule;
+
+ /**
+ * Creates a plain object from an AuthenticationRule message. Also converts values to other types if specified.
+ * @param message AuthenticationRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.AuthenticationRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthenticationRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuthenticationRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JwtLocation. */
+ interface IJwtLocation {
+
+ /** JwtLocation header */
+ header?: (string|null);
+
+ /** JwtLocation query */
+ query?: (string|null);
+
+ /** JwtLocation valuePrefix */
+ valuePrefix?: (string|null);
+ }
+
+ /** Represents a JwtLocation. */
+ class JwtLocation implements IJwtLocation {
+
+ /**
+ * Constructs a new JwtLocation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJwtLocation);
+
+ /** JwtLocation header. */
+ public header?: (string|null);
+
+ /** JwtLocation query. */
+ public query?: (string|null);
+
+ /** JwtLocation valuePrefix. */
+ public valuePrefix: string;
+
+ /** JwtLocation in. */
+ public in_?: ("header"|"query");
+
+ /**
+ * Creates a new JwtLocation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JwtLocation instance
+ */
+ public static create(properties?: google.api.IJwtLocation): google.api.JwtLocation;
+
+ /**
+ * Encodes the specified JwtLocation message. Does not implicitly {@link google.api.JwtLocation.verify|verify} messages.
+ * @param message JwtLocation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJwtLocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JwtLocation message, length delimited. Does not implicitly {@link google.api.JwtLocation.verify|verify} messages.
+ * @param message JwtLocation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJwtLocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JwtLocation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JwtLocation
+ * @throws {Error} If the payload is not 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.JwtLocation;
+
+ /**
+ * Decodes a JwtLocation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JwtLocation
+ * @throws {Error} If the payload 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.JwtLocation;
+
+ /**
+ * Verifies a JwtLocation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JwtLocation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JwtLocation
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JwtLocation;
+
+ /**
+ * Creates a plain object from a JwtLocation message. Also converts values to other types if specified.
+ * @param message JwtLocation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JwtLocation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JwtLocation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JwtLocation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuthProvider. */
+ interface IAuthProvider {
+
+ /** AuthProvider id */
+ id?: (string|null);
+
+ /** AuthProvider issuer */
+ issuer?: (string|null);
+
+ /** AuthProvider jwksUri */
+ jwksUri?: (string|null);
+
+ /** AuthProvider audiences */
+ audiences?: (string|null);
+
+ /** AuthProvider authorizationUrl */
+ authorizationUrl?: (string|null);
+
+ /** AuthProvider jwtLocations */
+ jwtLocations?: (google.api.IJwtLocation[]|null);
+ }
+
+ /** Represents an AuthProvider. */
+ class AuthProvider implements IAuthProvider {
+
+ /**
+ * Constructs a new AuthProvider.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IAuthProvider);
+
+ /** AuthProvider id. */
+ public id: string;
+
+ /** AuthProvider issuer. */
+ public issuer: string;
+
+ /** AuthProvider jwksUri. */
+ public jwksUri: string;
+
+ /** AuthProvider audiences. */
+ public audiences: string;
+
+ /** AuthProvider authorizationUrl. */
+ public authorizationUrl: string;
+
+ /** AuthProvider jwtLocations. */
+ public jwtLocations: google.api.IJwtLocation[];
+
+ /**
+ * Creates a new AuthProvider instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthProvider instance
+ */
+ public static create(properties?: google.api.IAuthProvider): google.api.AuthProvider;
+
+ /**
+ * Encodes the specified AuthProvider message. Does not implicitly {@link google.api.AuthProvider.verify|verify} messages.
+ * @param message AuthProvider message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.api.AuthProvider.verify|verify} messages.
+ * @param message AuthProvider message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthProvider message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthProvider
+ * @throws {Error} If the payload is not 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.AuthProvider;
+
+ /**
+ * Decodes an AuthProvider message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthProvider
+ * @throws {Error} If the payload 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.AuthProvider;
+
+ /**
+ * Verifies an AuthProvider message.
+ * @param message Plain 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 AuthProvider message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthProvider
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.AuthProvider;
+
+ /**
+ * Creates a plain object from an AuthProvider message. Also converts values to other types if specified.
+ * @param message AuthProvider
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.AuthProvider, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthProvider to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuthProvider
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a OAuthRequirements. */
+ interface IOAuthRequirements {
+
+ /** OAuthRequirements canonicalScopes */
+ canonicalScopes?: (string|null);
+ }
+
+ /** Represents a OAuthRequirements. */
+ class OAuthRequirements implements IOAuthRequirements {
+
+ /**
+ * Constructs a new OAuthRequirements.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IOAuthRequirements);
+
+ /** OAuthRequirements canonicalScopes. */
+ public canonicalScopes: string;
+
+ /**
+ * Creates a new OAuthRequirements instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OAuthRequirements instance
+ */
+ public static create(properties?: google.api.IOAuthRequirements): google.api.OAuthRequirements;
+
+ /**
+ * Encodes the specified OAuthRequirements message. Does not implicitly {@link google.api.OAuthRequirements.verify|verify} messages.
+ * @param message OAuthRequirements message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IOAuthRequirements, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OAuthRequirements message, length delimited. Does not implicitly {@link google.api.OAuthRequirements.verify|verify} messages.
+ * @param message OAuthRequirements message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IOAuthRequirements, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OAuthRequirements message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OAuthRequirements
+ * @throws {Error} If the payload is not 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.OAuthRequirements;
+
+ /**
+ * Decodes a OAuthRequirements message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OAuthRequirements
+ * @throws {Error} If the payload 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.OAuthRequirements;
+
+ /**
+ * Verifies a OAuthRequirements message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a OAuthRequirements message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OAuthRequirements
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.OAuthRequirements;
+
+ /**
+ * Creates a plain object from a OAuthRequirements message. Also converts values to other types if specified.
+ * @param message OAuthRequirements
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.OAuthRequirements, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OAuthRequirements to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OAuthRequirements
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuthRequirement. */
+ interface IAuthRequirement {
+
+ /** AuthRequirement providerId */
+ providerId?: (string|null);
+
+ /** AuthRequirement audiences */
+ audiences?: (string|null);
+ }
+
+ /** Represents an AuthRequirement. */
+ class AuthRequirement implements IAuthRequirement {
+
+ /**
+ * Constructs a new AuthRequirement.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IAuthRequirement);
+
+ /** AuthRequirement providerId. */
+ public providerId: string;
+
+ /** AuthRequirement audiences. */
+ public audiences: string;
+
+ /**
+ * Creates a new AuthRequirement instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthRequirement instance
+ */
+ public static create(properties?: google.api.IAuthRequirement): google.api.AuthRequirement;
+
+ /**
+ * Encodes the specified AuthRequirement message. Does not implicitly {@link google.api.AuthRequirement.verify|verify} messages.
+ * @param message AuthRequirement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IAuthRequirement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthRequirement message, length delimited. Does not implicitly {@link google.api.AuthRequirement.verify|verify} messages.
+ * @param message AuthRequirement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IAuthRequirement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthRequirement message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthRequirement
+ * @throws {Error} If the payload is not 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.AuthRequirement;
+
+ /**
+ * Decodes an AuthRequirement message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthRequirement
+ * @throws {Error} If the payload 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.AuthRequirement;
+
+ /**
+ * Verifies an AuthRequirement message.
+ * @param message Plain 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 AuthRequirement message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthRequirement
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.AuthRequirement;
+
+ /**
+ * Creates a plain object from an AuthRequirement message. Also converts values to other types if specified.
+ * @param message AuthRequirement
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.AuthRequirement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthRequirement to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuthRequirement
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Backend. */
+ interface IBackend {
+
+ /** Backend rules */
+ rules?: (google.api.IBackendRule[]|null);
+ }
+
+ /** Represents a Backend. */
+ class Backend implements IBackend {
+
+ /**
+ * Constructs a new Backend.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IBackend);
+
+ /** Backend rules. */
+ public rules: google.api.IBackendRule[];
+
+ /**
+ * Creates a new Backend instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Backend instance
+ */
+ public static create(properties?: google.api.IBackend): google.api.Backend;
+
+ /**
+ * Encodes the specified Backend message. Does not implicitly {@link google.api.Backend.verify|verify} messages.
+ * @param message Backend message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IBackend, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Backend message, length delimited. Does not implicitly {@link google.api.Backend.verify|verify} messages.
+ * @param message Backend message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IBackend, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Backend message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Backend
+ * @throws {Error} If the payload is not 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.Backend;
+
+ /**
+ * Decodes a Backend message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Backend
+ * @throws {Error} If the payload 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.Backend;
+
+ /**
+ * Verifies a Backend message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Backend message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Backend
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Backend;
+
+ /**
+ * Creates a plain object from a Backend message. Also converts values to other types if specified.
+ * @param message Backend
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Backend, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Backend to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Backend
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BackendRule. */
+ interface IBackendRule {
+
+ /** BackendRule selector */
+ selector?: (string|null);
+
+ /** BackendRule address */
+ address?: (string|null);
+
+ /** BackendRule deadline */
+ deadline?: (number|null);
+
+ /** BackendRule minDeadline */
+ minDeadline?: (number|null);
+
+ /** BackendRule operationDeadline */
+ operationDeadline?: (number|null);
+
+ /** BackendRule pathTranslation */
+ pathTranslation?: (google.api.BackendRule.PathTranslation|keyof typeof google.api.BackendRule.PathTranslation|null);
+
+ /** BackendRule jwtAudience */
+ jwtAudience?: (string|null);
+
+ /** BackendRule disableAuth */
+ disableAuth?: (boolean|null);
+
+ /** BackendRule protocol */
+ protocol?: (string|null);
+ }
+
+ /** Represents a BackendRule. */
+ class BackendRule implements IBackendRule {
+
+ /**
+ * Constructs a new BackendRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IBackendRule);
+
+ /** BackendRule selector. */
+ public selector: string;
+
+ /** BackendRule address. */
+ public address: string;
+
+ /** BackendRule deadline. */
+ public deadline: number;
+
+ /** BackendRule minDeadline. */
+ public minDeadline: number;
+
+ /** BackendRule operationDeadline. */
+ public operationDeadline: number;
+
+ /** BackendRule pathTranslation. */
+ public pathTranslation: (google.api.BackendRule.PathTranslation|keyof typeof google.api.BackendRule.PathTranslation);
+
+ /** BackendRule jwtAudience. */
+ public jwtAudience?: (string|null);
+
+ /** BackendRule disableAuth. */
+ public disableAuth?: (boolean|null);
+
+ /** BackendRule protocol. */
+ public protocol: string;
+
+ /** BackendRule authentication. */
+ public authentication?: ("jwtAudience"|"disableAuth");
+
+ /**
+ * Creates a new BackendRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BackendRule instance
+ */
+ public static create(properties?: google.api.IBackendRule): google.api.BackendRule;
+
+ /**
+ * Encodes the specified BackendRule message. Does not implicitly {@link google.api.BackendRule.verify|verify} messages.
+ * @param message BackendRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IBackendRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BackendRule message, length delimited. Does not implicitly {@link google.api.BackendRule.verify|verify} messages.
+ * @param message BackendRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IBackendRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BackendRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BackendRule
+ * @throws {Error} If the payload is not 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.BackendRule;
+
+ /**
+ * Decodes a BackendRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BackendRule
+ * @throws {Error} If the payload 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.BackendRule;
+
+ /**
+ * Verifies a BackendRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BackendRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BackendRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.BackendRule;
+
+ /**
+ * Creates a plain object from a BackendRule message. Also converts values to other types if specified.
+ * @param message BackendRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.BackendRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BackendRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BackendRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BackendRule {
+
+ /** PathTranslation enum. */
+ enum PathTranslation {
+ PATH_TRANSLATION_UNSPECIFIED = 0,
+ CONSTANT_ADDRESS = 1,
+ APPEND_PATH_TO_ADDRESS = 2
+ }
+ }
+
+ /** Properties of a Billing. */
+ interface IBilling {
+
+ /** Billing consumerDestinations */
+ consumerDestinations?: (google.api.Billing.IBillingDestination[]|null);
+ }
+
+ /** Represents a Billing. */
+ class Billing implements IBilling {
+
+ /**
+ * Constructs a new Billing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IBilling);
+
+ /** Billing consumerDestinations. */
+ public consumerDestinations: google.api.Billing.IBillingDestination[];
+
+ /**
+ * Creates a new Billing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Billing instance
+ */
+ public static create(properties?: google.api.IBilling): google.api.Billing;
+
+ /**
+ * Encodes the specified Billing message. Does not implicitly {@link google.api.Billing.verify|verify} messages.
+ * @param message Billing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IBilling, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Billing message, length delimited. Does not implicitly {@link google.api.Billing.verify|verify} messages.
+ * @param message Billing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IBilling, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Billing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Billing
+ * @throws {Error} If the payload is not 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.Billing;
+
+ /**
+ * Decodes a Billing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Billing
+ * @throws {Error} If the payload 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.Billing;
+
+ /**
+ * Verifies a Billing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Billing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Billing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Billing;
+
+ /**
+ * Creates a plain object from a Billing message. Also converts values to other types if specified.
+ * @param message Billing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Billing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Billing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Billing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Billing {
+
+ /** Properties of a BillingDestination. */
+ interface IBillingDestination {
+
+ /** BillingDestination monitoredResource */
+ monitoredResource?: (string|null);
+
+ /** BillingDestination metrics */
+ metrics?: (string[]|null);
+ }
+
+ /** Represents a BillingDestination. */
+ class BillingDestination implements IBillingDestination {
+
+ /**
+ * Constructs a new BillingDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.Billing.IBillingDestination);
+
+ /** BillingDestination monitoredResource. */
+ public monitoredResource: string;
+
+ /** BillingDestination metrics. */
+ public metrics: string[];
+
+ /**
+ * Creates a new BillingDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BillingDestination instance
+ */
+ public static create(properties?: google.api.Billing.IBillingDestination): google.api.Billing.BillingDestination;
+
+ /**
+ * Encodes the specified BillingDestination message. Does not implicitly {@link google.api.Billing.BillingDestination.verify|verify} messages.
+ * @param message BillingDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.Billing.IBillingDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BillingDestination message, length delimited. Does not implicitly {@link google.api.Billing.BillingDestination.verify|verify} messages.
+ * @param message BillingDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.Billing.IBillingDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BillingDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BillingDestination
+ * @throws {Error} If the payload is not 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.Billing.BillingDestination;
+
+ /**
+ * Decodes a BillingDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BillingDestination
+ * @throws {Error} If the payload 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.Billing.BillingDestination;
+
+ /**
+ * Verifies a BillingDestination message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BillingDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BillingDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Billing.BillingDestination;
+
+ /**
+ * Creates a plain object from a BillingDestination message. Also converts values to other types if specified.
+ * @param message BillingDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Billing.BillingDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BillingDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BillingDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Context. */
+ interface IContext {
+
+ /** Context rules */
+ rules?: (google.api.IContextRule[]|null);
+ }
+
+ /** Represents a Context. */
+ class Context implements IContext {
+
+ /**
+ * Constructs a new Context.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IContext);
+
+ /** Context rules. */
+ public rules: google.api.IContextRule[];
+
+ /**
+ * Creates a new Context instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Context instance
+ */
+ public static create(properties?: google.api.IContext): google.api.Context;
+
+ /**
+ * Encodes the specified Context message. Does not implicitly {@link google.api.Context.verify|verify} messages.
+ * @param message Context message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Context message, length delimited. Does not implicitly {@link google.api.Context.verify|verify} messages.
+ * @param message Context message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Context message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Context
+ * @throws {Error} If the payload is not 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.Context;
+
+ /**
+ * Decodes a Context message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Context
+ * @throws {Error} If the payload 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.Context;
+
+ /**
+ * Verifies a Context message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Context message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Context
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Context;
+
+ /**
+ * Creates a plain object from a Context message. Also converts values to other types if specified.
+ * @param message Context
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Context, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Context to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Context
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ContextRule. */
+ interface IContextRule {
+
+ /** ContextRule selector */
+ selector?: (string|null);
+
+ /** ContextRule requested */
+ requested?: (string[]|null);
+
+ /** ContextRule provided */
+ provided?: (string[]|null);
+
+ /** ContextRule allowedRequestExtensions */
+ allowedRequestExtensions?: (string[]|null);
+
+ /** ContextRule allowedResponseExtensions */
+ allowedResponseExtensions?: (string[]|null);
+ }
+
+ /** Represents a ContextRule. */
+ class ContextRule implements IContextRule {
+
+ /**
+ * Constructs a new ContextRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IContextRule);
+
+ /** ContextRule selector. */
+ public selector: string;
+
+ /** ContextRule requested. */
+ public requested: string[];
+
+ /** ContextRule provided. */
+ public provided: string[];
+
+ /** ContextRule allowedRequestExtensions. */
+ public allowedRequestExtensions: string[];
+
+ /** ContextRule allowedResponseExtensions. */
+ public allowedResponseExtensions: string[];
+
+ /**
+ * Creates a new ContextRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ContextRule instance
+ */
+ public static create(properties?: google.api.IContextRule): google.api.ContextRule;
+
+ /**
+ * Encodes the specified ContextRule message. Does not implicitly {@link google.api.ContextRule.verify|verify} messages.
+ * @param message ContextRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IContextRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ContextRule message, length delimited. Does not implicitly {@link google.api.ContextRule.verify|verify} messages.
+ * @param message ContextRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IContextRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ContextRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ContextRule
+ * @throws {Error} If the payload is not 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.ContextRule;
+
+ /**
+ * Decodes a ContextRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ContextRule
+ * @throws {Error} If the payload 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.ContextRule;
+
+ /**
+ * Verifies a ContextRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ContextRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ContextRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ContextRule;
+
+ /**
+ * Creates a plain object from a ContextRule message. Also converts values to other types if specified.
+ * @param message ContextRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ContextRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ContextRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ContextRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Control. */
+ interface IControl {
+
+ /** Control environment */
+ environment?: (string|null);
+ }
+
+ /** Represents a Control. */
+ class Control implements IControl {
+
+ /**
+ * Constructs a new Control.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IControl);
+
+ /** Control environment. */
+ public environment: string;
+
+ /**
+ * Creates a new Control instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Control instance
+ */
+ public static create(properties?: google.api.IControl): google.api.Control;
+
+ /**
+ * Encodes the specified Control message. Does not implicitly {@link google.api.Control.verify|verify} messages.
+ * @param message Control message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Control message, length delimited. Does not implicitly {@link google.api.Control.verify|verify} messages.
+ * @param message Control message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Control message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Control
+ * @throws {Error} If the payload is not 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.Control;
+
+ /**
+ * Decodes a Control message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Control
+ * @throws {Error} If the payload 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.Control;
+
+ /**
+ * Verifies a Control message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Control message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Control
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Control;
+
+ /**
+ * Creates a plain object from a Control message. Also converts values to other types if specified.
+ * @param message Control
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Control, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Control to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Control
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Documentation. */
+ interface IDocumentation {
+
+ /** Documentation summary */
+ summary?: (string|null);
+
+ /** Documentation pages */
+ pages?: (google.api.IPage[]|null);
+
+ /** Documentation rules */
+ rules?: (google.api.IDocumentationRule[]|null);
+
+ /** Documentation documentationRootUrl */
+ documentationRootUrl?: (string|null);
+
+ /** Documentation serviceRootUrl */
+ serviceRootUrl?: (string|null);
+
+ /** Documentation overview */
+ overview?: (string|null);
+ }
+
+ /** Represents a Documentation. */
+ class Documentation implements IDocumentation {
+
+ /**
+ * Constructs a new Documentation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDocumentation);
+
+ /** Documentation summary. */
+ public summary: string;
+
+ /** Documentation pages. */
+ public pages: google.api.IPage[];
+
+ /** Documentation rules. */
+ public rules: google.api.IDocumentationRule[];
+
+ /** Documentation documentationRootUrl. */
+ public documentationRootUrl: string;
+
+ /** Documentation serviceRootUrl. */
+ public serviceRootUrl: string;
+
+ /** Documentation overview. */
+ public overview: string;
+
+ /**
+ * Creates a new Documentation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Documentation instance
+ */
+ public static create(properties?: google.api.IDocumentation): google.api.Documentation;
+
+ /**
+ * Encodes the specified Documentation message. Does not implicitly {@link google.api.Documentation.verify|verify} messages.
+ * @param message Documentation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDocumentation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Documentation message, length delimited. Does not implicitly {@link google.api.Documentation.verify|verify} messages.
+ * @param message Documentation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDocumentation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Documentation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Documentation
+ * @throws {Error} If the payload is not 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.Documentation;
+
+ /**
+ * Decodes a Documentation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Documentation
+ * @throws {Error} If the payload 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.Documentation;
+
+ /**
+ * Verifies a Documentation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Documentation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Documentation
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Documentation;
+
+ /**
+ * Creates a plain object from a Documentation message. Also converts values to other types if specified.
+ * @param message Documentation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Documentation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Documentation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Documentation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DocumentationRule. */
+ interface IDocumentationRule {
+
+ /** DocumentationRule selector */
+ selector?: (string|null);
+
+ /** DocumentationRule description */
+ description?: (string|null);
+
+ /** DocumentationRule deprecationDescription */
+ deprecationDescription?: (string|null);
+ }
+
+ /** Represents a DocumentationRule. */
+ class DocumentationRule implements IDocumentationRule {
+
+ /**
+ * Constructs a new DocumentationRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDocumentationRule);
+
+ /** DocumentationRule selector. */
+ public selector: string;
+
+ /** DocumentationRule description. */
+ public description: string;
+
+ /** DocumentationRule deprecationDescription. */
+ public deprecationDescription: string;
+
+ /**
+ * Creates a new DocumentationRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DocumentationRule instance
+ */
+ public static create(properties?: google.api.IDocumentationRule): google.api.DocumentationRule;
+
+ /**
+ * Encodes the specified DocumentationRule message. Does not implicitly {@link google.api.DocumentationRule.verify|verify} messages.
+ * @param message DocumentationRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDocumentationRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DocumentationRule message, length delimited. Does not implicitly {@link google.api.DocumentationRule.verify|verify} messages.
+ * @param message DocumentationRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDocumentationRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DocumentationRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DocumentationRule
+ * @throws {Error} If the payload is not 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.DocumentationRule;
+
+ /**
+ * Decodes a DocumentationRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DocumentationRule
+ * @throws {Error} If the payload 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.DocumentationRule;
+
+ /**
+ * Verifies a DocumentationRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DocumentationRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DocumentationRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DocumentationRule;
+
+ /**
+ * Creates a plain object from a DocumentationRule message. Also converts values to other types if specified.
+ * @param message DocumentationRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DocumentationRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DocumentationRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DocumentationRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Page. */
+ interface IPage {
+
+ /** Page name */
+ name?: (string|null);
+
+ /** Page content */
+ content?: (string|null);
+
+ /** Page subpages */
+ subpages?: (google.api.IPage[]|null);
+ }
+
+ /** Represents a Page. */
+ class Page implements IPage {
+
+ /**
+ * Constructs a new Page.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPage);
+
+ /** Page name. */
+ public name: string;
+
+ /** Page content. */
+ public content: string;
+
+ /** Page subpages. */
+ public subpages: google.api.IPage[];
+
+ /**
+ * Creates a new Page instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Page instance
+ */
+ public static create(properties?: google.api.IPage): google.api.Page;
+
+ /**
+ * Encodes the specified Page message. Does not implicitly {@link google.api.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Page message, length delimited. Does not implicitly {@link google.api.Page.verify|verify} messages.
+ * @param message Page message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Page
+ * @throws {Error} If the payload is not 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.Page;
+
+ /**
+ * Decodes a Page message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Page
+ * @throws {Error} If the payload 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.Page;
+
+ /**
+ * Verifies a Page message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Page message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Page
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Page;
+
+ /**
+ * Creates a plain object from a Page message. Also converts values to other types if specified.
+ * @param message Page
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Page, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Page to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Page
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Endpoint. */
+ interface IEndpoint {
+
+ /** Endpoint name */
+ name?: (string|null);
+
+ /** Endpoint aliases */
+ aliases?: (string[]|null);
+
+ /** Endpoint target */
+ target?: (string|null);
+
+ /** Endpoint allowCors */
+ allowCors?: (boolean|null);
+ }
+
+ /** Represents an Endpoint. */
+ class Endpoint implements IEndpoint {
+
+ /**
+ * Constructs a new Endpoint.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IEndpoint);
+
+ /** Endpoint name. */
+ public name: string;
+
+ /** Endpoint aliases. */
+ public aliases: string[];
+
+ /** Endpoint target. */
+ public target: string;
+
+ /** Endpoint allowCors. */
+ public allowCors: boolean;
+
+ /**
+ * Creates a new Endpoint instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Endpoint instance
+ */
+ public static create(properties?: google.api.IEndpoint): google.api.Endpoint;
+
+ /**
+ * Encodes the specified Endpoint message. Does not implicitly {@link google.api.Endpoint.verify|verify} messages.
+ * @param message Endpoint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.api.Endpoint.verify|verify} messages.
+ * @param message Endpoint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Endpoint message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Endpoint
+ * @throws {Error} If the payload is not 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.Endpoint;
+
+ /**
+ * Decodes an Endpoint message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Endpoint
+ * @throws {Error} If the payload 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.Endpoint;
+
+ /**
+ * Verifies an Endpoint message.
+ * @param message Plain 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 Endpoint message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Endpoint
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Endpoint;
+
+ /**
+ * Creates a plain object from an Endpoint message. Also converts values to other types if specified.
+ * @param message Endpoint
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Endpoint to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Endpoint
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LogDescriptor. */
+ interface ILogDescriptor {
+
+ /** LogDescriptor name */
+ name?: (string|null);
+
+ /** LogDescriptor labels */
+ labels?: (google.api.ILabelDescriptor[]|null);
+
+ /** LogDescriptor description */
+ description?: (string|null);
+
+ /** LogDescriptor displayName */
+ displayName?: (string|null);
+ }
+
+ /** Represents a LogDescriptor. */
+ class LogDescriptor implements ILogDescriptor {
+
+ /**
+ * Constructs a new LogDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ILogDescriptor);
+
+ /** LogDescriptor name. */
+ public name: string;
+
+ /** LogDescriptor labels. */
+ public labels: google.api.ILabelDescriptor[];
+
+ /** LogDescriptor description. */
+ public description: string;
+
+ /** LogDescriptor displayName. */
+ public displayName: string;
+
+ /**
+ * Creates a new LogDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LogDescriptor instance
+ */
+ public static create(properties?: google.api.ILogDescriptor): google.api.LogDescriptor;
+
+ /**
+ * Encodes the specified LogDescriptor message. Does not implicitly {@link google.api.LogDescriptor.verify|verify} messages.
+ * @param message LogDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ILogDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LogDescriptor message, length delimited. Does not implicitly {@link google.api.LogDescriptor.verify|verify} messages.
+ * @param message LogDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ILogDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LogDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LogDescriptor
+ * @throws {Error} If the payload is not 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.LogDescriptor;
+
+ /**
+ * Decodes a LogDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LogDescriptor
+ * @throws {Error} If the payload 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.LogDescriptor;
+
+ /**
+ * Verifies a LogDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LogDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LogDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.LogDescriptor;
+
+ /**
+ * Creates a plain object from a LogDescriptor message. Also converts values to other types if specified.
+ * @param message LogDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.LogDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LogDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LogDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LabelDescriptor. */
+ interface ILabelDescriptor {
+
+ /** LabelDescriptor key */
+ key?: (string|null);
+
+ /** LabelDescriptor valueType */
+ valueType?: (google.api.LabelDescriptor.ValueType|keyof typeof google.api.LabelDescriptor.ValueType|null);
+
+ /** LabelDescriptor description */
+ description?: (string|null);
+ }
+
+ /** Represents a LabelDescriptor. */
+ class LabelDescriptor implements ILabelDescriptor {
+
+ /**
+ * Constructs a new LabelDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ILabelDescriptor);
+
+ /** LabelDescriptor key. */
+ public key: string;
+
+ /** LabelDescriptor valueType. */
+ public valueType: (google.api.LabelDescriptor.ValueType|keyof typeof google.api.LabelDescriptor.ValueType);
+
+ /** LabelDescriptor description. */
+ public description: string;
+
+ /**
+ * Creates a new LabelDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LabelDescriptor instance
+ */
+ public static create(properties?: google.api.ILabelDescriptor): google.api.LabelDescriptor;
+
+ /**
+ * Encodes the specified LabelDescriptor message. Does not implicitly {@link google.api.LabelDescriptor.verify|verify} messages.
+ * @param message LabelDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ILabelDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LabelDescriptor message, length delimited. Does not implicitly {@link google.api.LabelDescriptor.verify|verify} messages.
+ * @param message LabelDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ILabelDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LabelDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LabelDescriptor
+ * @throws {Error} If the payload is not 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.LabelDescriptor;
+
+ /**
+ * Decodes a LabelDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LabelDescriptor
+ * @throws {Error} If the payload 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.LabelDescriptor;
+
+ /**
+ * Verifies a LabelDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LabelDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LabelDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.LabelDescriptor;
+
+ /**
+ * Creates a plain object from a LabelDescriptor message. Also converts values to other types if specified.
+ * @param message LabelDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.LabelDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LabelDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LabelDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace LabelDescriptor {
+
+ /** ValueType enum. */
+ enum ValueType {
+ STRING = 0,
+ BOOL = 1,
+ INT64 = 2
+ }
+ }
+
+ /** Properties of a Logging. */
+ interface ILogging {
+
+ /** Logging producerDestinations */
+ producerDestinations?: (google.api.Logging.ILoggingDestination[]|null);
+
+ /** Logging consumerDestinations */
+ consumerDestinations?: (google.api.Logging.ILoggingDestination[]|null);
+ }
+
+ /** Represents a Logging. */
+ class Logging implements ILogging {
+
+ /**
+ * Constructs a new Logging.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ILogging);
+
+ /** Logging producerDestinations. */
+ public producerDestinations: google.api.Logging.ILoggingDestination[];
+
+ /** Logging consumerDestinations. */
+ public consumerDestinations: google.api.Logging.ILoggingDestination[];
+
+ /**
+ * Creates a new Logging instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Logging instance
+ */
+ public static create(properties?: google.api.ILogging): google.api.Logging;
+
+ /**
+ * Encodes the specified Logging message. Does not implicitly {@link google.api.Logging.verify|verify} messages.
+ * @param message Logging message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ILogging, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Logging message, length delimited. Does not implicitly {@link google.api.Logging.verify|verify} messages.
+ * @param message Logging message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ILogging, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Logging message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Logging
+ * @throws {Error} If the payload is not 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.Logging;
+
+ /**
+ * Decodes a Logging message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Logging
+ * @throws {Error} If the payload 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.Logging;
+
+ /**
+ * Verifies a Logging message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Logging message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Logging
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Logging;
+
+ /**
+ * Creates a plain object from a Logging message. Also converts values to other types if specified.
+ * @param message Logging
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Logging, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Logging to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Logging
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Logging {
+
+ /** Properties of a LoggingDestination. */
+ interface ILoggingDestination {
+
+ /** LoggingDestination monitoredResource */
+ monitoredResource?: (string|null);
+
+ /** LoggingDestination logs */
+ logs?: (string[]|null);
+ }
+
+ /** Represents a LoggingDestination. */
+ class LoggingDestination implements ILoggingDestination {
+
+ /**
+ * Constructs a new LoggingDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.Logging.ILoggingDestination);
+
+ /** LoggingDestination monitoredResource. */
+ public monitoredResource: string;
+
+ /** LoggingDestination logs. */
+ public logs: string[];
+
+ /**
+ * Creates a new LoggingDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LoggingDestination instance
+ */
+ public static create(properties?: google.api.Logging.ILoggingDestination): google.api.Logging.LoggingDestination;
+
+ /**
+ * Encodes the specified LoggingDestination message. Does not implicitly {@link google.api.Logging.LoggingDestination.verify|verify} messages.
+ * @param message LoggingDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.Logging.ILoggingDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LoggingDestination message, length delimited. Does not implicitly {@link google.api.Logging.LoggingDestination.verify|verify} messages.
+ * @param message LoggingDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.Logging.ILoggingDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LoggingDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LoggingDestination
+ * @throws {Error} If the payload is not 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.Logging.LoggingDestination;
+
+ /**
+ * Decodes a LoggingDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LoggingDestination
+ * @throws {Error} If the payload 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.Logging.LoggingDestination;
+
+ /**
+ * Verifies a LoggingDestination message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LoggingDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LoggingDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Logging.LoggingDestination;
+
+ /**
+ * Creates a plain object from a LoggingDestination message. Also converts values to other types if specified.
+ * @param message LoggingDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Logging.LoggingDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LoggingDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LoggingDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a MetricDescriptor. */
+ interface IMetricDescriptor {
+
+ /** MetricDescriptor name */
+ name?: (string|null);
+
+ /** MetricDescriptor type */
+ type?: (string|null);
+
+ /** MetricDescriptor labels */
+ labels?: (google.api.ILabelDescriptor[]|null);
+
+ /** MetricDescriptor metricKind */
+ metricKind?: (google.api.MetricDescriptor.MetricKind|keyof typeof google.api.MetricDescriptor.MetricKind|null);
+
+ /** MetricDescriptor valueType */
+ valueType?: (google.api.MetricDescriptor.ValueType|keyof typeof google.api.MetricDescriptor.ValueType|null);
+
+ /** MetricDescriptor unit */
+ unit?: (string|null);
+
+ /** MetricDescriptor description */
+ description?: (string|null);
+
+ /** MetricDescriptor displayName */
+ displayName?: (string|null);
+
+ /** MetricDescriptor metadata */
+ metadata?: (google.api.MetricDescriptor.IMetricDescriptorMetadata|null);
+
+ /** MetricDescriptor launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** MetricDescriptor monitoredResourceTypes */
+ monitoredResourceTypes?: (string[]|null);
+ }
+
+ /** Represents a MetricDescriptor. */
+ class MetricDescriptor implements IMetricDescriptor {
+
+ /**
+ * Constructs a new MetricDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMetricDescriptor);
+
+ /** MetricDescriptor name. */
+ public name: string;
+
+ /** MetricDescriptor type. */
+ public type: string;
+
+ /** MetricDescriptor labels. */
+ public labels: google.api.ILabelDescriptor[];
+
+ /** MetricDescriptor metricKind. */
+ public metricKind: (google.api.MetricDescriptor.MetricKind|keyof typeof google.api.MetricDescriptor.MetricKind);
+
+ /** MetricDescriptor valueType. */
+ public valueType: (google.api.MetricDescriptor.ValueType|keyof typeof google.api.MetricDescriptor.ValueType);
+
+ /** MetricDescriptor unit. */
+ public unit: string;
+
+ /** MetricDescriptor description. */
+ public description: string;
+
+ /** MetricDescriptor displayName. */
+ public displayName: string;
+
+ /** MetricDescriptor metadata. */
+ public metadata?: (google.api.MetricDescriptor.IMetricDescriptorMetadata|null);
+
+ /** MetricDescriptor launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** MetricDescriptor monitoredResourceTypes. */
+ public monitoredResourceTypes: string[];
+
+ /**
+ * Creates a new MetricDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetricDescriptor instance
+ */
+ public static create(properties?: google.api.IMetricDescriptor): google.api.MetricDescriptor;
+
+ /**
+ * Encodes the specified MetricDescriptor message. Does not implicitly {@link google.api.MetricDescriptor.verify|verify} messages.
+ * @param message MetricDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMetricDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetricDescriptor message, length delimited. Does not implicitly {@link google.api.MetricDescriptor.verify|verify} messages.
+ * @param message MetricDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMetricDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetricDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetricDescriptor
+ * @throws {Error} If the payload is not 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.MetricDescriptor;
+
+ /**
+ * Decodes a MetricDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetricDescriptor
+ * @throws {Error} If the payload 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.MetricDescriptor;
+
+ /**
+ * Verifies a MetricDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetricDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetricDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MetricDescriptor;
+
+ /**
+ * Creates a plain object from a MetricDescriptor message. Also converts values to other types if specified.
+ * @param message MetricDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MetricDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetricDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetricDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MetricDescriptor {
+
+ /** Properties of a MetricDescriptorMetadata. */
+ interface IMetricDescriptorMetadata {
+
+ /** MetricDescriptorMetadata launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** MetricDescriptorMetadata samplePeriod */
+ samplePeriod?: (google.protobuf.IDuration|null);
+
+ /** MetricDescriptorMetadata ingestDelay */
+ ingestDelay?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a MetricDescriptorMetadata. */
+ class MetricDescriptorMetadata implements IMetricDescriptorMetadata {
+
+ /**
+ * Constructs a new MetricDescriptorMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MetricDescriptor.IMetricDescriptorMetadata);
+
+ /** MetricDescriptorMetadata launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** MetricDescriptorMetadata samplePeriod. */
+ public samplePeriod?: (google.protobuf.IDuration|null);
+
+ /** MetricDescriptorMetadata ingestDelay. */
+ public ingestDelay?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new MetricDescriptorMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetricDescriptorMetadata instance
+ */
+ public static create(properties?: google.api.MetricDescriptor.IMetricDescriptorMetadata): google.api.MetricDescriptor.MetricDescriptorMetadata;
+
+ /**
+ * Encodes the specified MetricDescriptorMetadata message. Does not implicitly {@link google.api.MetricDescriptor.MetricDescriptorMetadata.verify|verify} messages.
+ * @param message MetricDescriptorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MetricDescriptor.IMetricDescriptorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetricDescriptorMetadata message, length delimited. Does not implicitly {@link google.api.MetricDescriptor.MetricDescriptorMetadata.verify|verify} messages.
+ * @param message MetricDescriptorMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MetricDescriptor.IMetricDescriptorMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetricDescriptorMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetricDescriptorMetadata
+ * @throws {Error} If the payload is not 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.MetricDescriptor.MetricDescriptorMetadata;
+
+ /**
+ * Decodes a MetricDescriptorMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetricDescriptorMetadata
+ * @throws {Error} If the payload 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.MetricDescriptor.MetricDescriptorMetadata;
+
+ /**
+ * Verifies a MetricDescriptorMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetricDescriptorMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetricDescriptorMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MetricDescriptor.MetricDescriptorMetadata;
+
+ /**
+ * Creates a plain object from a MetricDescriptorMetadata message. Also converts values to other types if specified.
+ * @param message MetricDescriptorMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MetricDescriptor.MetricDescriptorMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetricDescriptorMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetricDescriptorMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** MetricKind enum. */
+ enum MetricKind {
+ METRIC_KIND_UNSPECIFIED = 0,
+ GAUGE = 1,
+ DELTA = 2,
+ CUMULATIVE = 3
+ }
+
+ /** ValueType enum. */
+ enum ValueType {
+ VALUE_TYPE_UNSPECIFIED = 0,
+ BOOL = 1,
+ INT64 = 2,
+ DOUBLE = 3,
+ STRING = 4,
+ DISTRIBUTION = 5,
+ MONEY = 6
+ }
+ }
+
+ /** Properties of a Metric. */
+ interface IMetric {
+
+ /** Metric type */
+ type?: (string|null);
+
+ /** Metric labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a Metric. */
+ class Metric implements IMetric {
+
+ /**
+ * Constructs a new Metric.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMetric);
+
+ /** Metric type. */
+ public type: string;
+
+ /** Metric labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new Metric instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Metric instance
+ */
+ public static create(properties?: google.api.IMetric): google.api.Metric;
+
+ /**
+ * Encodes the specified Metric message. Does not implicitly {@link google.api.Metric.verify|verify} messages.
+ * @param message Metric message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMetric, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.api.Metric.verify|verify} messages.
+ * @param message Metric message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMetric, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Metric message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Metric
+ * @throws {Error} If the payload is not 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.Metric;
+
+ /**
+ * Decodes a Metric message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Metric
+ * @throws {Error} If the payload 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.Metric;
+
+ /**
+ * Verifies a Metric message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Metric message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Metric
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Metric;
+
+ /**
+ * Creates a plain object from a Metric message. Also converts values to other types if specified.
+ * @param message Metric
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Metric to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Metric
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** Properties of a MonitoredResourceDescriptor. */
+ interface IMonitoredResourceDescriptor {
+
+ /** MonitoredResourceDescriptor name */
+ name?: (string|null);
+
+ /** MonitoredResourceDescriptor type */
+ type?: (string|null);
+
+ /** MonitoredResourceDescriptor displayName */
+ displayName?: (string|null);
+
+ /** MonitoredResourceDescriptor description */
+ description?: (string|null);
+
+ /** MonitoredResourceDescriptor labels */
+ labels?: (google.api.ILabelDescriptor[]|null);
+
+ /** MonitoredResourceDescriptor launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+ }
+
+ /** Represents a MonitoredResourceDescriptor. */
+ class MonitoredResourceDescriptor implements IMonitoredResourceDescriptor {
+
+ /**
+ * Constructs a new MonitoredResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMonitoredResourceDescriptor);
+
+ /** MonitoredResourceDescriptor name. */
+ public name: string;
+
+ /** MonitoredResourceDescriptor type. */
+ public type: string;
+
+ /** MonitoredResourceDescriptor displayName. */
+ public displayName: string;
+
+ /** MonitoredResourceDescriptor description. */
+ public description: string;
+
+ /** MonitoredResourceDescriptor labels. */
+ public labels: google.api.ILabelDescriptor[];
+
+ /** MonitoredResourceDescriptor launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /**
+ * Creates a new MonitoredResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MonitoredResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IMonitoredResourceDescriptor): google.api.MonitoredResourceDescriptor;
+
+ /**
+ * Encodes the specified MonitoredResourceDescriptor message. Does not implicitly {@link google.api.MonitoredResourceDescriptor.verify|verify} messages.
+ * @param message MonitoredResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMonitoredResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MonitoredResourceDescriptor message, length delimited. Does not implicitly {@link google.api.MonitoredResourceDescriptor.verify|verify} messages.
+ * @param message MonitoredResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMonitoredResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MonitoredResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MonitoredResourceDescriptor
+ * @throws {Error} If the payload is not 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.MonitoredResourceDescriptor;
+
+ /**
+ * Decodes a MonitoredResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MonitoredResourceDescriptor
+ * @throws {Error} If the payload 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.MonitoredResourceDescriptor;
+
+ /**
+ * Verifies a MonitoredResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MonitoredResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MonitoredResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MonitoredResourceDescriptor;
+
+ /**
+ * Creates a plain object from a MonitoredResourceDescriptor message. Also converts values to other types if specified.
+ * @param message MonitoredResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MonitoredResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MonitoredResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MonitoredResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MonitoredResource. */
+ interface IMonitoredResource {
+
+ /** MonitoredResource type */
+ type?: (string|null);
+
+ /** MonitoredResource labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a MonitoredResource. */
+ class MonitoredResource implements IMonitoredResource {
+
+ /**
+ * Constructs a new MonitoredResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMonitoredResource);
+
+ /** MonitoredResource type. */
+ public type: string;
+
+ /** MonitoredResource labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new MonitoredResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MonitoredResource instance
+ */
+ public static create(properties?: google.api.IMonitoredResource): google.api.MonitoredResource;
+
+ /**
+ * Encodes the specified MonitoredResource message. Does not implicitly {@link google.api.MonitoredResource.verify|verify} messages.
+ * @param message MonitoredResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMonitoredResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MonitoredResource message, length delimited. Does not implicitly {@link google.api.MonitoredResource.verify|verify} messages.
+ * @param message MonitoredResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMonitoredResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MonitoredResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MonitoredResource
+ * @throws {Error} If the payload is not 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.MonitoredResource;
+
+ /**
+ * Decodes a MonitoredResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MonitoredResource
+ * @throws {Error} If the payload 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.MonitoredResource;
+
+ /**
+ * Verifies a MonitoredResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MonitoredResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MonitoredResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MonitoredResource;
+
+ /**
+ * Creates a plain object from a MonitoredResource message. Also converts values to other types if specified.
+ * @param message MonitoredResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MonitoredResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MonitoredResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MonitoredResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MonitoredResourceMetadata. */
+ interface IMonitoredResourceMetadata {
+
+ /** MonitoredResourceMetadata systemLabels */
+ systemLabels?: (google.protobuf.IStruct|null);
+
+ /** MonitoredResourceMetadata userLabels */
+ userLabels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a MonitoredResourceMetadata. */
+ class MonitoredResourceMetadata implements IMonitoredResourceMetadata {
+
+ /**
+ * Constructs a new MonitoredResourceMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMonitoredResourceMetadata);
+
+ /** MonitoredResourceMetadata systemLabels. */
+ public systemLabels?: (google.protobuf.IStruct|null);
+
+ /** MonitoredResourceMetadata userLabels. */
+ public userLabels: { [k: string]: string };
+
+ /**
+ * Creates a new MonitoredResourceMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MonitoredResourceMetadata instance
+ */
+ public static create(properties?: google.api.IMonitoredResourceMetadata): google.api.MonitoredResourceMetadata;
+
+ /**
+ * Encodes the specified MonitoredResourceMetadata message. Does not implicitly {@link google.api.MonitoredResourceMetadata.verify|verify} messages.
+ * @param message MonitoredResourceMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMonitoredResourceMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MonitoredResourceMetadata message, length delimited. Does not implicitly {@link google.api.MonitoredResourceMetadata.verify|verify} messages.
+ * @param message MonitoredResourceMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMonitoredResourceMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MonitoredResourceMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MonitoredResourceMetadata
+ * @throws {Error} If the payload is not 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.MonitoredResourceMetadata;
+
+ /**
+ * Decodes a MonitoredResourceMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MonitoredResourceMetadata
+ * @throws {Error} If the payload 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.MonitoredResourceMetadata;
+
+ /**
+ * Verifies a MonitoredResourceMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MonitoredResourceMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MonitoredResourceMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MonitoredResourceMetadata;
+
+ /**
+ * Creates a plain object from a MonitoredResourceMetadata message. Also converts values to other types if specified.
+ * @param message MonitoredResourceMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MonitoredResourceMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MonitoredResourceMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MonitoredResourceMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Monitoring. */
+ interface IMonitoring {
+
+ /** Monitoring producerDestinations */
+ producerDestinations?: (google.api.Monitoring.IMonitoringDestination[]|null);
+
+ /** Monitoring consumerDestinations */
+ consumerDestinations?: (google.api.Monitoring.IMonitoringDestination[]|null);
+ }
+
+ /** Represents a Monitoring. */
+ class Monitoring implements IMonitoring {
+
+ /**
+ * Constructs a new Monitoring.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMonitoring);
+
+ /** Monitoring producerDestinations. */
+ public producerDestinations: google.api.Monitoring.IMonitoringDestination[];
+
+ /** Monitoring consumerDestinations. */
+ public consumerDestinations: google.api.Monitoring.IMonitoringDestination[];
+
+ /**
+ * Creates a new Monitoring instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Monitoring instance
+ */
+ public static create(properties?: google.api.IMonitoring): google.api.Monitoring;
+
+ /**
+ * Encodes the specified Monitoring message. Does not implicitly {@link google.api.Monitoring.verify|verify} messages.
+ * @param message Monitoring message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMonitoring, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Monitoring message, length delimited. Does not implicitly {@link google.api.Monitoring.verify|verify} messages.
+ * @param message Monitoring message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMonitoring, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Monitoring message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Monitoring
+ * @throws {Error} If the payload is not 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.Monitoring;
+
+ /**
+ * Decodes a Monitoring message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Monitoring
+ * @throws {Error} If the payload 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.Monitoring;
+
+ /**
+ * Verifies a Monitoring message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Monitoring message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Monitoring
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Monitoring;
+
+ /**
+ * Creates a plain object from a Monitoring message. Also converts values to other types if specified.
+ * @param message Monitoring
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Monitoring, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Monitoring to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Monitoring
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Monitoring {
+
+ /** Properties of a MonitoringDestination. */
+ interface IMonitoringDestination {
+
+ /** MonitoringDestination monitoredResource */
+ monitoredResource?: (string|null);
+
+ /** MonitoringDestination metrics */
+ metrics?: (string[]|null);
+ }
+
+ /** Represents a MonitoringDestination. */
+ class MonitoringDestination implements IMonitoringDestination {
+
+ /**
+ * Constructs a new MonitoringDestination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.Monitoring.IMonitoringDestination);
+
+ /** MonitoringDestination monitoredResource. */
+ public monitoredResource: string;
+
+ /** MonitoringDestination metrics. */
+ public metrics: string[];
+
+ /**
+ * Creates a new MonitoringDestination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MonitoringDestination instance
+ */
+ public static create(properties?: google.api.Monitoring.IMonitoringDestination): google.api.Monitoring.MonitoringDestination;
+
+ /**
+ * Encodes the specified MonitoringDestination message. Does not implicitly {@link google.api.Monitoring.MonitoringDestination.verify|verify} messages.
+ * @param message MonitoringDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.Monitoring.IMonitoringDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MonitoringDestination message, length delimited. Does not implicitly {@link google.api.Monitoring.MonitoringDestination.verify|verify} messages.
+ * @param message MonitoringDestination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.Monitoring.IMonitoringDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MonitoringDestination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MonitoringDestination
+ * @throws {Error} If the payload is not 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.Monitoring.MonitoringDestination;
+
+ /**
+ * Decodes a MonitoringDestination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MonitoringDestination
+ * @throws {Error} If the payload 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.Monitoring.MonitoringDestination;
+
+ /**
+ * Verifies a MonitoringDestination message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MonitoringDestination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MonitoringDestination
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Monitoring.MonitoringDestination;
+
+ /**
+ * Creates a plain object from a MonitoringDestination message. Also converts values to other types if specified.
+ * @param message MonitoringDestination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Monitoring.MonitoringDestination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MonitoringDestination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MonitoringDestination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Quota. */
+ interface IQuota {
+
+ /** Quota limits */
+ limits?: (google.api.IQuotaLimit[]|null);
+
+ /** Quota metricRules */
+ metricRules?: (google.api.IMetricRule[]|null);
+ }
+
+ /** Represents a Quota. */
+ class Quota implements IQuota {
+
+ /**
+ * Constructs a new Quota.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IQuota);
+
+ /** Quota limits. */
+ public limits: google.api.IQuotaLimit[];
+
+ /** Quota metricRules. */
+ public metricRules: google.api.IMetricRule[];
+
+ /**
+ * Creates a new Quota instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Quota instance
+ */
+ public static create(properties?: google.api.IQuota): google.api.Quota;
+
+ /**
+ * Encodes the specified Quota message. Does not implicitly {@link google.api.Quota.verify|verify} messages.
+ * @param message Quota message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IQuota, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Quota message, length delimited. Does not implicitly {@link google.api.Quota.verify|verify} messages.
+ * @param message Quota message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IQuota, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Quota message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Quota
+ * @throws {Error} If the payload is not 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.Quota;
+
+ /**
+ * Decodes a Quota message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Quota
+ * @throws {Error} If the payload 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.Quota;
+
+ /**
+ * Verifies a Quota message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Quota message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Quota
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Quota;
+
+ /**
+ * Creates a plain object from a Quota message. Also converts values to other types if specified.
+ * @param message Quota
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Quota, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Quota to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Quota
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MetricRule. */
+ interface IMetricRule {
+
+ /** MetricRule selector */
+ selector?: (string|null);
+
+ /** MetricRule metricCosts */
+ metricCosts?: ({ [k: string]: (number|Long|string) }|null);
+ }
+
+ /** Represents a MetricRule. */
+ class MetricRule implements IMetricRule {
+
+ /**
+ * Constructs a new MetricRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMetricRule);
+
+ /** MetricRule selector. */
+ public selector: string;
+
+ /** MetricRule metricCosts. */
+ public metricCosts: { [k: string]: (number|Long|string) };
+
+ /**
+ * Creates a new MetricRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MetricRule instance
+ */
+ public static create(properties?: google.api.IMetricRule): google.api.MetricRule;
+
+ /**
+ * Encodes the specified MetricRule message. Does not implicitly {@link google.api.MetricRule.verify|verify} messages.
+ * @param message MetricRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMetricRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MetricRule message, length delimited. Does not implicitly {@link google.api.MetricRule.verify|verify} messages.
+ * @param message MetricRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMetricRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MetricRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MetricRule
+ * @throws {Error} If the payload is not 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.MetricRule;
+
+ /**
+ * Decodes a MetricRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MetricRule
+ * @throws {Error} If the payload 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.MetricRule;
+
+ /**
+ * Verifies a MetricRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MetricRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MetricRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MetricRule;
+
+ /**
+ * Creates a plain object from a MetricRule message. Also converts values to other types if specified.
+ * @param message MetricRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MetricRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MetricRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MetricRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QuotaLimit. */
+ interface IQuotaLimit {
+
+ /** QuotaLimit name */
+ name?: (string|null);
+
+ /** QuotaLimit description */
+ description?: (string|null);
+
+ /** QuotaLimit defaultLimit */
+ defaultLimit?: (number|Long|string|null);
+
+ /** QuotaLimit maxLimit */
+ maxLimit?: (number|Long|string|null);
+
+ /** QuotaLimit freeTier */
+ freeTier?: (number|Long|string|null);
+
+ /** QuotaLimit duration */
+ duration?: (string|null);
+
+ /** QuotaLimit metric */
+ metric?: (string|null);
+
+ /** QuotaLimit unit */
+ unit?: (string|null);
+
+ /** QuotaLimit values */
+ values?: ({ [k: string]: (number|Long|string) }|null);
+
+ /** QuotaLimit displayName */
+ displayName?: (string|null);
+ }
+
+ /** Represents a QuotaLimit. */
+ class QuotaLimit implements IQuotaLimit {
+
+ /**
+ * Constructs a new QuotaLimit.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IQuotaLimit);
+
+ /** QuotaLimit name. */
+ public name: string;
+
+ /** QuotaLimit description. */
+ public description: string;
+
+ /** QuotaLimit defaultLimit. */
+ public defaultLimit: (number|Long|string);
+
+ /** QuotaLimit maxLimit. */
+ public maxLimit: (number|Long|string);
+
+ /** QuotaLimit freeTier. */
+ public freeTier: (number|Long|string);
+
+ /** QuotaLimit duration. */
+ public duration: string;
+
+ /** QuotaLimit metric. */
+ public metric: string;
+
+ /** QuotaLimit unit. */
+ public unit: string;
+
+ /** QuotaLimit values. */
+ public values: { [k: string]: (number|Long|string) };
+
+ /** QuotaLimit displayName. */
+ public displayName: string;
+
+ /**
+ * Creates a new QuotaLimit instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QuotaLimit instance
+ */
+ public static create(properties?: google.api.IQuotaLimit): google.api.QuotaLimit;
+
+ /**
+ * Encodes the specified QuotaLimit message. Does not implicitly {@link google.api.QuotaLimit.verify|verify} messages.
+ * @param message QuotaLimit message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IQuotaLimit, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QuotaLimit message, length delimited. Does not implicitly {@link google.api.QuotaLimit.verify|verify} messages.
+ * @param message QuotaLimit message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IQuotaLimit, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QuotaLimit message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QuotaLimit
+ * @throws {Error} If the payload is not 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.QuotaLimit;
+
+ /**
+ * Decodes a QuotaLimit message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QuotaLimit
+ * @throws {Error} If the payload 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.QuotaLimit;
+
+ /**
+ * Verifies a QuotaLimit message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a QuotaLimit message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QuotaLimit
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.QuotaLimit;
+
+ /**
+ * Creates a plain object from a QuotaLimit message. Also converts values to other types if specified.
+ * @param message QuotaLimit
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.QuotaLimit, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QuotaLimit to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QuotaLimit
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceInfo. */
+ interface ISourceInfo {
+
+ /** SourceInfo sourceFiles */
+ sourceFiles?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a SourceInfo. */
+ class SourceInfo implements ISourceInfo {
+
+ /**
+ * Constructs a new SourceInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISourceInfo);
+
+ /** SourceInfo sourceFiles. */
+ public sourceFiles: google.protobuf.IAny[];
+
+ /**
+ * Creates a new SourceInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceInfo instance
+ */
+ public static create(properties?: google.api.ISourceInfo): google.api.SourceInfo;
+
+ /**
+ * Encodes the specified SourceInfo message. Does not implicitly {@link google.api.SourceInfo.verify|verify} messages.
+ * @param message SourceInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISourceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceInfo message, length delimited. Does not implicitly {@link google.api.SourceInfo.verify|verify} messages.
+ * @param message SourceInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISourceInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceInfo
+ * @throws {Error} If the payload is not 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.SourceInfo;
+
+ /**
+ * Decodes a SourceInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceInfo
+ * @throws {Error} If the payload 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.SourceInfo;
+
+ /**
+ * Verifies a SourceInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SourceInfo;
+
+ /**
+ * Creates a plain object from a SourceInfo message. Also converts values to other types if specified.
+ * @param message SourceInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SystemParameters. */
+ interface ISystemParameters {
+
+ /** SystemParameters rules */
+ rules?: (google.api.ISystemParameterRule[]|null);
+ }
+
+ /** Represents a SystemParameters. */
+ class SystemParameters implements ISystemParameters {
+
+ /**
+ * Constructs a new SystemParameters.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISystemParameters);
+
+ /** SystemParameters rules. */
+ public rules: google.api.ISystemParameterRule[];
+
+ /**
+ * Creates a new SystemParameters instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SystemParameters instance
+ */
+ public static create(properties?: google.api.ISystemParameters): google.api.SystemParameters;
+
+ /**
+ * Encodes the specified SystemParameters message. Does not implicitly {@link google.api.SystemParameters.verify|verify} messages.
+ * @param message SystemParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISystemParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SystemParameters message, length delimited. Does not implicitly {@link google.api.SystemParameters.verify|verify} messages.
+ * @param message SystemParameters message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISystemParameters, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SystemParameters message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SystemParameters
+ * @throws {Error} If the payload is not 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.SystemParameters;
+
+ /**
+ * Decodes a SystemParameters message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SystemParameters
+ * @throws {Error} If the payload 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.SystemParameters;
+
+ /**
+ * Verifies a SystemParameters message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SystemParameters message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SystemParameters
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SystemParameters;
+
+ /**
+ * Creates a plain object from a SystemParameters message. Also converts values to other types if specified.
+ * @param message SystemParameters
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SystemParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SystemParameters to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SystemParameters
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SystemParameterRule. */
+ interface ISystemParameterRule {
+
+ /** SystemParameterRule selector */
+ selector?: (string|null);
+
+ /** SystemParameterRule parameters */
+ parameters?: (google.api.ISystemParameter[]|null);
+ }
+
+ /** Represents a SystemParameterRule. */
+ class SystemParameterRule implements ISystemParameterRule {
+
+ /**
+ * Constructs a new SystemParameterRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISystemParameterRule);
+
+ /** SystemParameterRule selector. */
+ public selector: string;
+
+ /** SystemParameterRule parameters. */
+ public parameters: google.api.ISystemParameter[];
+
+ /**
+ * Creates a new SystemParameterRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SystemParameterRule instance
+ */
+ public static create(properties?: google.api.ISystemParameterRule): google.api.SystemParameterRule;
+
+ /**
+ * Encodes the specified SystemParameterRule message. Does not implicitly {@link google.api.SystemParameterRule.verify|verify} messages.
+ * @param message SystemParameterRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISystemParameterRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SystemParameterRule message, length delimited. Does not implicitly {@link google.api.SystemParameterRule.verify|verify} messages.
+ * @param message SystemParameterRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISystemParameterRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SystemParameterRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SystemParameterRule
+ * @throws {Error} If the payload is not 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.SystemParameterRule;
+
+ /**
+ * Decodes a SystemParameterRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SystemParameterRule
+ * @throws {Error} If the payload 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.SystemParameterRule;
+
+ /**
+ * Verifies a SystemParameterRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SystemParameterRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SystemParameterRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SystemParameterRule;
+
+ /**
+ * Creates a plain object from a SystemParameterRule message. Also converts values to other types if specified.
+ * @param message SystemParameterRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SystemParameterRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SystemParameterRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SystemParameterRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SystemParameter. */
+ interface ISystemParameter {
+
+ /** SystemParameter name */
+ name?: (string|null);
+
+ /** SystemParameter httpHeader */
+ httpHeader?: (string|null);
+
+ /** SystemParameter urlQueryParameter */
+ urlQueryParameter?: (string|null);
+ }
+
+ /** Represents a SystemParameter. */
+ class SystemParameter implements ISystemParameter {
+
+ /**
+ * Constructs a new SystemParameter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISystemParameter);
+
+ /** SystemParameter name. */
+ public name: string;
+
+ /** SystemParameter httpHeader. */
+ public httpHeader: string;
+
+ /** SystemParameter urlQueryParameter. */
+ public urlQueryParameter: string;
+
+ /**
+ * Creates a new SystemParameter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SystemParameter instance
+ */
+ public static create(properties?: google.api.ISystemParameter): google.api.SystemParameter;
+
+ /**
+ * Encodes the specified SystemParameter message. Does not implicitly {@link google.api.SystemParameter.verify|verify} messages.
+ * @param message SystemParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISystemParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SystemParameter message, length delimited. Does not implicitly {@link google.api.SystemParameter.verify|verify} messages.
+ * @param message SystemParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISystemParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SystemParameter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SystemParameter
+ * @throws {Error} If the payload is not 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.SystemParameter;
+
+ /**
+ * Decodes a SystemParameter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SystemParameter
+ * @throws {Error} If the payload 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.SystemParameter;
+
+ /**
+ * Verifies a SystemParameter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SystemParameter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SystemParameter
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SystemParameter;
+
+ /**
+ * Creates a plain object from a SystemParameter message. Also converts values to other types if specified.
+ * @param message SystemParameter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SystemParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SystemParameter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SystemParameter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Usage. */
+ interface IUsage {
+
+ /** Usage requirements */
+ requirements?: (string[]|null);
+
+ /** Usage rules */
+ rules?: (google.api.IUsageRule[]|null);
+
+ /** Usage producerNotificationChannel */
+ producerNotificationChannel?: (string|null);
+ }
+
+ /** Represents a Usage. */
+ class Usage implements IUsage {
+
+ /**
+ * Constructs a new Usage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IUsage);
+
+ /** Usage requirements. */
+ public requirements: string[];
+
+ /** Usage rules. */
+ public rules: google.api.IUsageRule[];
+
+ /** Usage producerNotificationChannel. */
+ public producerNotificationChannel: string;
+
+ /**
+ * Creates a new Usage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Usage instance
+ */
+ public static create(properties?: google.api.IUsage): google.api.Usage;
+
+ /**
+ * Encodes the specified Usage message. Does not implicitly {@link google.api.Usage.verify|verify} messages.
+ * @param message Usage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IUsage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Usage message, length delimited. Does not implicitly {@link google.api.Usage.verify|verify} messages.
+ * @param message Usage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IUsage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Usage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Usage
+ * @throws {Error} If the payload is not 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.Usage;
+
+ /**
+ * Decodes a Usage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Usage
+ * @throws {Error} If the payload 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.Usage;
+
+ /**
+ * Verifies a Usage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Usage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Usage
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Usage;
+
+ /**
+ * Creates a plain object from a Usage message. Also converts values to other types if specified.
+ * @param message Usage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Usage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Usage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Usage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UsageRule. */
+ interface IUsageRule {
+
+ /** UsageRule selector */
+ selector?: (string|null);
+
+ /** UsageRule allowUnregisteredCalls */
+ allowUnregisteredCalls?: (boolean|null);
+
+ /** UsageRule skipServiceControl */
+ skipServiceControl?: (boolean|null);
+ }
+
+ /** Represents a UsageRule. */
+ class UsageRule implements IUsageRule {
+
+ /**
+ * Constructs a new UsageRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IUsageRule);
+
+ /** UsageRule selector. */
+ public selector: string;
+
+ /** UsageRule allowUnregisteredCalls. */
+ public allowUnregisteredCalls: boolean;
+
+ /** UsageRule skipServiceControl. */
+ public skipServiceControl: boolean;
+
+ /**
+ * Creates a new UsageRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UsageRule instance
+ */
+ public static create(properties?: google.api.IUsageRule): google.api.UsageRule;
+
+ /**
+ * Encodes the specified UsageRule message. Does not implicitly {@link google.api.UsageRule.verify|verify} messages.
+ * @param message UsageRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IUsageRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UsageRule message, length delimited. Does not implicitly {@link google.api.UsageRule.verify|verify} messages.
+ * @param message UsageRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IUsageRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UsageRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UsageRule
+ * @throws {Error} If the payload is not 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.UsageRule;
+
+ /**
+ * Decodes a UsageRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UsageRule
+ * @throws {Error} If the payload 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.UsageRule;
+
+ /**
+ * Verifies a UsageRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UsageRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UsageRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.UsageRule;
+
+ /**
+ * Creates a plain object from a UsageRule message. Also converts values to other types if specified.
+ * @param message UsageRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.UsageRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UsageRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UsageRule
+ * @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);
+ }
+
+ /** 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);
+ }
+
+ /** 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);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of 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 a Struct. */
+ interface IStruct {
+
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ }
+
+ /** Represents a Struct. */
+ class Struct implements IStruct {
+
+ /**
+ * Constructs a new Struct.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStruct);
+
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
+
+ /**
+ * Creates a new Struct instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Struct instance
+ */
+ public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
+
+ /**
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Struct
+ * @throws {Error} If the payload is not 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.Struct;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Struct
+ * @throws {Error} If the payload 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.Struct;
+
+ /**
+ * Verifies a Struct message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Struct message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Struct
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
+
+ /**
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
+ * @param message Struct
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Struct to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Struct
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue */
+ numberValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value boolValue */
+ boolValue?: (boolean|null);
+
+ /** Value structValue */
+ structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue */
+ listValue?: (google.protobuf.IListValue|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue. */
+ public numberValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** Value structValue. */
+ public structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue. */
+ public listValue?: (google.protobuf.IListValue|null);
+
+ /** Value kind. */
+ public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not 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.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload 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.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** NullValue enum. */
+ enum NullValue {
+ NULL_VALUE = 0
+ }
+
+ /** Properties of a ListValue. */
+ interface IListValue {
+
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
+
+ /**
+ * Constructs a new ListValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IListValue);
+
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
+
+ /**
+ * Creates a new ListValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListValue instance
+ */
+ public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
+
+ /**
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListValue
+ * @throws {Error} If the payload is not 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.ListValue;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListValue
+ * @throws {Error} If the payload 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.ListValue;
+
+ /**
+ * Verifies a ListValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
+
+ /**
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
+ * @param message ListValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Api. */
+ interface IApi {
+
+ /** Api name */
+ name?: (string|null);
+
+ /** Api methods */
+ methods?: (google.protobuf.IMethod[]|null);
+
+ /** Api options */
+ options?: (google.protobuf.IOption[]|null);
+
+ /** Api version */
+ version?: (string|null);
+
+ /** Api sourceContext */
+ sourceContext?: (google.protobuf.ISourceContext|null);
+
+ /** Api mixins */
+ mixins?: (google.protobuf.IMixin[]|null);
+
+ /** Api syntax */
+ syntax?: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax|null);
+ }
+
+ /** Represents an Api. */
+ class Api implements IApi {
+
+ /**
+ * Constructs a new Api.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IApi);
+
+ /** Api name. */
+ public name: string;
+
+ /** Api methods. */
+ public methods: google.protobuf.IMethod[];
+
+ /** Api options. */
+ public options: google.protobuf.IOption[];
+
+ /** Api version. */
+ public version: string;
+
+ /** Api sourceContext. */
+ public sourceContext?: (google.protobuf.ISourceContext|null);
+
+ /** Api mixins. */
+ public mixins: google.protobuf.IMixin[];
+
+ /** Api syntax. */
+ public syntax: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax);
+
+ /**
+ * Creates a new Api instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Api instance
+ */
+ public static create(properties?: google.protobuf.IApi): google.protobuf.Api;
+
+ /**
+ * Encodes the specified Api message. Does not implicitly {@link google.protobuf.Api.verify|verify} messages.
+ * @param message Api message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IApi, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Api message, length delimited. Does not implicitly {@link google.protobuf.Api.verify|verify} messages.
+ * @param message Api message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IApi, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Api message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Api
+ * @throws {Error} If the payload is not 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.Api;
+
+ /**
+ * Decodes an Api message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Api
+ * @throws {Error} If the payload 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.Api;
+
+ /**
+ * Verifies an Api message.
+ * @param message Plain 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 Api message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Api
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Api;
+
+ /**
+ * Creates a plain object from an Api message. Also converts values to other types if specified.
+ * @param message Api
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Api, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Api to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Api
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Method. */
+ interface IMethod {
+
+ /** Method name */
+ name?: (string|null);
+
+ /** Method requestTypeUrl */
+ requestTypeUrl?: (string|null);
+
+ /** Method requestStreaming */
+ requestStreaming?: (boolean|null);
+
+ /** Method responseTypeUrl */
+ responseTypeUrl?: (string|null);
+
+ /** Method responseStreaming */
+ responseStreaming?: (boolean|null);
+
+ /** Method options */
+ options?: (google.protobuf.IOption[]|null);
+
+ /** Method syntax */
+ syntax?: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax|null);
+ }
+
+ /** Represents a Method. */
+ class Method implements IMethod {
+
+ /**
+ * Constructs a new Method.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethod);
+
+ /** Method name. */
+ public name: string;
+
+ /** Method requestTypeUrl. */
+ public requestTypeUrl: string;
+
+ /** Method requestStreaming. */
+ public requestStreaming: boolean;
+
+ /** Method responseTypeUrl. */
+ public responseTypeUrl: string;
+
+ /** Method responseStreaming. */
+ public responseStreaming: boolean;
+
+ /** Method options. */
+ public options: google.protobuf.IOption[];
+
+ /** Method syntax. */
+ public syntax: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax);
+
+ /**
+ * Creates a new Method instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Method instance
+ */
+ public static create(properties?: google.protobuf.IMethod): google.protobuf.Method;
+
+ /**
+ * Encodes the specified Method message. Does not implicitly {@link google.protobuf.Method.verify|verify} messages.
+ * @param message Method message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethod, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Method message, length delimited. Does not implicitly {@link google.protobuf.Method.verify|verify} messages.
+ * @param message Method message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethod, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Method message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Method
+ * @throws {Error} If the payload is not 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.Method;
+
+ /**
+ * Decodes a Method message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Method
+ * @throws {Error} If the payload 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.Method;
+
+ /**
+ * Verifies a Method message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Method message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Method
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Method;
+
+ /**
+ * Creates a plain object from a Method message. Also converts values to other types if specified.
+ * @param message Method
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Method, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Method to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Method
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Mixin. */
+ interface IMixin {
+
+ /** Mixin name */
+ name?: (string|null);
+
+ /** Mixin root */
+ root?: (string|null);
+ }
+
+ /** Represents a Mixin. */
+ class Mixin implements IMixin {
+
+ /**
+ * Constructs a new Mixin.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMixin);
+
+ /** Mixin name. */
+ public name: string;
+
+ /** Mixin root. */
+ public root: string;
+
+ /**
+ * Creates a new Mixin instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Mixin instance
+ */
+ public static create(properties?: google.protobuf.IMixin): google.protobuf.Mixin;
+
+ /**
+ * Encodes the specified Mixin message. Does not implicitly {@link google.protobuf.Mixin.verify|verify} messages.
+ * @param message Mixin message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMixin, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Mixin message, length delimited. Does not implicitly {@link google.protobuf.Mixin.verify|verify} messages.
+ * @param message Mixin message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMixin, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Mixin message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Mixin
+ * @throws {Error} If the payload is not 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.Mixin;
+
+ /**
+ * Decodes a Mixin message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Mixin
+ * @throws {Error} If the payload 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.Mixin;
+
+ /**
+ * Verifies a Mixin message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Mixin message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Mixin
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Mixin;
+
+ /**
+ * Creates a plain object from a Mixin message. Also converts values to other types if specified.
+ * @param message Mixin
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Mixin, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Mixin to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Mixin
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceContext. */
+ interface ISourceContext {
+
+ /** SourceContext fileName */
+ fileName?: (string|null);
+ }
+
+ /** Represents a SourceContext. */
+ class SourceContext implements ISourceContext {
+
+ /**
+ * Constructs a new SourceContext.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceContext);
+
+ /** SourceContext fileName. */
+ public fileName: string;
+
+ /**
+ * Creates a new SourceContext instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceContext instance
+ */
+ public static create(properties?: google.protobuf.ISourceContext): google.protobuf.SourceContext;
+
+ /**
+ * Encodes the specified SourceContext message. Does not implicitly {@link google.protobuf.SourceContext.verify|verify} messages.
+ * @param message SourceContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceContext message, length delimited. Does not implicitly {@link google.protobuf.SourceContext.verify|verify} messages.
+ * @param message SourceContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceContext message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceContext
+ * @throws {Error} If the payload is not 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.SourceContext;
+
+ /**
+ * Decodes a SourceContext message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceContext
+ * @throws {Error} If the payload 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.SourceContext;
+
+ /**
+ * Verifies a SourceContext message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceContext message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceContext
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceContext;
+
+ /**
+ * Creates a plain object from a SourceContext message. Also converts values to other types if specified.
+ * @param message SourceContext
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceContext to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceContext
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Type. */
+ interface IType {
+
+ /** Type name */
+ name?: (string|null);
+
+ /** Type fields */
+ fields?: (google.protobuf.IField[]|null);
+
+ /** Type oneofs */
+ oneofs?: (string[]|null);
+
+ /** Type options */
+ options?: (google.protobuf.IOption[]|null);
+
+ /** Type sourceContext */
+ sourceContext?: (google.protobuf.ISourceContext|null);
+
+ /** Type syntax */
+ syntax?: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax|null);
+ }
+
+ /** Represents a Type. */
+ class Type implements IType {
+
+ /**
+ * Constructs a new Type.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IType);
+
+ /** Type name. */
+ public name: string;
+
+ /** Type fields. */
+ public fields: google.protobuf.IField[];
+
+ /** Type oneofs. */
+ public oneofs: string[];
+
+ /** Type options. */
+ public options: google.protobuf.IOption[];
+
+ /** Type sourceContext. */
+ public sourceContext?: (google.protobuf.ISourceContext|null);
+
+ /** Type syntax. */
+ public syntax: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax);
+
+ /**
+ * Creates a new Type instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Type instance
+ */
+ public static create(properties?: google.protobuf.IType): google.protobuf.Type;
+
+ /**
+ * Encodes the specified Type message. Does not implicitly {@link google.protobuf.Type.verify|verify} messages.
+ * @param message Type message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Type message, length delimited. Does not implicitly {@link google.protobuf.Type.verify|verify} messages.
+ * @param message Type message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Type message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Type
+ * @throws {Error} If the payload is not 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.Type;
+
+ /**
+ * Decodes a Type message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Type
+ * @throws {Error} If the payload 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.Type;
+
+ /**
+ * Verifies a Type message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Type message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Type
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Type;
+
+ /**
+ * Creates a plain object from a Type message. Also converts values to other types if specified.
+ * @param message Type
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Type, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Type to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Type
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Field. */
+ interface IField {
+
+ /** Field kind */
+ kind?: (google.protobuf.Field.Kind|keyof typeof google.protobuf.Field.Kind|null);
+
+ /** Field cardinality */
+ cardinality?: (google.protobuf.Field.Cardinality|keyof typeof google.protobuf.Field.Cardinality|null);
+
+ /** Field number */
+ number?: (number|null);
+
+ /** Field name */
+ name?: (string|null);
+
+ /** Field typeUrl */
+ typeUrl?: (string|null);
+
+ /** Field oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** Field packed */
+ packed?: (boolean|null);
+
+ /** Field options */
+ options?: (google.protobuf.IOption[]|null);
+
+ /** Field jsonName */
+ jsonName?: (string|null);
+
+ /** Field defaultValue */
+ defaultValue?: (string|null);
+ }
+
+ /** Represents a Field. */
+ class Field implements IField {
+
+ /**
+ * Constructs a new Field.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IField);
+
+ /** Field kind. */
+ public kind: (google.protobuf.Field.Kind|keyof typeof google.protobuf.Field.Kind);
+
+ /** Field cardinality. */
+ public cardinality: (google.protobuf.Field.Cardinality|keyof typeof google.protobuf.Field.Cardinality);
+
+ /** Field number. */
+ public number: number;
+
+ /** Field name. */
+ public name: string;
+
+ /** Field typeUrl. */
+ public typeUrl: string;
+
+ /** Field oneofIndex. */
+ public oneofIndex: number;
+
+ /** Field packed. */
+ public packed: boolean;
+
+ /** Field options. */
+ public options: google.protobuf.IOption[];
+
+ /** Field jsonName. */
+ public jsonName: string;
+
+ /** Field defaultValue. */
+ public defaultValue: string;
+
+ /**
+ * Creates a new Field instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Field instance
+ */
+ public static create(properties?: google.protobuf.IField): google.protobuf.Field;
+
+ /**
+ * Encodes the specified Field message. Does not implicitly {@link google.protobuf.Field.verify|verify} messages.
+ * @param message Field message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Field message, length delimited. Does not implicitly {@link google.protobuf.Field.verify|verify} messages.
+ * @param message Field message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Field message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Field
+ * @throws {Error} If the payload is not 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.Field;
+
+ /**
+ * Decodes a Field message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Field
+ * @throws {Error} If the payload 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.Field;
+
+ /**
+ * Verifies a Field message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Field message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Field
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Field;
+
+ /**
+ * Creates a plain object from a Field message. Also converts values to other types if specified.
+ * @param message Field
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Field, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Field to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Field
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Field {
+
+ /** Kind enum. */
+ enum Kind {
+ TYPE_UNKNOWN = 0,
+ 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
+ }
+
+ /** Cardinality enum. */
+ enum Cardinality {
+ CARDINALITY_UNKNOWN = 0,
+ CARDINALITY_OPTIONAL = 1,
+ CARDINALITY_REQUIRED = 2,
+ CARDINALITY_REPEATED = 3
+ }
+ }
+
+ /** Properties of an Enum. */
+ interface IEnum {
+
+ /** Enum name */
+ name?: (string|null);
+
+ /** Enum enumvalue */
+ enumvalue?: (google.protobuf.IEnumValue[]|null);
+
+ /** Enum options */
+ options?: (google.protobuf.IOption[]|null);
+
+ /** Enum sourceContext */
+ sourceContext?: (google.protobuf.ISourceContext|null);
+
+ /** Enum syntax */
+ syntax?: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax|null);
+ }
+
+ /** Represents an Enum. */
+ class Enum implements IEnum {
+
+ /**
+ * Constructs a new Enum.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnum);
+
+ /** Enum name. */
+ public name: string;
+
+ /** Enum enumvalue. */
+ public enumvalue: google.protobuf.IEnumValue[];
+
+ /** Enum options. */
+ public options: google.protobuf.IOption[];
+
+ /** Enum sourceContext. */
+ public sourceContext?: (google.protobuf.ISourceContext|null);
+
+ /** Enum syntax. */
+ public syntax: (google.protobuf.Syntax|keyof typeof google.protobuf.Syntax);
+
+ /**
+ * Creates a new Enum instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Enum instance
+ */
+ public static create(properties?: google.protobuf.IEnum): google.protobuf.Enum;
+
+ /**
+ * Encodes the specified Enum message. Does not implicitly {@link google.protobuf.Enum.verify|verify} messages.
+ * @param message Enum message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnum, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Enum message, length delimited. Does not implicitly {@link google.protobuf.Enum.verify|verify} messages.
+ * @param message Enum message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnum, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Enum message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Enum
+ * @throws {Error} If the payload is not 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.Enum;
+
+ /**
+ * Decodes an Enum message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Enum
+ * @throws {Error} If the payload 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.Enum;
+
+ /**
+ * Verifies an Enum message.
+ * @param message Plain 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 Enum message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Enum
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Enum;
+
+ /**
+ * Creates a plain object from an Enum message. Also converts values to other types if specified.
+ * @param message Enum
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Enum, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Enum to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Enum
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValue. */
+ interface IEnumValue {
+
+ /** EnumValue name */
+ name?: (string|null);
+
+ /** EnumValue number */
+ number?: (number|null);
+
+ /** EnumValue options */
+ options?: (google.protobuf.IOption[]|null);
+ }
+
+ /** Represents an EnumValue. */
+ class EnumValue implements IEnumValue {
+
+ /**
+ * Constructs a new EnumValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValue);
+
+ /** EnumValue name. */
+ public name: string;
+
+ /** EnumValue number. */
+ public number: number;
+
+ /** EnumValue options. */
+ public options: google.protobuf.IOption[];
+
+ /**
+ * Creates a new EnumValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValue instance
+ */
+ public static create(properties?: google.protobuf.IEnumValue): google.protobuf.EnumValue;
+
+ /**
+ * Encodes the specified EnumValue message. Does not implicitly {@link google.protobuf.EnumValue.verify|verify} messages.
+ * @param message EnumValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValue message, length delimited. Does not implicitly {@link google.protobuf.EnumValue.verify|verify} messages.
+ * @param message EnumValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValue
+ * @throws {Error} If the payload is not 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.EnumValue;
+
+ /**
+ * Decodes an EnumValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValue
+ * @throws {Error} If the payload 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.EnumValue;
+
+ /**
+ * Verifies an EnumValue message.
+ * @param message Plain 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 EnumValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValue;
+
+ /**
+ * Creates a plain object from an EnumValue message. Also converts values to other types if specified.
+ * @param message EnumValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Option. */
+ interface IOption {
+
+ /** Option name */
+ name?: (string|null);
+
+ /** Option value */
+ value?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Option. */
+ class Option implements IOption {
+
+ /**
+ * Constructs a new Option.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOption);
+
+ /** Option name. */
+ public name: string;
+
+ /** Option value. */
+ public value?: (google.protobuf.IAny|null);
+
+ /**
+ * Creates a new Option instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Option instance
+ */
+ public static create(properties?: google.protobuf.IOption): google.protobuf.Option;
+
+ /**
+ * Encodes the specified Option message. Does not implicitly {@link google.protobuf.Option.verify|verify} messages.
+ * @param message Option message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Option message, length delimited. Does not implicitly {@link google.protobuf.Option.verify|verify} messages.
+ * @param message Option message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Option message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Option
+ * @throws {Error} If the payload is not 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.Option;
+
+ /**
+ * Decodes an Option message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Option
+ * @throws {Error} If the payload 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.Option;
+
+ /**
+ * Verifies an Option message.
+ * @param message Plain 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 Option message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Option
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Option;
+
+ /**
+ * Creates a plain object from an Option message. Also converts values to other types if specified.
+ * @param message Option
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Option, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Option to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Option
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Syntax enum. */
+ enum Syntax {
+ SYNTAX_PROTO2 = 0,
+ SYNTAX_PROTO3 = 1
+ }
+
+ /** Properties of a DoubleValue. */
+ interface IDoubleValue {
+
+ /** DoubleValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a DoubleValue. */
+ class DoubleValue implements IDoubleValue {
+
+ /**
+ * Constructs a new DoubleValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDoubleValue);
+
+ /** DoubleValue value. */
+ public value: number;
+
+ /**
+ * Creates a new DoubleValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DoubleValue instance
+ */
+ public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue;
+
+ /**
+ * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages.
+ * @param message DoubleValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue;
+
+ /**
+ * Decodes a DoubleValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DoubleValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue;
+
+ /**
+ * Verifies a DoubleValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DoubleValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue;
+
+ /**
+ * Creates a plain object from a DoubleValue message. Also converts values to other types if specified.
+ * @param message DoubleValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DoubleValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DoubleValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FloatValue. */
+ interface IFloatValue {
+
+ /** FloatValue value */
+ value?: (number|null);
+ }
+
+ /** Represents a FloatValue. */
+ class FloatValue implements IFloatValue {
+
+ /**
+ * Constructs a new FloatValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFloatValue);
+
+ /** FloatValue value. */
+ public value: number;
+
+ /**
+ * Creates a new FloatValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FloatValue instance
+ */
+ public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue;
+
+ /**
+ * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages.
+ * @param message FloatValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue;
+
+ /**
+ * Decodes a FloatValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FloatValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue;
+
+ /**
+ * Verifies a FloatValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FloatValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FloatValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue;
+
+ /**
+ * Creates a plain object from a FloatValue message. Also converts values to other types if specified.
+ * @param message FloatValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FloatValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FloatValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int64Value. */
+ interface IInt64Value {
+
+ /** Int64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents an Int64Value. */
+ class Int64Value implements IInt64Value {
+
+ /**
+ * Constructs a new Int64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt64Value);
+
+ /** Int64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new Int64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int64Value instance
+ */
+ public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value;
+
+ /**
+ * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages.
+ * @param message Int64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value;
+
+ /**
+ * Decodes an Int64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value;
+
+ /**
+ * Verifies an Int64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value;
+
+ /**
+ * Creates a plain object from an Int64Value message. Also converts values to other types if specified.
+ * @param message Int64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt64Value. */
+ interface IUInt64Value {
+
+ /** UInt64Value value */
+ value?: (number|Long|string|null);
+ }
+
+ /** Represents a UInt64Value. */
+ class UInt64Value implements IUInt64Value {
+
+ /**
+ * Constructs a new UInt64Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt64Value);
+
+ /** UInt64Value value. */
+ public value: (number|Long|string);
+
+ /**
+ * Creates a new UInt64Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt64Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value;
+
+ /**
+ * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages.
+ * @param message UInt64Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value;
+
+ /**
+ * Decodes a UInt64Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt64Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt64Value;
+
+ /**
+ * Verifies a UInt64Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt64Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value;
+
+ /**
+ * Creates a plain object from a UInt64Value message. Also converts values to other types if specified.
+ * @param message UInt64Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt64Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt64Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Int32Value. */
+ interface IInt32Value {
+
+ /** Int32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents an Int32Value. */
+ class Int32Value implements IInt32Value {
+
+ /**
+ * Constructs a new Int32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IInt32Value);
+
+ /** Int32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new Int32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Int32Value instance
+ */
+ public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value;
+
+ /**
+ * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages.
+ * @param message Int32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value;
+
+ /**
+ * Decodes an Int32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Int32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value;
+
+ /**
+ * Verifies an Int32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Int32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Int32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value;
+
+ /**
+ * Creates a plain object from an Int32Value message. Also converts values to other types if specified.
+ * @param message Int32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Int32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Int32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a UInt32Value. */
+ interface IUInt32Value {
+
+ /** UInt32Value value */
+ value?: (number|null);
+ }
+
+ /** Represents a UInt32Value. */
+ class UInt32Value implements IUInt32Value {
+
+ /**
+ * Constructs a new UInt32Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUInt32Value);
+
+ /** UInt32Value value. */
+ public value: number;
+
+ /**
+ * Creates a new UInt32Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UInt32Value instance
+ */
+ public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value;
+
+ /**
+ * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages.
+ * @param message UInt32Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value;
+
+ /**
+ * Decodes a UInt32Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UInt32Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UInt32Value;
+
+ /**
+ * Verifies a UInt32Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UInt32Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value;
+
+ /**
+ * Creates a plain object from a UInt32Value message. Also converts values to other types if specified.
+ * @param message UInt32Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UInt32Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UInt32Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BoolValue. */
+ interface IBoolValue {
+
+ /** BoolValue value */
+ value?: (boolean|null);
+ }
+
+ /** Represents a BoolValue. */
+ class BoolValue implements IBoolValue {
+
+ /**
+ * Constructs a new BoolValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBoolValue);
+
+ /** BoolValue value. */
+ public value: boolean;
+
+ /**
+ * Creates a new BoolValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BoolValue instance
+ */
+ public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue;
+
+ /**
+ * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages.
+ * @param message BoolValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue;
+
+ /**
+ * Decodes a BoolValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BoolValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BoolValue;
+
+ /**
+ * Verifies a BoolValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BoolValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BoolValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue;
+
+ /**
+ * Creates a plain object from a BoolValue message. Also converts values to other types if specified.
+ * @param message BoolValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BoolValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BoolValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StringValue. */
+ interface IStringValue {
+
+ /** StringValue value */
+ value?: (string|null);
+ }
+
+ /** Represents a StringValue. */
+ class StringValue implements IStringValue {
+
+ /**
+ * Constructs a new StringValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStringValue);
+
+ /** StringValue value. */
+ public value: string;
+
+ /**
+ * Creates a new StringValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StringValue instance
+ */
+ public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue;
+
+ /**
+ * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages.
+ * @param message StringValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue;
+
+ /**
+ * Decodes a StringValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StringValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue;
+
+ /**
+ * Verifies a StringValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StringValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StringValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue;
+
+ /**
+ * Creates a plain object from a StringValue message. Also converts values to other types if specified.
+ * @param message StringValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StringValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StringValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BytesValue. */
+ interface IBytesValue {
+
+ /** BytesValue value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents a BytesValue. */
+ class BytesValue implements IBytesValue {
+
+ /**
+ * Constructs a new BytesValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IBytesValue);
+
+ /** BytesValue value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new BytesValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BytesValue instance
+ */
+ public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue;
+
+ /**
+ * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages.
+ * @param message BytesValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue;
+
+ /**
+ * Decodes a BytesValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BytesValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.BytesValue;
+
+ /**
+ * Verifies a BytesValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BytesValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BytesValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue;
+
+ /**
+ * Creates a plain object from a BytesValue message. Also converts values to other types if specified.
+ * @param message BytesValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BytesValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BytesValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-api-servicemanagement/protos/protos.js b/packages/google-api-servicemanagement/protos/protos.js
new file mode 100644
index 00000000000..dedc7ddd352
--- /dev/null
+++ b/packages/google-api-servicemanagement/protos/protos.js
@@ -0,0 +1,40146 @@
+// 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_service_management_protos || ($protobuf.roots._google_cloud_service_management_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.api = (function() {
+
+ /**
+ * Namespace api.
+ * @memberof google
+ * @namespace
+ */
+ var api = {};
+
+ api.servicemanagement = (function() {
+
+ /**
+ * Namespace servicemanagement.
+ * @memberof google.api
+ * @namespace
+ */
+ var servicemanagement = {};
+
+ servicemanagement.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.api.servicemanagement
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.ManagedService = (function() {
+
+ /**
+ * Properties of a ManagedService.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IManagedService
+ * @property {string|null} [serviceName] ManagedService serviceName
+ * @property {string|null} [producerProjectId] ManagedService producerProjectId
+ */
+
+ /**
+ * Constructs a new ManagedService.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ManagedService.
+ * @implements IManagedService
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IManagedService=} [properties] Properties to set
+ */
+ function ManagedService(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]];
+ }
+
+ /**
+ * ManagedService serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @instance
+ */
+ ManagedService.prototype.serviceName = "";
+
+ /**
+ * ManagedService producerProjectId.
+ * @member {string} producerProjectId
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @instance
+ */
+ ManagedService.prototype.producerProjectId = "";
+
+ /**
+ * Creates a new ManagedService instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {google.api.servicemanagement.v1.IManagedService=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ManagedService} ManagedService instance
+ */
+ ManagedService.create = function create(properties) {
+ return new ManagedService(properties);
+ };
+
+ /**
+ * Encodes the specified ManagedService message. Does not implicitly {@link google.api.servicemanagement.v1.ManagedService.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {google.api.servicemanagement.v1.IManagedService} message ManagedService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ManagedService.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceName);
+ if (message.producerProjectId != null && Object.hasOwnProperty.call(message, "producerProjectId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.producerProjectId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ManagedService message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ManagedService.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {google.api.servicemanagement.v1.IManagedService} message ManagedService message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ManagedService.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ManagedService message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ManagedService} ManagedService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ManagedService.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.api.servicemanagement.v1.ManagedService();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 3: {
+ message.producerProjectId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ManagedService message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ManagedService} ManagedService
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ManagedService.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ManagedService message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ManagedService.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.producerProjectId != null && message.hasOwnProperty("producerProjectId"))
+ if (!$util.isString(message.producerProjectId))
+ return "producerProjectId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ManagedService message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ManagedService} ManagedService
+ */
+ ManagedService.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ManagedService)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ManagedService();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.producerProjectId != null)
+ message.producerProjectId = String(object.producerProjectId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ManagedService message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {google.api.servicemanagement.v1.ManagedService} message ManagedService
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ManagedService.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.producerProjectId = "";
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.producerProjectId != null && message.hasOwnProperty("producerProjectId"))
+ object.producerProjectId = message.producerProjectId;
+ return object;
+ };
+
+ /**
+ * Converts this ManagedService to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ManagedService.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ManagedService
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ManagedService
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ManagedService.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ManagedService";
+ };
+
+ return ManagedService;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IOperationMetadata
+ * @property {Array.|null} [resourceNames] OperationMetadata resourceNames
+ * @property {Array.|null} [steps] OperationMetadata steps
+ * @property {number|null} [progressPercentage] OperationMetadata progressPercentage
+ * @property {google.protobuf.ITimestamp|null} [startTime] OperationMetadata startTime
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IOperationMetadata=} [properties] Properties to set
+ */
+ function OperationMetadata(properties) {
+ this.resourceNames = [];
+ this.steps = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * OperationMetadata resourceNames.
+ * @member {Array.} resourceNames
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.resourceNames = $util.emptyArray;
+
+ /**
+ * OperationMetadata steps.
+ * @member {Array.} steps
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.steps = $util.emptyArray;
+
+ /**
+ * OperationMetadata progressPercentage.
+ * @member {number} progressPercentage
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.progressPercentage = 0;
+
+ /**
+ * OperationMetadata startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.startTime = null;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {google.api.servicemanagement.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.api.servicemanagement.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {google.api.servicemanagement.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.resourceNames != null && message.resourceNames.length)
+ for (var i = 0; i < message.resourceNames.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceNames[i]);
+ if (message.steps != null && message.steps.length)
+ for (var i = 0; i < message.steps.length; ++i)
+ $root.google.api.servicemanagement.v1.OperationMetadata.Step.encode(message.steps[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.progressPercentage != null && Object.hasOwnProperty.call(message, "progressPercentage"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.progressPercentage);
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {google.api.servicemanagement.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.servicemanagement.v1.OperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.resourceNames && message.resourceNames.length))
+ message.resourceNames = [];
+ message.resourceNames.push(reader.string());
+ break;
+ }
+ case 2: {
+ if (!(message.steps && message.steps.length))
+ message.steps = [];
+ message.steps.push($root.google.api.servicemanagement.v1.OperationMetadata.Step.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.progressPercentage = reader.int32();
+ break;
+ }
+ case 4: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.resourceNames != null && message.hasOwnProperty("resourceNames")) {
+ if (!Array.isArray(message.resourceNames))
+ return "resourceNames: array expected";
+ for (var i = 0; i < message.resourceNames.length; ++i)
+ if (!$util.isString(message.resourceNames[i]))
+ return "resourceNames: string[] expected";
+ }
+ if (message.steps != null && message.hasOwnProperty("steps")) {
+ if (!Array.isArray(message.steps))
+ return "steps: array expected";
+ for (var i = 0; i < message.steps.length; ++i) {
+ var error = $root.google.api.servicemanagement.v1.OperationMetadata.Step.verify(message.steps[i]);
+ if (error)
+ return "steps." + error;
+ }
+ }
+ if (message.progressPercentage != null && message.hasOwnProperty("progressPercentage"))
+ if (!$util.isInteger(message.progressPercentage))
+ return "progressPercentage: integer expected";
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.OperationMetadata();
+ if (object.resourceNames) {
+ if (!Array.isArray(object.resourceNames))
+ throw TypeError(".google.api.servicemanagement.v1.OperationMetadata.resourceNames: array expected");
+ message.resourceNames = [];
+ for (var i = 0; i < object.resourceNames.length; ++i)
+ message.resourceNames[i] = String(object.resourceNames[i]);
+ }
+ if (object.steps) {
+ if (!Array.isArray(object.steps))
+ throw TypeError(".google.api.servicemanagement.v1.OperationMetadata.steps: array expected");
+ message.steps = [];
+ for (var i = 0; i < object.steps.length; ++i) {
+ if (typeof object.steps[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.OperationMetadata.steps: object expected");
+ message.steps[i] = $root.google.api.servicemanagement.v1.OperationMetadata.Step.fromObject(object.steps[i]);
+ }
+ }
+ if (object.progressPercentage != null)
+ message.progressPercentage = object.progressPercentage | 0;
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.OperationMetadata.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {google.api.servicemanagement.v1.OperationMetadata} message OperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.resourceNames = [];
+ object.steps = [];
+ }
+ if (options.defaults) {
+ object.progressPercentage = 0;
+ object.startTime = null;
+ }
+ if (message.resourceNames && message.resourceNames.length) {
+ object.resourceNames = [];
+ for (var j = 0; j < message.resourceNames.length; ++j)
+ object.resourceNames[j] = message.resourceNames[j];
+ }
+ if (message.steps && message.steps.length) {
+ object.steps = [];
+ for (var j = 0; j < message.steps.length; ++j)
+ object.steps[j] = $root.google.api.servicemanagement.v1.OperationMetadata.Step.toObject(message.steps[j], options);
+ }
+ if (message.progressPercentage != null && message.hasOwnProperty("progressPercentage"))
+ object.progressPercentage = message.progressPercentage;
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.OperationMetadata";
+ };
+
+ OperationMetadata.Step = (function() {
+
+ /**
+ * Properties of a Step.
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @interface IStep
+ * @property {string|null} [description] Step description
+ * @property {google.api.servicemanagement.v1.OperationMetadata.Status|null} [status] Step status
+ */
+
+ /**
+ * Constructs a new Step.
+ * @memberof google.api.servicemanagement.v1.OperationMetadata
+ * @classdesc Represents a Step.
+ * @implements IStep
+ * @constructor
+ * @param {google.api.servicemanagement.v1.OperationMetadata.IStep=} [properties] Properties to set
+ */
+ function Step(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]];
+ }
+
+ /**
+ * Step description.
+ * @member {string} description
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @instance
+ */
+ Step.prototype.description = "";
+
+ /**
+ * Step status.
+ * @member {google.api.servicemanagement.v1.OperationMetadata.Status} status
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @instance
+ */
+ Step.prototype.status = 0;
+
+ /**
+ * Creates a new Step instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {google.api.servicemanagement.v1.OperationMetadata.IStep=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.OperationMetadata.Step} Step instance
+ */
+ Step.create = function create(properties) {
+ return new Step(properties);
+ };
+
+ /**
+ * Encodes the specified Step message. Does not implicitly {@link google.api.servicemanagement.v1.OperationMetadata.Step.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {google.api.servicemanagement.v1.OperationMetadata.IStep} message Step message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Step.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Step message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.OperationMetadata.Step.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {google.api.servicemanagement.v1.OperationMetadata.IStep} message Step message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Step.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Step message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.OperationMetadata.Step} Step
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Step.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.api.servicemanagement.v1.OperationMetadata.Step();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.status = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Step message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.OperationMetadata.Step} Step
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Step.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Step message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Step.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.status != null && message.hasOwnProperty("status"))
+ switch (message.status) {
+ default:
+ return "status: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Step message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.OperationMetadata.Step} Step
+ */
+ Step.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.OperationMetadata.Step)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.OperationMetadata.Step();
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.status) {
+ default:
+ if (typeof object.status === "number") {
+ message.status = object.status;
+ break;
+ }
+ break;
+ case "STATUS_UNSPECIFIED":
+ case 0:
+ message.status = 0;
+ break;
+ case "DONE":
+ case 1:
+ message.status = 1;
+ break;
+ case "NOT_STARTED":
+ case 2:
+ message.status = 2;
+ break;
+ case "IN_PROGRESS":
+ case 3:
+ message.status = 3;
+ break;
+ case "FAILED":
+ case 4:
+ message.status = 4;
+ break;
+ case "CANCELLED":
+ case 5:
+ message.status = 5;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Step message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {google.api.servicemanagement.v1.OperationMetadata.Step} message Step
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Step.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.description = "";
+ object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0;
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = options.enums === String ? $root.google.api.servicemanagement.v1.OperationMetadata.Status[message.status] === undefined ? message.status : $root.google.api.servicemanagement.v1.OperationMetadata.Status[message.status] : message.status;
+ return object;
+ };
+
+ /**
+ * Converts this Step to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Step.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Step
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.OperationMetadata.Step
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Step.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.OperationMetadata.Step";
+ };
+
+ return Step;
+ })();
+
+ /**
+ * Status enum.
+ * @name google.api.servicemanagement.v1.OperationMetadata.Status
+ * @enum {number}
+ * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value
+ * @property {number} DONE=1 DONE value
+ * @property {number} NOT_STARTED=2 NOT_STARTED value
+ * @property {number} IN_PROGRESS=3 IN_PROGRESS value
+ * @property {number} FAILED=4 FAILED value
+ * @property {number} CANCELLED=5 CANCELLED value
+ */
+ OperationMetadata.Status = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DONE"] = 1;
+ values[valuesById[2] = "NOT_STARTED"] = 2;
+ values[valuesById[3] = "IN_PROGRESS"] = 3;
+ values[valuesById[4] = "FAILED"] = 4;
+ values[valuesById[5] = "CANCELLED"] = 5;
+ return values;
+ })();
+
+ return OperationMetadata;
+ })();
+
+ v1.Diagnostic = (function() {
+
+ /**
+ * Properties of a Diagnostic.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IDiagnostic
+ * @property {string|null} [location] Diagnostic location
+ * @property {google.api.servicemanagement.v1.Diagnostic.Kind|null} [kind] Diagnostic kind
+ * @property {string|null} [message] Diagnostic message
+ */
+
+ /**
+ * Constructs a new Diagnostic.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a Diagnostic.
+ * @implements IDiagnostic
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IDiagnostic=} [properties] Properties to set
+ */
+ function Diagnostic(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]];
+ }
+
+ /**
+ * Diagnostic location.
+ * @member {string} location
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @instance
+ */
+ Diagnostic.prototype.location = "";
+
+ /**
+ * Diagnostic kind.
+ * @member {google.api.servicemanagement.v1.Diagnostic.Kind} kind
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @instance
+ */
+ Diagnostic.prototype.kind = 0;
+
+ /**
+ * Diagnostic message.
+ * @member {string} message
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @instance
+ */
+ Diagnostic.prototype.message = "";
+
+ /**
+ * Creates a new Diagnostic instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {google.api.servicemanagement.v1.IDiagnostic=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.Diagnostic} Diagnostic instance
+ */
+ Diagnostic.create = function create(properties) {
+ return new Diagnostic(properties);
+ };
+
+ /**
+ * Encodes the specified Diagnostic message. Does not implicitly {@link google.api.servicemanagement.v1.Diagnostic.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {google.api.servicemanagement.v1.IDiagnostic} message Diagnostic message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Diagnostic.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.location);
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.kind);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Diagnostic message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Diagnostic.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {google.api.servicemanagement.v1.IDiagnostic} message Diagnostic message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Diagnostic.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Diagnostic message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.Diagnostic} Diagnostic
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Diagnostic.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.api.servicemanagement.v1.Diagnostic();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.location = reader.string();
+ break;
+ }
+ case 2: {
+ message.kind = reader.int32();
+ break;
+ }
+ case 3: {
+ message.message = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Diagnostic message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.Diagnostic} Diagnostic
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Diagnostic.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Diagnostic message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Diagnostic.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ switch (message.kind) {
+ default:
+ return "kind: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.message != null && message.hasOwnProperty("message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Diagnostic message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.Diagnostic} Diagnostic
+ */
+ Diagnostic.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.Diagnostic)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.Diagnostic();
+ if (object.location != null)
+ message.location = String(object.location);
+ switch (object.kind) {
+ default:
+ if (typeof object.kind === "number") {
+ message.kind = object.kind;
+ break;
+ }
+ break;
+ case "WARNING":
+ case 0:
+ message.kind = 0;
+ break;
+ case "ERROR":
+ case 1:
+ message.kind = 1;
+ break;
+ }
+ if (object.message != null)
+ message.message = String(object.message);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Diagnostic message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {google.api.servicemanagement.v1.Diagnostic} message Diagnostic
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Diagnostic.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.location = "";
+ object.kind = options.enums === String ? "WARNING" : 0;
+ object.message = "";
+ }
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ object.kind = options.enums === String ? $root.google.api.servicemanagement.v1.Diagnostic.Kind[message.kind] === undefined ? message.kind : $root.google.api.servicemanagement.v1.Diagnostic.Kind[message.kind] : message.kind;
+ if (message.message != null && message.hasOwnProperty("message"))
+ object.message = message.message;
+ return object;
+ };
+
+ /**
+ * Converts this Diagnostic to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Diagnostic.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Diagnostic
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.Diagnostic
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Diagnostic.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.Diagnostic";
+ };
+
+ /**
+ * Kind enum.
+ * @name google.api.servicemanagement.v1.Diagnostic.Kind
+ * @enum {number}
+ * @property {number} WARNING=0 WARNING value
+ * @property {number} ERROR=1 ERROR value
+ */
+ Diagnostic.Kind = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "WARNING"] = 0;
+ values[valuesById[1] = "ERROR"] = 1;
+ return values;
+ })();
+
+ return Diagnostic;
+ })();
+
+ v1.ConfigSource = (function() {
+
+ /**
+ * Properties of a ConfigSource.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IConfigSource
+ * @property {string|null} [id] ConfigSource id
+ * @property {Array.|null} [files] ConfigSource files
+ */
+
+ /**
+ * Constructs a new ConfigSource.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ConfigSource.
+ * @implements IConfigSource
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IConfigSource=} [properties] Properties to set
+ */
+ function ConfigSource(properties) {
+ this.files = [];
+ 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]];
+ }
+
+ /**
+ * ConfigSource id.
+ * @member {string} id
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @instance
+ */
+ ConfigSource.prototype.id = "";
+
+ /**
+ * ConfigSource files.
+ * @member {Array.} files
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @instance
+ */
+ ConfigSource.prototype.files = $util.emptyArray;
+
+ /**
+ * Creates a new ConfigSource instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigSource=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ConfigSource} ConfigSource instance
+ */
+ ConfigSource.create = function create(properties) {
+ return new ConfigSource(properties);
+ };
+
+ /**
+ * Encodes the specified ConfigSource message. Does not implicitly {@link google.api.servicemanagement.v1.ConfigSource.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigSource} message ConfigSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigSource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.files != null && message.files.length)
+ for (var i = 0; i < message.files.length; ++i)
+ $root.google.api.servicemanagement.v1.ConfigFile.encode(message.files[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.id);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfigSource message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ConfigSource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigSource} message ConfigSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigSource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfigSource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ConfigSource} ConfigSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigSource.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.api.servicemanagement.v1.ConfigSource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 5: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.files && message.files.length))
+ message.files = [];
+ message.files.push($root.google.api.servicemanagement.v1.ConfigFile.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfigSource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ConfigSource} ConfigSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigSource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfigSource message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfigSource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.files != null && message.hasOwnProperty("files")) {
+ if (!Array.isArray(message.files))
+ return "files: array expected";
+ for (var i = 0; i < message.files.length; ++i) {
+ var error = $root.google.api.servicemanagement.v1.ConfigFile.verify(message.files[i]);
+ if (error)
+ return "files." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConfigSource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ConfigSource} ConfigSource
+ */
+ ConfigSource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ConfigSource)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ConfigSource();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.files) {
+ if (!Array.isArray(object.files))
+ throw TypeError(".google.api.servicemanagement.v1.ConfigSource.files: array expected");
+ message.files = [];
+ for (var i = 0; i < object.files.length; ++i) {
+ if (typeof object.files[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.ConfigSource.files: object expected");
+ message.files[i] = $root.google.api.servicemanagement.v1.ConfigFile.fromObject(object.files[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfigSource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {google.api.servicemanagement.v1.ConfigSource} message ConfigSource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfigSource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.files = [];
+ if (options.defaults)
+ object.id = "";
+ if (message.files && message.files.length) {
+ object.files = [];
+ for (var j = 0; j < message.files.length; ++j)
+ object.files[j] = $root.google.api.servicemanagement.v1.ConfigFile.toObject(message.files[j], options);
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ return object;
+ };
+
+ /**
+ * Converts this ConfigSource to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfigSource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfigSource
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ConfigSource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfigSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ConfigSource";
+ };
+
+ return ConfigSource;
+ })();
+
+ v1.ConfigFile = (function() {
+
+ /**
+ * Properties of a ConfigFile.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IConfigFile
+ * @property {string|null} [filePath] ConfigFile filePath
+ * @property {Uint8Array|null} [fileContents] ConfigFile fileContents
+ * @property {google.api.servicemanagement.v1.ConfigFile.FileType|null} [fileType] ConfigFile fileType
+ */
+
+ /**
+ * Constructs a new ConfigFile.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ConfigFile.
+ * @implements IConfigFile
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IConfigFile=} [properties] Properties to set
+ */
+ function ConfigFile(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]];
+ }
+
+ /**
+ * ConfigFile filePath.
+ * @member {string} filePath
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @instance
+ */
+ ConfigFile.prototype.filePath = "";
+
+ /**
+ * ConfigFile fileContents.
+ * @member {Uint8Array} fileContents
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @instance
+ */
+ ConfigFile.prototype.fileContents = $util.newBuffer([]);
+
+ /**
+ * ConfigFile fileType.
+ * @member {google.api.servicemanagement.v1.ConfigFile.FileType} fileType
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @instance
+ */
+ ConfigFile.prototype.fileType = 0;
+
+ /**
+ * Creates a new ConfigFile instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigFile=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ConfigFile} ConfigFile instance
+ */
+ ConfigFile.create = function create(properties) {
+ return new ConfigFile(properties);
+ };
+
+ /**
+ * Encodes the specified ConfigFile message. Does not implicitly {@link google.api.servicemanagement.v1.ConfigFile.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigFile} message ConfigFile message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigFile.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath);
+ if (message.fileContents != null && Object.hasOwnProperty.call(message, "fileContents"))
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.fileContents);
+ if (message.fileType != null && Object.hasOwnProperty.call(message, "fileType"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.fileType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfigFile message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ConfigFile.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigFile} message ConfigFile message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigFile.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfigFile message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ConfigFile} ConfigFile
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigFile.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.api.servicemanagement.v1.ConfigFile();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.filePath = reader.string();
+ break;
+ }
+ case 3: {
+ message.fileContents = reader.bytes();
+ break;
+ }
+ case 4: {
+ message.fileType = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfigFile message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ConfigFile} ConfigFile
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigFile.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfigFile message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfigFile.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.filePath != null && message.hasOwnProperty("filePath"))
+ if (!$util.isString(message.filePath))
+ return "filePath: string expected";
+ if (message.fileContents != null && message.hasOwnProperty("fileContents"))
+ if (!(message.fileContents && typeof message.fileContents.length === "number" || $util.isString(message.fileContents)))
+ return "fileContents: buffer expected";
+ if (message.fileType != null && message.hasOwnProperty("fileType"))
+ switch (message.fileType) {
+ default:
+ return "fileType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 6:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConfigFile message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ConfigFile} ConfigFile
+ */
+ ConfigFile.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ConfigFile)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ConfigFile();
+ if (object.filePath != null)
+ message.filePath = String(object.filePath);
+ if (object.fileContents != null)
+ if (typeof object.fileContents === "string")
+ $util.base64.decode(object.fileContents, message.fileContents = $util.newBuffer($util.base64.length(object.fileContents)), 0);
+ else if (object.fileContents.length >= 0)
+ message.fileContents = object.fileContents;
+ switch (object.fileType) {
+ default:
+ if (typeof object.fileType === "number") {
+ message.fileType = object.fileType;
+ break;
+ }
+ break;
+ case "FILE_TYPE_UNSPECIFIED":
+ case 0:
+ message.fileType = 0;
+ break;
+ case "SERVICE_CONFIG_YAML":
+ case 1:
+ message.fileType = 1;
+ break;
+ case "OPEN_API_JSON":
+ case 2:
+ message.fileType = 2;
+ break;
+ case "OPEN_API_YAML":
+ case 3:
+ message.fileType = 3;
+ break;
+ case "FILE_DESCRIPTOR_SET_PROTO":
+ case 4:
+ message.fileType = 4;
+ break;
+ case "PROTO_FILE":
+ case 6:
+ message.fileType = 6;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfigFile message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {google.api.servicemanagement.v1.ConfigFile} message ConfigFile
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfigFile.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.filePath = "";
+ if (options.bytes === String)
+ object.fileContents = "";
+ else {
+ object.fileContents = [];
+ if (options.bytes !== Array)
+ object.fileContents = $util.newBuffer(object.fileContents);
+ }
+ object.fileType = options.enums === String ? "FILE_TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.filePath != null && message.hasOwnProperty("filePath"))
+ object.filePath = message.filePath;
+ if (message.fileContents != null && message.hasOwnProperty("fileContents"))
+ object.fileContents = options.bytes === String ? $util.base64.encode(message.fileContents, 0, message.fileContents.length) : options.bytes === Array ? Array.prototype.slice.call(message.fileContents) : message.fileContents;
+ if (message.fileType != null && message.hasOwnProperty("fileType"))
+ object.fileType = options.enums === String ? $root.google.api.servicemanagement.v1.ConfigFile.FileType[message.fileType] === undefined ? message.fileType : $root.google.api.servicemanagement.v1.ConfigFile.FileType[message.fileType] : message.fileType;
+ return object;
+ };
+
+ /**
+ * Converts this ConfigFile to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfigFile.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfigFile
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ConfigFile
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfigFile.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ConfigFile";
+ };
+
+ /**
+ * FileType enum.
+ * @name google.api.servicemanagement.v1.ConfigFile.FileType
+ * @enum {number}
+ * @property {number} FILE_TYPE_UNSPECIFIED=0 FILE_TYPE_UNSPECIFIED value
+ * @property {number} SERVICE_CONFIG_YAML=1 SERVICE_CONFIG_YAML value
+ * @property {number} OPEN_API_JSON=2 OPEN_API_JSON value
+ * @property {number} OPEN_API_YAML=3 OPEN_API_YAML value
+ * @property {number} FILE_DESCRIPTOR_SET_PROTO=4 FILE_DESCRIPTOR_SET_PROTO value
+ * @property {number} PROTO_FILE=6 PROTO_FILE value
+ */
+ ConfigFile.FileType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "FILE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "SERVICE_CONFIG_YAML"] = 1;
+ values[valuesById[2] = "OPEN_API_JSON"] = 2;
+ values[valuesById[3] = "OPEN_API_YAML"] = 3;
+ values[valuesById[4] = "FILE_DESCRIPTOR_SET_PROTO"] = 4;
+ values[valuesById[6] = "PROTO_FILE"] = 6;
+ return values;
+ })();
+
+ return ConfigFile;
+ })();
+
+ v1.ConfigRef = (function() {
+
+ /**
+ * Properties of a ConfigRef.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IConfigRef
+ * @property {string|null} [name] ConfigRef name
+ */
+
+ /**
+ * Constructs a new ConfigRef.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ConfigRef.
+ * @implements IConfigRef
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IConfigRef=} [properties] Properties to set
+ */
+ function ConfigRef(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]];
+ }
+
+ /**
+ * ConfigRef name.
+ * @member {string} name
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @instance
+ */
+ ConfigRef.prototype.name = "";
+
+ /**
+ * Creates a new ConfigRef instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigRef=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ConfigRef} ConfigRef instance
+ */
+ ConfigRef.create = function create(properties) {
+ return new ConfigRef(properties);
+ };
+
+ /**
+ * Encodes the specified ConfigRef message. Does not implicitly {@link google.api.servicemanagement.v1.ConfigRef.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigRef} message ConfigRef message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigRef.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 ConfigRef message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ConfigRef.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {google.api.servicemanagement.v1.IConfigRef} message ConfigRef message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigRef.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfigRef message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ConfigRef} ConfigRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigRef.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.api.servicemanagement.v1.ConfigRef();
+ 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 ConfigRef message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ConfigRef} ConfigRef
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigRef.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfigRef message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfigRef.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 ConfigRef message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ConfigRef} ConfigRef
+ */
+ ConfigRef.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ConfigRef)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ConfigRef();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfigRef message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {google.api.servicemanagement.v1.ConfigRef} message ConfigRef
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfigRef.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 ConfigRef to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfigRef.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfigRef
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ConfigRef
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfigRef.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ConfigRef";
+ };
+
+ return ConfigRef;
+ })();
+
+ v1.ChangeReport = (function() {
+
+ /**
+ * Properties of a ChangeReport.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IChangeReport
+ * @property {Array.|null} [configChanges] ChangeReport configChanges
+ */
+
+ /**
+ * Constructs a new ChangeReport.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ChangeReport.
+ * @implements IChangeReport
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IChangeReport=} [properties] Properties to set
+ */
+ function ChangeReport(properties) {
+ this.configChanges = [];
+ 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]];
+ }
+
+ /**
+ * ChangeReport configChanges.
+ * @member {Array.} configChanges
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @instance
+ */
+ ChangeReport.prototype.configChanges = $util.emptyArray;
+
+ /**
+ * Creates a new ChangeReport instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {google.api.servicemanagement.v1.IChangeReport=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ChangeReport} ChangeReport instance
+ */
+ ChangeReport.create = function create(properties) {
+ return new ChangeReport(properties);
+ };
+
+ /**
+ * Encodes the specified ChangeReport message. Does not implicitly {@link google.api.servicemanagement.v1.ChangeReport.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {google.api.servicemanagement.v1.IChangeReport} message ChangeReport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ChangeReport.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.configChanges != null && message.configChanges.length)
+ for (var i = 0; i < message.configChanges.length; ++i)
+ $root.google.api.ConfigChange.encode(message.configChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ChangeReport message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ChangeReport.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {google.api.servicemanagement.v1.IChangeReport} message ChangeReport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ChangeReport.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ChangeReport message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ChangeReport} ChangeReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ChangeReport.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.api.servicemanagement.v1.ChangeReport();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.configChanges && message.configChanges.length))
+ message.configChanges = [];
+ message.configChanges.push($root.google.api.ConfigChange.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ChangeReport message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ChangeReport} ChangeReport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ChangeReport.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ChangeReport message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ChangeReport.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.configChanges != null && message.hasOwnProperty("configChanges")) {
+ if (!Array.isArray(message.configChanges))
+ return "configChanges: array expected";
+ for (var i = 0; i < message.configChanges.length; ++i) {
+ var error = $root.google.api.ConfigChange.verify(message.configChanges[i]);
+ if (error)
+ return "configChanges." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ChangeReport message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ChangeReport} ChangeReport
+ */
+ ChangeReport.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ChangeReport)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ChangeReport();
+ if (object.configChanges) {
+ if (!Array.isArray(object.configChanges))
+ throw TypeError(".google.api.servicemanagement.v1.ChangeReport.configChanges: array expected");
+ message.configChanges = [];
+ for (var i = 0; i < object.configChanges.length; ++i) {
+ if (typeof object.configChanges[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.ChangeReport.configChanges: object expected");
+ message.configChanges[i] = $root.google.api.ConfigChange.fromObject(object.configChanges[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ChangeReport message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {google.api.servicemanagement.v1.ChangeReport} message ChangeReport
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ChangeReport.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.configChanges = [];
+ if (message.configChanges && message.configChanges.length) {
+ object.configChanges = [];
+ for (var j = 0; j < message.configChanges.length; ++j)
+ object.configChanges[j] = $root.google.api.ConfigChange.toObject(message.configChanges[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ChangeReport to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ChangeReport.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ChangeReport
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ChangeReport
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ChangeReport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ChangeReport";
+ };
+
+ return ChangeReport;
+ })();
+
+ v1.Rollout = (function() {
+
+ /**
+ * Properties of a Rollout.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IRollout
+ * @property {string|null} [rolloutId] Rollout rolloutId
+ * @property {google.protobuf.ITimestamp|null} [createTime] Rollout createTime
+ * @property {string|null} [createdBy] Rollout createdBy
+ * @property {google.api.servicemanagement.v1.Rollout.RolloutStatus|null} [status] Rollout status
+ * @property {google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy|null} [trafficPercentStrategy] Rollout trafficPercentStrategy
+ * @property {google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy|null} [deleteServiceStrategy] Rollout deleteServiceStrategy
+ * @property {string|null} [serviceName] Rollout serviceName
+ */
+
+ /**
+ * Constructs a new Rollout.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a Rollout.
+ * @implements IRollout
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IRollout=} [properties] Properties to set
+ */
+ function Rollout(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]];
+ }
+
+ /**
+ * Rollout rolloutId.
+ * @member {string} rolloutId
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Rollout.prototype.rolloutId = "";
+
+ /**
+ * Rollout createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Rollout.prototype.createTime = null;
+
+ /**
+ * Rollout createdBy.
+ * @member {string} createdBy
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Rollout.prototype.createdBy = "";
+
+ /**
+ * Rollout status.
+ * @member {google.api.servicemanagement.v1.Rollout.RolloutStatus} status
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Rollout.prototype.status = 0;
+
+ /**
+ * Rollout trafficPercentStrategy.
+ * @member {google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy|null|undefined} trafficPercentStrategy
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Rollout.prototype.trafficPercentStrategy = null;
+
+ /**
+ * Rollout deleteServiceStrategy.
+ * @member {google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy|null|undefined} deleteServiceStrategy
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Rollout.prototype.deleteServiceStrategy = null;
+
+ /**
+ * Rollout serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Rollout.prototype.serviceName = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Rollout strategy.
+ * @member {"trafficPercentStrategy"|"deleteServiceStrategy"|undefined} strategy
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ */
+ Object.defineProperty(Rollout.prototype, "strategy", {
+ get: $util.oneOfGetter($oneOfFields = ["trafficPercentStrategy", "deleteServiceStrategy"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Rollout instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {google.api.servicemanagement.v1.IRollout=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.Rollout} Rollout instance
+ */
+ Rollout.create = function create(properties) {
+ return new Rollout(properties);
+ };
+
+ /**
+ * Encodes the specified Rollout message. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {google.api.servicemanagement.v1.IRollout} message Rollout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Rollout.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rolloutId != null && Object.hasOwnProperty.call(message, "rolloutId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.rolloutId);
+ 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.createdBy != null && Object.hasOwnProperty.call(message, "createdBy"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.createdBy);
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status);
+ if (message.trafficPercentStrategy != null && Object.hasOwnProperty.call(message, "trafficPercentStrategy"))
+ $root.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.encode(message.trafficPercentStrategy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.serviceName);
+ if (message.deleteServiceStrategy != null && Object.hasOwnProperty.call(message, "deleteServiceStrategy"))
+ $root.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.encode(message.deleteServiceStrategy, writer.uint32(/* id 200, wireType 2 =*/1602).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Rollout message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {google.api.servicemanagement.v1.IRollout} message Rollout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Rollout.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.Rollout} Rollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Rollout.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.api.servicemanagement.v1.Rollout();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.rolloutId = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.createdBy = reader.string();
+ break;
+ }
+ case 4: {
+ message.status = reader.int32();
+ break;
+ }
+ case 5: {
+ message.trafficPercentStrategy = $root.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.decode(reader, reader.uint32());
+ break;
+ }
+ case 200: {
+ message.deleteServiceStrategy = $root.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.serviceName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Rollout message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.Rollout} Rollout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Rollout.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Rollout message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Rollout.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.rolloutId != null && message.hasOwnProperty("rolloutId"))
+ if (!$util.isString(message.rolloutId))
+ return "rolloutId: 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.createdBy != null && message.hasOwnProperty("createdBy"))
+ if (!$util.isString(message.createdBy))
+ return "createdBy: string expected";
+ if (message.status != null && message.hasOwnProperty("status"))
+ switch (message.status) {
+ default:
+ return "status: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ break;
+ }
+ if (message.trafficPercentStrategy != null && message.hasOwnProperty("trafficPercentStrategy")) {
+ properties.strategy = 1;
+ {
+ var error = $root.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.verify(message.trafficPercentStrategy);
+ if (error)
+ return "trafficPercentStrategy." + error;
+ }
+ }
+ if (message.deleteServiceStrategy != null && message.hasOwnProperty("deleteServiceStrategy")) {
+ if (properties.strategy === 1)
+ return "strategy: multiple values";
+ properties.strategy = 1;
+ {
+ var error = $root.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.verify(message.deleteServiceStrategy);
+ if (error)
+ return "deleteServiceStrategy." + error;
+ }
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Rollout message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.Rollout} Rollout
+ */
+ Rollout.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.Rollout)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.Rollout();
+ if (object.rolloutId != null)
+ message.rolloutId = String(object.rolloutId);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.Rollout.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.createdBy != null)
+ message.createdBy = String(object.createdBy);
+ switch (object.status) {
+ default:
+ if (typeof object.status === "number") {
+ message.status = object.status;
+ break;
+ }
+ break;
+ case "ROLLOUT_STATUS_UNSPECIFIED":
+ case 0:
+ message.status = 0;
+ break;
+ case "IN_PROGRESS":
+ case 1:
+ message.status = 1;
+ break;
+ case "SUCCESS":
+ case 2:
+ message.status = 2;
+ break;
+ case "CANCELLED":
+ case 3:
+ message.status = 3;
+ break;
+ case "FAILED":
+ case 4:
+ message.status = 4;
+ break;
+ case "PENDING":
+ case 5:
+ message.status = 5;
+ break;
+ case "FAILED_ROLLED_BACK":
+ case 6:
+ message.status = 6;
+ break;
+ }
+ if (object.trafficPercentStrategy != null) {
+ if (typeof object.trafficPercentStrategy !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.Rollout.trafficPercentStrategy: object expected");
+ message.trafficPercentStrategy = $root.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.fromObject(object.trafficPercentStrategy);
+ }
+ if (object.deleteServiceStrategy != null) {
+ if (typeof object.deleteServiceStrategy !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.Rollout.deleteServiceStrategy: object expected");
+ message.deleteServiceStrategy = $root.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.fromObject(object.deleteServiceStrategy);
+ }
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Rollout message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout} message Rollout
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Rollout.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.rolloutId = "";
+ object.createTime = null;
+ object.createdBy = "";
+ object.status = options.enums === String ? "ROLLOUT_STATUS_UNSPECIFIED" : 0;
+ object.serviceName = "";
+ }
+ if (message.rolloutId != null && message.hasOwnProperty("rolloutId"))
+ object.rolloutId = message.rolloutId;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.createdBy != null && message.hasOwnProperty("createdBy"))
+ object.createdBy = message.createdBy;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = options.enums === String ? $root.google.api.servicemanagement.v1.Rollout.RolloutStatus[message.status] === undefined ? message.status : $root.google.api.servicemanagement.v1.Rollout.RolloutStatus[message.status] : message.status;
+ if (message.trafficPercentStrategy != null && message.hasOwnProperty("trafficPercentStrategy")) {
+ object.trafficPercentStrategy = $root.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.toObject(message.trafficPercentStrategy, options);
+ if (options.oneofs)
+ object.strategy = "trafficPercentStrategy";
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.deleteServiceStrategy != null && message.hasOwnProperty("deleteServiceStrategy")) {
+ object.deleteServiceStrategy = $root.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.toObject(message.deleteServiceStrategy, options);
+ if (options.oneofs)
+ object.strategy = "deleteServiceStrategy";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Rollout to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Rollout.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Rollout
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Rollout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.Rollout";
+ };
+
+ Rollout.TrafficPercentStrategy = (function() {
+
+ /**
+ * Properties of a TrafficPercentStrategy.
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @interface ITrafficPercentStrategy
+ * @property {Object.|null} [percentages] TrafficPercentStrategy percentages
+ */
+
+ /**
+ * Constructs a new TrafficPercentStrategy.
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @classdesc Represents a TrafficPercentStrategy.
+ * @implements ITrafficPercentStrategy
+ * @constructor
+ * @param {google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy=} [properties] Properties to set
+ */
+ function TrafficPercentStrategy(properties) {
+ this.percentages = {};
+ 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]];
+ }
+
+ /**
+ * TrafficPercentStrategy percentages.
+ * @member {Object.} percentages
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @instance
+ */
+ TrafficPercentStrategy.prototype.percentages = $util.emptyObject;
+
+ /**
+ * Creates a new TrafficPercentStrategy instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} TrafficPercentStrategy instance
+ */
+ TrafficPercentStrategy.create = function create(properties) {
+ return new TrafficPercentStrategy(properties);
+ };
+
+ /**
+ * Encodes the specified TrafficPercentStrategy message. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy} message TrafficPercentStrategy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TrafficPercentStrategy.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.percentages != null && Object.hasOwnProperty.call(message, "percentages"))
+ for (var keys = Object.keys(message.percentages), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.percentages[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TrafficPercentStrategy message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.ITrafficPercentStrategy} message TrafficPercentStrategy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TrafficPercentStrategy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TrafficPercentStrategy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} TrafficPercentStrategy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TrafficPercentStrategy.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.api.servicemanagement.v1.Rollout.TrafficPercentStrategy(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (message.percentages === $util.emptyObject)
+ message.percentages = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = 0;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.double();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.percentages[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TrafficPercentStrategy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} TrafficPercentStrategy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TrafficPercentStrategy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TrafficPercentStrategy message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TrafficPercentStrategy.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.percentages != null && message.hasOwnProperty("percentages")) {
+ if (!$util.isObject(message.percentages))
+ return "percentages: object expected";
+ var key = Object.keys(message.percentages);
+ for (var i = 0; i < key.length; ++i)
+ if (typeof message.percentages[key[i]] !== "number")
+ return "percentages: number{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TrafficPercentStrategy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} TrafficPercentStrategy
+ */
+ TrafficPercentStrategy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy();
+ if (object.percentages) {
+ if (typeof object.percentages !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.percentages: object expected");
+ message.percentages = {};
+ for (var keys = Object.keys(object.percentages), i = 0; i < keys.length; ++i)
+ message.percentages[keys[i]] = Number(object.percentages[keys[i]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TrafficPercentStrategy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy} message TrafficPercentStrategy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TrafficPercentStrategy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.percentages = {};
+ var keys2;
+ if (message.percentages && (keys2 = Object.keys(message.percentages)).length) {
+ object.percentages = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.percentages[keys2[j]] = options.json && !isFinite(message.percentages[keys2[j]]) ? String(message.percentages[keys2[j]]) : message.percentages[keys2[j]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this TrafficPercentStrategy to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TrafficPercentStrategy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TrafficPercentStrategy
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TrafficPercentStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy";
+ };
+
+ return TrafficPercentStrategy;
+ })();
+
+ Rollout.DeleteServiceStrategy = (function() {
+
+ /**
+ * Properties of a DeleteServiceStrategy.
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @interface IDeleteServiceStrategy
+ */
+
+ /**
+ * Constructs a new DeleteServiceStrategy.
+ * @memberof google.api.servicemanagement.v1.Rollout
+ * @classdesc Represents a DeleteServiceStrategy.
+ * @implements IDeleteServiceStrategy
+ * @constructor
+ * @param {google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy=} [properties] Properties to set
+ */
+ function DeleteServiceStrategy(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 DeleteServiceStrategy instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} DeleteServiceStrategy instance
+ */
+ DeleteServiceStrategy.create = function create(properties) {
+ return new DeleteServiceStrategy(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteServiceStrategy message. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy} message DeleteServiceStrategy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceStrategy.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteServiceStrategy message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.IDeleteServiceStrategy} message DeleteServiceStrategy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceStrategy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteServiceStrategy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} DeleteServiceStrategy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceStrategy.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.api.servicemanagement.v1.Rollout.DeleteServiceStrategy();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteServiceStrategy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} DeleteServiceStrategy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceStrategy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteServiceStrategy message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteServiceStrategy.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteServiceStrategy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} DeleteServiceStrategy
+ */
+ DeleteServiceStrategy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy)
+ return object;
+ return new $root.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy();
+ };
+
+ /**
+ * Creates a plain object from a DeleteServiceStrategy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy} message DeleteServiceStrategy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteServiceStrategy.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this DeleteServiceStrategy to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteServiceStrategy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteServiceStrategy
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteServiceStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy";
+ };
+
+ return DeleteServiceStrategy;
+ })();
+
+ /**
+ * RolloutStatus enum.
+ * @name google.api.servicemanagement.v1.Rollout.RolloutStatus
+ * @enum {number}
+ * @property {number} ROLLOUT_STATUS_UNSPECIFIED=0 ROLLOUT_STATUS_UNSPECIFIED value
+ * @property {number} IN_PROGRESS=1 IN_PROGRESS value
+ * @property {number} SUCCESS=2 SUCCESS value
+ * @property {number} CANCELLED=3 CANCELLED value
+ * @property {number} FAILED=4 FAILED value
+ * @property {number} PENDING=5 PENDING value
+ * @property {number} FAILED_ROLLED_BACK=6 FAILED_ROLLED_BACK value
+ */
+ Rollout.RolloutStatus = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ROLLOUT_STATUS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "IN_PROGRESS"] = 1;
+ values[valuesById[2] = "SUCCESS"] = 2;
+ values[valuesById[3] = "CANCELLED"] = 3;
+ values[valuesById[4] = "FAILED"] = 4;
+ values[valuesById[5] = "PENDING"] = 5;
+ values[valuesById[6] = "FAILED_ROLLED_BACK"] = 6;
+ return values;
+ })();
+
+ return Rollout;
+ })();
+
+ v1.ServiceManager = (function() {
+
+ /**
+ * Constructs a new ServiceManager service.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ServiceManager
+ * @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 ServiceManager(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ServiceManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ServiceManager;
+
+ /**
+ * Creates new ServiceManager service using the specified rpc implementation.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @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 {ServiceManager} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ServiceManager.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|listServices}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef ListServicesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.servicemanagement.v1.ListServicesResponse} [response] ListServicesResponse
+ */
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IListServicesRequest} request ListServicesRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.ListServicesCallback} callback Node-style callback called with the error, if any, and ListServicesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.listServices = function listServices(request, callback) {
+ return this.rpcCall(listServices, $root.google.api.servicemanagement.v1.ListServicesRequest, $root.google.api.servicemanagement.v1.ListServicesResponse, request, callback);
+ }, "name", { value: "ListServices" });
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IListServicesRequest} request ListServicesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|getService}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef GetServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.servicemanagement.v1.ManagedService} [response] ManagedService
+ */
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.GetServiceCallback} callback Node-style callback called with the error, if any, and ManagedService
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.getService = function getService(request, callback) {
+ return this.rpcCall(getService, $root.google.api.servicemanagement.v1.GetServiceRequest, $root.google.api.servicemanagement.v1.ManagedService, request, callback);
+ }, "name", { value: "GetService" });
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|createService}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef CreateServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.CreateServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.createService = function createService(request, callback) {
+ return this.rpcCall(createService, $root.google.api.servicemanagement.v1.CreateServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateService" });
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|deleteService}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef DeleteServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteService.
+ * @function deleteService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IDeleteServiceRequest} request DeleteServiceRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.DeleteServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.deleteService = function deleteService(request, callback) {
+ return this.rpcCall(deleteService, $root.google.api.servicemanagement.v1.DeleteServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteService" });
+
+ /**
+ * Calls DeleteService.
+ * @function deleteService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IDeleteServiceRequest} request DeleteServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|undeleteService}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef UndeleteServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UndeleteService.
+ * @function undeleteService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceRequest} request UndeleteServiceRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.UndeleteServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.undeleteService = function undeleteService(request, callback) {
+ return this.rpcCall(undeleteService, $root.google.api.servicemanagement.v1.UndeleteServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UndeleteService" });
+
+ /**
+ * Calls UndeleteService.
+ * @function undeleteService
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceRequest} request UndeleteServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|listServiceConfigs}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef ListServiceConfigsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.servicemanagement.v1.ListServiceConfigsResponse} [response] ListServiceConfigsResponse
+ */
+
+ /**
+ * Calls ListServiceConfigs.
+ * @function listServiceConfigs
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsRequest} request ListServiceConfigsRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.ListServiceConfigsCallback} callback Node-style callback called with the error, if any, and ListServiceConfigsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.listServiceConfigs = function listServiceConfigs(request, callback) {
+ return this.rpcCall(listServiceConfigs, $root.google.api.servicemanagement.v1.ListServiceConfigsRequest, $root.google.api.servicemanagement.v1.ListServiceConfigsResponse, request, callback);
+ }, "name", { value: "ListServiceConfigs" });
+
+ /**
+ * Calls ListServiceConfigs.
+ * @function listServiceConfigs
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsRequest} request ListServiceConfigsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|getServiceConfig}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef GetServiceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.Service} [response] Service
+ */
+
+ /**
+ * Calls GetServiceConfig.
+ * @function getServiceConfig
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGetServiceConfigRequest} request GetServiceConfigRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.GetServiceConfigCallback} callback Node-style callback called with the error, if any, and Service
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.getServiceConfig = function getServiceConfig(request, callback) {
+ return this.rpcCall(getServiceConfig, $root.google.api.servicemanagement.v1.GetServiceConfigRequest, $root.google.api.Service, request, callback);
+ }, "name", { value: "GetServiceConfig" });
+
+ /**
+ * Calls GetServiceConfig.
+ * @function getServiceConfig
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGetServiceConfigRequest} request GetServiceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|createServiceConfig}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef CreateServiceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.Service} [response] Service
+ */
+
+ /**
+ * Calls CreateServiceConfig.
+ * @function createServiceConfig
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ICreateServiceConfigRequest} request CreateServiceConfigRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.CreateServiceConfigCallback} callback Node-style callback called with the error, if any, and Service
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.createServiceConfig = function createServiceConfig(request, callback) {
+ return this.rpcCall(createServiceConfig, $root.google.api.servicemanagement.v1.CreateServiceConfigRequest, $root.google.api.Service, request, callback);
+ }, "name", { value: "CreateServiceConfig" });
+
+ /**
+ * Calls CreateServiceConfig.
+ * @function createServiceConfig
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ICreateServiceConfigRequest} request CreateServiceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|submitConfigSource}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef SubmitConfigSourceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls SubmitConfigSource.
+ * @function submitConfigSource
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceRequest} request SubmitConfigSourceRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.SubmitConfigSourceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.submitConfigSource = function submitConfigSource(request, callback) {
+ return this.rpcCall(submitConfigSource, $root.google.api.servicemanagement.v1.SubmitConfigSourceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "SubmitConfigSource" });
+
+ /**
+ * Calls SubmitConfigSource.
+ * @function submitConfigSource
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceRequest} request SubmitConfigSourceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|listServiceRollouts}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef ListServiceRolloutsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.servicemanagement.v1.ListServiceRolloutsResponse} [response] ListServiceRolloutsResponse
+ */
+
+ /**
+ * Calls ListServiceRollouts.
+ * @function listServiceRollouts
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsRequest} request ListServiceRolloutsRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.ListServiceRolloutsCallback} callback Node-style callback called with the error, if any, and ListServiceRolloutsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.listServiceRollouts = function listServiceRollouts(request, callback) {
+ return this.rpcCall(listServiceRollouts, $root.google.api.servicemanagement.v1.ListServiceRolloutsRequest, $root.google.api.servicemanagement.v1.ListServiceRolloutsResponse, request, callback);
+ }, "name", { value: "ListServiceRollouts" });
+
+ /**
+ * Calls ListServiceRollouts.
+ * @function listServiceRollouts
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsRequest} request ListServiceRolloutsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|getServiceRollout}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef GetServiceRolloutCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.servicemanagement.v1.Rollout} [response] Rollout
+ */
+
+ /**
+ * Calls GetServiceRollout.
+ * @function getServiceRollout
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGetServiceRolloutRequest} request GetServiceRolloutRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.GetServiceRolloutCallback} callback Node-style callback called with the error, if any, and Rollout
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.getServiceRollout = function getServiceRollout(request, callback) {
+ return this.rpcCall(getServiceRollout, $root.google.api.servicemanagement.v1.GetServiceRolloutRequest, $root.google.api.servicemanagement.v1.Rollout, request, callback);
+ }, "name", { value: "GetServiceRollout" });
+
+ /**
+ * Calls GetServiceRollout.
+ * @function getServiceRollout
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGetServiceRolloutRequest} request GetServiceRolloutRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|createServiceRollout}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef CreateServiceRolloutCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateServiceRollout.
+ * @function createServiceRollout
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ICreateServiceRolloutRequest} request CreateServiceRolloutRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.CreateServiceRolloutCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.createServiceRollout = function createServiceRollout(request, callback) {
+ return this.rpcCall(createServiceRollout, $root.google.api.servicemanagement.v1.CreateServiceRolloutRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateServiceRollout" });
+
+ /**
+ * Calls CreateServiceRollout.
+ * @function createServiceRollout
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.ICreateServiceRolloutRequest} request CreateServiceRolloutRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.api.servicemanagement.v1.ServiceManager|generateConfigReport}.
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @typedef GenerateConfigReportCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.servicemanagement.v1.GenerateConfigReportResponse} [response] GenerateConfigReportResponse
+ */
+
+ /**
+ * Calls GenerateConfigReport.
+ * @function generateConfigReport
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportRequest} request GenerateConfigReportRequest message or plain object
+ * @param {google.api.servicemanagement.v1.ServiceManager.GenerateConfigReportCallback} callback Node-style callback called with the error, if any, and GenerateConfigReportResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceManager.prototype.generateConfigReport = function generateConfigReport(request, callback) {
+ return this.rpcCall(generateConfigReport, $root.google.api.servicemanagement.v1.GenerateConfigReportRequest, $root.google.api.servicemanagement.v1.GenerateConfigReportResponse, request, callback);
+ }, "name", { value: "GenerateConfigReport" });
+
+ /**
+ * Calls GenerateConfigReport.
+ * @function generateConfigReport
+ * @memberof google.api.servicemanagement.v1.ServiceManager
+ * @instance
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportRequest} request GenerateConfigReportRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ServiceManager;
+ })();
+
+ v1.ListServicesRequest = (function() {
+
+ /**
+ * Properties of a ListServicesRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IListServicesRequest
+ * @property {string|null} [producerProjectId] ListServicesRequest producerProjectId
+ * @property {number|null} [pageSize] ListServicesRequest pageSize
+ * @property {string|null} [pageToken] ListServicesRequest pageToken
+ * @property {string|null} [consumerId] ListServicesRequest consumerId
+ */
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ListServicesRequest.
+ * @implements IListServicesRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IListServicesRequest=} [properties] Properties to set
+ */
+ function ListServicesRequest(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]];
+ }
+
+ /**
+ * ListServicesRequest producerProjectId.
+ * @member {string} producerProjectId
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.producerProjectId = "";
+
+ /**
+ * ListServicesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListServicesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.pageToken = "";
+
+ /**
+ * ListServicesRequest consumerId.
+ * @member {string} consumerId
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.consumerId = "";
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServicesRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ListServicesRequest} ListServicesRequest instance
+ */
+ ListServicesRequest.create = function create(properties) {
+ return new ListServicesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServicesRequest} message ListServicesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.producerProjectId != null && Object.hasOwnProperty.call(message, "producerProjectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.producerProjectId);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken);
+ if (message.consumerId != null && Object.hasOwnProperty.call(message, "consumerId"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.consumerId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServicesRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServicesRequest} message ListServicesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ListServicesRequest} ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesRequest.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.api.servicemanagement.v1.ListServicesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.producerProjectId = reader.string();
+ break;
+ }
+ case 5: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 6: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 7: {
+ message.consumerId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ListServicesRequest} ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServicesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.producerProjectId != null && message.hasOwnProperty("producerProjectId"))
+ if (!$util.isString(message.producerProjectId))
+ return "producerProjectId: 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.consumerId != null && message.hasOwnProperty("consumerId"))
+ if (!$util.isString(message.consumerId))
+ return "consumerId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ListServicesRequest} ListServicesRequest
+ */
+ ListServicesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ListServicesRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ListServicesRequest();
+ if (object.producerProjectId != null)
+ message.producerProjectId = String(object.producerProjectId);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.consumerId != null)
+ message.consumerId = String(object.consumerId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServicesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ListServicesRequest} message ListServicesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServicesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.producerProjectId = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.consumerId = "";
+ }
+ if (message.producerProjectId != null && message.hasOwnProperty("producerProjectId"))
+ object.producerProjectId = message.producerProjectId;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.consumerId != null && message.hasOwnProperty("consumerId"))
+ object.consumerId = message.consumerId;
+ return object;
+ };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServicesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ListServicesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ListServicesRequest";
+ };
+
+ return ListServicesRequest;
+ })();
+
+ v1.ListServicesResponse = (function() {
+
+ /**
+ * Properties of a ListServicesResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IListServicesResponse
+ * @property {Array.|null} [services] ListServicesResponse services
+ * @property {string|null} [nextPageToken] ListServicesResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ListServicesResponse.
+ * @implements IListServicesResponse
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IListServicesResponse=} [properties] Properties to set
+ */
+ function ListServicesResponse(properties) {
+ this.services = [];
+ 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]];
+ }
+
+ /**
+ * ListServicesResponse services.
+ * @member {Array.} services
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @instance
+ */
+ ListServicesResponse.prototype.services = $util.emptyArray;
+
+ /**
+ * ListServicesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @instance
+ */
+ ListServicesResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServicesResponse=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ListServicesResponse} ListServicesResponse instance
+ */
+ ListServicesResponse.create = function create(properties) {
+ return new ListServicesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServicesResponse} message ListServicesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.services != null && message.services.length)
+ for (var i = 0; i < message.services.length; ++i)
+ $root.google.api.servicemanagement.v1.ManagedService.encode(message.services[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServicesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServicesResponse} message ListServicesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ListServicesResponse} ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesResponse.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.api.servicemanagement.v1.ListServicesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.services && message.services.length))
+ message.services = [];
+ message.services.push($root.google.api.servicemanagement.v1.ManagedService.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ListServicesResponse} ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServicesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.services != null && message.hasOwnProperty("services")) {
+ if (!Array.isArray(message.services))
+ return "services: array expected";
+ for (var i = 0; i < message.services.length; ++i) {
+ var error = $root.google.api.servicemanagement.v1.ManagedService.verify(message.services[i]);
+ if (error)
+ return "services." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ListServicesResponse} ListServicesResponse
+ */
+ ListServicesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ListServicesResponse)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ListServicesResponse();
+ if (object.services) {
+ if (!Array.isArray(object.services))
+ throw TypeError(".google.api.servicemanagement.v1.ListServicesResponse.services: array expected");
+ message.services = [];
+ for (var i = 0; i < object.services.length; ++i) {
+ if (typeof object.services[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.ListServicesResponse.services: object expected");
+ message.services[i] = $root.google.api.servicemanagement.v1.ManagedService.fromObject(object.services[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.ListServicesResponse} message ListServicesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServicesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.services = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.services && message.services.length) {
+ object.services = [];
+ for (var j = 0; j < message.services.length; ++j)
+ object.services[j] = $root.google.api.servicemanagement.v1.ManagedService.toObject(message.services[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServicesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ListServicesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ListServicesResponse";
+ };
+
+ return ListServicesResponse;
+ })();
+
+ v1.GetServiceRequest = (function() {
+
+ /**
+ * Properties of a GetServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IGetServiceRequest
+ * @property {string|null} [serviceName] GetServiceRequest serviceName
+ */
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a GetServiceRequest.
+ * @implements IGetServiceRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IGetServiceRequest=} [properties] Properties to set
+ */
+ function GetServiceRequest(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]];
+ }
+
+ /**
+ * GetServiceRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @instance
+ */
+ GetServiceRequest.prototype.serviceName = "";
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.GetServiceRequest} GetServiceRequest instance
+ */
+ GetServiceRequest.create = function create(properties) {
+ return new GetServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceRequest} message GetServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceRequest} message GetServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.GetServiceRequest} GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRequest.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.api.servicemanagement.v1.GetServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.GetServiceRequest} GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetServiceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.GetServiceRequest} GetServiceRequest
+ */
+ GetServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.GetServiceRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.GetServiceRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.GetServiceRequest} message GetServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.serviceName = "";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ return object;
+ };
+
+ /**
+ * Converts this GetServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.GetServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.GetServiceRequest";
+ };
+
+ return GetServiceRequest;
+ })();
+
+ v1.CreateServiceRequest = (function() {
+
+ /**
+ * Properties of a CreateServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface ICreateServiceRequest
+ * @property {google.api.servicemanagement.v1.IManagedService|null} [service] CreateServiceRequest service
+ */
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a CreateServiceRequest.
+ * @implements ICreateServiceRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.ICreateServiceRequest=} [properties] Properties to set
+ */
+ function CreateServiceRequest(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]];
+ }
+
+ /**
+ * CreateServiceRequest service.
+ * @member {google.api.servicemanagement.v1.IManagedService|null|undefined} service
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.service = null;
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.CreateServiceRequest} CreateServiceRequest instance
+ */
+ CreateServiceRequest.create = function create(properties) {
+ return new CreateServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceRequest} message CreateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ $root.google.api.servicemanagement.v1.ManagedService.encode(message.service, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceRequest} message CreateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.CreateServiceRequest} CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRequest.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.api.servicemanagement.v1.CreateServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.service = $root.google.api.servicemanagement.v1.ManagedService.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.CreateServiceRequest} CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateServiceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.service != null && message.hasOwnProperty("service")) {
+ var error = $root.google.api.servicemanagement.v1.ManagedService.verify(message.service);
+ if (error)
+ return "service." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.CreateServiceRequest} CreateServiceRequest
+ */
+ CreateServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.CreateServiceRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.CreateServiceRequest();
+ if (object.service != null) {
+ if (typeof object.service !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.CreateServiceRequest.service: object expected");
+ message.service = $root.google.api.servicemanagement.v1.ManagedService.fromObject(object.service);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.CreateServiceRequest} message CreateServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.service = null;
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = $root.google.api.servicemanagement.v1.ManagedService.toObject(message.service, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.CreateServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.CreateServiceRequest";
+ };
+
+ return CreateServiceRequest;
+ })();
+
+ v1.DeleteServiceRequest = (function() {
+
+ /**
+ * Properties of a DeleteServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IDeleteServiceRequest
+ * @property {string|null} [serviceName] DeleteServiceRequest serviceName
+ */
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a DeleteServiceRequest.
+ * @implements IDeleteServiceRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IDeleteServiceRequest=} [properties] Properties to set
+ */
+ function DeleteServiceRequest(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]];
+ }
+
+ /**
+ * DeleteServiceRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @instance
+ */
+ DeleteServiceRequest.prototype.serviceName = "";
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IDeleteServiceRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.DeleteServiceRequest} DeleteServiceRequest instance
+ */
+ DeleteServiceRequest.create = function create(properties) {
+ return new DeleteServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.DeleteServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IDeleteServiceRequest} message DeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.DeleteServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IDeleteServiceRequest} message DeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.DeleteServiceRequest} DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceRequest.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.api.servicemanagement.v1.DeleteServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.DeleteServiceRequest} DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteServiceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.DeleteServiceRequest} DeleteServiceRequest
+ */
+ DeleteServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.DeleteServiceRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.DeleteServiceRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.DeleteServiceRequest} message DeleteServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.serviceName = "";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.DeleteServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.DeleteServiceRequest";
+ };
+
+ return DeleteServiceRequest;
+ })();
+
+ v1.UndeleteServiceRequest = (function() {
+
+ /**
+ * Properties of an UndeleteServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IUndeleteServiceRequest
+ * @property {string|null} [serviceName] UndeleteServiceRequest serviceName
+ */
+
+ /**
+ * Constructs a new UndeleteServiceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents an UndeleteServiceRequest.
+ * @implements IUndeleteServiceRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceRequest=} [properties] Properties to set
+ */
+ function UndeleteServiceRequest(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]];
+ }
+
+ /**
+ * UndeleteServiceRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @instance
+ */
+ UndeleteServiceRequest.prototype.serviceName = "";
+
+ /**
+ * Creates a new UndeleteServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceRequest} UndeleteServiceRequest instance
+ */
+ UndeleteServiceRequest.create = function create(properties) {
+ return new UndeleteServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UndeleteServiceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceRequest} message UndeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeleteServiceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UndeleteServiceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceRequest} message UndeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeleteServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UndeleteServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceRequest} UndeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeleteServiceRequest.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.api.servicemanagement.v1.UndeleteServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UndeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceRequest} UndeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeleteServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UndeleteServiceRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UndeleteServiceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UndeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceRequest} UndeleteServiceRequest
+ */
+ UndeleteServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.UndeleteServiceRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.UndeleteServiceRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UndeleteServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.UndeleteServiceRequest} message UndeleteServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UndeleteServiceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.serviceName = "";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ return object;
+ };
+
+ /**
+ * Converts this UndeleteServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UndeleteServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UndeleteServiceRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UndeleteServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.UndeleteServiceRequest";
+ };
+
+ return UndeleteServiceRequest;
+ })();
+
+ v1.UndeleteServiceResponse = (function() {
+
+ /**
+ * Properties of an UndeleteServiceResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IUndeleteServiceResponse
+ * @property {google.api.servicemanagement.v1.IManagedService|null} [service] UndeleteServiceResponse service
+ */
+
+ /**
+ * Constructs a new UndeleteServiceResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents an UndeleteServiceResponse.
+ * @implements IUndeleteServiceResponse
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceResponse=} [properties] Properties to set
+ */
+ function UndeleteServiceResponse(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]];
+ }
+
+ /**
+ * UndeleteServiceResponse service.
+ * @member {google.api.servicemanagement.v1.IManagedService|null|undefined} service
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @instance
+ */
+ UndeleteServiceResponse.prototype.service = null;
+
+ /**
+ * Creates a new UndeleteServiceResponse instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceResponse=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceResponse} UndeleteServiceResponse instance
+ */
+ UndeleteServiceResponse.create = function create(properties) {
+ return new UndeleteServiceResponse(properties);
+ };
+
+ /**
+ * Encodes the specified UndeleteServiceResponse message. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceResponse} message UndeleteServiceResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeleteServiceResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ $root.google.api.servicemanagement.v1.ManagedService.encode(message.service, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UndeleteServiceResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.UndeleteServiceResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IUndeleteServiceResponse} message UndeleteServiceResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UndeleteServiceResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UndeleteServiceResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceResponse} UndeleteServiceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeleteServiceResponse.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.api.servicemanagement.v1.UndeleteServiceResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.service = $root.google.api.servicemanagement.v1.ManagedService.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UndeleteServiceResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceResponse} UndeleteServiceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UndeleteServiceResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UndeleteServiceResponse message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UndeleteServiceResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.service != null && message.hasOwnProperty("service")) {
+ var error = $root.google.api.servicemanagement.v1.ManagedService.verify(message.service);
+ if (error)
+ return "service." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UndeleteServiceResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.UndeleteServiceResponse} UndeleteServiceResponse
+ */
+ UndeleteServiceResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.UndeleteServiceResponse)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.UndeleteServiceResponse();
+ if (object.service != null) {
+ if (typeof object.service !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.UndeleteServiceResponse.service: object expected");
+ message.service = $root.google.api.servicemanagement.v1.ManagedService.fromObject(object.service);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UndeleteServiceResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.UndeleteServiceResponse} message UndeleteServiceResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UndeleteServiceResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.service = null;
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = $root.google.api.servicemanagement.v1.ManagedService.toObject(message.service, options);
+ return object;
+ };
+
+ /**
+ * Converts this UndeleteServiceResponse to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UndeleteServiceResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UndeleteServiceResponse
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.UndeleteServiceResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UndeleteServiceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.UndeleteServiceResponse";
+ };
+
+ return UndeleteServiceResponse;
+ })();
+
+ v1.GetServiceConfigRequest = (function() {
+
+ /**
+ * Properties of a GetServiceConfigRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IGetServiceConfigRequest
+ * @property {string|null} [serviceName] GetServiceConfigRequest serviceName
+ * @property {string|null} [configId] GetServiceConfigRequest configId
+ * @property {google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView|null} [view] GetServiceConfigRequest view
+ */
+
+ /**
+ * Constructs a new GetServiceConfigRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a GetServiceConfigRequest.
+ * @implements IGetServiceConfigRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IGetServiceConfigRequest=} [properties] Properties to set
+ */
+ function GetServiceConfigRequest(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]];
+ }
+
+ /**
+ * GetServiceConfigRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @instance
+ */
+ GetServiceConfigRequest.prototype.serviceName = "";
+
+ /**
+ * GetServiceConfigRequest configId.
+ * @member {string} configId
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @instance
+ */
+ GetServiceConfigRequest.prototype.configId = "";
+
+ /**
+ * GetServiceConfigRequest view.
+ * @member {google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView} view
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @instance
+ */
+ GetServiceConfigRequest.prototype.view = 0;
+
+ /**
+ * Creates a new GetServiceConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceConfigRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.GetServiceConfigRequest} GetServiceConfigRequest instance
+ */
+ GetServiceConfigRequest.create = function create(properties) {
+ return new GetServiceConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetServiceConfigRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceConfigRequest} message GetServiceConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceConfigRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.configId != null && Object.hasOwnProperty.call(message, "configId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.configId);
+ if (message.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.view);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetServiceConfigRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceConfigRequest} message GetServiceConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetServiceConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.GetServiceConfigRequest} GetServiceConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceConfigRequest.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.api.servicemanagement.v1.GetServiceConfigRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.configId = reader.string();
+ break;
+ }
+ case 3: {
+ message.view = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetServiceConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.GetServiceConfigRequest} GetServiceConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetServiceConfigRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetServiceConfigRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.configId != null && message.hasOwnProperty("configId"))
+ if (!$util.isString(message.configId))
+ return "configId: string expected";
+ if (message.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GetServiceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.GetServiceConfigRequest} GetServiceConfigRequest
+ */
+ GetServiceConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.GetServiceConfigRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.GetServiceConfigRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.configId != null)
+ message.configId = String(object.configId);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "BASIC":
+ case 0:
+ message.view = 0;
+ break;
+ case "FULL":
+ case 1:
+ message.view = 1;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetServiceConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.GetServiceConfigRequest} message GetServiceConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetServiceConfigRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.configId = "";
+ object.view = options.enums === String ? "BASIC" : 0;
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.configId != null && message.hasOwnProperty("configId"))
+ object.configId = message.configId;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView[message.view] === undefined ? message.view : $root.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView[message.view] : message.view;
+ return object;
+ };
+
+ /**
+ * Converts this GetServiceConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetServiceConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetServiceConfigRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.GetServiceConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetServiceConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.GetServiceConfigRequest";
+ };
+
+ /**
+ * ConfigView enum.
+ * @name google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView
+ * @enum {number}
+ * @property {number} BASIC=0 BASIC value
+ * @property {number} FULL=1 FULL value
+ */
+ GetServiceConfigRequest.ConfigView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "BASIC"] = 0;
+ values[valuesById[1] = "FULL"] = 1;
+ return values;
+ })();
+
+ return GetServiceConfigRequest;
+ })();
+
+ v1.ListServiceConfigsRequest = (function() {
+
+ /**
+ * Properties of a ListServiceConfigsRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IListServiceConfigsRequest
+ * @property {string|null} [serviceName] ListServiceConfigsRequest serviceName
+ * @property {string|null} [pageToken] ListServiceConfigsRequest pageToken
+ * @property {number|null} [pageSize] ListServiceConfigsRequest pageSize
+ */
+
+ /**
+ * Constructs a new ListServiceConfigsRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ListServiceConfigsRequest.
+ * @implements IListServiceConfigsRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsRequest=} [properties] Properties to set
+ */
+ function ListServiceConfigsRequest(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]];
+ }
+
+ /**
+ * ListServiceConfigsRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @instance
+ */
+ ListServiceConfigsRequest.prototype.serviceName = "";
+
+ /**
+ * ListServiceConfigsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @instance
+ */
+ ListServiceConfigsRequest.prototype.pageToken = "";
+
+ /**
+ * ListServiceConfigsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @instance
+ */
+ ListServiceConfigsRequest.prototype.pageSize = 0;
+
+ /**
+ * Creates a new ListServiceConfigsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsRequest} ListServiceConfigsRequest instance
+ */
+ ListServiceConfigsRequest.create = function create(properties) {
+ return new ListServiceConfigsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListServiceConfigsRequest message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsRequest} message ListServiceConfigsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceConfigsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServiceConfigsRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsRequest} message ListServiceConfigsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceConfigsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServiceConfigsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsRequest} ListServiceConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceConfigsRequest.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.api.servicemanagement.v1.ListServiceConfigsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServiceConfigsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsRequest} ListServiceConfigsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceConfigsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServiceConfigsRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServiceConfigsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServiceConfigsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsRequest} ListServiceConfigsRequest
+ */
+ ListServiceConfigsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ListServiceConfigsRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ListServiceConfigsRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServiceConfigsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ListServiceConfigsRequest} message ListServiceConfigsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServiceConfigsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.pageToken = "";
+ object.pageSize = 0;
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ return object;
+ };
+
+ /**
+ * Converts this ListServiceConfigsRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServiceConfigsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServiceConfigsRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServiceConfigsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ListServiceConfigsRequest";
+ };
+
+ return ListServiceConfigsRequest;
+ })();
+
+ v1.ListServiceConfigsResponse = (function() {
+
+ /**
+ * Properties of a ListServiceConfigsResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IListServiceConfigsResponse
+ * @property {Array.|null} [serviceConfigs] ListServiceConfigsResponse serviceConfigs
+ * @property {string|null} [nextPageToken] ListServiceConfigsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListServiceConfigsResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ListServiceConfigsResponse.
+ * @implements IListServiceConfigsResponse
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsResponse=} [properties] Properties to set
+ */
+ function ListServiceConfigsResponse(properties) {
+ this.serviceConfigs = [];
+ 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]];
+ }
+
+ /**
+ * ListServiceConfigsResponse serviceConfigs.
+ * @member {Array.} serviceConfigs
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @instance
+ */
+ ListServiceConfigsResponse.prototype.serviceConfigs = $util.emptyArray;
+
+ /**
+ * ListServiceConfigsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @instance
+ */
+ ListServiceConfigsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListServiceConfigsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsResponse=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsResponse} ListServiceConfigsResponse instance
+ */
+ ListServiceConfigsResponse.create = function create(properties) {
+ return new ListServiceConfigsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListServiceConfigsResponse message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsResponse} message ListServiceConfigsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceConfigsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceConfigs != null && message.serviceConfigs.length)
+ for (var i = 0; i < message.serviceConfigs.length; ++i)
+ $root.google.api.Service.encode(message.serviceConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServiceConfigsResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceConfigsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceConfigsResponse} message ListServiceConfigsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceConfigsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServiceConfigsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsResponse} ListServiceConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceConfigsResponse.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.api.servicemanagement.v1.ListServiceConfigsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.serviceConfigs && message.serviceConfigs.length))
+ message.serviceConfigs = [];
+ message.serviceConfigs.push($root.google.api.Service.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServiceConfigsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsResponse} ListServiceConfigsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceConfigsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServiceConfigsResponse message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServiceConfigsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceConfigs != null && message.hasOwnProperty("serviceConfigs")) {
+ if (!Array.isArray(message.serviceConfigs))
+ return "serviceConfigs: array expected";
+ for (var i = 0; i < message.serviceConfigs.length; ++i) {
+ var error = $root.google.api.Service.verify(message.serviceConfigs[i]);
+ if (error)
+ return "serviceConfigs." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServiceConfigsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ListServiceConfigsResponse} ListServiceConfigsResponse
+ */
+ ListServiceConfigsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ListServiceConfigsResponse)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ListServiceConfigsResponse();
+ if (object.serviceConfigs) {
+ if (!Array.isArray(object.serviceConfigs))
+ throw TypeError(".google.api.servicemanagement.v1.ListServiceConfigsResponse.serviceConfigs: array expected");
+ message.serviceConfigs = [];
+ for (var i = 0; i < object.serviceConfigs.length; ++i) {
+ if (typeof object.serviceConfigs[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.ListServiceConfigsResponse.serviceConfigs: object expected");
+ message.serviceConfigs[i] = $root.google.api.Service.fromObject(object.serviceConfigs[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServiceConfigsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.ListServiceConfigsResponse} message ListServiceConfigsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServiceConfigsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.serviceConfigs = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.serviceConfigs && message.serviceConfigs.length) {
+ object.serviceConfigs = [];
+ for (var j = 0; j < message.serviceConfigs.length; ++j)
+ object.serviceConfigs[j] = $root.google.api.Service.toObject(message.serviceConfigs[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListServiceConfigsResponse to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServiceConfigsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServiceConfigsResponse
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ListServiceConfigsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServiceConfigsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ListServiceConfigsResponse";
+ };
+
+ return ListServiceConfigsResponse;
+ })();
+
+ v1.CreateServiceConfigRequest = (function() {
+
+ /**
+ * Properties of a CreateServiceConfigRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface ICreateServiceConfigRequest
+ * @property {string|null} [serviceName] CreateServiceConfigRequest serviceName
+ * @property {google.api.IService|null} [serviceConfig] CreateServiceConfigRequest serviceConfig
+ */
+
+ /**
+ * Constructs a new CreateServiceConfigRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a CreateServiceConfigRequest.
+ * @implements ICreateServiceConfigRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.ICreateServiceConfigRequest=} [properties] Properties to set
+ */
+ function CreateServiceConfigRequest(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]];
+ }
+
+ /**
+ * CreateServiceConfigRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @instance
+ */
+ CreateServiceConfigRequest.prototype.serviceName = "";
+
+ /**
+ * CreateServiceConfigRequest serviceConfig.
+ * @member {google.api.IService|null|undefined} serviceConfig
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @instance
+ */
+ CreateServiceConfigRequest.prototype.serviceConfig = null;
+
+ /**
+ * Creates a new CreateServiceConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceConfigRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.CreateServiceConfigRequest} CreateServiceConfigRequest instance
+ */
+ CreateServiceConfigRequest.create = function create(properties) {
+ return new CreateServiceConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateServiceConfigRequest message. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceConfigRequest} message CreateServiceConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceConfigRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.serviceConfig != null && Object.hasOwnProperty.call(message, "serviceConfig"))
+ $root.google.api.Service.encode(message.serviceConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateServiceConfigRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceConfigRequest} message CreateServiceConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateServiceConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.CreateServiceConfigRequest} CreateServiceConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceConfigRequest.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.api.servicemanagement.v1.CreateServiceConfigRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.serviceConfig = $root.google.api.Service.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateServiceConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.CreateServiceConfigRequest} CreateServiceConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateServiceConfigRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateServiceConfigRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.serviceConfig != null && message.hasOwnProperty("serviceConfig")) {
+ var error = $root.google.api.Service.verify(message.serviceConfig);
+ if (error)
+ return "serviceConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateServiceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.CreateServiceConfigRequest} CreateServiceConfigRequest
+ */
+ CreateServiceConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.CreateServiceConfigRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.CreateServiceConfigRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.serviceConfig != null) {
+ if (typeof object.serviceConfig !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.CreateServiceConfigRequest.serviceConfig: object expected");
+ message.serviceConfig = $root.google.api.Service.fromObject(object.serviceConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateServiceConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.CreateServiceConfigRequest} message CreateServiceConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateServiceConfigRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.serviceConfig = null;
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.serviceConfig != null && message.hasOwnProperty("serviceConfig"))
+ object.serviceConfig = $root.google.api.Service.toObject(message.serviceConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateServiceConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateServiceConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateServiceConfigRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.CreateServiceConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateServiceConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.CreateServiceConfigRequest";
+ };
+
+ return CreateServiceConfigRequest;
+ })();
+
+ v1.SubmitConfigSourceRequest = (function() {
+
+ /**
+ * Properties of a SubmitConfigSourceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface ISubmitConfigSourceRequest
+ * @property {string|null} [serviceName] SubmitConfigSourceRequest serviceName
+ * @property {google.api.servicemanagement.v1.IConfigSource|null} [configSource] SubmitConfigSourceRequest configSource
+ * @property {boolean|null} [validateOnly] SubmitConfigSourceRequest validateOnly
+ */
+
+ /**
+ * Constructs a new SubmitConfigSourceRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a SubmitConfigSourceRequest.
+ * @implements ISubmitConfigSourceRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceRequest=} [properties] Properties to set
+ */
+ function SubmitConfigSourceRequest(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]];
+ }
+
+ /**
+ * SubmitConfigSourceRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @instance
+ */
+ SubmitConfigSourceRequest.prototype.serviceName = "";
+
+ /**
+ * SubmitConfigSourceRequest configSource.
+ * @member {google.api.servicemanagement.v1.IConfigSource|null|undefined} configSource
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @instance
+ */
+ SubmitConfigSourceRequest.prototype.configSource = null;
+
+ /**
+ * SubmitConfigSourceRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @instance
+ */
+ SubmitConfigSourceRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new SubmitConfigSourceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceRequest} SubmitConfigSourceRequest instance
+ */
+ SubmitConfigSourceRequest.create = function create(properties) {
+ return new SubmitConfigSourceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified SubmitConfigSourceRequest message. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceRequest} message SubmitConfigSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SubmitConfigSourceRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.configSource != null && Object.hasOwnProperty.call(message, "configSource"))
+ $root.google.api.servicemanagement.v1.ConfigSource.encode(message.configSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SubmitConfigSourceRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceRequest} message SubmitConfigSourceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SubmitConfigSourceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SubmitConfigSourceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceRequest} SubmitConfigSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SubmitConfigSourceRequest.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.api.servicemanagement.v1.SubmitConfigSourceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.configSource = $root.google.api.servicemanagement.v1.ConfigSource.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SubmitConfigSourceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceRequest} SubmitConfigSourceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SubmitConfigSourceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SubmitConfigSourceRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SubmitConfigSourceRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.configSource != null && message.hasOwnProperty("configSource")) {
+ var error = $root.google.api.servicemanagement.v1.ConfigSource.verify(message.configSource);
+ if (error)
+ return "configSource." + error;
+ }
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a SubmitConfigSourceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceRequest} SubmitConfigSourceRequest
+ */
+ SubmitConfigSourceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.SubmitConfigSourceRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.SubmitConfigSourceRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.configSource != null) {
+ if (typeof object.configSource !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.SubmitConfigSourceRequest.configSource: object expected");
+ message.configSource = $root.google.api.servicemanagement.v1.ConfigSource.fromObject(object.configSource);
+ }
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SubmitConfigSourceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.SubmitConfigSourceRequest} message SubmitConfigSourceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SubmitConfigSourceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.configSource = null;
+ object.validateOnly = false;
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.configSource != null && message.hasOwnProperty("configSource"))
+ object.configSource = $root.google.api.servicemanagement.v1.ConfigSource.toObject(message.configSource, options);
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this SubmitConfigSourceRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SubmitConfigSourceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SubmitConfigSourceRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SubmitConfigSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.SubmitConfigSourceRequest";
+ };
+
+ return SubmitConfigSourceRequest;
+ })();
+
+ v1.SubmitConfigSourceResponse = (function() {
+
+ /**
+ * Properties of a SubmitConfigSourceResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @interface ISubmitConfigSourceResponse
+ * @property {google.api.IService|null} [serviceConfig] SubmitConfigSourceResponse serviceConfig
+ */
+
+ /**
+ * Constructs a new SubmitConfigSourceResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a SubmitConfigSourceResponse.
+ * @implements ISubmitConfigSourceResponse
+ * @constructor
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceResponse=} [properties] Properties to set
+ */
+ function SubmitConfigSourceResponse(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]];
+ }
+
+ /**
+ * SubmitConfigSourceResponse serviceConfig.
+ * @member {google.api.IService|null|undefined} serviceConfig
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @instance
+ */
+ SubmitConfigSourceResponse.prototype.serviceConfig = null;
+
+ /**
+ * Creates a new SubmitConfigSourceResponse instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceResponse=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceResponse} SubmitConfigSourceResponse instance
+ */
+ SubmitConfigSourceResponse.create = function create(properties) {
+ return new SubmitConfigSourceResponse(properties);
+ };
+
+ /**
+ * Encodes the specified SubmitConfigSourceResponse message. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceResponse} message SubmitConfigSourceResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SubmitConfigSourceResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceConfig != null && Object.hasOwnProperty.call(message, "serviceConfig"))
+ $root.google.api.Service.encode(message.serviceConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SubmitConfigSourceResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.SubmitConfigSourceResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.ISubmitConfigSourceResponse} message SubmitConfigSourceResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SubmitConfigSourceResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SubmitConfigSourceResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceResponse} SubmitConfigSourceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SubmitConfigSourceResponse.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.api.servicemanagement.v1.SubmitConfigSourceResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceConfig = $root.google.api.Service.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SubmitConfigSourceResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceResponse} SubmitConfigSourceResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SubmitConfigSourceResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SubmitConfigSourceResponse message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SubmitConfigSourceResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceConfig != null && message.hasOwnProperty("serviceConfig")) {
+ var error = $root.google.api.Service.verify(message.serviceConfig);
+ if (error)
+ return "serviceConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SubmitConfigSourceResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.SubmitConfigSourceResponse} SubmitConfigSourceResponse
+ */
+ SubmitConfigSourceResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.SubmitConfigSourceResponse)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.SubmitConfigSourceResponse();
+ if (object.serviceConfig != null) {
+ if (typeof object.serviceConfig !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.SubmitConfigSourceResponse.serviceConfig: object expected");
+ message.serviceConfig = $root.google.api.Service.fromObject(object.serviceConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SubmitConfigSourceResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.SubmitConfigSourceResponse} message SubmitConfigSourceResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SubmitConfigSourceResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.serviceConfig = null;
+ if (message.serviceConfig != null && message.hasOwnProperty("serviceConfig"))
+ object.serviceConfig = $root.google.api.Service.toObject(message.serviceConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this SubmitConfigSourceResponse to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SubmitConfigSourceResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SubmitConfigSourceResponse
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.SubmitConfigSourceResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SubmitConfigSourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.SubmitConfigSourceResponse";
+ };
+
+ return SubmitConfigSourceResponse;
+ })();
+
+ v1.CreateServiceRolloutRequest = (function() {
+
+ /**
+ * Properties of a CreateServiceRolloutRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface ICreateServiceRolloutRequest
+ * @property {string|null} [serviceName] CreateServiceRolloutRequest serviceName
+ * @property {google.api.servicemanagement.v1.IRollout|null} [rollout] CreateServiceRolloutRequest rollout
+ */
+
+ /**
+ * Constructs a new CreateServiceRolloutRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a CreateServiceRolloutRequest.
+ * @implements ICreateServiceRolloutRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.ICreateServiceRolloutRequest=} [properties] Properties to set
+ */
+ function CreateServiceRolloutRequest(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]];
+ }
+
+ /**
+ * CreateServiceRolloutRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @instance
+ */
+ CreateServiceRolloutRequest.prototype.serviceName = "";
+
+ /**
+ * CreateServiceRolloutRequest rollout.
+ * @member {google.api.servicemanagement.v1.IRollout|null|undefined} rollout
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @instance
+ */
+ CreateServiceRolloutRequest.prototype.rollout = null;
+
+ /**
+ * Creates a new CreateServiceRolloutRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceRolloutRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.CreateServiceRolloutRequest} CreateServiceRolloutRequest instance
+ */
+ CreateServiceRolloutRequest.create = function create(properties) {
+ return new CreateServiceRolloutRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateServiceRolloutRequest message. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRolloutRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceRolloutRequest} message CreateServiceRolloutRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRolloutRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.rollout != null && Object.hasOwnProperty.call(message, "rollout"))
+ $root.google.api.servicemanagement.v1.Rollout.encode(message.rollout, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateServiceRolloutRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.CreateServiceRolloutRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ICreateServiceRolloutRequest} message CreateServiceRolloutRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRolloutRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateServiceRolloutRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.CreateServiceRolloutRequest} CreateServiceRolloutRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRolloutRequest.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.api.servicemanagement.v1.CreateServiceRolloutRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.rollout = $root.google.api.servicemanagement.v1.Rollout.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateServiceRolloutRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.CreateServiceRolloutRequest} CreateServiceRolloutRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRolloutRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateServiceRolloutRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateServiceRolloutRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.rollout != null && message.hasOwnProperty("rollout")) {
+ var error = $root.google.api.servicemanagement.v1.Rollout.verify(message.rollout);
+ if (error)
+ return "rollout." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateServiceRolloutRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.CreateServiceRolloutRequest} CreateServiceRolloutRequest
+ */
+ CreateServiceRolloutRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.CreateServiceRolloutRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.CreateServiceRolloutRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.rollout != null) {
+ if (typeof object.rollout !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.CreateServiceRolloutRequest.rollout: object expected");
+ message.rollout = $root.google.api.servicemanagement.v1.Rollout.fromObject(object.rollout);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateServiceRolloutRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.CreateServiceRolloutRequest} message CreateServiceRolloutRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateServiceRolloutRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.rollout = null;
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.rollout != null && message.hasOwnProperty("rollout"))
+ object.rollout = $root.google.api.servicemanagement.v1.Rollout.toObject(message.rollout, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateServiceRolloutRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateServiceRolloutRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateServiceRolloutRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.CreateServiceRolloutRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateServiceRolloutRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.CreateServiceRolloutRequest";
+ };
+
+ return CreateServiceRolloutRequest;
+ })();
+
+ v1.ListServiceRolloutsRequest = (function() {
+
+ /**
+ * Properties of a ListServiceRolloutsRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IListServiceRolloutsRequest
+ * @property {string|null} [serviceName] ListServiceRolloutsRequest serviceName
+ * @property {string|null} [pageToken] ListServiceRolloutsRequest pageToken
+ * @property {number|null} [pageSize] ListServiceRolloutsRequest pageSize
+ * @property {string|null} [filter] ListServiceRolloutsRequest filter
+ */
+
+ /**
+ * Constructs a new ListServiceRolloutsRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ListServiceRolloutsRequest.
+ * @implements IListServiceRolloutsRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsRequest=} [properties] Properties to set
+ */
+ function ListServiceRolloutsRequest(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]];
+ }
+
+ /**
+ * ListServiceRolloutsRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @instance
+ */
+ ListServiceRolloutsRequest.prototype.serviceName = "";
+
+ /**
+ * ListServiceRolloutsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @instance
+ */
+ ListServiceRolloutsRequest.prototype.pageToken = "";
+
+ /**
+ * ListServiceRolloutsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @instance
+ */
+ ListServiceRolloutsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListServiceRolloutsRequest filter.
+ * @member {string} filter
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @instance
+ */
+ ListServiceRolloutsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListServiceRolloutsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsRequest} ListServiceRolloutsRequest instance
+ */
+ ListServiceRolloutsRequest.create = function create(properties) {
+ return new ListServiceRolloutsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListServiceRolloutsRequest message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsRequest} message ListServiceRolloutsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceRolloutsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pageToken);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServiceRolloutsRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsRequest} message ListServiceRolloutsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceRolloutsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServiceRolloutsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsRequest} ListServiceRolloutsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceRolloutsRequest.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.api.servicemanagement.v1.ListServiceRolloutsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 3: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServiceRolloutsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsRequest} ListServiceRolloutsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceRolloutsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServiceRolloutsRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServiceRolloutsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServiceRolloutsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsRequest} ListServiceRolloutsRequest
+ */
+ ListServiceRolloutsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ListServiceRolloutsRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ListServiceRolloutsRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServiceRolloutsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.ListServiceRolloutsRequest} message ListServiceRolloutsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServiceRolloutsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.pageToken = "";
+ object.pageSize = 0;
+ object.filter = "";
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListServiceRolloutsRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServiceRolloutsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServiceRolloutsRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServiceRolloutsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ListServiceRolloutsRequest";
+ };
+
+ return ListServiceRolloutsRequest;
+ })();
+
+ v1.ListServiceRolloutsResponse = (function() {
+
+ /**
+ * Properties of a ListServiceRolloutsResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IListServiceRolloutsResponse
+ * @property {Array.|null} [rollouts] ListServiceRolloutsResponse rollouts
+ * @property {string|null} [nextPageToken] ListServiceRolloutsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListServiceRolloutsResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a ListServiceRolloutsResponse.
+ * @implements IListServiceRolloutsResponse
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsResponse=} [properties] Properties to set
+ */
+ function ListServiceRolloutsResponse(properties) {
+ this.rollouts = [];
+ 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]];
+ }
+
+ /**
+ * ListServiceRolloutsResponse rollouts.
+ * @member {Array.} rollouts
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @instance
+ */
+ ListServiceRolloutsResponse.prototype.rollouts = $util.emptyArray;
+
+ /**
+ * ListServiceRolloutsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @instance
+ */
+ ListServiceRolloutsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListServiceRolloutsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsResponse=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsResponse} ListServiceRolloutsResponse instance
+ */
+ ListServiceRolloutsResponse.create = function create(properties) {
+ return new ListServiceRolloutsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListServiceRolloutsResponse message. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsResponse} message ListServiceRolloutsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceRolloutsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rollouts != null && message.rollouts.length)
+ for (var i = 0; i < message.rollouts.length; ++i)
+ $root.google.api.servicemanagement.v1.Rollout.encode(message.rollouts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServiceRolloutsResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.ListServiceRolloutsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IListServiceRolloutsResponse} message ListServiceRolloutsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServiceRolloutsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServiceRolloutsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsResponse} ListServiceRolloutsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceRolloutsResponse.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.api.servicemanagement.v1.ListServiceRolloutsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rollouts && message.rollouts.length))
+ message.rollouts = [];
+ message.rollouts.push($root.google.api.servicemanagement.v1.Rollout.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServiceRolloutsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsResponse} ListServiceRolloutsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServiceRolloutsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServiceRolloutsResponse message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServiceRolloutsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rollouts != null && message.hasOwnProperty("rollouts")) {
+ if (!Array.isArray(message.rollouts))
+ return "rollouts: array expected";
+ for (var i = 0; i < message.rollouts.length; ++i) {
+ var error = $root.google.api.servicemanagement.v1.Rollout.verify(message.rollouts[i]);
+ if (error)
+ return "rollouts." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServiceRolloutsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.ListServiceRolloutsResponse} ListServiceRolloutsResponse
+ */
+ ListServiceRolloutsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.ListServiceRolloutsResponse)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.ListServiceRolloutsResponse();
+ if (object.rollouts) {
+ if (!Array.isArray(object.rollouts))
+ throw TypeError(".google.api.servicemanagement.v1.ListServiceRolloutsResponse.rollouts: array expected");
+ message.rollouts = [];
+ for (var i = 0; i < object.rollouts.length; ++i) {
+ if (typeof object.rollouts[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.ListServiceRolloutsResponse.rollouts: object expected");
+ message.rollouts[i] = $root.google.api.servicemanagement.v1.Rollout.fromObject(object.rollouts[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServiceRolloutsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.ListServiceRolloutsResponse} message ListServiceRolloutsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServiceRolloutsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.rollouts = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.rollouts && message.rollouts.length) {
+ object.rollouts = [];
+ for (var j = 0; j < message.rollouts.length; ++j)
+ object.rollouts[j] = $root.google.api.servicemanagement.v1.Rollout.toObject(message.rollouts[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListServiceRolloutsResponse to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServiceRolloutsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServiceRolloutsResponse
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.ListServiceRolloutsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServiceRolloutsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.ListServiceRolloutsResponse";
+ };
+
+ return ListServiceRolloutsResponse;
+ })();
+
+ v1.GetServiceRolloutRequest = (function() {
+
+ /**
+ * Properties of a GetServiceRolloutRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IGetServiceRolloutRequest
+ * @property {string|null} [serviceName] GetServiceRolloutRequest serviceName
+ * @property {string|null} [rolloutId] GetServiceRolloutRequest rolloutId
+ */
+
+ /**
+ * Constructs a new GetServiceRolloutRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a GetServiceRolloutRequest.
+ * @implements IGetServiceRolloutRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IGetServiceRolloutRequest=} [properties] Properties to set
+ */
+ function GetServiceRolloutRequest(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]];
+ }
+
+ /**
+ * GetServiceRolloutRequest serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @instance
+ */
+ GetServiceRolloutRequest.prototype.serviceName = "";
+
+ /**
+ * GetServiceRolloutRequest rolloutId.
+ * @member {string} rolloutId
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @instance
+ */
+ GetServiceRolloutRequest.prototype.rolloutId = "";
+
+ /**
+ * Creates a new GetServiceRolloutRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceRolloutRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.GetServiceRolloutRequest} GetServiceRolloutRequest instance
+ */
+ GetServiceRolloutRequest.create = function create(properties) {
+ return new GetServiceRolloutRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetServiceRolloutRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRolloutRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceRolloutRequest} message GetServiceRolloutRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRolloutRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.rolloutId != null && Object.hasOwnProperty.call(message, "rolloutId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.rolloutId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetServiceRolloutRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GetServiceRolloutRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGetServiceRolloutRequest} message GetServiceRolloutRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRolloutRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetServiceRolloutRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.GetServiceRolloutRequest} GetServiceRolloutRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRolloutRequest.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.api.servicemanagement.v1.GetServiceRolloutRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.rolloutId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetServiceRolloutRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.GetServiceRolloutRequest} GetServiceRolloutRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRolloutRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetServiceRolloutRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetServiceRolloutRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.rolloutId != null && message.hasOwnProperty("rolloutId"))
+ if (!$util.isString(message.rolloutId))
+ return "rolloutId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetServiceRolloutRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.GetServiceRolloutRequest} GetServiceRolloutRequest
+ */
+ GetServiceRolloutRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.GetServiceRolloutRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.GetServiceRolloutRequest();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.rolloutId != null)
+ message.rolloutId = String(object.rolloutId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetServiceRolloutRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.GetServiceRolloutRequest} message GetServiceRolloutRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetServiceRolloutRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.serviceName = "";
+ object.rolloutId = "";
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.rolloutId != null && message.hasOwnProperty("rolloutId"))
+ object.rolloutId = message.rolloutId;
+ return object;
+ };
+
+ /**
+ * Converts this GetServiceRolloutRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetServiceRolloutRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetServiceRolloutRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.GetServiceRolloutRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetServiceRolloutRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.GetServiceRolloutRequest";
+ };
+
+ return GetServiceRolloutRequest;
+ })();
+
+ v1.GenerateConfigReportRequest = (function() {
+
+ /**
+ * Properties of a GenerateConfigReportRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IGenerateConfigReportRequest
+ * @property {google.protobuf.IAny|null} [newConfig] GenerateConfigReportRequest newConfig
+ * @property {google.protobuf.IAny|null} [oldConfig] GenerateConfigReportRequest oldConfig
+ */
+
+ /**
+ * Constructs a new GenerateConfigReportRequest.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a GenerateConfigReportRequest.
+ * @implements IGenerateConfigReportRequest
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportRequest=} [properties] Properties to set
+ */
+ function GenerateConfigReportRequest(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]];
+ }
+
+ /**
+ * GenerateConfigReportRequest newConfig.
+ * @member {google.protobuf.IAny|null|undefined} newConfig
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @instance
+ */
+ GenerateConfigReportRequest.prototype.newConfig = null;
+
+ /**
+ * GenerateConfigReportRequest oldConfig.
+ * @member {google.protobuf.IAny|null|undefined} oldConfig
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @instance
+ */
+ GenerateConfigReportRequest.prototype.oldConfig = null;
+
+ /**
+ * Creates a new GenerateConfigReportRequest instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportRequest=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportRequest} GenerateConfigReportRequest instance
+ */
+ GenerateConfigReportRequest.create = function create(properties) {
+ return new GenerateConfigReportRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GenerateConfigReportRequest message. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportRequest} message GenerateConfigReportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateConfigReportRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.newConfig != null && Object.hasOwnProperty.call(message, "newConfig"))
+ $root.google.protobuf.Any.encode(message.newConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.oldConfig != null && Object.hasOwnProperty.call(message, "oldConfig"))
+ $root.google.protobuf.Any.encode(message.oldConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GenerateConfigReportRequest message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportRequest} message GenerateConfigReportRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateConfigReportRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GenerateConfigReportRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportRequest} GenerateConfigReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateConfigReportRequest.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.api.servicemanagement.v1.GenerateConfigReportRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.newConfig = $root.google.protobuf.Any.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.oldConfig = $root.google.protobuf.Any.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GenerateConfigReportRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportRequest} GenerateConfigReportRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateConfigReportRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GenerateConfigReportRequest message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GenerateConfigReportRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.newConfig != null && message.hasOwnProperty("newConfig")) {
+ var error = $root.google.protobuf.Any.verify(message.newConfig);
+ if (error)
+ return "newConfig." + error;
+ }
+ if (message.oldConfig != null && message.hasOwnProperty("oldConfig")) {
+ var error = $root.google.protobuf.Any.verify(message.oldConfig);
+ if (error)
+ return "oldConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GenerateConfigReportRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportRequest} GenerateConfigReportRequest
+ */
+ GenerateConfigReportRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.GenerateConfigReportRequest)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.GenerateConfigReportRequest();
+ if (object.newConfig != null) {
+ if (typeof object.newConfig !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.GenerateConfigReportRequest.newConfig: object expected");
+ message.newConfig = $root.google.protobuf.Any.fromObject(object.newConfig);
+ }
+ if (object.oldConfig != null) {
+ if (typeof object.oldConfig !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.GenerateConfigReportRequest.oldConfig: object expected");
+ message.oldConfig = $root.google.protobuf.Any.fromObject(object.oldConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GenerateConfigReportRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {google.api.servicemanagement.v1.GenerateConfigReportRequest} message GenerateConfigReportRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GenerateConfigReportRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.newConfig = null;
+ object.oldConfig = null;
+ }
+ if (message.newConfig != null && message.hasOwnProperty("newConfig"))
+ object.newConfig = $root.google.protobuf.Any.toObject(message.newConfig, options);
+ if (message.oldConfig != null && message.hasOwnProperty("oldConfig"))
+ object.oldConfig = $root.google.protobuf.Any.toObject(message.oldConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this GenerateConfigReportRequest to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GenerateConfigReportRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GenerateConfigReportRequest
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GenerateConfigReportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.GenerateConfigReportRequest";
+ };
+
+ return GenerateConfigReportRequest;
+ })();
+
+ v1.GenerateConfigReportResponse = (function() {
+
+ /**
+ * Properties of a GenerateConfigReportResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @interface IGenerateConfigReportResponse
+ * @property {string|null} [serviceName] GenerateConfigReportResponse serviceName
+ * @property {string|null} [id] GenerateConfigReportResponse id
+ * @property {Array.|null} [changeReports] GenerateConfigReportResponse changeReports
+ * @property {Array.|null} [diagnostics] GenerateConfigReportResponse diagnostics
+ */
+
+ /**
+ * Constructs a new GenerateConfigReportResponse.
+ * @memberof google.api.servicemanagement.v1
+ * @classdesc Represents a GenerateConfigReportResponse.
+ * @implements IGenerateConfigReportResponse
+ * @constructor
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportResponse=} [properties] Properties to set
+ */
+ function GenerateConfigReportResponse(properties) {
+ this.changeReports = [];
+ this.diagnostics = [];
+ 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]];
+ }
+
+ /**
+ * GenerateConfigReportResponse serviceName.
+ * @member {string} serviceName
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @instance
+ */
+ GenerateConfigReportResponse.prototype.serviceName = "";
+
+ /**
+ * GenerateConfigReportResponse id.
+ * @member {string} id
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @instance
+ */
+ GenerateConfigReportResponse.prototype.id = "";
+
+ /**
+ * GenerateConfigReportResponse changeReports.
+ * @member {Array.} changeReports
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @instance
+ */
+ GenerateConfigReportResponse.prototype.changeReports = $util.emptyArray;
+
+ /**
+ * GenerateConfigReportResponse diagnostics.
+ * @member {Array.} diagnostics
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @instance
+ */
+ GenerateConfigReportResponse.prototype.diagnostics = $util.emptyArray;
+
+ /**
+ * Creates a new GenerateConfigReportResponse instance using the specified properties.
+ * @function create
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportResponse=} [properties] Properties to set
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportResponse} GenerateConfigReportResponse instance
+ */
+ GenerateConfigReportResponse.create = function create(properties) {
+ return new GenerateConfigReportResponse(properties);
+ };
+
+ /**
+ * Encodes the specified GenerateConfigReportResponse message. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportResponse} message GenerateConfigReportResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateConfigReportResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceName);
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.id);
+ if (message.changeReports != null && message.changeReports.length)
+ for (var i = 0; i < message.changeReports.length; ++i)
+ $root.google.api.servicemanagement.v1.ChangeReport.encode(message.changeReports[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.diagnostics != null && message.diagnostics.length)
+ for (var i = 0; i < message.diagnostics.length; ++i)
+ $root.google.api.servicemanagement.v1.Diagnostic.encode(message.diagnostics[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GenerateConfigReportResponse message, length delimited. Does not implicitly {@link google.api.servicemanagement.v1.GenerateConfigReportResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.IGenerateConfigReportResponse} message GenerateConfigReportResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateConfigReportResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GenerateConfigReportResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportResponse} GenerateConfigReportResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateConfigReportResponse.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.api.servicemanagement.v1.GenerateConfigReportResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceName = reader.string();
+ break;
+ }
+ case 2: {
+ message.id = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.changeReports && message.changeReports.length))
+ message.changeReports = [];
+ message.changeReports.push($root.google.api.servicemanagement.v1.ChangeReport.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ if (!(message.diagnostics && message.diagnostics.length))
+ message.diagnostics = [];
+ message.diagnostics.push($root.google.api.servicemanagement.v1.Diagnostic.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GenerateConfigReportResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportResponse} GenerateConfigReportResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateConfigReportResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GenerateConfigReportResponse message.
+ * @function verify
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GenerateConfigReportResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ if (!$util.isString(message.serviceName))
+ return "serviceName: string expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.changeReports != null && message.hasOwnProperty("changeReports")) {
+ if (!Array.isArray(message.changeReports))
+ return "changeReports: array expected";
+ for (var i = 0; i < message.changeReports.length; ++i) {
+ var error = $root.google.api.servicemanagement.v1.ChangeReport.verify(message.changeReports[i]);
+ if (error)
+ return "changeReports." + error;
+ }
+ }
+ if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) {
+ if (!Array.isArray(message.diagnostics))
+ return "diagnostics: array expected";
+ for (var i = 0; i < message.diagnostics.length; ++i) {
+ var error = $root.google.api.servicemanagement.v1.Diagnostic.verify(message.diagnostics[i]);
+ if (error)
+ return "diagnostics." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GenerateConfigReportResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.servicemanagement.v1.GenerateConfigReportResponse} GenerateConfigReportResponse
+ */
+ GenerateConfigReportResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.servicemanagement.v1.GenerateConfigReportResponse)
+ return object;
+ var message = new $root.google.api.servicemanagement.v1.GenerateConfigReportResponse();
+ if (object.serviceName != null)
+ message.serviceName = String(object.serviceName);
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.changeReports) {
+ if (!Array.isArray(object.changeReports))
+ throw TypeError(".google.api.servicemanagement.v1.GenerateConfigReportResponse.changeReports: array expected");
+ message.changeReports = [];
+ for (var i = 0; i < object.changeReports.length; ++i) {
+ if (typeof object.changeReports[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.GenerateConfigReportResponse.changeReports: object expected");
+ message.changeReports[i] = $root.google.api.servicemanagement.v1.ChangeReport.fromObject(object.changeReports[i]);
+ }
+ }
+ if (object.diagnostics) {
+ if (!Array.isArray(object.diagnostics))
+ throw TypeError(".google.api.servicemanagement.v1.GenerateConfigReportResponse.diagnostics: array expected");
+ message.diagnostics = [];
+ for (var i = 0; i < object.diagnostics.length; ++i) {
+ if (typeof object.diagnostics[i] !== "object")
+ throw TypeError(".google.api.servicemanagement.v1.GenerateConfigReportResponse.diagnostics: object expected");
+ message.diagnostics[i] = $root.google.api.servicemanagement.v1.Diagnostic.fromObject(object.diagnostics[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GenerateConfigReportResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {google.api.servicemanagement.v1.GenerateConfigReportResponse} message GenerateConfigReportResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GenerateConfigReportResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.changeReports = [];
+ object.diagnostics = [];
+ }
+ if (options.defaults) {
+ object.serviceName = "";
+ object.id = "";
+ }
+ if (message.serviceName != null && message.hasOwnProperty("serviceName"))
+ object.serviceName = message.serviceName;
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.changeReports && message.changeReports.length) {
+ object.changeReports = [];
+ for (var j = 0; j < message.changeReports.length; ++j)
+ object.changeReports[j] = $root.google.api.servicemanagement.v1.ChangeReport.toObject(message.changeReports[j], options);
+ }
+ if (message.diagnostics && message.diagnostics.length) {
+ object.diagnostics = [];
+ for (var j = 0; j < message.diagnostics.length; ++j)
+ object.diagnostics[j] = $root.google.api.servicemanagement.v1.Diagnostic.toObject(message.diagnostics[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this GenerateConfigReportResponse to JSON.
+ * @function toJSON
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GenerateConfigReportResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GenerateConfigReportResponse
+ * @function getTypeUrl
+ * @memberof google.api.servicemanagement.v1.GenerateConfigReportResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GenerateConfigReportResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.servicemanagement.v1.GenerateConfigReportResponse";
+ };
+
+ return GenerateConfigReportResponse;
+ })();
+
+ return v1;
+ })();
+
+ return servicemanagement;
+ })();
+
+ api.ConfigChange = (function() {
+
+ /**
+ * Properties of a ConfigChange.
+ * @memberof google.api
+ * @interface IConfigChange
+ * @property {string|null} [element] ConfigChange element
+ * @property {string|null} [oldValue] ConfigChange oldValue
+ * @property {string|null} [newValue] ConfigChange newValue
+ * @property {google.api.ChangeType|null} [changeType] ConfigChange changeType
+ * @property {Array.|null} [advices] ConfigChange advices
+ */
+
+ /**
+ * Constructs a new ConfigChange.
+ * @memberof google.api
+ * @classdesc Represents a ConfigChange.
+ * @implements IConfigChange
+ * @constructor
+ * @param {google.api.IConfigChange=} [properties] Properties to set
+ */
+ function ConfigChange(properties) {
+ this.advices = [];
+ 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]];
+ }
+
+ /**
+ * ConfigChange element.
+ * @member {string} element
+ * @memberof google.api.ConfigChange
+ * @instance
+ */
+ ConfigChange.prototype.element = "";
+
+ /**
+ * ConfigChange oldValue.
+ * @member {string} oldValue
+ * @memberof google.api.ConfigChange
+ * @instance
+ */
+ ConfigChange.prototype.oldValue = "";
+
+ /**
+ * ConfigChange newValue.
+ * @member {string} newValue
+ * @memberof google.api.ConfigChange
+ * @instance
+ */
+ ConfigChange.prototype.newValue = "";
+
+ /**
+ * ConfigChange changeType.
+ * @member {google.api.ChangeType} changeType
+ * @memberof google.api.ConfigChange
+ * @instance
+ */
+ ConfigChange.prototype.changeType = 0;
+
+ /**
+ * ConfigChange advices.
+ * @member {Array.} advices
+ * @memberof google.api.ConfigChange
+ * @instance
+ */
+ ConfigChange.prototype.advices = $util.emptyArray;
+
+ /**
+ * Creates a new ConfigChange instance using the specified properties.
+ * @function create
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {google.api.IConfigChange=} [properties] Properties to set
+ * @returns {google.api.ConfigChange} ConfigChange instance
+ */
+ ConfigChange.create = function create(properties) {
+ return new ConfigChange(properties);
+ };
+
+ /**
+ * Encodes the specified ConfigChange message. Does not implicitly {@link google.api.ConfigChange.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {google.api.IConfigChange} message ConfigChange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigChange.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.element != null && Object.hasOwnProperty.call(message, "element"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.element);
+ if (message.oldValue != null && Object.hasOwnProperty.call(message, "oldValue"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.oldValue);
+ if (message.newValue != null && Object.hasOwnProperty.call(message, "newValue"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.newValue);
+ if (message.changeType != null && Object.hasOwnProperty.call(message, "changeType"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.changeType);
+ if (message.advices != null && message.advices.length)
+ for (var i = 0; i < message.advices.length; ++i)
+ $root.google.api.Advice.encode(message.advices[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfigChange message, length delimited. Does not implicitly {@link google.api.ConfigChange.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {google.api.IConfigChange} message ConfigChange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigChange.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfigChange message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ConfigChange} ConfigChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigChange.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.api.ConfigChange();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.element = reader.string();
+ break;
+ }
+ case 2: {
+ message.oldValue = reader.string();
+ break;
+ }
+ case 3: {
+ message.newValue = reader.string();
+ break;
+ }
+ case 4: {
+ message.changeType = reader.int32();
+ break;
+ }
+ case 5: {
+ if (!(message.advices && message.advices.length))
+ message.advices = [];
+ message.advices.push($root.google.api.Advice.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfigChange message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ConfigChange} ConfigChange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigChange.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfigChange message.
+ * @function verify
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfigChange.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.element != null && message.hasOwnProperty("element"))
+ if (!$util.isString(message.element))
+ return "element: string expected";
+ if (message.oldValue != null && message.hasOwnProperty("oldValue"))
+ if (!$util.isString(message.oldValue))
+ return "oldValue: string expected";
+ if (message.newValue != null && message.hasOwnProperty("newValue"))
+ if (!$util.isString(message.newValue))
+ return "newValue: string expected";
+ if (message.changeType != null && message.hasOwnProperty("changeType"))
+ switch (message.changeType) {
+ default:
+ return "changeType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.advices != null && message.hasOwnProperty("advices")) {
+ if (!Array.isArray(message.advices))
+ return "advices: array expected";
+ for (var i = 0; i < message.advices.length; ++i) {
+ var error = $root.google.api.Advice.verify(message.advices[i]);
+ if (error)
+ return "advices." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConfigChange message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ConfigChange} ConfigChange
+ */
+ ConfigChange.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ConfigChange)
+ return object;
+ var message = new $root.google.api.ConfigChange();
+ if (object.element != null)
+ message.element = String(object.element);
+ if (object.oldValue != null)
+ message.oldValue = String(object.oldValue);
+ if (object.newValue != null)
+ message.newValue = String(object.newValue);
+ switch (object.changeType) {
+ default:
+ if (typeof object.changeType === "number") {
+ message.changeType = object.changeType;
+ break;
+ }
+ break;
+ case "CHANGE_TYPE_UNSPECIFIED":
+ case 0:
+ message.changeType = 0;
+ break;
+ case "ADDED":
+ case 1:
+ message.changeType = 1;
+ break;
+ case "REMOVED":
+ case 2:
+ message.changeType = 2;
+ break;
+ case "MODIFIED":
+ case 3:
+ message.changeType = 3;
+ break;
+ }
+ if (object.advices) {
+ if (!Array.isArray(object.advices))
+ throw TypeError(".google.api.ConfigChange.advices: array expected");
+ message.advices = [];
+ for (var i = 0; i < object.advices.length; ++i) {
+ if (typeof object.advices[i] !== "object")
+ throw TypeError(".google.api.ConfigChange.advices: object expected");
+ message.advices[i] = $root.google.api.Advice.fromObject(object.advices[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfigChange message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {google.api.ConfigChange} message ConfigChange
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfigChange.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.advices = [];
+ if (options.defaults) {
+ object.element = "";
+ object.oldValue = "";
+ object.newValue = "";
+ object.changeType = options.enums === String ? "CHANGE_TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.element != null && message.hasOwnProperty("element"))
+ object.element = message.element;
+ if (message.oldValue != null && message.hasOwnProperty("oldValue"))
+ object.oldValue = message.oldValue;
+ if (message.newValue != null && message.hasOwnProperty("newValue"))
+ object.newValue = message.newValue;
+ if (message.changeType != null && message.hasOwnProperty("changeType"))
+ object.changeType = options.enums === String ? $root.google.api.ChangeType[message.changeType] === undefined ? message.changeType : $root.google.api.ChangeType[message.changeType] : message.changeType;
+ if (message.advices && message.advices.length) {
+ object.advices = [];
+ for (var j = 0; j < message.advices.length; ++j)
+ object.advices[j] = $root.google.api.Advice.toObject(message.advices[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ConfigChange to JSON.
+ * @function toJSON
+ * @memberof google.api.ConfigChange
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfigChange.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfigChange
+ * @function getTypeUrl
+ * @memberof google.api.ConfigChange
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfigChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ConfigChange";
+ };
+
+ return ConfigChange;
+ })();
+
+ api.Advice = (function() {
+
+ /**
+ * Properties of an Advice.
+ * @memberof google.api
+ * @interface IAdvice
+ * @property {string|null} [description] Advice description
+ */
+
+ /**
+ * Constructs a new Advice.
+ * @memberof google.api
+ * @classdesc Represents an Advice.
+ * @implements IAdvice
+ * @constructor
+ * @param {google.api.IAdvice=} [properties] Properties to set
+ */
+ function Advice(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]];
+ }
+
+ /**
+ * Advice description.
+ * @member {string} description
+ * @memberof google.api.Advice
+ * @instance
+ */
+ Advice.prototype.description = "";
+
+ /**
+ * Creates a new Advice instance using the specified properties.
+ * @function create
+ * @memberof google.api.Advice
+ * @static
+ * @param {google.api.IAdvice=} [properties] Properties to set
+ * @returns {google.api.Advice} Advice instance
+ */
+ Advice.create = function create(properties) {
+ return new Advice(properties);
+ };
+
+ /**
+ * Encodes the specified Advice message. Does not implicitly {@link google.api.Advice.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Advice
+ * @static
+ * @param {google.api.IAdvice} message Advice message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Advice.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Advice message, length delimited. Does not implicitly {@link google.api.Advice.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Advice
+ * @static
+ * @param {google.api.IAdvice} message Advice message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Advice.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Advice message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Advice
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Advice} Advice
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Advice.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.api.Advice();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Advice message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Advice
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Advice} Advice
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Advice.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Advice message.
+ * @function verify
+ * @memberof google.api.Advice
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Advice.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an Advice message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Advice
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Advice} Advice
+ */
+ Advice.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Advice)
+ return object;
+ var message = new $root.google.api.Advice();
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Advice message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Advice
+ * @static
+ * @param {google.api.Advice} message Advice
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Advice.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.description = "";
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ return object;
+ };
+
+ /**
+ * Converts this Advice to JSON.
+ * @function toJSON
+ * @memberof google.api.Advice
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Advice.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Advice
+ * @function getTypeUrl
+ * @memberof google.api.Advice
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Advice.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Advice";
+ };
+
+ return Advice;
+ })();
+
+ /**
+ * ChangeType enum.
+ * @name google.api.ChangeType
+ * @enum {number}
+ * @property {number} CHANGE_TYPE_UNSPECIFIED=0 CHANGE_TYPE_UNSPECIFIED value
+ * @property {number} ADDED=1 ADDED value
+ * @property {number} REMOVED=2 REMOVED value
+ * @property {number} MODIFIED=3 MODIFIED value
+ */
+ api.ChangeType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CHANGE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ADDED"] = 1;
+ values[valuesById[2] = "REMOVED"] = 2;
+ values[valuesById[3] = "MODIFIED"] = 3;
+ return values;
+ })();
+
+ /**
+ * FieldBehavior enum.
+ * @name google.api.FieldBehavior
+ * @enum {number}
+ * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
+ * @property {number} OPTIONAL=1 OPTIONAL value
+ * @property {number} REQUIRED=2 REQUIRED value
+ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
+ * @property {number} INPUT_ONLY=4 INPUT_ONLY value
+ * @property {number} IMMUTABLE=5 IMMUTABLE value
+ * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
+ * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
+ */
+ api.FieldBehavior = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "OPTIONAL"] = 1;
+ values[valuesById[2] = "REQUIRED"] = 2;
+ values[valuesById[3] = "OUTPUT_ONLY"] = 3;
+ values[valuesById[4] = "INPUT_ONLY"] = 4;
+ values[valuesById[5] = "IMMUTABLE"] = 5;
+ values[valuesById[6] = "UNORDERED_LIST"] = 6;
+ values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
+ return values;
+ })();
+
+ api.Http = (function() {
+
+ /**
+ * Properties of a Http.
+ * @memberof google.api
+ * @interface IHttp
+ * @property {Array.|null} [rules] Http rules
+ * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion
+ */
+
+ /**
+ * Constructs a new Http.
+ * @memberof google.api
+ * @classdesc Represents a Http.
+ * @implements IHttp
+ * @constructor
+ * @param {google.api.IHttp=} [properties] Properties to set
+ */
+ function Http(properties) {
+ this.rules = [];
+ 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]];
+ }
+
+ /**
+ * Http rules.
+ * @member {Array.} rules
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.rules = $util.emptyArray;
+
+ /**
+ * Http fullyDecodeReservedExpansion.
+ * @member {boolean} fullyDecodeReservedExpansion
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.fullyDecodeReservedExpansion = false;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @function create
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp=} [properties] Properties to set
+ * @returns {google.api.Http} Http instance
+ */
+ Http.create = function create(properties) {
+ return new Http(properties);
+ };
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rules != null && message.rules.length)
+ for (var i = 0; i < message.rules.length; ++i)
+ $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.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.api.Http();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.fullyDecodeReservedExpansion = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Http message.
+ * @function verify
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Http.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rules != null && message.hasOwnProperty("rules")) {
+ if (!Array.isArray(message.rules))
+ return "rules: array expected";
+ for (var i = 0; i < message.rules.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.rules[i]);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ if (typeof message.fullyDecodeReservedExpansion !== "boolean")
+ return "fullyDecodeReservedExpansion: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Http} Http
+ */
+ Http.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Http)
+ return object;
+ var message = new $root.google.api.Http();
+ if (object.rules) {
+ if (!Array.isArray(object.rules))
+ throw TypeError(".google.api.Http.rules: array expected");
+ message.rules = [];
+ for (var i = 0; i < object.rules.length; ++i) {
+ if (typeof object.rules[i] !== "object")
+ throw TypeError(".google.api.Http.rules: object expected");
+ message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
+ }
+ }
+ if (object.fullyDecodeReservedExpansion != null)
+ message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.Http} message Http
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Http.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.rules = [];
+ if (options.defaults)
+ object.fullyDecodeReservedExpansion = false;
+ if (message.rules && message.rules.length) {
+ object.rules = [];
+ for (var j = 0; j < message.rules.length; ++j)
+ object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
+ return object;
+ };
+
+ /**
+ * Converts this Http to JSON.
+ * @function toJSON
+ * @memberof google.api.Http
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Http.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Http
+ * @function getTypeUrl
+ * @memberof google.api.Http
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Http";
+ };
+
+ return Http;
+ })();
+
+ api.HttpRule = (function() {
+
+ /**
+ * Properties of a HttpRule.
+ * @memberof google.api
+ * @interface IHttpRule
+ * @property {string|null} [selector] HttpRule selector
+ * @property {string|null} [get] HttpRule get
+ * @property {string|null} [put] HttpRule put
+ * @property {string|null} [post] HttpRule post
+ * @property {string|null} ["delete"] HttpRule delete
+ * @property {string|null} [patch] HttpRule patch
+ * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom
+ * @property {string|null} [body] HttpRule body
+ * @property {string|null} [responseBody] HttpRule responseBody
+ * @property {Array.|null} [additionalBindings] HttpRule additionalBindings
+ */
+
+ /**
+ * Constructs a new HttpRule.
+ * @memberof google.api
+ * @classdesc Represents a HttpRule.
+ * @implements IHttpRule
+ * @constructor
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ */
+ function HttpRule(properties) {
+ this.additionalBindings = [];
+ 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]];
+ }
+
+ /**
+ * HttpRule selector.
+ * @member {string} selector
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.selector = "";
+
+ /**
+ * HttpRule get.
+ * @member {string|null|undefined} get
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.get = null;
+
+ /**
+ * HttpRule put.
+ * @member {string|null|undefined} put
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.put = null;
+
+ /**
+ * HttpRule post.
+ * @member {string|null|undefined} post
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.post = null;
+
+ /**
+ * HttpRule delete.
+ * @member {string|null|undefined} delete
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype["delete"] = null;
+
+ /**
+ * HttpRule patch.
+ * @member {string|null|undefined} patch
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.patch = null;
+
+ /**
+ * HttpRule custom.
+ * @member {google.api.ICustomHttpPattern|null|undefined} custom
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.custom = null;
+
+ /**
+ * HttpRule body.
+ * @member {string} body
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.body = "";
+
+ /**
+ * HttpRule responseBody.
+ * @member {string} responseBody
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.responseBody = "";
+
+ /**
+ * HttpRule additionalBindings.
+ * @member {Array.} additionalBindings
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.additionalBindings = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * HttpRule pattern.
+ * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ Object.defineProperty(HttpRule.prototype, "pattern", {
+ get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @function create
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ * @returns {google.api.HttpRule} HttpRule instance
+ */
+ HttpRule.create = function create(properties) {
+ return new HttpRule(properties);
+ };
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.get != null && Object.hasOwnProperty.call(message, "get"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.get);
+ if (message.put != null && Object.hasOwnProperty.call(message, "put"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.put);
+ if (message.post != null && Object.hasOwnProperty.call(message, "post"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.post);
+ if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]);
+ if (message.patch != null && Object.hasOwnProperty.call(message, "patch"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.body);
+ if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
+ $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.additionalBindings != null && message.additionalBindings.length)
+ for (var i = 0; i < message.additionalBindings.length; ++i)
+ $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.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.api.HttpRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.get = reader.string();
+ break;
+ }
+ case 3: {
+ message.put = reader.string();
+ break;
+ }
+ case 4: {
+ message.post = reader.string();
+ break;
+ }
+ case 5: {
+ message["delete"] = reader.string();
+ break;
+ }
+ case 6: {
+ message.patch = reader.string();
+ break;
+ }
+ case 8: {
+ message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.body = reader.string();
+ break;
+ }
+ case 12: {
+ message.responseBody = reader.string();
+ break;
+ }
+ case 11: {
+ if (!(message.additionalBindings && message.additionalBindings.length))
+ message.additionalBindings = [];
+ message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HttpRule message.
+ * @function verify
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HttpRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.get != null && message.hasOwnProperty("get")) {
+ properties.pattern = 1;
+ if (!$util.isString(message.get))
+ return "get: string expected";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.put))
+ return "put: string expected";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.post))
+ return "post: string expected";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message["delete"]))
+ return "delete: string expected";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.patch))
+ return "patch: string expected";
+ }
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ {
+ var error = $root.google.api.CustomHttpPattern.verify(message.custom);
+ if (error)
+ return "custom." + error;
+ }
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ if (!$util.isString(message.responseBody))
+ return "responseBody: string expected";
+ if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) {
+ if (!Array.isArray(message.additionalBindings))
+ return "additionalBindings: array expected";
+ for (var i = 0; i < message.additionalBindings.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]);
+ if (error)
+ return "additionalBindings." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.HttpRule} HttpRule
+ */
+ HttpRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.HttpRule)
+ return object;
+ var message = new $root.google.api.HttpRule();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.get != null)
+ message.get = String(object.get);
+ if (object.put != null)
+ message.put = String(object.put);
+ if (object.post != null)
+ message.post = String(object.post);
+ if (object["delete"] != null)
+ message["delete"] = String(object["delete"]);
+ if (object.patch != null)
+ message.patch = String(object.patch);
+ if (object.custom != null) {
+ if (typeof object.custom !== "object")
+ throw TypeError(".google.api.HttpRule.custom: object expected");
+ message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
+ }
+ if (object.body != null)
+ message.body = String(object.body);
+ if (object.responseBody != null)
+ message.responseBody = String(object.responseBody);
+ if (object.additionalBindings) {
+ if (!Array.isArray(object.additionalBindings))
+ throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
+ message.additionalBindings = [];
+ for (var i = 0; i < object.additionalBindings.length; ++i) {
+ if (typeof object.additionalBindings[i] !== "object")
+ throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
+ message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.HttpRule} message HttpRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HttpRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalBindings = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.body = "";
+ object.responseBody = "";
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.get != null && message.hasOwnProperty("get")) {
+ object.get = message.get;
+ if (options.oneofs)
+ object.pattern = "get";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ object.put = message.put;
+ if (options.oneofs)
+ object.pattern = "put";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ object.post = message.post;
+ if (options.oneofs)
+ object.pattern = "post";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ object["delete"] = message["delete"];
+ if (options.oneofs)
+ object.pattern = "delete";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ object.patch = message.patch;
+ if (options.oneofs)
+ object.pattern = "patch";
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ object.body = message.body;
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options);
+ if (options.oneofs)
+ object.pattern = "custom";
+ }
+ if (message.additionalBindings && message.additionalBindings.length) {
+ object.additionalBindings = [];
+ for (var j = 0; j < message.additionalBindings.length; ++j)
+ object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options);
+ }
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ object.responseBody = message.responseBody;
+ return object;
+ };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @function toJSON
+ * @memberof google.api.HttpRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @function getTypeUrl
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.HttpRule";
+ };
+
+ return HttpRule;
+ })();
+
+ api.CustomHttpPattern = (function() {
+
+ /**
+ * Properties of a CustomHttpPattern.
+ * @memberof google.api
+ * @interface ICustomHttpPattern
+ * @property {string|null} [kind] CustomHttpPattern kind
+ * @property {string|null} [path] CustomHttpPattern path
+ */
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @memberof google.api
+ * @classdesc Represents a CustomHttpPattern.
+ * @implements ICustomHttpPattern
+ * @constructor
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ */
+ function CustomHttpPattern(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]];
+ }
+
+ /**
+ * CustomHttpPattern kind.
+ * @member {string} kind
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.kind = "";
+
+ /**
+ * CustomHttpPattern path.
+ * @member {string} path
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.path = "";
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @function create
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
+ */
+ CustomHttpPattern.create = function create(properties) {
+ return new CustomHttpPattern(properties);
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.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.api.CustomHttpPattern();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @function verify
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomHttpPattern.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ */
+ CustomHttpPattern.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CustomHttpPattern)
+ return object;
+ var message = new $root.google.api.CustomHttpPattern();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.CustomHttpPattern} message CustomHttpPattern
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomHttpPattern.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.kind = "";
+ object.path = "";
+ }
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ object.kind = message.kind;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @function toJSON
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomHttpPattern.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @function getTypeUrl
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CustomHttpPattern";
+ };
+
+ return CustomHttpPattern;
+ })();
+
+ api.Service = (function() {
+
+ /**
+ * Properties of a Service.
+ * @memberof google.api
+ * @interface IService
+ * @property {string|null} [name] Service name
+ * @property {string|null} [title] Service title
+ * @property {string|null} [producerProjectId] Service producerProjectId
+ * @property {string|null} [id] Service id
+ * @property {Array.|null} [apis] Service apis
+ * @property {Array.|null} [types] Service types
+ * @property {Array.|null} [enums] Service enums
+ * @property {google.api.IDocumentation|null} [documentation] Service documentation
+ * @property {google.api.IBackend|null} [backend] Service backend
+ * @property {google.api.IHttp|null} [http] Service http
+ * @property {google.api.IQuota|null} [quota] Service quota
+ * @property {google.api.IAuthentication|null} [authentication] Service authentication
+ * @property {google.api.IContext|null} [context] Service context
+ * @property {google.api.IUsage|null} [usage] Service usage
+ * @property {Array.|null} [endpoints] Service endpoints
+ * @property {google.api.IControl|null} [control] Service control
+ * @property {Array.|null} [logs] Service logs
+ * @property {Array.|null} [metrics] Service metrics
+ * @property {Array.|null} [monitoredResources] Service monitoredResources
+ * @property {google.api.IBilling|null} [billing] Service billing
+ * @property {google.api.ILogging|null} [logging] Service logging
+ * @property {google.api.IMonitoring|null} [monitoring] Service monitoring
+ * @property {google.api.ISystemParameters|null} [systemParameters] Service systemParameters
+ * @property {google.api.ISourceInfo|null} [sourceInfo] Service sourceInfo
+ * @property {google.protobuf.IUInt32Value|null} [configVersion] Service configVersion
+ */
+
+ /**
+ * Constructs a new Service.
+ * @memberof google.api
+ * @classdesc Represents a Service.
+ * @implements IService
+ * @constructor
+ * @param {google.api.IService=} [properties] Properties to set
+ */
+ function Service(properties) {
+ this.apis = [];
+ this.types = [];
+ this.enums = [];
+ this.endpoints = [];
+ this.logs = [];
+ this.metrics = [];
+ this.monitoredResources = [];
+ 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]];
+ }
+
+ /**
+ * Service name.
+ * @member {string} name
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.name = "";
+
+ /**
+ * Service title.
+ * @member {string} title
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.title = "";
+
+ /**
+ * Service producerProjectId.
+ * @member {string} producerProjectId
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.producerProjectId = "";
+
+ /**
+ * Service id.
+ * @member {string} id
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.id = "";
+
+ /**
+ * Service apis.
+ * @member {Array.} apis
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.apis = $util.emptyArray;
+
+ /**
+ * Service types.
+ * @member {Array.} types
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.types = $util.emptyArray;
+
+ /**
+ * Service enums.
+ * @member {Array.} enums
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.enums = $util.emptyArray;
+
+ /**
+ * Service documentation.
+ * @member {google.api.IDocumentation|null|undefined} documentation
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.documentation = null;
+
+ /**
+ * Service backend.
+ * @member {google.api.IBackend|null|undefined} backend
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.backend = null;
+
+ /**
+ * Service http.
+ * @member {google.api.IHttp|null|undefined} http
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.http = null;
+
+ /**
+ * Service quota.
+ * @member {google.api.IQuota|null|undefined} quota
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.quota = null;
+
+ /**
+ * Service authentication.
+ * @member {google.api.IAuthentication|null|undefined} authentication
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.authentication = null;
+
+ /**
+ * Service context.
+ * @member {google.api.IContext|null|undefined} context
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.context = null;
+
+ /**
+ * Service usage.
+ * @member {google.api.IUsage|null|undefined} usage
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.usage = null;
+
+ /**
+ * Service endpoints.
+ * @member {Array.} endpoints
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.endpoints = $util.emptyArray;
+
+ /**
+ * Service control.
+ * @member {google.api.IControl|null|undefined} control
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.control = null;
+
+ /**
+ * Service logs.
+ * @member {Array.} logs
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.logs = $util.emptyArray;
+
+ /**
+ * Service metrics.
+ * @member {Array.} metrics
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.metrics = $util.emptyArray;
+
+ /**
+ * Service monitoredResources.
+ * @member {Array.} monitoredResources
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.monitoredResources = $util.emptyArray;
+
+ /**
+ * Service billing.
+ * @member {google.api.IBilling|null|undefined} billing
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.billing = null;
+
+ /**
+ * Service logging.
+ * @member {google.api.ILogging|null|undefined} logging
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.logging = null;
+
+ /**
+ * Service monitoring.
+ * @member {google.api.IMonitoring|null|undefined} monitoring
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.monitoring = null;
+
+ /**
+ * Service systemParameters.
+ * @member {google.api.ISystemParameters|null|undefined} systemParameters
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.systemParameters = null;
+
+ /**
+ * Service sourceInfo.
+ * @member {google.api.ISourceInfo|null|undefined} sourceInfo
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.sourceInfo = null;
+
+ /**
+ * Service configVersion.
+ * @member {google.protobuf.IUInt32Value|null|undefined} configVersion
+ * @memberof google.api.Service
+ * @instance
+ */
+ Service.prototype.configVersion = null;
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @function create
+ * @memberof google.api.Service
+ * @static
+ * @param {google.api.IService=} [properties] Properties to set
+ * @returns {google.api.Service} Service instance
+ */
+ Service.create = function create(properties) {
+ return new Service(properties);
+ };
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.api.Service.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Service
+ * @static
+ * @param {google.api.IService} message Service message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Service.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.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
+ if (message.apis != null && message.apis.length)
+ for (var i = 0; i < message.apis.length; ++i)
+ $root.google.protobuf.Api.encode(message.apis[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.types != null && message.types.length)
+ for (var i = 0; i < message.types.length; ++i)
+ $root.google.protobuf.Type.encode(message.types[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.enums != null && message.enums.length)
+ for (var i = 0; i < message.enums.length; ++i)
+ $root.google.protobuf.Enum.encode(message.enums[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.documentation != null && Object.hasOwnProperty.call(message, "documentation"))
+ $root.google.api.Documentation.encode(message.documentation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.backend != null && Object.hasOwnProperty.call(message, "backend"))
+ $root.google.api.Backend.encode(message.backend, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.http != null && Object.hasOwnProperty.call(message, "http"))
+ $root.google.api.Http.encode(message.http, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.quota != null && Object.hasOwnProperty.call(message, "quota"))
+ $root.google.api.Quota.encode(message.quota, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.authentication != null && Object.hasOwnProperty.call(message, "authentication"))
+ $root.google.api.Authentication.encode(message.authentication, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.context != null && Object.hasOwnProperty.call(message, "context"))
+ $root.google.api.Context.encode(message.context, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.usage != null && Object.hasOwnProperty.call(message, "usage"))
+ $root.google.api.Usage.encode(message.usage, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.endpoints != null && message.endpoints.length)
+ for (var i = 0; i < message.endpoints.length; ++i)
+ $root.google.api.Endpoint.encode(message.endpoints[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
+ if (message.configVersion != null && Object.hasOwnProperty.call(message, "configVersion"))
+ $root.google.protobuf.UInt32Value.encode(message.configVersion, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
+ if (message.control != null && Object.hasOwnProperty.call(message, "control"))
+ $root.google.api.Control.encode(message.control, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
+ if (message.producerProjectId != null && Object.hasOwnProperty.call(message, "producerProjectId"))
+ writer.uint32(/* id 22, wireType 2 =*/178).string(message.producerProjectId);
+ if (message.logs != null && message.logs.length)
+ for (var i = 0; i < message.logs.length; ++i)
+ $root.google.api.LogDescriptor.encode(message.logs[i], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
+ if (message.metrics != null && message.metrics.length)
+ for (var i = 0; i < message.metrics.length; ++i)
+ $root.google.api.MetricDescriptor.encode(message.metrics[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
+ if (message.monitoredResources != null && message.monitoredResources.length)
+ for (var i = 0; i < message.monitoredResources.length; ++i)
+ $root.google.api.MonitoredResourceDescriptor.encode(message.monitoredResources[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
+ if (message.billing != null && Object.hasOwnProperty.call(message, "billing"))
+ $root.google.api.Billing.encode(message.billing, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
+ if (message.logging != null && Object.hasOwnProperty.call(message, "logging"))
+ $root.google.api.Logging.encode(message.logging, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
+ if (message.monitoring != null && Object.hasOwnProperty.call(message, "monitoring"))
+ $root.google.api.Monitoring.encode(message.monitoring, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
+ if (message.systemParameters != null && Object.hasOwnProperty.call(message, "systemParameters"))
+ $root.google.api.SystemParameters.encode(message.systemParameters, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 33, wireType 2 =*/266).string(message.id);
+ if (message.sourceInfo != null && Object.hasOwnProperty.call(message, "sourceInfo"))
+ $root.google.api.SourceInfo.encode(message.sourceInfo, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.api.Service.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Service
+ * @static
+ * @param {google.api.IService} message Service message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Service.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Service
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Service} Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Service.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.api.Service();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.title = reader.string();
+ break;
+ }
+ case 22: {
+ message.producerProjectId = reader.string();
+ break;
+ }
+ case 33: {
+ message.id = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.apis && message.apis.length))
+ message.apis = [];
+ message.apis.push($root.google.protobuf.Api.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ if (!(message.types && message.types.length))
+ message.types = [];
+ message.types.push($root.google.protobuf.Type.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ if (!(message.enums && message.enums.length))
+ message.enums = [];
+ message.enums.push($root.google.protobuf.Enum.decode(reader, reader.uint32()));
+ break;
+ }
+ case 6: {
+ message.documentation = $root.google.api.Documentation.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.backend = $root.google.api.Backend.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.http = $root.google.api.Http.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.quota = $root.google.api.Quota.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.authentication = $root.google.api.Authentication.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ message.context = $root.google.api.Context.decode(reader, reader.uint32());
+ break;
+ }
+ case 15: {
+ message.usage = $root.google.api.Usage.decode(reader, reader.uint32());
+ break;
+ }
+ case 18: {
+ if (!(message.endpoints && message.endpoints.length))
+ message.endpoints = [];
+ message.endpoints.push($root.google.api.Endpoint.decode(reader, reader.uint32()));
+ break;
+ }
+ case 21: {
+ message.control = $root.google.api.Control.decode(reader, reader.uint32());
+ break;
+ }
+ case 23: {
+ if (!(message.logs && message.logs.length))
+ message.logs = [];
+ message.logs.push($root.google.api.LogDescriptor.decode(reader, reader.uint32()));
+ break;
+ }
+ case 24: {
+ if (!(message.metrics && message.metrics.length))
+ message.metrics = [];
+ message.metrics.push($root.google.api.MetricDescriptor.decode(reader, reader.uint32()));
+ break;
+ }
+ case 25: {
+ if (!(message.monitoredResources && message.monitoredResources.length))
+ message.monitoredResources = [];
+ message.monitoredResources.push($root.google.api.MonitoredResourceDescriptor.decode(reader, reader.uint32()));
+ break;
+ }
+ case 26: {
+ message.billing = $root.google.api.Billing.decode(reader, reader.uint32());
+ break;
+ }
+ case 27: {
+ message.logging = $root.google.api.Logging.decode(reader, reader.uint32());
+ break;
+ }
+ case 28: {
+ message.monitoring = $root.google.api.Monitoring.decode(reader, reader.uint32());
+ break;
+ }
+ case 29: {
+ message.systemParameters = $root.google.api.SystemParameters.decode(reader, reader.uint32());
+ break;
+ }
+ case 37: {
+ message.sourceInfo = $root.google.api.SourceInfo.decode(reader, reader.uint32());
+ break;
+ }
+ case 20: {
+ message.configVersion = $root.google.protobuf.UInt32Value.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Service
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Service} Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Service.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Service message.
+ * @function verify
+ * @memberof google.api.Service
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Service.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.title != null && message.hasOwnProperty("title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.producerProjectId != null && message.hasOwnProperty("producerProjectId"))
+ if (!$util.isString(message.producerProjectId))
+ return "producerProjectId: string expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.apis != null && message.hasOwnProperty("apis")) {
+ if (!Array.isArray(message.apis))
+ return "apis: array expected";
+ for (var i = 0; i < message.apis.length; ++i) {
+ var error = $root.google.protobuf.Api.verify(message.apis[i]);
+ if (error)
+ return "apis." + error;
+ }
+ }
+ if (message.types != null && message.hasOwnProperty("types")) {
+ if (!Array.isArray(message.types))
+ return "types: array expected";
+ for (var i = 0; i < message.types.length; ++i) {
+ var error = $root.google.protobuf.Type.verify(message.types[i]);
+ if (error)
+ return "types." + error;
+ }
+ }
+ if (message.enums != null && message.hasOwnProperty("enums")) {
+ if (!Array.isArray(message.enums))
+ return "enums: array expected";
+ for (var i = 0; i < message.enums.length; ++i) {
+ var error = $root.google.protobuf.Enum.verify(message.enums[i]);
+ if (error)
+ return "enums." + error;
+ }
+ }
+ if (message.documentation != null && message.hasOwnProperty("documentation")) {
+ var error = $root.google.api.Documentation.verify(message.documentation);
+ if (error)
+ return "documentation." + error;
+ }
+ if (message.backend != null && message.hasOwnProperty("backend")) {
+ var error = $root.google.api.Backend.verify(message.backend);
+ if (error)
+ return "backend." + error;
+ }
+ if (message.http != null && message.hasOwnProperty("http")) {
+ var error = $root.google.api.Http.verify(message.http);
+ if (error)
+ return "http." + error;
+ }
+ if (message.quota != null && message.hasOwnProperty("quota")) {
+ var error = $root.google.api.Quota.verify(message.quota);
+ if (error)
+ return "quota." + error;
+ }
+ if (message.authentication != null && message.hasOwnProperty("authentication")) {
+ var error = $root.google.api.Authentication.verify(message.authentication);
+ if (error)
+ return "authentication." + error;
+ }
+ if (message.context != null && message.hasOwnProperty("context")) {
+ var error = $root.google.api.Context.verify(message.context);
+ if (error)
+ return "context." + error;
+ }
+ if (message.usage != null && message.hasOwnProperty("usage")) {
+ var error = $root.google.api.Usage.verify(message.usage);
+ if (error)
+ return "usage." + error;
+ }
+ if (message.endpoints != null && message.hasOwnProperty("endpoints")) {
+ if (!Array.isArray(message.endpoints))
+ return "endpoints: array expected";
+ for (var i = 0; i < message.endpoints.length; ++i) {
+ var error = $root.google.api.Endpoint.verify(message.endpoints[i]);
+ if (error)
+ return "endpoints." + error;
+ }
+ }
+ if (message.control != null && message.hasOwnProperty("control")) {
+ var error = $root.google.api.Control.verify(message.control);
+ if (error)
+ return "control." + error;
+ }
+ if (message.logs != null && message.hasOwnProperty("logs")) {
+ if (!Array.isArray(message.logs))
+ return "logs: array expected";
+ for (var i = 0; i < message.logs.length; ++i) {
+ var error = $root.google.api.LogDescriptor.verify(message.logs[i]);
+ if (error)
+ return "logs." + error;
+ }
+ }
+ if (message.metrics != null && message.hasOwnProperty("metrics")) {
+ if (!Array.isArray(message.metrics))
+ return "metrics: array expected";
+ for (var i = 0; i < message.metrics.length; ++i) {
+ var error = $root.google.api.MetricDescriptor.verify(message.metrics[i]);
+ if (error)
+ return "metrics." + error;
+ }
+ }
+ if (message.monitoredResources != null && message.hasOwnProperty("monitoredResources")) {
+ if (!Array.isArray(message.monitoredResources))
+ return "monitoredResources: array expected";
+ for (var i = 0; i < message.monitoredResources.length; ++i) {
+ var error = $root.google.api.MonitoredResourceDescriptor.verify(message.monitoredResources[i]);
+ if (error)
+ return "monitoredResources." + error;
+ }
+ }
+ if (message.billing != null && message.hasOwnProperty("billing")) {
+ var error = $root.google.api.Billing.verify(message.billing);
+ if (error)
+ return "billing." + error;
+ }
+ if (message.logging != null && message.hasOwnProperty("logging")) {
+ var error = $root.google.api.Logging.verify(message.logging);
+ if (error)
+ return "logging." + error;
+ }
+ if (message.monitoring != null && message.hasOwnProperty("monitoring")) {
+ var error = $root.google.api.Monitoring.verify(message.monitoring);
+ if (error)
+ return "monitoring." + error;
+ }
+ if (message.systemParameters != null && message.hasOwnProperty("systemParameters")) {
+ var error = $root.google.api.SystemParameters.verify(message.systemParameters);
+ if (error)
+ return "systemParameters." + error;
+ }
+ if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo")) {
+ var error = $root.google.api.SourceInfo.verify(message.sourceInfo);
+ if (error)
+ return "sourceInfo." + error;
+ }
+ if (message.configVersion != null && message.hasOwnProperty("configVersion")) {
+ var error = $root.google.protobuf.UInt32Value.verify(message.configVersion);
+ if (error)
+ return "configVersion." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Service
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Service} Service
+ */
+ Service.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Service)
+ return object;
+ var message = new $root.google.api.Service();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.title != null)
+ message.title = String(object.title);
+ if (object.producerProjectId != null)
+ message.producerProjectId = String(object.producerProjectId);
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.apis) {
+ if (!Array.isArray(object.apis))
+ throw TypeError(".google.api.Service.apis: array expected");
+ message.apis = [];
+ for (var i = 0; i < object.apis.length; ++i) {
+ if (typeof object.apis[i] !== "object")
+ throw TypeError(".google.api.Service.apis: object expected");
+ message.apis[i] = $root.google.protobuf.Api.fromObject(object.apis[i]);
+ }
+ }
+ if (object.types) {
+ if (!Array.isArray(object.types))
+ throw TypeError(".google.api.Service.types: array expected");
+ message.types = [];
+ for (var i = 0; i < object.types.length; ++i) {
+ if (typeof object.types[i] !== "object")
+ throw TypeError(".google.api.Service.types: object expected");
+ message.types[i] = $root.google.protobuf.Type.fromObject(object.types[i]);
+ }
+ }
+ if (object.enums) {
+ if (!Array.isArray(object.enums))
+ throw TypeError(".google.api.Service.enums: array expected");
+ message.enums = [];
+ for (var i = 0; i < object.enums.length; ++i) {
+ if (typeof object.enums[i] !== "object")
+ throw TypeError(".google.api.Service.enums: object expected");
+ message.enums[i] = $root.google.protobuf.Enum.fromObject(object.enums[i]);
+ }
+ }
+ if (object.documentation != null) {
+ if (typeof object.documentation !== "object")
+ throw TypeError(".google.api.Service.documentation: object expected");
+ message.documentation = $root.google.api.Documentation.fromObject(object.documentation);
+ }
+ if (object.backend != null) {
+ if (typeof object.backend !== "object")
+ throw TypeError(".google.api.Service.backend: object expected");
+ message.backend = $root.google.api.Backend.fromObject(object.backend);
+ }
+ if (object.http != null) {
+ if (typeof object.http !== "object")
+ throw TypeError(".google.api.Service.http: object expected");
+ message.http = $root.google.api.Http.fromObject(object.http);
+ }
+ if (object.quota != null) {
+ if (typeof object.quota !== "object")
+ throw TypeError(".google.api.Service.quota: object expected");
+ message.quota = $root.google.api.Quota.fromObject(object.quota);
+ }
+ if (object.authentication != null) {
+ if (typeof object.authentication !== "object")
+ throw TypeError(".google.api.Service.authentication: object expected");
+ message.authentication = $root.google.api.Authentication.fromObject(object.authentication);
+ }
+ if (object.context != null) {
+ if (typeof object.context !== "object")
+ throw TypeError(".google.api.Service.context: object expected");
+ message.context = $root.google.api.Context.fromObject(object.context);
+ }
+ if (object.usage != null) {
+ if (typeof object.usage !== "object")
+ throw TypeError(".google.api.Service.usage: object expected");
+ message.usage = $root.google.api.Usage.fromObject(object.usage);
+ }
+ if (object.endpoints) {
+ if (!Array.isArray(object.endpoints))
+ throw TypeError(".google.api.Service.endpoints: array expected");
+ message.endpoints = [];
+ for (var i = 0; i < object.endpoints.length; ++i) {
+ if (typeof object.endpoints[i] !== "object")
+ throw TypeError(".google.api.Service.endpoints: object expected");
+ message.endpoints[i] = $root.google.api.Endpoint.fromObject(object.endpoints[i]);
+ }
+ }
+ if (object.control != null) {
+ if (typeof object.control !== "object")
+ throw TypeError(".google.api.Service.control: object expected");
+ message.control = $root.google.api.Control.fromObject(object.control);
+ }
+ if (object.logs) {
+ if (!Array.isArray(object.logs))
+ throw TypeError(".google.api.Service.logs: array expected");
+ message.logs = [];
+ for (var i = 0; i < object.logs.length; ++i) {
+ if (typeof object.logs[i] !== "object")
+ throw TypeError(".google.api.Service.logs: object expected");
+ message.logs[i] = $root.google.api.LogDescriptor.fromObject(object.logs[i]);
+ }
+ }
+ if (object.metrics) {
+ if (!Array.isArray(object.metrics))
+ throw TypeError(".google.api.Service.metrics: array expected");
+ message.metrics = [];
+ for (var i = 0; i < object.metrics.length; ++i) {
+ if (typeof object.metrics[i] !== "object")
+ throw TypeError(".google.api.Service.metrics: object expected");
+ message.metrics[i] = $root.google.api.MetricDescriptor.fromObject(object.metrics[i]);
+ }
+ }
+ if (object.monitoredResources) {
+ if (!Array.isArray(object.monitoredResources))
+ throw TypeError(".google.api.Service.monitoredResources: array expected");
+ message.monitoredResources = [];
+ for (var i = 0; i < object.monitoredResources.length; ++i) {
+ if (typeof object.monitoredResources[i] !== "object")
+ throw TypeError(".google.api.Service.monitoredResources: object expected");
+ message.monitoredResources[i] = $root.google.api.MonitoredResourceDescriptor.fromObject(object.monitoredResources[i]);
+ }
+ }
+ if (object.billing != null) {
+ if (typeof object.billing !== "object")
+ throw TypeError(".google.api.Service.billing: object expected");
+ message.billing = $root.google.api.Billing.fromObject(object.billing);
+ }
+ if (object.logging != null) {
+ if (typeof object.logging !== "object")
+ throw TypeError(".google.api.Service.logging: object expected");
+ message.logging = $root.google.api.Logging.fromObject(object.logging);
+ }
+ if (object.monitoring != null) {
+ if (typeof object.monitoring !== "object")
+ throw TypeError(".google.api.Service.monitoring: object expected");
+ message.monitoring = $root.google.api.Monitoring.fromObject(object.monitoring);
+ }
+ if (object.systemParameters != null) {
+ if (typeof object.systemParameters !== "object")
+ throw TypeError(".google.api.Service.systemParameters: object expected");
+ message.systemParameters = $root.google.api.SystemParameters.fromObject(object.systemParameters);
+ }
+ if (object.sourceInfo != null) {
+ if (typeof object.sourceInfo !== "object")
+ throw TypeError(".google.api.Service.sourceInfo: object expected");
+ message.sourceInfo = $root.google.api.SourceInfo.fromObject(object.sourceInfo);
+ }
+ if (object.configVersion != null) {
+ if (typeof object.configVersion !== "object")
+ throw TypeError(".google.api.Service.configVersion: object expected");
+ message.configVersion = $root.google.protobuf.UInt32Value.fromObject(object.configVersion);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Service
+ * @static
+ * @param {google.api.Service} message Service
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Service.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.apis = [];
+ object.types = [];
+ object.enums = [];
+ object.endpoints = [];
+ object.logs = [];
+ object.metrics = [];
+ object.monitoredResources = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.title = "";
+ object.documentation = null;
+ object.backend = null;
+ object.http = null;
+ object.quota = null;
+ object.authentication = null;
+ object.context = null;
+ object.usage = null;
+ object.configVersion = null;
+ object.control = null;
+ object.producerProjectId = "";
+ object.billing = null;
+ object.logging = null;
+ object.monitoring = null;
+ object.systemParameters = null;
+ object.id = "";
+ object.sourceInfo = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.title != null && message.hasOwnProperty("title"))
+ object.title = message.title;
+ if (message.apis && message.apis.length) {
+ object.apis = [];
+ for (var j = 0; j < message.apis.length; ++j)
+ object.apis[j] = $root.google.protobuf.Api.toObject(message.apis[j], options);
+ }
+ if (message.types && message.types.length) {
+ object.types = [];
+ for (var j = 0; j < message.types.length; ++j)
+ object.types[j] = $root.google.protobuf.Type.toObject(message.types[j], options);
+ }
+ if (message.enums && message.enums.length) {
+ object.enums = [];
+ for (var j = 0; j < message.enums.length; ++j)
+ object.enums[j] = $root.google.protobuf.Enum.toObject(message.enums[j], options);
+ }
+ if (message.documentation != null && message.hasOwnProperty("documentation"))
+ object.documentation = $root.google.api.Documentation.toObject(message.documentation, options);
+ if (message.backend != null && message.hasOwnProperty("backend"))
+ object.backend = $root.google.api.Backend.toObject(message.backend, options);
+ if (message.http != null && message.hasOwnProperty("http"))
+ object.http = $root.google.api.Http.toObject(message.http, options);
+ if (message.quota != null && message.hasOwnProperty("quota"))
+ object.quota = $root.google.api.Quota.toObject(message.quota, options);
+ if (message.authentication != null && message.hasOwnProperty("authentication"))
+ object.authentication = $root.google.api.Authentication.toObject(message.authentication, options);
+ if (message.context != null && message.hasOwnProperty("context"))
+ object.context = $root.google.api.Context.toObject(message.context, options);
+ if (message.usage != null && message.hasOwnProperty("usage"))
+ object.usage = $root.google.api.Usage.toObject(message.usage, options);
+ if (message.endpoints && message.endpoints.length) {
+ object.endpoints = [];
+ for (var j = 0; j < message.endpoints.length; ++j)
+ object.endpoints[j] = $root.google.api.Endpoint.toObject(message.endpoints[j], options);
+ }
+ if (message.configVersion != null && message.hasOwnProperty("configVersion"))
+ object.configVersion = $root.google.protobuf.UInt32Value.toObject(message.configVersion, options);
+ if (message.control != null && message.hasOwnProperty("control"))
+ object.control = $root.google.api.Control.toObject(message.control, options);
+ if (message.producerProjectId != null && message.hasOwnProperty("producerProjectId"))
+ object.producerProjectId = message.producerProjectId;
+ if (message.logs && message.logs.length) {
+ object.logs = [];
+ for (var j = 0; j < message.logs.length; ++j)
+ object.logs[j] = $root.google.api.LogDescriptor.toObject(message.logs[j], options);
+ }
+ if (message.metrics && message.metrics.length) {
+ object.metrics = [];
+ for (var j = 0; j < message.metrics.length; ++j)
+ object.metrics[j] = $root.google.api.MetricDescriptor.toObject(message.metrics[j], options);
+ }
+ if (message.monitoredResources && message.monitoredResources.length) {
+ object.monitoredResources = [];
+ for (var j = 0; j < message.monitoredResources.length; ++j)
+ object.monitoredResources[j] = $root.google.api.MonitoredResourceDescriptor.toObject(message.monitoredResources[j], options);
+ }
+ if (message.billing != null && message.hasOwnProperty("billing"))
+ object.billing = $root.google.api.Billing.toObject(message.billing, options);
+ if (message.logging != null && message.hasOwnProperty("logging"))
+ object.logging = $root.google.api.Logging.toObject(message.logging, options);
+ if (message.monitoring != null && message.hasOwnProperty("monitoring"))
+ object.monitoring = $root.google.api.Monitoring.toObject(message.monitoring, options);
+ if (message.systemParameters != null && message.hasOwnProperty("systemParameters"))
+ object.systemParameters = $root.google.api.SystemParameters.toObject(message.systemParameters, options);
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.sourceInfo != null && message.hasOwnProperty("sourceInfo"))
+ object.sourceInfo = $root.google.api.SourceInfo.toObject(message.sourceInfo, options);
+ return object;
+ };
+
+ /**
+ * Converts this Service to JSON.
+ * @function toJSON
+ * @memberof google.api.Service
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Service.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Service
+ * @function getTypeUrl
+ * @memberof google.api.Service
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Service.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Service";
+ };
+
+ return Service;
+ })();
+
+ api.Authentication = (function() {
+
+ /**
+ * Properties of an Authentication.
+ * @memberof google.api
+ * @interface IAuthentication
+ * @property {Array.|null} [rules] Authentication rules
+ * @property {Array.|null} [providers] Authentication providers
+ */
+
+ /**
+ * Constructs a new Authentication.
+ * @memberof google.api
+ * @classdesc Represents an Authentication.
+ * @implements IAuthentication
+ * @constructor
+ * @param {google.api.IAuthentication=} [properties] Properties to set
+ */
+ function Authentication(properties) {
+ this.rules = [];
+ this.providers = [];
+ 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]];
+ }
+
+ /**
+ * Authentication rules.
+ * @member {Array.} rules
+ * @memberof google.api.Authentication
+ * @instance
+ */
+ Authentication.prototype.rules = $util.emptyArray;
+
+ /**
+ * Authentication providers.
+ * @member {Array.} providers
+ * @memberof google.api.Authentication
+ * @instance
+ */
+ Authentication.prototype.providers = $util.emptyArray;
+
+ /**
+ * Creates a new Authentication instance using the specified properties.
+ * @function create
+ * @memberof google.api.Authentication
+ * @static
+ * @param {google.api.IAuthentication=} [properties] Properties to set
+ * @returns {google.api.Authentication} Authentication instance
+ */
+ Authentication.create = function create(properties) {
+ return new Authentication(properties);
+ };
+
+ /**
+ * Encodes the specified Authentication message. Does not implicitly {@link google.api.Authentication.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Authentication
+ * @static
+ * @param {google.api.IAuthentication} message Authentication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Authentication.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rules != null && message.rules.length)
+ for (var i = 0; i < message.rules.length; ++i)
+ $root.google.api.AuthenticationRule.encode(message.rules[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.providers != null && message.providers.length)
+ for (var i = 0; i < message.providers.length; ++i)
+ $root.google.api.AuthProvider.encode(message.providers[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Authentication message, length delimited. Does not implicitly {@link google.api.Authentication.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Authentication
+ * @static
+ * @param {google.api.IAuthentication} message Authentication message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Authentication.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Authentication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Authentication} Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Authentication.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.api.Authentication();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.google.api.AuthenticationRule.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ if (!(message.providers && message.providers.length))
+ message.providers = [];
+ message.providers.push($root.google.api.AuthProvider.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Authentication message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Authentication
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Authentication} Authentication
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Authentication.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Authentication message.
+ * @function verify
+ * @memberof google.api.Authentication
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Authentication.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rules != null && message.hasOwnProperty("rules")) {
+ if (!Array.isArray(message.rules))
+ return "rules: array expected";
+ for (var i = 0; i < message.rules.length; ++i) {
+ var error = $root.google.api.AuthenticationRule.verify(message.rules[i]);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ if (message.providers != null && message.hasOwnProperty("providers")) {
+ if (!Array.isArray(message.providers))
+ return "providers: array expected";
+ for (var i = 0; i < message.providers.length; ++i) {
+ var error = $root.google.api.AuthProvider.verify(message.providers[i]);
+ if (error)
+ return "providers." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Authentication message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Authentication
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Authentication} Authentication
+ */
+ Authentication.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Authentication)
+ return object;
+ var message = new $root.google.api.Authentication();
+ if (object.rules) {
+ if (!Array.isArray(object.rules))
+ throw TypeError(".google.api.Authentication.rules: array expected");
+ message.rules = [];
+ for (var i = 0; i < object.rules.length; ++i) {
+ if (typeof object.rules[i] !== "object")
+ throw TypeError(".google.api.Authentication.rules: object expected");
+ message.rules[i] = $root.google.api.AuthenticationRule.fromObject(object.rules[i]);
+ }
+ }
+ if (object.providers) {
+ if (!Array.isArray(object.providers))
+ throw TypeError(".google.api.Authentication.providers: array expected");
+ message.providers = [];
+ for (var i = 0; i < object.providers.length; ++i) {
+ if (typeof object.providers[i] !== "object")
+ throw TypeError(".google.api.Authentication.providers: object expected");
+ message.providers[i] = $root.google.api.AuthProvider.fromObject(object.providers[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Authentication message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Authentication
+ * @static
+ * @param {google.api.Authentication} message Authentication
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Authentication.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.rules = [];
+ object.providers = [];
+ }
+ if (message.rules && message.rules.length) {
+ object.rules = [];
+ for (var j = 0; j < message.rules.length; ++j)
+ object.rules[j] = $root.google.api.AuthenticationRule.toObject(message.rules[j], options);
+ }
+ if (message.providers && message.providers.length) {
+ object.providers = [];
+ for (var j = 0; j < message.providers.length; ++j)
+ object.providers[j] = $root.google.api.AuthProvider.toObject(message.providers[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Authentication to JSON.
+ * @function toJSON
+ * @memberof google.api.Authentication
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Authentication.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Authentication
+ * @function getTypeUrl
+ * @memberof google.api.Authentication
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Authentication.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Authentication";
+ };
+
+ return Authentication;
+ })();
+
+ api.AuthenticationRule = (function() {
+
+ /**
+ * Properties of an AuthenticationRule.
+ * @memberof google.api
+ * @interface IAuthenticationRule
+ * @property {string|null} [selector] AuthenticationRule selector
+ * @property {google.api.IOAuthRequirements|null} [oauth] AuthenticationRule oauth
+ * @property {boolean|null} [allowWithoutCredential] AuthenticationRule allowWithoutCredential
+ * @property {Array.|null} [requirements] AuthenticationRule requirements
+ */
+
+ /**
+ * Constructs a new AuthenticationRule.
+ * @memberof google.api
+ * @classdesc Represents an AuthenticationRule.
+ * @implements IAuthenticationRule
+ * @constructor
+ * @param {google.api.IAuthenticationRule=} [properties] Properties to set
+ */
+ function AuthenticationRule(properties) {
+ this.requirements = [];
+ 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]];
+ }
+
+ /**
+ * AuthenticationRule selector.
+ * @member {string} selector
+ * @memberof google.api.AuthenticationRule
+ * @instance
+ */
+ AuthenticationRule.prototype.selector = "";
+
+ /**
+ * AuthenticationRule oauth.
+ * @member {google.api.IOAuthRequirements|null|undefined} oauth
+ * @memberof google.api.AuthenticationRule
+ * @instance
+ */
+ AuthenticationRule.prototype.oauth = null;
+
+ /**
+ * AuthenticationRule allowWithoutCredential.
+ * @member {boolean} allowWithoutCredential
+ * @memberof google.api.AuthenticationRule
+ * @instance
+ */
+ AuthenticationRule.prototype.allowWithoutCredential = false;
+
+ /**
+ * AuthenticationRule requirements.
+ * @member {Array.} requirements
+ * @memberof google.api.AuthenticationRule
+ * @instance
+ */
+ AuthenticationRule.prototype.requirements = $util.emptyArray;
+
+ /**
+ * Creates a new AuthenticationRule instance using the specified properties.
+ * @function create
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {google.api.IAuthenticationRule=} [properties] Properties to set
+ * @returns {google.api.AuthenticationRule} AuthenticationRule instance
+ */
+ AuthenticationRule.create = function create(properties) {
+ return new AuthenticationRule(properties);
+ };
+
+ /**
+ * Encodes the specified AuthenticationRule message. Does not implicitly {@link google.api.AuthenticationRule.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {google.api.IAuthenticationRule} message AuthenticationRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthenticationRule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.oauth != null && Object.hasOwnProperty.call(message, "oauth"))
+ $root.google.api.OAuthRequirements.encode(message.oauth, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.allowWithoutCredential != null && Object.hasOwnProperty.call(message, "allowWithoutCredential"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.allowWithoutCredential);
+ if (message.requirements != null && message.requirements.length)
+ for (var i = 0; i < message.requirements.length; ++i)
+ $root.google.api.AuthRequirement.encode(message.requirements[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AuthenticationRule message, length delimited. Does not implicitly {@link google.api.AuthenticationRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {google.api.IAuthenticationRule} message AuthenticationRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthenticationRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AuthenticationRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.AuthenticationRule} AuthenticationRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthenticationRule.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.api.AuthenticationRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.oauth = $root.google.api.OAuthRequirements.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.allowWithoutCredential = reader.bool();
+ break;
+ }
+ case 7: {
+ if (!(message.requirements && message.requirements.length))
+ message.requirements = [];
+ message.requirements.push($root.google.api.AuthRequirement.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AuthenticationRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.AuthenticationRule} AuthenticationRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthenticationRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AuthenticationRule message.
+ * @function verify
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AuthenticationRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.oauth != null && message.hasOwnProperty("oauth")) {
+ var error = $root.google.api.OAuthRequirements.verify(message.oauth);
+ if (error)
+ return "oauth." + error;
+ }
+ if (message.allowWithoutCredential != null && message.hasOwnProperty("allowWithoutCredential"))
+ if (typeof message.allowWithoutCredential !== "boolean")
+ return "allowWithoutCredential: boolean expected";
+ if (message.requirements != null && message.hasOwnProperty("requirements")) {
+ if (!Array.isArray(message.requirements))
+ return "requirements: array expected";
+ for (var i = 0; i < message.requirements.length; ++i) {
+ var error = $root.google.api.AuthRequirement.verify(message.requirements[i]);
+ if (error)
+ return "requirements." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AuthenticationRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.AuthenticationRule} AuthenticationRule
+ */
+ AuthenticationRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.AuthenticationRule)
+ return object;
+ var message = new $root.google.api.AuthenticationRule();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.oauth != null) {
+ if (typeof object.oauth !== "object")
+ throw TypeError(".google.api.AuthenticationRule.oauth: object expected");
+ message.oauth = $root.google.api.OAuthRequirements.fromObject(object.oauth);
+ }
+ if (object.allowWithoutCredential != null)
+ message.allowWithoutCredential = Boolean(object.allowWithoutCredential);
+ if (object.requirements) {
+ if (!Array.isArray(object.requirements))
+ throw TypeError(".google.api.AuthenticationRule.requirements: array expected");
+ message.requirements = [];
+ for (var i = 0; i < object.requirements.length; ++i) {
+ if (typeof object.requirements[i] !== "object")
+ throw TypeError(".google.api.AuthenticationRule.requirements: object expected");
+ message.requirements[i] = $root.google.api.AuthRequirement.fromObject(object.requirements[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AuthenticationRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {google.api.AuthenticationRule} message AuthenticationRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AuthenticationRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.requirements = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.oauth = null;
+ object.allowWithoutCredential = false;
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.oauth != null && message.hasOwnProperty("oauth"))
+ object.oauth = $root.google.api.OAuthRequirements.toObject(message.oauth, options);
+ if (message.allowWithoutCredential != null && message.hasOwnProperty("allowWithoutCredential"))
+ object.allowWithoutCredential = message.allowWithoutCredential;
+ if (message.requirements && message.requirements.length) {
+ object.requirements = [];
+ for (var j = 0; j < message.requirements.length; ++j)
+ object.requirements[j] = $root.google.api.AuthRequirement.toObject(message.requirements[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AuthenticationRule to JSON.
+ * @function toJSON
+ * @memberof google.api.AuthenticationRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AuthenticationRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AuthenticationRule
+ * @function getTypeUrl
+ * @memberof google.api.AuthenticationRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AuthenticationRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.AuthenticationRule";
+ };
+
+ return AuthenticationRule;
+ })();
+
+ api.JwtLocation = (function() {
+
+ /**
+ * Properties of a JwtLocation.
+ * @memberof google.api
+ * @interface IJwtLocation
+ * @property {string|null} [header] JwtLocation header
+ * @property {string|null} [query] JwtLocation query
+ * @property {string|null} [valuePrefix] JwtLocation valuePrefix
+ */
+
+ /**
+ * Constructs a new JwtLocation.
+ * @memberof google.api
+ * @classdesc Represents a JwtLocation.
+ * @implements IJwtLocation
+ * @constructor
+ * @param {google.api.IJwtLocation=} [properties] Properties to set
+ */
+ function JwtLocation(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]];
+ }
+
+ /**
+ * JwtLocation header.
+ * @member {string|null|undefined} header
+ * @memberof google.api.JwtLocation
+ * @instance
+ */
+ JwtLocation.prototype.header = null;
+
+ /**
+ * JwtLocation query.
+ * @member {string|null|undefined} query
+ * @memberof google.api.JwtLocation
+ * @instance
+ */
+ JwtLocation.prototype.query = null;
+
+ /**
+ * JwtLocation valuePrefix.
+ * @member {string} valuePrefix
+ * @memberof google.api.JwtLocation
+ * @instance
+ */
+ JwtLocation.prototype.valuePrefix = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * JwtLocation in.
+ * @member {"header"|"query"|undefined} in_
+ * @memberof google.api.JwtLocation
+ * @instance
+ */
+ Object.defineProperty(JwtLocation.prototype, "in", {
+ get: $util.oneOfGetter($oneOfFields = ["header", "query"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new JwtLocation instance using the specified properties.
+ * @function create
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {google.api.IJwtLocation=} [properties] Properties to set
+ * @returns {google.api.JwtLocation} JwtLocation instance
+ */
+ JwtLocation.create = function create(properties) {
+ return new JwtLocation(properties);
+ };
+
+ /**
+ * Encodes the specified JwtLocation message. Does not implicitly {@link google.api.JwtLocation.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {google.api.IJwtLocation} message JwtLocation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JwtLocation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.header != null && Object.hasOwnProperty.call(message, "header"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.header);
+ if (message.query != null && Object.hasOwnProperty.call(message, "query"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.query);
+ if (message.valuePrefix != null && Object.hasOwnProperty.call(message, "valuePrefix"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.valuePrefix);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified JwtLocation message, length delimited. Does not implicitly {@link google.api.JwtLocation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {google.api.IJwtLocation} message JwtLocation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JwtLocation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a JwtLocation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.JwtLocation} JwtLocation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JwtLocation.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.api.JwtLocation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.header = reader.string();
+ break;
+ }
+ case 2: {
+ message.query = reader.string();
+ break;
+ }
+ case 3: {
+ message.valuePrefix = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a JwtLocation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.JwtLocation} JwtLocation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JwtLocation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a JwtLocation message.
+ * @function verify
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ JwtLocation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.header != null && message.hasOwnProperty("header")) {
+ properties["in"] = 1;
+ if (!$util.isString(message.header))
+ return "header: string expected";
+ }
+ if (message.query != null && message.hasOwnProperty("query")) {
+ if (properties["in"] === 1)
+ return "in: multiple values";
+ properties["in"] = 1;
+ if (!$util.isString(message.query))
+ return "query: string expected";
+ }
+ if (message.valuePrefix != null && message.hasOwnProperty("valuePrefix"))
+ if (!$util.isString(message.valuePrefix))
+ return "valuePrefix: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a JwtLocation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.JwtLocation} JwtLocation
+ */
+ JwtLocation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.JwtLocation)
+ return object;
+ var message = new $root.google.api.JwtLocation();
+ if (object.header != null)
+ message.header = String(object.header);
+ if (object.query != null)
+ message.query = String(object.query);
+ if (object.valuePrefix != null)
+ message.valuePrefix = String(object.valuePrefix);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a JwtLocation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {google.api.JwtLocation} message JwtLocation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ JwtLocation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.valuePrefix = "";
+ if (message.header != null && message.hasOwnProperty("header")) {
+ object.header = message.header;
+ if (options.oneofs)
+ object["in"] = "header";
+ }
+ if (message.query != null && message.hasOwnProperty("query")) {
+ object.query = message.query;
+ if (options.oneofs)
+ object["in"] = "query";
+ }
+ if (message.valuePrefix != null && message.hasOwnProperty("valuePrefix"))
+ object.valuePrefix = message.valuePrefix;
+ return object;
+ };
+
+ /**
+ * Converts this JwtLocation to JSON.
+ * @function toJSON
+ * @memberof google.api.JwtLocation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ JwtLocation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for JwtLocation
+ * @function getTypeUrl
+ * @memberof google.api.JwtLocation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ JwtLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.JwtLocation";
+ };
+
+ return JwtLocation;
+ })();
+
+ api.AuthProvider = (function() {
+
+ /**
+ * Properties of an AuthProvider.
+ * @memberof google.api
+ * @interface IAuthProvider
+ * @property {string|null} [id] AuthProvider id
+ * @property {string|null} [issuer] AuthProvider issuer
+ * @property {string|null} [jwksUri] AuthProvider jwksUri
+ * @property {string|null} [audiences] AuthProvider audiences
+ * @property {string|null} [authorizationUrl] AuthProvider authorizationUrl
+ * @property {Array.|null} [jwtLocations] AuthProvider jwtLocations
+ */
+
+ /**
+ * Constructs a new AuthProvider.
+ * @memberof google.api
+ * @classdesc Represents an AuthProvider.
+ * @implements IAuthProvider
+ * @constructor
+ * @param {google.api.IAuthProvider=} [properties] Properties to set
+ */
+ function AuthProvider(properties) {
+ this.jwtLocations = [];
+ 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]];
+ }
+
+ /**
+ * AuthProvider id.
+ * @member {string} id
+ * @memberof google.api.AuthProvider
+ * @instance
+ */
+ AuthProvider.prototype.id = "";
+
+ /**
+ * AuthProvider issuer.
+ * @member {string} issuer
+ * @memberof google.api.AuthProvider
+ * @instance
+ */
+ AuthProvider.prototype.issuer = "";
+
+ /**
+ * AuthProvider jwksUri.
+ * @member {string} jwksUri
+ * @memberof google.api.AuthProvider
+ * @instance
+ */
+ AuthProvider.prototype.jwksUri = "";
+
+ /**
+ * AuthProvider audiences.
+ * @member {string} audiences
+ * @memberof google.api.AuthProvider
+ * @instance
+ */
+ AuthProvider.prototype.audiences = "";
+
+ /**
+ * AuthProvider authorizationUrl.
+ * @member {string} authorizationUrl
+ * @memberof google.api.AuthProvider
+ * @instance
+ */
+ AuthProvider.prototype.authorizationUrl = "";
+
+ /**
+ * AuthProvider jwtLocations.
+ * @member {Array.} jwtLocations
+ * @memberof google.api.AuthProvider
+ * @instance
+ */
+ AuthProvider.prototype.jwtLocations = $util.emptyArray;
+
+ /**
+ * Creates a new AuthProvider instance using the specified properties.
+ * @function create
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {google.api.IAuthProvider=} [properties] Properties to set
+ * @returns {google.api.AuthProvider} AuthProvider instance
+ */
+ AuthProvider.create = function create(properties) {
+ return new AuthProvider(properties);
+ };
+
+ /**
+ * Encodes the specified AuthProvider message. Does not implicitly {@link google.api.AuthProvider.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {google.api.IAuthProvider} message AuthProvider message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthProvider.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
+ if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.issuer);
+ if (message.jwksUri != null && Object.hasOwnProperty.call(message, "jwksUri"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.jwksUri);
+ if (message.audiences != null && Object.hasOwnProperty.call(message, "audiences"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.audiences);
+ if (message.authorizationUrl != null && Object.hasOwnProperty.call(message, "authorizationUrl"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.authorizationUrl);
+ if (message.jwtLocations != null && message.jwtLocations.length)
+ for (var i = 0; i < message.jwtLocations.length; ++i)
+ $root.google.api.JwtLocation.encode(message.jwtLocations[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.api.AuthProvider.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {google.api.IAuthProvider} message AuthProvider message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthProvider.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AuthProvider message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.AuthProvider} AuthProvider
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthProvider.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.api.AuthProvider();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.issuer = reader.string();
+ break;
+ }
+ case 3: {
+ message.jwksUri = reader.string();
+ break;
+ }
+ case 4: {
+ message.audiences = reader.string();
+ break;
+ }
+ case 5: {
+ message.authorizationUrl = reader.string();
+ break;
+ }
+ case 6: {
+ if (!(message.jwtLocations && message.jwtLocations.length))
+ message.jwtLocations = [];
+ message.jwtLocations.push($root.google.api.JwtLocation.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AuthProvider message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.AuthProvider} AuthProvider
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthProvider.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AuthProvider message.
+ * @function verify
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AuthProvider.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.issuer != null && message.hasOwnProperty("issuer"))
+ if (!$util.isString(message.issuer))
+ return "issuer: string expected";
+ if (message.jwksUri != null && message.hasOwnProperty("jwksUri"))
+ if (!$util.isString(message.jwksUri))
+ return "jwksUri: string expected";
+ if (message.audiences != null && message.hasOwnProperty("audiences"))
+ if (!$util.isString(message.audiences))
+ return "audiences: string expected";
+ if (message.authorizationUrl != null && message.hasOwnProperty("authorizationUrl"))
+ if (!$util.isString(message.authorizationUrl))
+ return "authorizationUrl: string expected";
+ if (message.jwtLocations != null && message.hasOwnProperty("jwtLocations")) {
+ if (!Array.isArray(message.jwtLocations))
+ return "jwtLocations: array expected";
+ for (var i = 0; i < message.jwtLocations.length; ++i) {
+ var error = $root.google.api.JwtLocation.verify(message.jwtLocations[i]);
+ if (error)
+ return "jwtLocations." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.AuthProvider} AuthProvider
+ */
+ AuthProvider.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.AuthProvider)
+ return object;
+ var message = new $root.google.api.AuthProvider();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.issuer != null)
+ message.issuer = String(object.issuer);
+ if (object.jwksUri != null)
+ message.jwksUri = String(object.jwksUri);
+ if (object.audiences != null)
+ message.audiences = String(object.audiences);
+ if (object.authorizationUrl != null)
+ message.authorizationUrl = String(object.authorizationUrl);
+ if (object.jwtLocations) {
+ if (!Array.isArray(object.jwtLocations))
+ throw TypeError(".google.api.AuthProvider.jwtLocations: array expected");
+ message.jwtLocations = [];
+ for (var i = 0; i < object.jwtLocations.length; ++i) {
+ if (typeof object.jwtLocations[i] !== "object")
+ throw TypeError(".google.api.AuthProvider.jwtLocations: object expected");
+ message.jwtLocations[i] = $root.google.api.JwtLocation.fromObject(object.jwtLocations[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AuthProvider message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {google.api.AuthProvider} message AuthProvider
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AuthProvider.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.jwtLocations = [];
+ if (options.defaults) {
+ object.id = "";
+ object.issuer = "";
+ object.jwksUri = "";
+ object.audiences = "";
+ object.authorizationUrl = "";
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.issuer != null && message.hasOwnProperty("issuer"))
+ object.issuer = message.issuer;
+ if (message.jwksUri != null && message.hasOwnProperty("jwksUri"))
+ object.jwksUri = message.jwksUri;
+ if (message.audiences != null && message.hasOwnProperty("audiences"))
+ object.audiences = message.audiences;
+ if (message.authorizationUrl != null && message.hasOwnProperty("authorizationUrl"))
+ object.authorizationUrl = message.authorizationUrl;
+ if (message.jwtLocations && message.jwtLocations.length) {
+ object.jwtLocations = [];
+ for (var j = 0; j < message.jwtLocations.length; ++j)
+ object.jwtLocations[j] = $root.google.api.JwtLocation.toObject(message.jwtLocations[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AuthProvider to JSON.
+ * @function toJSON
+ * @memberof google.api.AuthProvider
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AuthProvider.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AuthProvider
+ * @function getTypeUrl
+ * @memberof google.api.AuthProvider
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AuthProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.AuthProvider";
+ };
+
+ return AuthProvider;
+ })();
+
+ api.OAuthRequirements = (function() {
+
+ /**
+ * Properties of a OAuthRequirements.
+ * @memberof google.api
+ * @interface IOAuthRequirements
+ * @property {string|null} [canonicalScopes] OAuthRequirements canonicalScopes
+ */
+
+ /**
+ * Constructs a new OAuthRequirements.
+ * @memberof google.api
+ * @classdesc Represents a OAuthRequirements.
+ * @implements IOAuthRequirements
+ * @constructor
+ * @param {google.api.IOAuthRequirements=} [properties] Properties to set
+ */
+ function OAuthRequirements(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]];
+ }
+
+ /**
+ * OAuthRequirements canonicalScopes.
+ * @member {string} canonicalScopes
+ * @memberof google.api.OAuthRequirements
+ * @instance
+ */
+ OAuthRequirements.prototype.canonicalScopes = "";
+
+ /**
+ * Creates a new OAuthRequirements instance using the specified properties.
+ * @function create
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {google.api.IOAuthRequirements=} [properties] Properties to set
+ * @returns {google.api.OAuthRequirements} OAuthRequirements instance
+ */
+ OAuthRequirements.create = function create(properties) {
+ return new OAuthRequirements(properties);
+ };
+
+ /**
+ * Encodes the specified OAuthRequirements message. Does not implicitly {@link google.api.OAuthRequirements.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {google.api.IOAuthRequirements} message OAuthRequirements message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OAuthRequirements.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.canonicalScopes != null && Object.hasOwnProperty.call(message, "canonicalScopes"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.canonicalScopes);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OAuthRequirements message, length delimited. Does not implicitly {@link google.api.OAuthRequirements.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {google.api.IOAuthRequirements} message OAuthRequirements message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OAuthRequirements.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a OAuthRequirements message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.OAuthRequirements} OAuthRequirements
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OAuthRequirements.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.api.OAuthRequirements();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.canonicalScopes = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a OAuthRequirements message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.OAuthRequirements} OAuthRequirements
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OAuthRequirements.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a OAuthRequirements message.
+ * @function verify
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OAuthRequirements.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.canonicalScopes != null && message.hasOwnProperty("canonicalScopes"))
+ if (!$util.isString(message.canonicalScopes))
+ return "canonicalScopes: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a OAuthRequirements message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.OAuthRequirements} OAuthRequirements
+ */
+ OAuthRequirements.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.OAuthRequirements)
+ return object;
+ var message = new $root.google.api.OAuthRequirements();
+ if (object.canonicalScopes != null)
+ message.canonicalScopes = String(object.canonicalScopes);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a OAuthRequirements message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {google.api.OAuthRequirements} message OAuthRequirements
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OAuthRequirements.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.canonicalScopes = "";
+ if (message.canonicalScopes != null && message.hasOwnProperty("canonicalScopes"))
+ object.canonicalScopes = message.canonicalScopes;
+ return object;
+ };
+
+ /**
+ * Converts this OAuthRequirements to JSON.
+ * @function toJSON
+ * @memberof google.api.OAuthRequirements
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OAuthRequirements.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OAuthRequirements
+ * @function getTypeUrl
+ * @memberof google.api.OAuthRequirements
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OAuthRequirements.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.OAuthRequirements";
+ };
+
+ return OAuthRequirements;
+ })();
+
+ api.AuthRequirement = (function() {
+
+ /**
+ * Properties of an AuthRequirement.
+ * @memberof google.api
+ * @interface IAuthRequirement
+ * @property {string|null} [providerId] AuthRequirement providerId
+ * @property {string|null} [audiences] AuthRequirement audiences
+ */
+
+ /**
+ * Constructs a new AuthRequirement.
+ * @memberof google.api
+ * @classdesc Represents an AuthRequirement.
+ * @implements IAuthRequirement
+ * @constructor
+ * @param {google.api.IAuthRequirement=} [properties] Properties to set
+ */
+ function AuthRequirement(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]];
+ }
+
+ /**
+ * AuthRequirement providerId.
+ * @member {string} providerId
+ * @memberof google.api.AuthRequirement
+ * @instance
+ */
+ AuthRequirement.prototype.providerId = "";
+
+ /**
+ * AuthRequirement audiences.
+ * @member {string} audiences
+ * @memberof google.api.AuthRequirement
+ * @instance
+ */
+ AuthRequirement.prototype.audiences = "";
+
+ /**
+ * Creates a new AuthRequirement instance using the specified properties.
+ * @function create
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {google.api.IAuthRequirement=} [properties] Properties to set
+ * @returns {google.api.AuthRequirement} AuthRequirement instance
+ */
+ AuthRequirement.create = function create(properties) {
+ return new AuthRequirement(properties);
+ };
+
+ /**
+ * Encodes the specified AuthRequirement message. Does not implicitly {@link google.api.AuthRequirement.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {google.api.IAuthRequirement} message AuthRequirement message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthRequirement.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.providerId != null && Object.hasOwnProperty.call(message, "providerId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.providerId);
+ if (message.audiences != null && Object.hasOwnProperty.call(message, "audiences"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.audiences);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AuthRequirement message, length delimited. Does not implicitly {@link google.api.AuthRequirement.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {google.api.IAuthRequirement} message AuthRequirement message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthRequirement.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AuthRequirement message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.AuthRequirement} AuthRequirement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthRequirement.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.api.AuthRequirement();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.providerId = reader.string();
+ break;
+ }
+ case 2: {
+ message.audiences = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AuthRequirement message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.AuthRequirement} AuthRequirement
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthRequirement.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AuthRequirement message.
+ * @function verify
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AuthRequirement.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.providerId != null && message.hasOwnProperty("providerId"))
+ if (!$util.isString(message.providerId))
+ return "providerId: string expected";
+ if (message.audiences != null && message.hasOwnProperty("audiences"))
+ if (!$util.isString(message.audiences))
+ return "audiences: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AuthRequirement message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.AuthRequirement} AuthRequirement
+ */
+ AuthRequirement.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.AuthRequirement)
+ return object;
+ var message = new $root.google.api.AuthRequirement();
+ if (object.providerId != null)
+ message.providerId = String(object.providerId);
+ if (object.audiences != null)
+ message.audiences = String(object.audiences);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AuthRequirement message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.AuthRequirement
+ * @static
+ * @param {google.api.AuthRequirement} message AuthRequirement
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.