diff --git a/packages/google-cloud-managedkafka/.OwlBot.yaml b/packages/google-cloud-managedkafka/.OwlBot.yaml
new file mode 100644
index 00000000000..dc29249824e
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.OwlBot.yaml
@@ -0,0 +1,19 @@
+# Copyright 2022 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+deep-copy-regex:
+ - source: /google/cloud/managedkafka/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-managedkafka/$1
+
+api-name: managedkafka
\ No newline at end of file
diff --git a/packages/google-cloud-managedkafka/.eslintignore b/packages/google-cloud-managedkafka/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-managedkafka/.eslintrc.json b/packages/google-cloud-managedkafka/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-managedkafka/.gitattributes b/packages/google-cloud-managedkafka/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.gitattributes
@@ -0,0 +1,4 @@
+*.ts text eol=lf
+*.js text eol=lf
+protos/* linguist-generated
+**/api-extractor.json linguist-language=JSON-with-Comments
diff --git a/packages/google-cloud-managedkafka/.gitignore b/packages/google-cloud-managedkafka/.gitignore
new file mode 100644
index 00000000000..d4f03a0df2e
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-cloud-managedkafka/.jsdoc.js b/packages/google-cloud-managedkafka/.jsdoc.js
new file mode 100644
index 00000000000..c1f539d36fb
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2024 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 2024 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/managedkafka',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-managedkafka/.mocharc.js b/packages/google-cloud-managedkafka/.mocharc.js
new file mode 100644
index 00000000000..7e843ab5a75
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-managedkafka/.nycrc b/packages/google-cloud-managedkafka/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
diff --git a/packages/google-cloud-managedkafka/.prettierignore b/packages/google-cloud-managedkafka/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-managedkafka/.prettierrc.js b/packages/google-cloud-managedkafka/.prettierrc.js
new file mode 100644
index 00000000000..120c6aa3e6e
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-managedkafka/.repo-metadata.json b/packages/google-cloud-managedkafka/.repo-metadata.json
new file mode 100644
index 00000000000..c53990728a7
--- /dev/null
+++ b/packages/google-cloud-managedkafka/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "managedkafka",
+ "name_pretty": "Apache Kafka for BigQuery API",
+ "product_documentation": "https://cloud.google.com/managed-kafka",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/managedkafka/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "preview",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/managedkafka",
+ "api_id": "managedkafka.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO",
+ "api_shortname": "managedkafka"
+}
+
diff --git a/packages/google-cloud-managedkafka/CODE_OF_CONDUCT.md b/packages/google-cloud-managedkafka/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-managedkafka/CODE_OF_CONDUCT.md
@@ -0,0 +1,94 @@
+
+# Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, gender identity and expression, level of
+experience, education, socio-economic status, nationality, personal appearance,
+race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, or to ban temporarily or permanently any
+contributor for other behaviors that they deem inappropriate, threatening,
+offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+This Code of Conduct also applies outside the project spaces when the Project
+Steward has a reasonable belief that an individual's behavior may have a
+negative impact on the project or its community.
+
+## Conflict Resolution
+
+We do not believe that all conflict is bad; healthy debate and disagreement
+often yield positive results. However, it is never okay to be disrespectful or
+to engage in behavior that violates the project’s code of conduct.
+
+If you see someone violating the code of conduct, you are encouraged to address
+the behavior directly with those involved. Many issues can be resolved quickly
+and easily, and this gives people more control over the outcome of their
+dispute. If you are unable to resolve the matter for any reason, or if the
+behavior is threatening or harassing, report it. We are dedicated to providing
+an environment where participants feel welcome and safe.
+
+Reports should be directed to *googleapis-stewards@google.com*, the
+Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
+receive and address reported violations of the code of conduct. They will then
+work with a committee consisting of representatives from the Open Source
+Programs Office and the Google Open Source Strategy team. If for any reason you
+are uncomfortable reaching out to the Project Steward, please email
+opensource@google.com.
+
+We will investigate every complaint, but you may not receive a direct response.
+We will use our discretion in determining when and how to follow up on reported
+incidents, which may range from not taking action to permanent expulsion from
+the project and project-sponsored spaces. We will notify the accused of the
+report and provide them an opportunity to discuss it before any action is taken.
+The identity of the reporter will be omitted from the details of the report
+supplied to the accused. In potentially harmful situations, such as ongoing
+harassment or threats to anyone's safety, we may take action without notice.
+
+## Attribution
+
+This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
+available at
+https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
\ No newline at end of file
diff --git a/packages/google-cloud-managedkafka/CONTRIBUTING.md b/packages/google-cloud-managedkafka/CONTRIBUTING.md
new file mode 100644
index 00000000000..52249e80bcf
--- /dev/null
+++ b/packages/google-cloud-managedkafka/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 Apache Kafka for BigQuery 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=managedkafka.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-managedkafka/LICENSE b/packages/google-cloud-managedkafka/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-managedkafka/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/packages/google-cloud-managedkafka/README.md b/packages/google-cloud-managedkafka/README.md
new file mode 100644
index 00000000000..33308db12e9
--- /dev/null
+++ b/packages/google-cloud-managedkafka/README.md
@@ -0,0 +1,207 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Apache Kafka for BigQuery API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-managedkafka)
+
+[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
+[![npm version](https://img.shields.io/npm/v/@google-cloud/managedkafka.svg)](https://www.npmjs.org/package/@google-cloud/managedkafka)
+
+
+
+
+Apache Kafka for BigQuery API client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-managedkafka/CHANGELOG.md).
+
+* [Apache Kafka for BigQuery API Node.js Client API Reference][client-docs]
+* [Apache Kafka for BigQuery API Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-managedkafka](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-managedkafka)
+
+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 Apache Kafka for BigQuery 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/managedkafka
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * This snippet has been automatically generated and should be regarded as a code template only.
+ * It will require modifications to work.
+ * It may require correct/in-range values for request initialization.
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+/**
+ * Required. The parent location whose clusters are to be listed. Structured
+ * like `projects/{project}/locations/{location}`.
+ */
+// const parent = 'abc123'
+/**
+ * Optional. The maximum number of clusters to return. The service may return
+ * fewer than this value. If unspecified, server will pick an appropriate
+ * default.
+ */
+// const pageSize = 1234
+/**
+ * Optional. A page token, received from a previous `ListClusters` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListClusters` must match
+ * the call that provided the page token.
+ */
+// const pageToken = 'abc123'
+/**
+ * Optional. Filter expression for the result.
+ */
+// const filter = 'abc123'
+/**
+ * Optional. Order by fields for the result.
+ */
+// const orderBy = 'abc123'
+
+// Imports the Managedkafka library
+const {ManagedKafkaClient} = require('@google-cloud/managedkafka').v1;
+
+// Instantiates a client
+const managedkafkaClient = new ManagedKafkaClient();
+
+async function callListClusters() {
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ const iterable = managedkafkaClient.listClustersAsync(request);
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListClusters();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-managedkafka/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Managed_kafka.create_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.create_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.create_cluster.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.create_topic | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.create_topic.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.create_topic.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.delete_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.delete_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.delete_cluster.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.delete_consumer_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.delete_consumer_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.delete_consumer_group.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.delete_topic | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.delete_topic.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.delete_topic.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.get_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.get_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.get_cluster.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.get_consumer_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.get_consumer_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.get_consumer_group.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.get_topic | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.get_topic.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.get_topic.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.list_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.list_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.list_clusters.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.list_consumer_groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.list_consumer_groups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.list_consumer_groups.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.list_topics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.list_topics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.list_topics.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.update_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.update_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.update_cluster.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.update_consumer_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.update_consumer_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.update_consumer_group.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Managed_kafka.update_topic | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.update_topic.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/generated/v1/managed_kafka.update_topic.js,packages/google-cloud-managedkafka/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-managedkafka/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-managedkafka/samples/quickstart.js,packages/google-cloud-managedkafka/samples/README.md) |
+
+
+
+The [Apache Kafka for BigQuery API Node.js Client API Reference][client-docs] documentation
+also contains samples.
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/managedkafka@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+
+
+
+
+This library is considered to be in **preview**. This means it is still a
+work-in-progress and under active development. Any release is subject to
+backwards-incompatible changes at any time.
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/managedkafka/latest
+[product-docs]: https://cloud.google.com/managed-kafka
+[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=managedkafka.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-managedkafka/package.json b/packages/google-cloud-managedkafka/package.json
new file mode 100644
index 00000000000..683ea495276
--- /dev/null
+++ b/packages/google-cloud-managedkafka/package.json
@@ -0,0 +1,70 @@
+{
+ "name": "@google-cloud/managedkafka",
+ "version": "0.0.0",
+ "description": "Apache Kafka for BigQuery API client for Node.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/googleapis/google-cloud-node.git",
+ "directory": "packages/google-cloud-managedkafka"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-managedkafka",
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google managedkafka",
+ "managedkafka",
+ "Apache Kafka for BigQuery API"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "postpack": "minifyProtoJson",
+ "prepare": "npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^4.0.3"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^20.4.5",
+ "@types/sinon": "^17.0.0",
+ "c8": "^9.0.0",
+ "gapic-tools": "^0.4.0",
+ "gts": "^5.0.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^3.0.0",
+ "jsdoc-region-tag": "^3.0.0",
+ "linkinator": "4.1.2",
+ "long": "^5.2.3",
+ "mocha": "^9.2.2",
+ "pack-n-play": "^2.0.0",
+ "sinon": "^18.0.0",
+ "typescript": "^5.1.6"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+}
diff --git a/packages/google-cloud-managedkafka/protos/google/cloud/managedkafka/v1/managed_kafka.proto b/packages/google-cloud-managedkafka/protos/google/cloud/managedkafka/v1/managed_kafka.proto
new file mode 100644
index 00000000000..93f62205d2b
--- /dev/null
+++ b/packages/google-cloud-managedkafka/protos/google/cloud/managedkafka/v1/managed_kafka.proto
@@ -0,0 +1,508 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.managedkafka.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
+import "google/api/resource.proto";
+import "google/cloud/managedkafka/v1/resources.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.ManagedKafka.V1";
+option go_package = "cloud.google.com/go/managedkafka/apiv1/managedkafkapb;managedkafkapb";
+option java_multiple_files = true;
+option java_outer_classname = "ManagedKafkaProto";
+option java_package = "com.google.cloud.managedkafka.v1";
+option php_namespace = "Google\\Cloud\\ManagedKafka\\V1";
+option ruby_package = "Google::Cloud::ManagedKafka::V1";
+
+// The service that a client application uses to manage Apache Kafka clusters,
+// topics and consumer groups.
+service ManagedKafka {
+ option (google.api.default_host) = "managedkafka.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists the clusters in a given project and location.
+ rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/clusters"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns the properties of a single cluster.
+ rpc GetCluster(GetClusterRequest) returns (Cluster) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/clusters/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new cluster in a given project and location.
+ rpc CreateCluster(CreateClusterRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/clusters"
+ body: "cluster"
+ };
+ option (google.api.method_signature) = "parent,cluster,cluster_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Cluster"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the properties of a single cluster.
+ rpc UpdateCluster(UpdateClusterRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{cluster.name=projects/*/locations/*/clusters/*}"
+ body: "cluster"
+ };
+ option (google.api.method_signature) = "cluster,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Cluster"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single cluster.
+ rpc DeleteCluster(DeleteClusterRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/clusters/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists the topics in a given cluster.
+ rpc ListTopics(ListTopicsRequest) returns (ListTopicsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/clusters/*}/topics"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns the properties of a single topic.
+ rpc GetTopic(GetTopicRequest) returns (Topic) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/clusters/*/topics/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new topic in a given project and location.
+ rpc CreateTopic(CreateTopicRequest) returns (Topic) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/clusters/*}/topics"
+ body: "topic"
+ };
+ option (google.api.method_signature) = "parent,topic,topic_id";
+ }
+
+ // Updates the properties of a single topic.
+ rpc UpdateTopic(UpdateTopicRequest) returns (Topic) {
+ option (google.api.http) = {
+ patch: "/v1/{topic.name=projects/*/locations/*/clusters/*/topics/*}"
+ body: "topic"
+ };
+ option (google.api.method_signature) = "topic,update_mask";
+ }
+
+ // Deletes a single topic.
+ rpc DeleteTopic(DeleteTopicRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/clusters/*/topics/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists the consumer groups in a given cluster.
+ rpc ListConsumerGroups(ListConsumerGroupsRequest)
+ returns (ListConsumerGroupsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/clusters/*}/consumerGroups"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns the properties of a single consumer group.
+ rpc GetConsumerGroup(GetConsumerGroupRequest) returns (ConsumerGroup) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/clusters/*/consumerGroups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the properties of a single consumer group.
+ rpc UpdateConsumerGroup(UpdateConsumerGroupRequest) returns (ConsumerGroup) {
+ option (google.api.http) = {
+ patch: "/v1/{consumer_group.name=projects/*/locations/*/clusters/*/consumerGroups/*}"
+ body: "consumer_group"
+ };
+ option (google.api.method_signature) = "consumer_group,update_mask";
+ }
+
+ // Deletes a single consumer group.
+ rpc DeleteConsumerGroup(DeleteConsumerGroupRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/clusters/*/consumerGroups/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
+
+// Request for ListClusters.
+message ListClustersRequest {
+ // Required. The parent location whose clusters are to be listed. Structured
+ // like `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "managedkafka.googleapis.com/Cluster"
+ }
+ ];
+
+ // Optional. The maximum number of clusters to return. The service may return
+ // fewer than this value. If unspecified, server will pick an appropriate
+ // default.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListClusters` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListClusters` must match
+ // the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter expression for the result.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Order by fields for the result.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response for ListClusters.
+message ListClustersResponse {
+ // The list of Clusters in the requested parent.
+ repeated Cluster clusters = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page of
+ // results. If this field is omitted, there are no more results.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request for GetCluster.
+message GetClusterRequest {
+ // Required. The name of the cluster whose configuration to return.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "managedkafka.googleapis.com/Cluster"
+ }
+ ];
+}
+
+// Request for CreateCluster.
+message CreateClusterRequest {
+ // Required. The parent region in which to create the cluster. Structured like
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "managedkafka.googleapis.com/Cluster"
+ }
+ ];
+
+ // Required. The ID to use for the cluster, which will become the final
+ // component of the cluster's name. The ID must be 1-63 characters long, and
+ // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with
+ // RFC 1035.
+ //
+ // This value is structured like: `my-cluster-id`.
+ string cluster_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Configuration of the cluster to create. Its `name` field is
+ // ignored.
+ Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID to avoid duplication of requests. If a request times out or
+ // fails, retrying with the same ID allows the server to recognize the
+ // previous attempt. For at least 60 minutes, the server ignores duplicate
+ // requests bearing the same ID.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request ID
+ // within 60 minutes of the last request, the server checks if an original
+ // operation with the same request ID was received. If so, the server ignores
+ // the second request.
+ //
+ // The request ID must be a valid UUID. A zero UUID is not supported
+ // (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request for UpdateCluster.
+message UpdateClusterRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // cluster resource by the update. The fields specified in the update_mask are
+ // relative to the resource, not the full request. A field will be overwritten
+ // if it is in the mask. The mask is required and a value of * will update all
+ // fields.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The cluster to update. Its `name` field must be populated.
+ Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID to avoid duplication of requests. If a request times out or
+ // fails, retrying with the same ID allows the server to recognize the
+ // previous attempt. For at least 60 minutes, the server ignores duplicate
+ // requests bearing the same ID.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request ID
+ // within 60 minutes of the last request, the server checks if an original
+ // operation with the same request ID was received. If so, the server ignores
+ // the second request.
+ //
+ // The request ID must be a valid UUID. A zero UUID is not supported
+ // (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request for DeleteCluster.
+message DeleteClusterRequest {
+ // Required. The name of the cluster to delete.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "managedkafka.googleapis.com/Cluster"
+ }
+ ];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID to avoid duplication of requests. If a request times out or
+ // fails, retrying with the same ID allows the server to recognize the
+ // previous attempt. For at least 60 minutes, the server ignores duplicate
+ // requests bearing the same ID.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request ID
+ // within 60 minutes of the last request, the server checks if an original
+ // operation with the same request ID was received. If so, the server ignores
+ // the second request.
+ //
+ // The request ID must be a valid UUID. A zero UUID is not supported
+ // (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request for ListTopics.
+message ListTopicsRequest {
+ // Required. The parent cluster whose topics are to be listed. Structured like
+ // `projects/{project}/locations/{location}/clusters/{cluster}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "managedkafka.googleapis.com/Topic"
+ }
+ ];
+
+ // Optional. The maximum number of topics to return. The service may return
+ // fewer than this value. If unset or zero, all topics for the parent is
+ // returned.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListTopics` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListTopics` must match
+ // the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response for ListTopics.
+message ListTopicsResponse {
+ // The list of topics in the requested parent. The order of the topics is
+ // unspecified.
+ repeated Topic topics = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page of
+ // results. If this field is omitted, there are no more results.
+ string next_page_token = 2;
+}
+
+// Request for GetTopic.
+message GetTopicRequest {
+ // Required. The name of the topic whose configuration to return. Structured
+ // like:
+ // projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "managedkafka.googleapis.com/Topic"
+ }
+ ];
+}
+
+// Request for CreateTopic.
+message CreateTopicRequest {
+ // Required. The parent cluster in which to create the topic.
+ // Structured like
+ // `projects/{project}/locations/{location}/clusters/{cluster}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "managedkafka.googleapis.com/Topic"
+ }
+ ];
+
+ // Required. The ID to use for the topic, which will become the final
+ // component of the topic's name.
+ //
+ // This value is structured like: `my-topic-name`.
+ string topic_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Configuration of the topic to create. Its `name` field is
+ // ignored.
+ Topic topic = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request for UpdateTopic.
+message UpdateTopicRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // Topic resource by the update. The fields specified in the update_mask are
+ // relative to the resource, not the full request. A field will be overwritten
+ // if it is in the mask. The mask is required and a value of * will update all
+ // fields.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The topic to update. Its `name` field must be populated.
+ Topic topic = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request for DeleteTopic.
+message DeleteTopicRequest {
+ // Required. The name of the topic to delete.
+ // `projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "managedkafka.googleapis.com/Topic"
+ }
+ ];
+}
+
+// Request for ListConsumerGroups.
+message ListConsumerGroupsRequest {
+ // Required. The parent cluster whose consumer groups are to be listed.
+ // Structured like
+ // `projects/{project}/locations/{location}/clusters/{cluster}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "managedkafka.googleapis.com/ConsumerGroup"
+ }
+ ];
+
+ // Optional. The maximum number of consumer groups to return. The service may
+ // return fewer than this value. If unset or zero, all consumer groups for the
+ // parent is returned.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A page token, received from a previous `ListConsumerGroups` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListConsumerGroups` must
+ // match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response for ListConsumerGroups.
+message ListConsumerGroupsResponse {
+ // The list of consumer group in the requested parent. The order of the
+ // consumer groups is unspecified.
+ repeated ConsumerGroup consumer_groups = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page of
+ // results. If this field is omitted, there are no more results.
+ string next_page_token = 2;
+}
+
+// Request for GetConsumerGroup.
+message GetConsumerGroupRequest {
+ // Required. The name of the consumer group whose configuration to return.
+ // `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumerGroup}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "managedkafka.googleapis.com/ConsumerGroup"
+ }
+ ];
+}
+
+// Request for UpdateConsumerGroup.
+message UpdateConsumerGroupRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // ConsumerGroup resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. The
+ // mask is required and a value of * will update all fields.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The consumer group to update. Its `name` field must be populated.
+ ConsumerGroup consumer_group = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request for DeleteConsumerGroup.
+message DeleteConsumerGroupRequest {
+ // Required. The name of the consumer group to delete.
+ // `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumerGroup}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "managedkafka.googleapis.com/ConsumerGroup"
+ }
+ ];
+}
diff --git a/packages/google-cloud-managedkafka/protos/google/cloud/managedkafka/v1/resources.proto b/packages/google-cloud-managedkafka/protos/google/cloud/managedkafka/v1/resources.proto
new file mode 100644
index 00000000000..321391380e1
--- /dev/null
+++ b/packages/google-cloud-managedkafka/protos/google/cloud/managedkafka/v1/resources.proto
@@ -0,0 +1,269 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.managedkafka.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.ManagedKafka.V1";
+option go_package = "cloud.google.com/go/managedkafka/apiv1/managedkafkapb;managedkafkapb";
+option java_multiple_files = true;
+option java_outer_classname = "ResourcesProto";
+option java_package = "com.google.cloud.managedkafka.v1";
+option php_namespace = "Google\\Cloud\\ManagedKafka\\V1";
+option ruby_package = "Google::Cloud::ManagedKafka::V1";
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
+};
+
+// An Apache Kafka cluster deployed in a location.
+message Cluster {
+ option (google.api.resource) = {
+ type: "managedkafka.googleapis.com/Cluster"
+ pattern: "projects/{project}/locations/{location}/clusters/{cluster}"
+ plural: "clusters"
+ singular: "cluster"
+ };
+
+ // The state of the cluster.
+ enum State {
+ // A state was not specified.
+ STATE_UNSPECIFIED = 0;
+
+ // The cluster is being created.
+ CREATING = 1;
+
+ // The cluster is active.
+ ACTIVE = 2;
+
+ // The cluster is being deleted.
+ DELETING = 3;
+ }
+
+ // Platform specific configuration properties for a Kafka cluster.
+ oneof platform_config {
+ // Required. Configuration properties for a Kafka cluster deployed to Google
+ // Cloud Platform.
+ GcpConfig gcp_config = 9 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Identifier. The name of the cluster. Structured like:
+ // projects/{project_number}/locations/{location}/clusters/{cluster_id}
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The time when the cluster was created.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the cluster was last updated.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Labels as key value pairs.
+ map labels = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Capacity configuration for the Kafka cluster.
+ CapacityConfig capacity_config = 5 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Rebalance configuration for the Kafka cluster.
+ RebalanceConfig rebalance_config = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The current state of the cluster.
+ State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A capacity configuration of a Kafka cluster.
+message CapacityConfig {
+ // Required. The number of vCPUs to provision for the cluster. Minimum: 3.
+ int64 vcpu_count = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The memory to provision for the cluster in bytes.
+ // The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8.
+ // Minimum: 3221225472 (3 GiB).
+ int64 memory_bytes = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Defines rebalancing behavior of a Kafka cluster.
+message RebalanceConfig {
+ // The partition rebalance mode for the cluster.
+ enum Mode {
+ // A mode was not specified. Do not use.
+ MODE_UNSPECIFIED = 0;
+
+ // Do not rebalance automatically.
+ NO_REBALANCE = 1;
+
+ // Automatically rebalance topic partitions among brokers when the
+ // cluster is scaled up.
+ AUTO_REBALANCE_ON_SCALE_UP = 2;
+ }
+
+ // Optional. The rebalance behavior for the cluster.
+ // When not specified, defaults to `NO_REBALANCE`.
+ Mode mode = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration of a Virtual Private Cloud (VPC) network that can access
+// the Kafka cluster.
+message NetworkConfig {
+ // Required. Name of the VPC subnet in which to create Private Service Connect
+ // (PSC) endpoints for the Kafka brokers and bootstrap address. Structured
+ // like: projects/{project}/regions/{region}/subnetworks/{subnet_id}
+ //
+ // The subnet must be located in the same region as the Kafka cluster. The
+ // project may differ. Multiple subnets from the same parent network must not
+ // be specified.
+ //
+ // The CIDR range of the subnet must be within the IPv4 address ranges for
+ // private networks, as specified in RFC 1918.
+ string subnet = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The configuration of access to the Kafka cluster.
+message AccessConfig {
+ // Required. Virtual Private Cloud (VPC) networks that must be granted direct
+ // access to the Kafka cluster. Minimum of 1 network is required. Maximum 10
+ // networks can be specified.
+ repeated NetworkConfig network_configs = 1
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Configuration properties for a Kafka cluster deployed to Google Cloud
+// Platform.
+message GcpConfig {
+ // Required. Access configuration for the Kafka cluster.
+ AccessConfig access_config = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Immutable. The Cloud KMS Key name to use for encryption. The key
+ // must be located in the same region as the cluster and cannot be changed.
+ // Structured like:
+ // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
+ // Note that the project component only accepts a project ID, and not a
+ // project number.
+ string kms_key = 2 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+}
+
+// A Kafka topic in a given cluster.
+message Topic {
+ option (google.api.resource) = {
+ type: "managedkafka.googleapis.com/Topic"
+ pattern: "projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}"
+ plural: "topics"
+ singular: "topic"
+ };
+
+ // Identifier. The name of the topic. The `topic` segment is used when
+ // connecting directly to the cluster. Structured like:
+ // projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Required. The number of partitions this topic has. The partition count can
+ // only be increased, not decreased. Please note that if partitions are
+ // increased for a topic that has a key, the partitioning logic or the
+ // ordering of the messages will be affected.
+ int32 partition_count = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Immutable. The number of replicas of each partition. A
+ // replication factor of 3 is recommended for high availability.
+ int32 replication_factor = 3 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = IMMUTABLE
+ ];
+
+ // Optional. Configurations for the topic that are overridden from the cluster
+ // defaults. The key of the map is a Kafka topic property name, for example:
+ // `cleanup.policy`, `compression.type`.
+ map configs = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Metadata for a consumer group corresponding to a specific topic.
+message ConsumerTopicMetadata {
+ // Optional. Metadata for this consumer group and topic for all partition
+ // indexes it has metadata for.
+ map partitions = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Metadata for a consumer group corresponding to a specific partition.
+message ConsumerPartitionMetadata {
+ // Required. The offset for this partition, or 0 if no offset has been
+ // committed.
+ int64 offset = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The associated metadata for this partition, or empty if it does
+ // not exist.
+ string metadata = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A Kafka consumer group in a given cluster.
+message ConsumerGroup {
+ option (google.api.resource) = {
+ type: "managedkafka.googleapis.com/ConsumerGroup"
+ pattern: "projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumer_group}"
+ plural: "consumerGroups"
+ singular: "consumerGroup"
+ };
+
+ // Identifier. The name of the consumer group. The `consumer_group` segment is
+ // used when connecting directly to the cluster. Structured like:
+ // projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumer_group}
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. Metadata for this consumer group for all topics it has metadata
+ // for. The key of the map is a topic name, structured like:
+ // projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
+ map topics = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have been cancelled successfully
+ // have [Operation.error][] value with a
+ // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ // `Code.CANCELLED`.
+ bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-managedkafka/protos/protos.d.ts b/packages/google-cloud-managedkafka/protos/protos.d.ts
new file mode 100644
index 00000000000..a11c4ff844d
--- /dev/null
+++ b/packages/google-cloud-managedkafka/protos/protos.d.ts
@@ -0,0 +1,11260 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace managedkafka. */
+ namespace managedkafka {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a ManagedKafka */
+ class ManagedKafka extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ManagedKafka 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 ManagedKafka 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): ManagedKafka;
+
+ /**
+ * Calls ListClusters.
+ * @param request ListClustersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListClustersResponse
+ */
+ public listClusters(request: google.cloud.managedkafka.v1.IListClustersRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.ListClustersCallback): void;
+
+ /**
+ * Calls ListClusters.
+ * @param request ListClustersRequest message or plain object
+ * @returns Promise
+ */
+ public listClusters(request: google.cloud.managedkafka.v1.IListClustersRequest): Promise;
+
+ /**
+ * Calls GetCluster.
+ * @param request GetClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Cluster
+ */
+ public getCluster(request: google.cloud.managedkafka.v1.IGetClusterRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.GetClusterCallback): void;
+
+ /**
+ * Calls GetCluster.
+ * @param request GetClusterRequest message or plain object
+ * @returns Promise
+ */
+ public getCluster(request: google.cloud.managedkafka.v1.IGetClusterRequest): Promise;
+
+ /**
+ * Calls CreateCluster.
+ * @param request CreateClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createCluster(request: google.cloud.managedkafka.v1.ICreateClusterRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.CreateClusterCallback): void;
+
+ /**
+ * Calls CreateCluster.
+ * @param request CreateClusterRequest message or plain object
+ * @returns Promise
+ */
+ public createCluster(request: google.cloud.managedkafka.v1.ICreateClusterRequest): Promise;
+
+ /**
+ * Calls UpdateCluster.
+ * @param request UpdateClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateCluster(request: google.cloud.managedkafka.v1.IUpdateClusterRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.UpdateClusterCallback): void;
+
+ /**
+ * Calls UpdateCluster.
+ * @param request UpdateClusterRequest message or plain object
+ * @returns Promise
+ */
+ public updateCluster(request: google.cloud.managedkafka.v1.IUpdateClusterRequest): Promise;
+
+ /**
+ * Calls DeleteCluster.
+ * @param request DeleteClusterRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteCluster(request: google.cloud.managedkafka.v1.IDeleteClusterRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.DeleteClusterCallback): void;
+
+ /**
+ * Calls DeleteCluster.
+ * @param request DeleteClusterRequest message or plain object
+ * @returns Promise
+ */
+ public deleteCluster(request: google.cloud.managedkafka.v1.IDeleteClusterRequest): Promise;
+
+ /**
+ * Calls ListTopics.
+ * @param request ListTopicsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListTopicsResponse
+ */
+ public listTopics(request: google.cloud.managedkafka.v1.IListTopicsRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.ListTopicsCallback): void;
+
+ /**
+ * Calls ListTopics.
+ * @param request ListTopicsRequest message or plain object
+ * @returns Promise
+ */
+ public listTopics(request: google.cloud.managedkafka.v1.IListTopicsRequest): Promise;
+
+ /**
+ * Calls GetTopic.
+ * @param request GetTopicRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Topic
+ */
+ public getTopic(request: google.cloud.managedkafka.v1.IGetTopicRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.GetTopicCallback): void;
+
+ /**
+ * Calls GetTopic.
+ * @param request GetTopicRequest message or plain object
+ * @returns Promise
+ */
+ public getTopic(request: google.cloud.managedkafka.v1.IGetTopicRequest): Promise;
+
+ /**
+ * Calls CreateTopic.
+ * @param request CreateTopicRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Topic
+ */
+ public createTopic(request: google.cloud.managedkafka.v1.ICreateTopicRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.CreateTopicCallback): void;
+
+ /**
+ * Calls CreateTopic.
+ * @param request CreateTopicRequest message or plain object
+ * @returns Promise
+ */
+ public createTopic(request: google.cloud.managedkafka.v1.ICreateTopicRequest): Promise;
+
+ /**
+ * Calls UpdateTopic.
+ * @param request UpdateTopicRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Topic
+ */
+ public updateTopic(request: google.cloud.managedkafka.v1.IUpdateTopicRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.UpdateTopicCallback): void;
+
+ /**
+ * Calls UpdateTopic.
+ * @param request UpdateTopicRequest message or plain object
+ * @returns Promise
+ */
+ public updateTopic(request: google.cloud.managedkafka.v1.IUpdateTopicRequest): Promise;
+
+ /**
+ * Calls DeleteTopic.
+ * @param request DeleteTopicRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteTopic(request: google.cloud.managedkafka.v1.IDeleteTopicRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.DeleteTopicCallback): void;
+
+ /**
+ * Calls DeleteTopic.
+ * @param request DeleteTopicRequest message or plain object
+ * @returns Promise
+ */
+ public deleteTopic(request: google.cloud.managedkafka.v1.IDeleteTopicRequest): Promise;
+
+ /**
+ * Calls ListConsumerGroups.
+ * @param request ListConsumerGroupsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListConsumerGroupsResponse
+ */
+ public listConsumerGroups(request: google.cloud.managedkafka.v1.IListConsumerGroupsRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.ListConsumerGroupsCallback): void;
+
+ /**
+ * Calls ListConsumerGroups.
+ * @param request ListConsumerGroupsRequest message or plain object
+ * @returns Promise
+ */
+ public listConsumerGroups(request: google.cloud.managedkafka.v1.IListConsumerGroupsRequest): Promise;
+
+ /**
+ * Calls GetConsumerGroup.
+ * @param request GetConsumerGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ConsumerGroup
+ */
+ public getConsumerGroup(request: google.cloud.managedkafka.v1.IGetConsumerGroupRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.GetConsumerGroupCallback): void;
+
+ /**
+ * Calls GetConsumerGroup.
+ * @param request GetConsumerGroupRequest message or plain object
+ * @returns Promise
+ */
+ public getConsumerGroup(request: google.cloud.managedkafka.v1.IGetConsumerGroupRequest): Promise;
+
+ /**
+ * Calls UpdateConsumerGroup.
+ * @param request UpdateConsumerGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ConsumerGroup
+ */
+ public updateConsumerGroup(request: google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.UpdateConsumerGroupCallback): void;
+
+ /**
+ * Calls UpdateConsumerGroup.
+ * @param request UpdateConsumerGroupRequest message or plain object
+ * @returns Promise
+ */
+ public updateConsumerGroup(request: google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest): Promise;
+
+ /**
+ * Calls DeleteConsumerGroup.
+ * @param request DeleteConsumerGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteConsumerGroup(request: google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest, callback: google.cloud.managedkafka.v1.ManagedKafka.DeleteConsumerGroupCallback): void;
+
+ /**
+ * Calls DeleteConsumerGroup.
+ * @param request DeleteConsumerGroupRequest message or plain object
+ * @returns Promise
+ */
+ public deleteConsumerGroup(request: google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest): Promise;
+ }
+
+ namespace ManagedKafka {
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|listClusters}.
+ * @param error Error, if any
+ * @param [response] ListClustersResponse
+ */
+ type ListClustersCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.ListClustersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|getCluster}.
+ * @param error Error, if any
+ * @param [response] Cluster
+ */
+ type GetClusterCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.Cluster) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|createCluster}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|updateCluster}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|deleteCluster}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|listTopics}.
+ * @param error Error, if any
+ * @param [response] ListTopicsResponse
+ */
+ type ListTopicsCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.ListTopicsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|getTopic}.
+ * @param error Error, if any
+ * @param [response] Topic
+ */
+ type GetTopicCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.Topic) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|createTopic}.
+ * @param error Error, if any
+ * @param [response] Topic
+ */
+ type CreateTopicCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.Topic) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|updateTopic}.
+ * @param error Error, if any
+ * @param [response] Topic
+ */
+ type UpdateTopicCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.Topic) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|deleteTopic}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteTopicCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|listConsumerGroups}.
+ * @param error Error, if any
+ * @param [response] ListConsumerGroupsResponse
+ */
+ type ListConsumerGroupsCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.ListConsumerGroupsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|getConsumerGroup}.
+ * @param error Error, if any
+ * @param [response] ConsumerGroup
+ */
+ type GetConsumerGroupCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.ConsumerGroup) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|updateConsumerGroup}.
+ * @param error Error, if any
+ * @param [response] ConsumerGroup
+ */
+ type UpdateConsumerGroupCallback = (error: (Error|null), response?: google.cloud.managedkafka.v1.ConsumerGroup) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|deleteConsumerGroup}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteConsumerGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ }
+
+ /** Properties of a ListClustersRequest. */
+ interface IListClustersRequest {
+
+ /** ListClustersRequest parent */
+ parent?: (string|null);
+
+ /** ListClustersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListClustersRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListClustersRequest filter */
+ filter?: (string|null);
+
+ /** ListClustersRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListClustersRequest. */
+ class ListClustersRequest implements IListClustersRequest {
+
+ /**
+ * Constructs a new ListClustersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IListClustersRequest);
+
+ /** ListClustersRequest parent. */
+ public parent: string;
+
+ /** ListClustersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListClustersRequest pageToken. */
+ public pageToken: string;
+
+ /** ListClustersRequest filter. */
+ public filter: string;
+
+ /** ListClustersRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListClustersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListClustersRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IListClustersRequest): google.cloud.managedkafka.v1.ListClustersRequest;
+
+ /**
+ * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersRequest.verify|verify} messages.
+ * @param message ListClustersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersRequest.verify|verify} messages.
+ * @param message ListClustersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListClustersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListClustersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ListClustersRequest;
+
+ /**
+ * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListClustersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ListClustersRequest;
+
+ /**
+ * Verifies a ListClustersRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListClustersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ListClustersRequest;
+
+ /**
+ * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified.
+ * @param message ListClustersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ListClustersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListClustersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListClustersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListClustersResponse. */
+ interface IListClustersResponse {
+
+ /** ListClustersResponse clusters */
+ clusters?: (google.cloud.managedkafka.v1.ICluster[]|null);
+
+ /** ListClustersResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListClustersResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListClustersResponse. */
+ class ListClustersResponse implements IListClustersResponse {
+
+ /**
+ * Constructs a new ListClustersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IListClustersResponse);
+
+ /** ListClustersResponse clusters. */
+ public clusters: google.cloud.managedkafka.v1.ICluster[];
+
+ /** ListClustersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListClustersResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListClustersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListClustersResponse instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IListClustersResponse): google.cloud.managedkafka.v1.ListClustersResponse;
+
+ /**
+ * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersResponse.verify|verify} messages.
+ * @param message ListClustersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersResponse.verify|verify} messages.
+ * @param message ListClustersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListClustersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListClustersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ListClustersResponse;
+
+ /**
+ * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListClustersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ListClustersResponse;
+
+ /**
+ * Verifies a ListClustersResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListClustersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ListClustersResponse;
+
+ /**
+ * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified.
+ * @param message ListClustersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ListClustersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListClustersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListClustersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetClusterRequest. */
+ interface IGetClusterRequest {
+
+ /** GetClusterRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetClusterRequest. */
+ class GetClusterRequest implements IGetClusterRequest {
+
+ /**
+ * Constructs a new GetClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IGetClusterRequest);
+
+ /** GetClusterRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetClusterRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IGetClusterRequest): google.cloud.managedkafka.v1.GetClusterRequest;
+
+ /**
+ * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.GetClusterRequest.verify|verify} messages.
+ * @param message GetClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GetClusterRequest.verify|verify} messages.
+ * @param message GetClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.GetClusterRequest;
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.GetClusterRequest;
+
+ /**
+ * Verifies a GetClusterRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.GetClusterRequest;
+
+ /**
+ * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified.
+ * @param message GetClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.GetClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateClusterRequest. */
+ interface ICreateClusterRequest {
+
+ /** CreateClusterRequest parent */
+ parent?: (string|null);
+
+ /** CreateClusterRequest clusterId */
+ clusterId?: (string|null);
+
+ /** CreateClusterRequest cluster */
+ cluster?: (google.cloud.managedkafka.v1.ICluster|null);
+
+ /** CreateClusterRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateClusterRequest. */
+ class CreateClusterRequest implements ICreateClusterRequest {
+
+ /**
+ * Constructs a new CreateClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.ICreateClusterRequest);
+
+ /** CreateClusterRequest parent. */
+ public parent: string;
+
+ /** CreateClusterRequest clusterId. */
+ public clusterId: string;
+
+ /** CreateClusterRequest cluster. */
+ public cluster?: (google.cloud.managedkafka.v1.ICluster|null);
+
+ /** CreateClusterRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateClusterRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.ICreateClusterRequest): google.cloud.managedkafka.v1.CreateClusterRequest;
+
+ /**
+ * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.CreateClusterRequest.verify|verify} messages.
+ * @param message CreateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.CreateClusterRequest.verify|verify} messages.
+ * @param message CreateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.CreateClusterRequest;
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.CreateClusterRequest;
+
+ /**
+ * Verifies a CreateClusterRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.CreateClusterRequest;
+
+ /**
+ * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified.
+ * @param message CreateClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.CreateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateClusterRequest. */
+ interface IUpdateClusterRequest {
+
+ /** UpdateClusterRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateClusterRequest cluster */
+ cluster?: (google.cloud.managedkafka.v1.ICluster|null);
+
+ /** UpdateClusterRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateClusterRequest. */
+ class UpdateClusterRequest implements IUpdateClusterRequest {
+
+ /**
+ * Constructs a new UpdateClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IUpdateClusterRequest);
+
+ /** UpdateClusterRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateClusterRequest cluster. */
+ public cluster?: (google.cloud.managedkafka.v1.ICluster|null);
+
+ /** UpdateClusterRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateClusterRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IUpdateClusterRequest): google.cloud.managedkafka.v1.UpdateClusterRequest;
+
+ /**
+ * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateClusterRequest.verify|verify} messages.
+ * @param message UpdateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateClusterRequest.verify|verify} messages.
+ * @param message UpdateClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.UpdateClusterRequest;
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.UpdateClusterRequest;
+
+ /**
+ * Verifies an UpdateClusterRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.UpdateClusterRequest;
+
+ /**
+ * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified.
+ * @param message UpdateClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.UpdateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteClusterRequest. */
+ interface IDeleteClusterRequest {
+
+ /** DeleteClusterRequest name */
+ name?: (string|null);
+
+ /** DeleteClusterRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteClusterRequest. */
+ class DeleteClusterRequest implements IDeleteClusterRequest {
+
+ /**
+ * Constructs a new DeleteClusterRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IDeleteClusterRequest);
+
+ /** DeleteClusterRequest name. */
+ public name: string;
+
+ /** DeleteClusterRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteClusterRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteClusterRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IDeleteClusterRequest): google.cloud.managedkafka.v1.DeleteClusterRequest;
+
+ /**
+ * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteClusterRequest.verify|verify} messages.
+ * @param message DeleteClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteClusterRequest.verify|verify} messages.
+ * @param message DeleteClusterRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.DeleteClusterRequest;
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.DeleteClusterRequest;
+
+ /**
+ * Verifies a DeleteClusterRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteClusterRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.DeleteClusterRequest;
+
+ /**
+ * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified.
+ * @param message DeleteClusterRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.DeleteClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteClusterRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteClusterRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTopicsRequest. */
+ interface IListTopicsRequest {
+
+ /** ListTopicsRequest parent */
+ parent?: (string|null);
+
+ /** ListTopicsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListTopicsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListTopicsRequest. */
+ class ListTopicsRequest implements IListTopicsRequest {
+
+ /**
+ * Constructs a new ListTopicsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IListTopicsRequest);
+
+ /** ListTopicsRequest parent. */
+ public parent: string;
+
+ /** ListTopicsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListTopicsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListTopicsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTopicsRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IListTopicsRequest): google.cloud.managedkafka.v1.ListTopicsRequest;
+
+ /**
+ * Encodes the specified ListTopicsRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsRequest.verify|verify} messages.
+ * @param message ListTopicsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IListTopicsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTopicsRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsRequest.verify|verify} messages.
+ * @param message ListTopicsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IListTopicsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTopicsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTopicsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ListTopicsRequest;
+
+ /**
+ * Decodes a ListTopicsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTopicsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ListTopicsRequest;
+
+ /**
+ * Verifies a ListTopicsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListTopicsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTopicsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ListTopicsRequest;
+
+ /**
+ * Creates a plain object from a ListTopicsRequest message. Also converts values to other types if specified.
+ * @param message ListTopicsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ListTopicsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTopicsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTopicsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTopicsResponse. */
+ interface IListTopicsResponse {
+
+ /** ListTopicsResponse topics */
+ topics?: (google.cloud.managedkafka.v1.ITopic[]|null);
+
+ /** ListTopicsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListTopicsResponse. */
+ class ListTopicsResponse implements IListTopicsResponse {
+
+ /**
+ * Constructs a new ListTopicsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IListTopicsResponse);
+
+ /** ListTopicsResponse topics. */
+ public topics: google.cloud.managedkafka.v1.ITopic[];
+
+ /** ListTopicsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListTopicsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTopicsResponse instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IListTopicsResponse): google.cloud.managedkafka.v1.ListTopicsResponse;
+
+ /**
+ * Encodes the specified ListTopicsResponse message. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsResponse.verify|verify} messages.
+ * @param message ListTopicsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IListTopicsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTopicsResponse message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsResponse.verify|verify} messages.
+ * @param message ListTopicsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IListTopicsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTopicsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTopicsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ListTopicsResponse;
+
+ /**
+ * Decodes a ListTopicsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTopicsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ListTopicsResponse;
+
+ /**
+ * Verifies a ListTopicsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListTopicsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTopicsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ListTopicsResponse;
+
+ /**
+ * Creates a plain object from a ListTopicsResponse message. Also converts values to other types if specified.
+ * @param message ListTopicsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ListTopicsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTopicsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTopicsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetTopicRequest. */
+ interface IGetTopicRequest {
+
+ /** GetTopicRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetTopicRequest. */
+ class GetTopicRequest implements IGetTopicRequest {
+
+ /**
+ * Constructs a new GetTopicRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IGetTopicRequest);
+
+ /** GetTopicRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetTopicRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetTopicRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IGetTopicRequest): google.cloud.managedkafka.v1.GetTopicRequest;
+
+ /**
+ * Encodes the specified GetTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.GetTopicRequest.verify|verify} messages.
+ * @param message GetTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IGetTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GetTopicRequest.verify|verify} messages.
+ * @param message GetTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IGetTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetTopicRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.GetTopicRequest;
+
+ /**
+ * Decodes a GetTopicRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.GetTopicRequest;
+
+ /**
+ * Verifies a GetTopicRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetTopicRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.GetTopicRequest;
+
+ /**
+ * Creates a plain object from a GetTopicRequest message. Also converts values to other types if specified.
+ * @param message GetTopicRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.GetTopicRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetTopicRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetTopicRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateTopicRequest. */
+ interface ICreateTopicRequest {
+
+ /** CreateTopicRequest parent */
+ parent?: (string|null);
+
+ /** CreateTopicRequest topicId */
+ topicId?: (string|null);
+
+ /** CreateTopicRequest topic */
+ topic?: (google.cloud.managedkafka.v1.ITopic|null);
+ }
+
+ /** Represents a CreateTopicRequest. */
+ class CreateTopicRequest implements ICreateTopicRequest {
+
+ /**
+ * Constructs a new CreateTopicRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.ICreateTopicRequest);
+
+ /** CreateTopicRequest parent. */
+ public parent: string;
+
+ /** CreateTopicRequest topicId. */
+ public topicId: string;
+
+ /** CreateTopicRequest topic. */
+ public topic?: (google.cloud.managedkafka.v1.ITopic|null);
+
+ /**
+ * Creates a new CreateTopicRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateTopicRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.ICreateTopicRequest): google.cloud.managedkafka.v1.CreateTopicRequest;
+
+ /**
+ * Encodes the specified CreateTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.CreateTopicRequest.verify|verify} messages.
+ * @param message CreateTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.ICreateTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.CreateTopicRequest.verify|verify} messages.
+ * @param message CreateTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.ICreateTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateTopicRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.CreateTopicRequest;
+
+ /**
+ * Decodes a CreateTopicRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.CreateTopicRequest;
+
+ /**
+ * Verifies a CreateTopicRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateTopicRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.CreateTopicRequest;
+
+ /**
+ * Creates a plain object from a CreateTopicRequest message. Also converts values to other types if specified.
+ * @param message CreateTopicRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.CreateTopicRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateTopicRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateTopicRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateTopicRequest. */
+ interface IUpdateTopicRequest {
+
+ /** UpdateTopicRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateTopicRequest topic */
+ topic?: (google.cloud.managedkafka.v1.ITopic|null);
+ }
+
+ /** Represents an UpdateTopicRequest. */
+ class UpdateTopicRequest implements IUpdateTopicRequest {
+
+ /**
+ * Constructs a new UpdateTopicRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IUpdateTopicRequest);
+
+ /** UpdateTopicRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateTopicRequest topic. */
+ public topic?: (google.cloud.managedkafka.v1.ITopic|null);
+
+ /**
+ * Creates a new UpdateTopicRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateTopicRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IUpdateTopicRequest): google.cloud.managedkafka.v1.UpdateTopicRequest;
+
+ /**
+ * Encodes the specified UpdateTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateTopicRequest.verify|verify} messages.
+ * @param message UpdateTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IUpdateTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateTopicRequest.verify|verify} messages.
+ * @param message UpdateTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IUpdateTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateTopicRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.UpdateTopicRequest;
+
+ /**
+ * Decodes an UpdateTopicRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.UpdateTopicRequest;
+
+ /**
+ * Verifies an UpdateTopicRequest message.
+ * @param message Plain 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 UpdateTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateTopicRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.UpdateTopicRequest;
+
+ /**
+ * Creates a plain object from an UpdateTopicRequest message. Also converts values to other types if specified.
+ * @param message UpdateTopicRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.UpdateTopicRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateTopicRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateTopicRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteTopicRequest. */
+ interface IDeleteTopicRequest {
+
+ /** DeleteTopicRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteTopicRequest. */
+ class DeleteTopicRequest implements IDeleteTopicRequest {
+
+ /**
+ * Constructs a new DeleteTopicRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IDeleteTopicRequest);
+
+ /** DeleteTopicRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteTopicRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteTopicRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IDeleteTopicRequest): google.cloud.managedkafka.v1.DeleteTopicRequest;
+
+ /**
+ * Encodes the specified DeleteTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteTopicRequest.verify|verify} messages.
+ * @param message DeleteTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IDeleteTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteTopicRequest.verify|verify} messages.
+ * @param message DeleteTopicRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IDeleteTopicRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteTopicRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.DeleteTopicRequest;
+
+ /**
+ * Decodes a DeleteTopicRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.DeleteTopicRequest;
+
+ /**
+ * Verifies a DeleteTopicRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteTopicRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.DeleteTopicRequest;
+
+ /**
+ * Creates a plain object from a DeleteTopicRequest message. Also converts values to other types if specified.
+ * @param message DeleteTopicRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.DeleteTopicRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteTopicRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteTopicRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConsumerGroupsRequest. */
+ interface IListConsumerGroupsRequest {
+
+ /** ListConsumerGroupsRequest parent */
+ parent?: (string|null);
+
+ /** ListConsumerGroupsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListConsumerGroupsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListConsumerGroupsRequest. */
+ class ListConsumerGroupsRequest implements IListConsumerGroupsRequest {
+
+ /**
+ * Constructs a new ListConsumerGroupsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IListConsumerGroupsRequest);
+
+ /** ListConsumerGroupsRequest parent. */
+ public parent: string;
+
+ /** ListConsumerGroupsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListConsumerGroupsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListConsumerGroupsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConsumerGroupsRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IListConsumerGroupsRequest): google.cloud.managedkafka.v1.ListConsumerGroupsRequest;
+
+ /**
+ * Encodes the specified ListConsumerGroupsRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsRequest.verify|verify} messages.
+ * @param message ListConsumerGroupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IListConsumerGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConsumerGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsRequest.verify|verify} messages.
+ * @param message ListConsumerGroupsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IListConsumerGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConsumerGroupsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConsumerGroupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ListConsumerGroupsRequest;
+
+ /**
+ * Decodes a ListConsumerGroupsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConsumerGroupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ListConsumerGroupsRequest;
+
+ /**
+ * Verifies a ListConsumerGroupsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConsumerGroupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConsumerGroupsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ListConsumerGroupsRequest;
+
+ /**
+ * Creates a plain object from a ListConsumerGroupsRequest message. Also converts values to other types if specified.
+ * @param message ListConsumerGroupsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ListConsumerGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConsumerGroupsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConsumerGroupsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConsumerGroupsResponse. */
+ interface IListConsumerGroupsResponse {
+
+ /** ListConsumerGroupsResponse consumerGroups */
+ consumerGroups?: (google.cloud.managedkafka.v1.IConsumerGroup[]|null);
+
+ /** ListConsumerGroupsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListConsumerGroupsResponse. */
+ class ListConsumerGroupsResponse implements IListConsumerGroupsResponse {
+
+ /**
+ * Constructs a new ListConsumerGroupsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IListConsumerGroupsResponse);
+
+ /** ListConsumerGroupsResponse consumerGroups. */
+ public consumerGroups: google.cloud.managedkafka.v1.IConsumerGroup[];
+
+ /** ListConsumerGroupsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListConsumerGroupsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConsumerGroupsResponse instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IListConsumerGroupsResponse): google.cloud.managedkafka.v1.ListConsumerGroupsResponse;
+
+ /**
+ * Encodes the specified ListConsumerGroupsResponse message. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsResponse.verify|verify} messages.
+ * @param message ListConsumerGroupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IListConsumerGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConsumerGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsResponse.verify|verify} messages.
+ * @param message ListConsumerGroupsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IListConsumerGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConsumerGroupsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConsumerGroupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ListConsumerGroupsResponse;
+
+ /**
+ * Decodes a ListConsumerGroupsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConsumerGroupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ListConsumerGroupsResponse;
+
+ /**
+ * Verifies a ListConsumerGroupsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConsumerGroupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConsumerGroupsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ListConsumerGroupsResponse;
+
+ /**
+ * Creates a plain object from a ListConsumerGroupsResponse message. Also converts values to other types if specified.
+ * @param message ListConsumerGroupsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ListConsumerGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConsumerGroupsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConsumerGroupsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetConsumerGroupRequest. */
+ interface IGetConsumerGroupRequest {
+
+ /** GetConsumerGroupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetConsumerGroupRequest. */
+ class GetConsumerGroupRequest implements IGetConsumerGroupRequest {
+
+ /**
+ * Constructs a new GetConsumerGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IGetConsumerGroupRequest);
+
+ /** GetConsumerGroupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetConsumerGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetConsumerGroupRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IGetConsumerGroupRequest): google.cloud.managedkafka.v1.GetConsumerGroupRequest;
+
+ /**
+ * Encodes the specified GetConsumerGroupRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.GetConsumerGroupRequest.verify|verify} messages.
+ * @param message GetConsumerGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IGetConsumerGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetConsumerGroupRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GetConsumerGroupRequest.verify|verify} messages.
+ * @param message GetConsumerGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IGetConsumerGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetConsumerGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.GetConsumerGroupRequest;
+
+ /**
+ * Decodes a GetConsumerGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.GetConsumerGroupRequest;
+
+ /**
+ * Verifies a GetConsumerGroupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetConsumerGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetConsumerGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.GetConsumerGroupRequest;
+
+ /**
+ * Creates a plain object from a GetConsumerGroupRequest message. Also converts values to other types if specified.
+ * @param message GetConsumerGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.GetConsumerGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetConsumerGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetConsumerGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateConsumerGroupRequest. */
+ interface IUpdateConsumerGroupRequest {
+
+ /** UpdateConsumerGroupRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateConsumerGroupRequest consumerGroup */
+ consumerGroup?: (google.cloud.managedkafka.v1.IConsumerGroup|null);
+ }
+
+ /** Represents an UpdateConsumerGroupRequest. */
+ class UpdateConsumerGroupRequest implements IUpdateConsumerGroupRequest {
+
+ /**
+ * Constructs a new UpdateConsumerGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest);
+
+ /** UpdateConsumerGroupRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateConsumerGroupRequest consumerGroup. */
+ public consumerGroup?: (google.cloud.managedkafka.v1.IConsumerGroup|null);
+
+ /**
+ * Creates a new UpdateConsumerGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateConsumerGroupRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest): google.cloud.managedkafka.v1.UpdateConsumerGroupRequest;
+
+ /**
+ * Encodes the specified UpdateConsumerGroupRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateConsumerGroupRequest.verify|verify} messages.
+ * @param message UpdateConsumerGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateConsumerGroupRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateConsumerGroupRequest.verify|verify} messages.
+ * @param message UpdateConsumerGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateConsumerGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.UpdateConsumerGroupRequest;
+
+ /**
+ * Decodes an UpdateConsumerGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.UpdateConsumerGroupRequest;
+
+ /**
+ * Verifies an UpdateConsumerGroupRequest message.
+ * @param message Plain 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 UpdateConsumerGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateConsumerGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.UpdateConsumerGroupRequest;
+
+ /**
+ * Creates a plain object from an UpdateConsumerGroupRequest message. Also converts values to other types if specified.
+ * @param message UpdateConsumerGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.UpdateConsumerGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateConsumerGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateConsumerGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteConsumerGroupRequest. */
+ interface IDeleteConsumerGroupRequest {
+
+ /** DeleteConsumerGroupRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteConsumerGroupRequest. */
+ class DeleteConsumerGroupRequest implements IDeleteConsumerGroupRequest {
+
+ /**
+ * Constructs a new DeleteConsumerGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest);
+
+ /** DeleteConsumerGroupRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteConsumerGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteConsumerGroupRequest instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest): google.cloud.managedkafka.v1.DeleteConsumerGroupRequest;
+
+ /**
+ * Encodes the specified DeleteConsumerGroupRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteConsumerGroupRequest.verify|verify} messages.
+ * @param message DeleteConsumerGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteConsumerGroupRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteConsumerGroupRequest.verify|verify} messages.
+ * @param message DeleteConsumerGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteConsumerGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.DeleteConsumerGroupRequest;
+
+ /**
+ * Decodes a DeleteConsumerGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.DeleteConsumerGroupRequest;
+
+ /**
+ * Verifies a DeleteConsumerGroupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteConsumerGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteConsumerGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.DeleteConsumerGroupRequest;
+
+ /**
+ * Creates a plain object from a DeleteConsumerGroupRequest message. Also converts values to other types if specified.
+ * @param message DeleteConsumerGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.DeleteConsumerGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteConsumerGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteConsumerGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Cluster. */
+ interface ICluster {
+
+ /** Cluster gcpConfig */
+ gcpConfig?: (google.cloud.managedkafka.v1.IGcpConfig|null);
+
+ /** Cluster name */
+ name?: (string|null);
+
+ /** Cluster createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Cluster capacityConfig */
+ capacityConfig?: (google.cloud.managedkafka.v1.ICapacityConfig|null);
+
+ /** Cluster rebalanceConfig */
+ rebalanceConfig?: (google.cloud.managedkafka.v1.IRebalanceConfig|null);
+
+ /** Cluster state */
+ state?: (google.cloud.managedkafka.v1.Cluster.State|keyof typeof google.cloud.managedkafka.v1.Cluster.State|null);
+ }
+
+ /** Represents a Cluster. */
+ class Cluster implements ICluster {
+
+ /**
+ * Constructs a new Cluster.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.ICluster);
+
+ /** Cluster gcpConfig. */
+ public gcpConfig?: (google.cloud.managedkafka.v1.IGcpConfig|null);
+
+ /** Cluster name. */
+ public name: string;
+
+ /** Cluster createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Cluster labels. */
+ public labels: { [k: string]: string };
+
+ /** Cluster capacityConfig. */
+ public capacityConfig?: (google.cloud.managedkafka.v1.ICapacityConfig|null);
+
+ /** Cluster rebalanceConfig. */
+ public rebalanceConfig?: (google.cloud.managedkafka.v1.IRebalanceConfig|null);
+
+ /** Cluster state. */
+ public state: (google.cloud.managedkafka.v1.Cluster.State|keyof typeof google.cloud.managedkafka.v1.Cluster.State);
+
+ /** Cluster platformConfig. */
+ public platformConfig?: "gcpConfig";
+
+ /**
+ * Creates a new Cluster instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Cluster instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.ICluster): google.cloud.managedkafka.v1.Cluster;
+
+ /**
+ * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.managedkafka.v1.Cluster.verify|verify} messages.
+ * @param message Cluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.Cluster.verify|verify} messages.
+ * @param message Cluster message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.Cluster;
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.Cluster;
+
+ /**
+ * Verifies a Cluster message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Cluster message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Cluster
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.Cluster;
+
+ /**
+ * Creates a plain object from a Cluster message. Also converts values to other types if specified.
+ * @param message Cluster
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Cluster to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Cluster
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Cluster {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ ACTIVE = 2,
+ DELETING = 3
+ }
+ }
+
+ /** Properties of a CapacityConfig. */
+ interface ICapacityConfig {
+
+ /** CapacityConfig vcpuCount */
+ vcpuCount?: (number|Long|string|null);
+
+ /** CapacityConfig memoryBytes */
+ memoryBytes?: (number|Long|string|null);
+ }
+
+ /** Represents a CapacityConfig. */
+ class CapacityConfig implements ICapacityConfig {
+
+ /**
+ * Constructs a new CapacityConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.ICapacityConfig);
+
+ /** CapacityConfig vcpuCount. */
+ public vcpuCount: (number|Long|string);
+
+ /** CapacityConfig memoryBytes. */
+ public memoryBytes: (number|Long|string);
+
+ /**
+ * Creates a new CapacityConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CapacityConfig instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.ICapacityConfig): google.cloud.managedkafka.v1.CapacityConfig;
+
+ /**
+ * Encodes the specified CapacityConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.CapacityConfig.verify|verify} messages.
+ * @param message CapacityConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.ICapacityConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CapacityConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.CapacityConfig.verify|verify} messages.
+ * @param message CapacityConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.ICapacityConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CapacityConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CapacityConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.CapacityConfig;
+
+ /**
+ * Decodes a CapacityConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CapacityConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.CapacityConfig;
+
+ /**
+ * Verifies a CapacityConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CapacityConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CapacityConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.CapacityConfig;
+
+ /**
+ * Creates a plain object from a CapacityConfig message. Also converts values to other types if specified.
+ * @param message CapacityConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.CapacityConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CapacityConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CapacityConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RebalanceConfig. */
+ interface IRebalanceConfig {
+
+ /** RebalanceConfig mode */
+ mode?: (google.cloud.managedkafka.v1.RebalanceConfig.Mode|keyof typeof google.cloud.managedkafka.v1.RebalanceConfig.Mode|null);
+ }
+
+ /** Represents a RebalanceConfig. */
+ class RebalanceConfig implements IRebalanceConfig {
+
+ /**
+ * Constructs a new RebalanceConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IRebalanceConfig);
+
+ /** RebalanceConfig mode. */
+ public mode: (google.cloud.managedkafka.v1.RebalanceConfig.Mode|keyof typeof google.cloud.managedkafka.v1.RebalanceConfig.Mode);
+
+ /**
+ * Creates a new RebalanceConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RebalanceConfig instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IRebalanceConfig): google.cloud.managedkafka.v1.RebalanceConfig;
+
+ /**
+ * Encodes the specified RebalanceConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.RebalanceConfig.verify|verify} messages.
+ * @param message RebalanceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IRebalanceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RebalanceConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.RebalanceConfig.verify|verify} messages.
+ * @param message RebalanceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IRebalanceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RebalanceConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RebalanceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.RebalanceConfig;
+
+ /**
+ * Decodes a RebalanceConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RebalanceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.RebalanceConfig;
+
+ /**
+ * Verifies a RebalanceConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RebalanceConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RebalanceConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.RebalanceConfig;
+
+ /**
+ * Creates a plain object from a RebalanceConfig message. Also converts values to other types if specified.
+ * @param message RebalanceConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.RebalanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RebalanceConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RebalanceConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RebalanceConfig {
+
+ /** Mode enum. */
+ enum Mode {
+ MODE_UNSPECIFIED = 0,
+ NO_REBALANCE = 1,
+ AUTO_REBALANCE_ON_SCALE_UP = 2
+ }
+ }
+
+ /** Properties of a NetworkConfig. */
+ interface INetworkConfig {
+
+ /** NetworkConfig subnet */
+ subnet?: (string|null);
+ }
+
+ /** Represents a NetworkConfig. */
+ class NetworkConfig implements INetworkConfig {
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.INetworkConfig);
+
+ /** NetworkConfig subnet. */
+ public subnet: string;
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NetworkConfig instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.INetworkConfig): google.cloud.managedkafka.v1.NetworkConfig;
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.NetworkConfig;
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.NetworkConfig;
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NetworkConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.NetworkConfig;
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @param message NetworkConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AccessConfig. */
+ interface IAccessConfig {
+
+ /** AccessConfig networkConfigs */
+ networkConfigs?: (google.cloud.managedkafka.v1.INetworkConfig[]|null);
+ }
+
+ /** Represents an AccessConfig. */
+ class AccessConfig implements IAccessConfig {
+
+ /**
+ * Constructs a new AccessConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IAccessConfig);
+
+ /** AccessConfig networkConfigs. */
+ public networkConfigs: google.cloud.managedkafka.v1.INetworkConfig[];
+
+ /**
+ * Creates a new AccessConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AccessConfig instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IAccessConfig): google.cloud.managedkafka.v1.AccessConfig;
+
+ /**
+ * Encodes the specified AccessConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.AccessConfig.verify|verify} messages.
+ * @param message AccessConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IAccessConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AccessConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.AccessConfig.verify|verify} messages.
+ * @param message AccessConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IAccessConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AccessConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AccessConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.AccessConfig;
+
+ /**
+ * Decodes an AccessConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AccessConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.AccessConfig;
+
+ /**
+ * Verifies an AccessConfig message.
+ * @param message Plain 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 AccessConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AccessConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.AccessConfig;
+
+ /**
+ * Creates a plain object from an AccessConfig message. Also converts values to other types if specified.
+ * @param message AccessConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.AccessConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AccessConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AccessConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GcpConfig. */
+ interface IGcpConfig {
+
+ /** GcpConfig accessConfig */
+ accessConfig?: (google.cloud.managedkafka.v1.IAccessConfig|null);
+
+ /** GcpConfig kmsKey */
+ kmsKey?: (string|null);
+ }
+
+ /** Represents a GcpConfig. */
+ class GcpConfig implements IGcpConfig {
+
+ /**
+ * Constructs a new GcpConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IGcpConfig);
+
+ /** GcpConfig accessConfig. */
+ public accessConfig?: (google.cloud.managedkafka.v1.IAccessConfig|null);
+
+ /** GcpConfig kmsKey. */
+ public kmsKey: string;
+
+ /**
+ * Creates a new GcpConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GcpConfig instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IGcpConfig): google.cloud.managedkafka.v1.GcpConfig;
+
+ /**
+ * Encodes the specified GcpConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.GcpConfig.verify|verify} messages.
+ * @param message GcpConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IGcpConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GcpConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GcpConfig.verify|verify} messages.
+ * @param message GcpConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IGcpConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GcpConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GcpConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.GcpConfig;
+
+ /**
+ * Decodes a GcpConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GcpConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.GcpConfig;
+
+ /**
+ * Verifies a GcpConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GcpConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GcpConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.GcpConfig;
+
+ /**
+ * Creates a plain object from a GcpConfig message. Also converts values to other types if specified.
+ * @param message GcpConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.GcpConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GcpConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GcpConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Topic. */
+ interface ITopic {
+
+ /** Topic name */
+ name?: (string|null);
+
+ /** Topic partitionCount */
+ partitionCount?: (number|null);
+
+ /** Topic replicationFactor */
+ replicationFactor?: (number|null);
+
+ /** Topic configs */
+ configs?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a Topic. */
+ class Topic implements ITopic {
+
+ /**
+ * Constructs a new Topic.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.ITopic);
+
+ /** Topic name. */
+ public name: string;
+
+ /** Topic partitionCount. */
+ public partitionCount: number;
+
+ /** Topic replicationFactor. */
+ public replicationFactor: number;
+
+ /** Topic configs. */
+ public configs: { [k: string]: string };
+
+ /**
+ * Creates a new Topic instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Topic instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.ITopic): google.cloud.managedkafka.v1.Topic;
+
+ /**
+ * Encodes the specified Topic message. Does not implicitly {@link google.cloud.managedkafka.v1.Topic.verify|verify} messages.
+ * @param message Topic message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.ITopic, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Topic message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.Topic.verify|verify} messages.
+ * @param message Topic message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.ITopic, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Topic message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Topic
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.Topic;
+
+ /**
+ * Decodes a Topic message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Topic
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.Topic;
+
+ /**
+ * Verifies a Topic message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Topic message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Topic
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.Topic;
+
+ /**
+ * Creates a plain object from a Topic message. Also converts values to other types if specified.
+ * @param message Topic
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.Topic, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Topic to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Topic
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConsumerTopicMetadata. */
+ interface IConsumerTopicMetadata {
+
+ /** ConsumerTopicMetadata partitions */
+ partitions?: ({ [k: string]: google.cloud.managedkafka.v1.IConsumerPartitionMetadata }|null);
+ }
+
+ /** Represents a ConsumerTopicMetadata. */
+ class ConsumerTopicMetadata implements IConsumerTopicMetadata {
+
+ /**
+ * Constructs a new ConsumerTopicMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IConsumerTopicMetadata);
+
+ /** ConsumerTopicMetadata partitions. */
+ public partitions: { [k: string]: google.cloud.managedkafka.v1.IConsumerPartitionMetadata };
+
+ /**
+ * Creates a new ConsumerTopicMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConsumerTopicMetadata instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IConsumerTopicMetadata): google.cloud.managedkafka.v1.ConsumerTopicMetadata;
+
+ /**
+ * Encodes the specified ConsumerTopicMetadata message. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerTopicMetadata.verify|verify} messages.
+ * @param message ConsumerTopicMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IConsumerTopicMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConsumerTopicMetadata message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerTopicMetadata.verify|verify} messages.
+ * @param message ConsumerTopicMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IConsumerTopicMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConsumerTopicMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConsumerTopicMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ConsumerTopicMetadata;
+
+ /**
+ * Decodes a ConsumerTopicMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConsumerTopicMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ConsumerTopicMetadata;
+
+ /**
+ * Verifies a ConsumerTopicMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConsumerTopicMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConsumerTopicMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ConsumerTopicMetadata;
+
+ /**
+ * Creates a plain object from a ConsumerTopicMetadata message. Also converts values to other types if specified.
+ * @param message ConsumerTopicMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ConsumerTopicMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConsumerTopicMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConsumerTopicMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConsumerPartitionMetadata. */
+ interface IConsumerPartitionMetadata {
+
+ /** ConsumerPartitionMetadata offset */
+ offset?: (number|Long|string|null);
+
+ /** ConsumerPartitionMetadata metadata */
+ metadata?: (string|null);
+ }
+
+ /** Represents a ConsumerPartitionMetadata. */
+ class ConsumerPartitionMetadata implements IConsumerPartitionMetadata {
+
+ /**
+ * Constructs a new ConsumerPartitionMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IConsumerPartitionMetadata);
+
+ /** ConsumerPartitionMetadata offset. */
+ public offset: (number|Long|string);
+
+ /** ConsumerPartitionMetadata metadata. */
+ public metadata: string;
+
+ /**
+ * Creates a new ConsumerPartitionMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConsumerPartitionMetadata instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IConsumerPartitionMetadata): google.cloud.managedkafka.v1.ConsumerPartitionMetadata;
+
+ /**
+ * Encodes the specified ConsumerPartitionMetadata message. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerPartitionMetadata.verify|verify} messages.
+ * @param message ConsumerPartitionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IConsumerPartitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConsumerPartitionMetadata message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerPartitionMetadata.verify|verify} messages.
+ * @param message ConsumerPartitionMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IConsumerPartitionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConsumerPartitionMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConsumerPartitionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ConsumerPartitionMetadata;
+
+ /**
+ * Decodes a ConsumerPartitionMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConsumerPartitionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ConsumerPartitionMetadata;
+
+ /**
+ * Verifies a ConsumerPartitionMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConsumerPartitionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConsumerPartitionMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ConsumerPartitionMetadata;
+
+ /**
+ * Creates a plain object from a ConsumerPartitionMetadata message. Also converts values to other types if specified.
+ * @param message ConsumerPartitionMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ConsumerPartitionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConsumerPartitionMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConsumerPartitionMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConsumerGroup. */
+ interface IConsumerGroup {
+
+ /** ConsumerGroup name */
+ name?: (string|null);
+
+ /** ConsumerGroup topics */
+ topics?: ({ [k: string]: google.cloud.managedkafka.v1.IConsumerTopicMetadata }|null);
+ }
+
+ /** Represents a ConsumerGroup. */
+ class ConsumerGroup implements IConsumerGroup {
+
+ /**
+ * Constructs a new ConsumerGroup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IConsumerGroup);
+
+ /** ConsumerGroup name. */
+ public name: string;
+
+ /** ConsumerGroup topics. */
+ public topics: { [k: string]: google.cloud.managedkafka.v1.IConsumerTopicMetadata };
+
+ /**
+ * Creates a new ConsumerGroup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConsumerGroup instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IConsumerGroup): google.cloud.managedkafka.v1.ConsumerGroup;
+
+ /**
+ * Encodes the specified ConsumerGroup message. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerGroup.verify|verify} messages.
+ * @param message ConsumerGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IConsumerGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConsumerGroup message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerGroup.verify|verify} messages.
+ * @param message ConsumerGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IConsumerGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConsumerGroup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConsumerGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.ConsumerGroup;
+
+ /**
+ * Decodes a ConsumerGroup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConsumerGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.ConsumerGroup;
+
+ /**
+ * Verifies a ConsumerGroup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConsumerGroup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConsumerGroup
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.ConsumerGroup;
+
+ /**
+ * Creates a plain object from a ConsumerGroup message. Also converts values to other types if specified.
+ * @param message ConsumerGroup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.v1.ConsumerGroup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConsumerGroup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConsumerGroup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.managedkafka.v1.IOperationMetadata);
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target. */
+ public target: string;
+
+ /** OperationMetadata verb. */
+ public verb: string;
+
+ /** OperationMetadata statusMessage. */
+ public statusMessage: string;
+
+ /** OperationMetadata requestedCancellation. */
+ public requestedCancellation: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.managedkafka.v1.IOperationMetadata): google.cloud.managedkafka.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.managedkafka.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.managedkafka.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.managedkafka.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.managedkafka.v1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.managedkafka.v1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.managedkafka.v1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.managedkafka.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 api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
+
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
+
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
+
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
+
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
+
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** 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,
+ IDENTIFIER = 8
+ }
+
+ /** Properties of a FieldInfo. */
+ interface IFieldInfo {
+
+ /** FieldInfo format */
+ format?: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format|null);
+ }
+
+ /** Represents a FieldInfo. */
+ class FieldInfo implements IFieldInfo {
+
+ /**
+ * Constructs a new FieldInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IFieldInfo);
+
+ /** FieldInfo format. */
+ public format: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format);
+
+ /**
+ * Creates a new FieldInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldInfo instance
+ */
+ public static create(properties?: google.api.IFieldInfo): google.api.FieldInfo;
+
+ /**
+ * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
+ * @param message FieldInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
+ * @param message FieldInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldInfo
+ * @throws {Error} If the payload is not 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.FieldInfo;
+
+ /**
+ * Decodes a FieldInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldInfo
+ * @throws {Error} If the payload 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.FieldInfo;
+
+ /**
+ * Verifies a FieldInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.FieldInfo;
+
+ /**
+ * Creates a plain object from a FieldInfo message. Also converts values to other types if specified.
+ * @param message FieldInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.FieldInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldInfo {
+
+ /** Format enum. */
+ enum Format {
+ FORMAT_UNSPECIFIED = 0,
+ UUID4 = 1,
+ IPV4 = 2,
+ IPV6 = 3,
+ IPV4_OR_IPV6 = 4
+ }
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** 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?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|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: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * 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);
+
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|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[];
+
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification. */
+ public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * 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;
+ }
+
+ namespace ExtensionRangeOptions {
+
+ /** Properties of a Declaration. */
+ interface IDeclaration {
+
+ /** Declaration number */
+ number?: (number|null);
+
+ /** Declaration fullName */
+ fullName?: (string|null);
+
+ /** Declaration type */
+ type?: (string|null);
+
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
+ }
+
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
+
+ /**
+ * Constructs a new Declaration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
+
+ /** Declaration number. */
+ public number: number;
+
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
+
+ /**
+ * Creates a new Declaration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Declaration instance
+ */
+ public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Declaration
+ * @throws {Error} If the payload is not 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.Declaration;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Declaration
+ * @throws {Error} If the payload 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.Declaration;
+
+ /**
+ * Verifies a Declaration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Declaration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * @param message Declaration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Declaration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Declaration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** VerificationState enum. */
+ enum VerificationState {
+ DECLARATION = 0,
+ UNVERIFIED = 1
+ }
+ }
+
+ /** 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_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** 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 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 features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions 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 features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.fieldInfo */
+ ".google.api.fieldInfo"?: (google.api.IFieldInfo|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
+
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** EditionDefault value */
+ value?: (string|null);
+ }
+
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
+
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+
+ /** EditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** EditionDefault value. */
+ public value: string;
+
+ /**
+ * Creates a new EditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not 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.EditionDefault;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EditionDefault
+ * @throws {Error} If the payload 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.EditionDefault;
+
+ /**
+ * Verifies an EditionDefault message.
+ * @param message Plain 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 EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
+ * @param message EditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** 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 features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** 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 features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (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 features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: 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 features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** 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 features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** 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 features */
+ features?: (google.protobuf.IFeatureSet|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 features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** 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 FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
+ }
+
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
+
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
+
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
+
+ /**
+ * Creates a new FeatureSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSet instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
+
+ /**
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not 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.FeatureSet;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSet
+ * @throws {Error} If the payload 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.FeatureSet;
+
+ /**
+ * Verifies a FeatureSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
+
+ /**
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
+ * @param message FeatureSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSet {
+
+ /** FieldPresence enum. */
+ enum FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3
+ }
+
+ /** EnumType enum. */
+ enum EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2
+ }
+
+ /** RepeatedFieldEncoding enum. */
+ enum RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 2,
+ NONE = 3
+ }
+
+ /** MessageEncoding enum. */
+ enum MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2
+ }
+
+ /** JsonFormat enum. */
+ enum JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not 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.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload 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.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault features */
+ features?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not 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.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload 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.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @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 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 Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-managedkafka/protos/protos.js b/packages/google-cloud-managedkafka/protos/protos.js
new file mode 100644
index 00000000000..b1aab5bff8b
--- /dev/null
+++ b/packages/google-cloud-managedkafka/protos/protos.js
@@ -0,0 +1,29202 @@
+// Copyright 2024 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_managedkafka_protos || ($protobuf.roots._google_cloud_managedkafka_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.managedkafka = (function() {
+
+ /**
+ * Namespace managedkafka.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var managedkafka = {};
+
+ managedkafka.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.managedkafka
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.ManagedKafka = (function() {
+
+ /**
+ * Constructs a new ManagedKafka service.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ManagedKafka
+ * @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 ManagedKafka(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ManagedKafka.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ManagedKafka;
+
+ /**
+ * Creates new ManagedKafka service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @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 {ManagedKafka} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ManagedKafka.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|listClusters}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef ListClustersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.ListClustersResponse} [response] ListClustersResponse
+ */
+
+ /**
+ * Calls ListClusters.
+ * @function listClusters
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IListClustersRequest} request ListClustersRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.ListClustersCallback} callback Node-style callback called with the error, if any, and ListClustersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.listClusters = function listClusters(request, callback) {
+ return this.rpcCall(listClusters, $root.google.cloud.managedkafka.v1.ListClustersRequest, $root.google.cloud.managedkafka.v1.ListClustersResponse, request, callback);
+ }, "name", { value: "ListClusters" });
+
+ /**
+ * Calls ListClusters.
+ * @function listClusters
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IListClustersRequest} request ListClustersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|getCluster}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef GetClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.Cluster} [response] Cluster
+ */
+
+ /**
+ * Calls GetCluster.
+ * @function getCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IGetClusterRequest} request GetClusterRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.GetClusterCallback} callback Node-style callback called with the error, if any, and Cluster
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.getCluster = function getCluster(request, callback) {
+ return this.rpcCall(getCluster, $root.google.cloud.managedkafka.v1.GetClusterRequest, $root.google.cloud.managedkafka.v1.Cluster, request, callback);
+ }, "name", { value: "GetCluster" });
+
+ /**
+ * Calls GetCluster.
+ * @function getCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IGetClusterRequest} request GetClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|createCluster}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef CreateClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateCluster.
+ * @function createCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.CreateClusterCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.createCluster = function createCluster(request, callback) {
+ return this.rpcCall(createCluster, $root.google.cloud.managedkafka.v1.CreateClusterRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateCluster" });
+
+ /**
+ * Calls CreateCluster.
+ * @function createCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|updateCluster}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef UpdateClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateCluster.
+ * @function updateCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.UpdateClusterCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.updateCluster = function updateCluster(request, callback) {
+ return this.rpcCall(updateCluster, $root.google.cloud.managedkafka.v1.UpdateClusterRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateCluster" });
+
+ /**
+ * Calls UpdateCluster.
+ * @function updateCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|deleteCluster}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef DeleteClusterCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteCluster.
+ * @function deleteCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.DeleteClusterCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.deleteCluster = function deleteCluster(request, callback) {
+ return this.rpcCall(deleteCluster, $root.google.cloud.managedkafka.v1.DeleteClusterRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteCluster" });
+
+ /**
+ * Calls DeleteCluster.
+ * @function deleteCluster
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|listTopics}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef ListTopicsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.ListTopicsResponse} [response] ListTopicsResponse
+ */
+
+ /**
+ * Calls ListTopics.
+ * @function listTopics
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IListTopicsRequest} request ListTopicsRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.ListTopicsCallback} callback Node-style callback called with the error, if any, and ListTopicsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.listTopics = function listTopics(request, callback) {
+ return this.rpcCall(listTopics, $root.google.cloud.managedkafka.v1.ListTopicsRequest, $root.google.cloud.managedkafka.v1.ListTopicsResponse, request, callback);
+ }, "name", { value: "ListTopics" });
+
+ /**
+ * Calls ListTopics.
+ * @function listTopics
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IListTopicsRequest} request ListTopicsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|getTopic}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef GetTopicCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.Topic} [response] Topic
+ */
+
+ /**
+ * Calls GetTopic.
+ * @function getTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IGetTopicRequest} request GetTopicRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.GetTopicCallback} callback Node-style callback called with the error, if any, and Topic
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.getTopic = function getTopic(request, callback) {
+ return this.rpcCall(getTopic, $root.google.cloud.managedkafka.v1.GetTopicRequest, $root.google.cloud.managedkafka.v1.Topic, request, callback);
+ }, "name", { value: "GetTopic" });
+
+ /**
+ * Calls GetTopic.
+ * @function getTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IGetTopicRequest} request GetTopicRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|createTopic}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef CreateTopicCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.Topic} [response] Topic
+ */
+
+ /**
+ * Calls CreateTopic.
+ * @function createTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.ICreateTopicRequest} request CreateTopicRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.CreateTopicCallback} callback Node-style callback called with the error, if any, and Topic
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.createTopic = function createTopic(request, callback) {
+ return this.rpcCall(createTopic, $root.google.cloud.managedkafka.v1.CreateTopicRequest, $root.google.cloud.managedkafka.v1.Topic, request, callback);
+ }, "name", { value: "CreateTopic" });
+
+ /**
+ * Calls CreateTopic.
+ * @function createTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.ICreateTopicRequest} request CreateTopicRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|updateTopic}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef UpdateTopicCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.Topic} [response] Topic
+ */
+
+ /**
+ * Calls UpdateTopic.
+ * @function updateTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IUpdateTopicRequest} request UpdateTopicRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.UpdateTopicCallback} callback Node-style callback called with the error, if any, and Topic
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.updateTopic = function updateTopic(request, callback) {
+ return this.rpcCall(updateTopic, $root.google.cloud.managedkafka.v1.UpdateTopicRequest, $root.google.cloud.managedkafka.v1.Topic, request, callback);
+ }, "name", { value: "UpdateTopic" });
+
+ /**
+ * Calls UpdateTopic.
+ * @function updateTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IUpdateTopicRequest} request UpdateTopicRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|deleteTopic}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef DeleteTopicCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteTopic.
+ * @function deleteTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IDeleteTopicRequest} request DeleteTopicRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.DeleteTopicCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.deleteTopic = function deleteTopic(request, callback) {
+ return this.rpcCall(deleteTopic, $root.google.cloud.managedkafka.v1.DeleteTopicRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteTopic" });
+
+ /**
+ * Calls DeleteTopic.
+ * @function deleteTopic
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IDeleteTopicRequest} request DeleteTopicRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|listConsumerGroups}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef ListConsumerGroupsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.ListConsumerGroupsResponse} [response] ListConsumerGroupsResponse
+ */
+
+ /**
+ * Calls ListConsumerGroups.
+ * @function listConsumerGroups
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsRequest} request ListConsumerGroupsRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.ListConsumerGroupsCallback} callback Node-style callback called with the error, if any, and ListConsumerGroupsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.listConsumerGroups = function listConsumerGroups(request, callback) {
+ return this.rpcCall(listConsumerGroups, $root.google.cloud.managedkafka.v1.ListConsumerGroupsRequest, $root.google.cloud.managedkafka.v1.ListConsumerGroupsResponse, request, callback);
+ }, "name", { value: "ListConsumerGroups" });
+
+ /**
+ * Calls ListConsumerGroups.
+ * @function listConsumerGroups
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsRequest} request ListConsumerGroupsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|getConsumerGroup}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef GetConsumerGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.ConsumerGroup} [response] ConsumerGroup
+ */
+
+ /**
+ * Calls GetConsumerGroup.
+ * @function getConsumerGroup
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IGetConsumerGroupRequest} request GetConsumerGroupRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.GetConsumerGroupCallback} callback Node-style callback called with the error, if any, and ConsumerGroup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.getConsumerGroup = function getConsumerGroup(request, callback) {
+ return this.rpcCall(getConsumerGroup, $root.google.cloud.managedkafka.v1.GetConsumerGroupRequest, $root.google.cloud.managedkafka.v1.ConsumerGroup, request, callback);
+ }, "name", { value: "GetConsumerGroup" });
+
+ /**
+ * Calls GetConsumerGroup.
+ * @function getConsumerGroup
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IGetConsumerGroupRequest} request GetConsumerGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|updateConsumerGroup}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef UpdateConsumerGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.managedkafka.v1.ConsumerGroup} [response] ConsumerGroup
+ */
+
+ /**
+ * Calls UpdateConsumerGroup.
+ * @function updateConsumerGroup
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest} request UpdateConsumerGroupRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.UpdateConsumerGroupCallback} callback Node-style callback called with the error, if any, and ConsumerGroup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.updateConsumerGroup = function updateConsumerGroup(request, callback) {
+ return this.rpcCall(updateConsumerGroup, $root.google.cloud.managedkafka.v1.UpdateConsumerGroupRequest, $root.google.cloud.managedkafka.v1.ConsumerGroup, request, callback);
+ }, "name", { value: "UpdateConsumerGroup" });
+
+ /**
+ * Calls UpdateConsumerGroup.
+ * @function updateConsumerGroup
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest} request UpdateConsumerGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.managedkafka.v1.ManagedKafka|deleteConsumerGroup}.
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @typedef DeleteConsumerGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteConsumerGroup.
+ * @function deleteConsumerGroup
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest} request DeleteConsumerGroupRequest message or plain object
+ * @param {google.cloud.managedkafka.v1.ManagedKafka.DeleteConsumerGroupCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ManagedKafka.prototype.deleteConsumerGroup = function deleteConsumerGroup(request, callback) {
+ return this.rpcCall(deleteConsumerGroup, $root.google.cloud.managedkafka.v1.DeleteConsumerGroupRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteConsumerGroup" });
+
+ /**
+ * Calls DeleteConsumerGroup.
+ * @function deleteConsumerGroup
+ * @memberof google.cloud.managedkafka.v1.ManagedKafka
+ * @instance
+ * @param {google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest} request DeleteConsumerGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ManagedKafka;
+ })();
+
+ v1.ListClustersRequest = (function() {
+
+ /**
+ * Properties of a ListClustersRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IListClustersRequest
+ * @property {string|null} [parent] ListClustersRequest parent
+ * @property {number|null} [pageSize] ListClustersRequest pageSize
+ * @property {string|null} [pageToken] ListClustersRequest pageToken
+ * @property {string|null} [filter] ListClustersRequest filter
+ * @property {string|null} [orderBy] ListClustersRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListClustersRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ListClustersRequest.
+ * @implements IListClustersRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IListClustersRequest=} [properties] Properties to set
+ */
+ function ListClustersRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListClustersRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.parent = "";
+
+ /**
+ * ListClustersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListClustersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.pageToken = "";
+
+ /**
+ * ListClustersRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.filter = "";
+
+ /**
+ * ListClustersRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @instance
+ */
+ ListClustersRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListClustersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListClustersRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ListClustersRequest} ListClustersRequest instance
+ */
+ ListClustersRequest.create = function create(properties) {
+ return new ListClustersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListClustersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ListClustersRequest} ListClustersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ListClustersRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ListClustersRequest} ListClustersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListClustersRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListClustersRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ListClustersRequest} ListClustersRequest
+ */
+ ListClustersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ListClustersRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ListClustersRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ListClustersRequest} message ListClustersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListClustersRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListClustersRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListClustersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListClustersRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ListClustersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListClustersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ListClustersRequest";
+ };
+
+ return ListClustersRequest;
+ })();
+
+ v1.ListClustersResponse = (function() {
+
+ /**
+ * Properties of a ListClustersResponse.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IListClustersResponse
+ * @property {Array.|null} [clusters] ListClustersResponse clusters
+ * @property {string|null} [nextPageToken] ListClustersResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListClustersResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListClustersResponse.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ListClustersResponse.
+ * @implements IListClustersResponse
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IListClustersResponse=} [properties] Properties to set
+ */
+ function ListClustersResponse(properties) {
+ this.clusters = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListClustersResponse clusters.
+ * @member {Array.} clusters
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @instance
+ */
+ ListClustersResponse.prototype.clusters = $util.emptyArray;
+
+ /**
+ * ListClustersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @instance
+ */
+ ListClustersResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListClustersResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @instance
+ */
+ ListClustersResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListClustersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListClustersResponse=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ListClustersResponse} ListClustersResponse instance
+ */
+ ListClustersResponse.create = function create(properties) {
+ return new ListClustersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.clusters != null && message.clusters.length)
+ for (var i = 0; i < message.clusters.length; ++i)
+ $root.google.cloud.managedkafka.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListClustersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListClustersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ListClustersResponse} ListClustersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ListClustersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.clusters && message.clusters.length))
+ message.clusters = [];
+ message.clusters.push($root.google.cloud.managedkafka.v1.Cluster.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ListClustersResponse} ListClustersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListClustersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListClustersResponse message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListClustersResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.clusters != null && message.hasOwnProperty("clusters")) {
+ if (!Array.isArray(message.clusters))
+ return "clusters: array expected";
+ for (var i = 0; i < message.clusters.length; ++i) {
+ var error = $root.google.cloud.managedkafka.v1.Cluster.verify(message.clusters[i]);
+ if (error)
+ return "clusters." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ListClustersResponse} ListClustersResponse
+ */
+ ListClustersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ListClustersResponse)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ListClustersResponse();
+ if (object.clusters) {
+ if (!Array.isArray(object.clusters))
+ throw TypeError(".google.cloud.managedkafka.v1.ListClustersResponse.clusters: array expected");
+ message.clusters = [];
+ for (var i = 0; i < object.clusters.length; ++i) {
+ if (typeof object.clusters[i] !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.ListClustersResponse.clusters: object expected");
+ message.clusters[i] = $root.google.cloud.managedkafka.v1.Cluster.fromObject(object.clusters[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.managedkafka.v1.ListClustersResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.ListClustersResponse} message ListClustersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListClustersResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.clusters = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.clusters && message.clusters.length) {
+ object.clusters = [];
+ for (var j = 0; j < message.clusters.length; ++j)
+ object.clusters[j] = $root.google.cloud.managedkafka.v1.Cluster.toObject(message.clusters[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListClustersResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListClustersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListClustersResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ListClustersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListClustersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ListClustersResponse";
+ };
+
+ return ListClustersResponse;
+ })();
+
+ v1.GetClusterRequest = (function() {
+
+ /**
+ * Properties of a GetClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IGetClusterRequest
+ * @property {string|null} [name] GetClusterRequest name
+ */
+
+ /**
+ * Constructs a new GetClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a GetClusterRequest.
+ * @implements IGetClusterRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IGetClusterRequest=} [properties] Properties to set
+ */
+ function GetClusterRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetClusterRequest name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @instance
+ */
+ GetClusterRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.GetClusterRequest} GetClusterRequest instance
+ */
+ GetClusterRequest.create = function create(properties) {
+ return new GetClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.GetClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetClusterRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GetClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.GetClusterRequest} GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetClusterRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.GetClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.GetClusterRequest} GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetClusterRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.GetClusterRequest} GetClusterRequest
+ */
+ GetClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.GetClusterRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.GetClusterRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.GetClusterRequest} message GetClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.GetClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.GetClusterRequest";
+ };
+
+ return GetClusterRequest;
+ })();
+
+ v1.CreateClusterRequest = (function() {
+
+ /**
+ * Properties of a CreateClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface ICreateClusterRequest
+ * @property {string|null} [parent] CreateClusterRequest parent
+ * @property {string|null} [clusterId] CreateClusterRequest clusterId
+ * @property {google.cloud.managedkafka.v1.ICluster|null} [cluster] CreateClusterRequest cluster
+ * @property {string|null} [requestId] CreateClusterRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a CreateClusterRequest.
+ * @implements ICreateClusterRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.ICreateClusterRequest=} [properties] Properties to set
+ */
+ function CreateClusterRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CreateClusterRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.parent = "";
+
+ /**
+ * CreateClusterRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.clusterId = "";
+
+ /**
+ * CreateClusterRequest cluster.
+ * @member {google.cloud.managedkafka.v1.ICluster|null|undefined} cluster
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.cluster = null;
+
+ /**
+ * CreateClusterRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICreateClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.CreateClusterRequest} CreateClusterRequest instance
+ */
+ CreateClusterRequest.create = function create(properties) {
+ return new CreateClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.CreateClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateClusterRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId);
+ if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
+ $root.google.cloud.managedkafka.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.CreateClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.CreateClusterRequest} CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateClusterRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.CreateClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.clusterId = reader.string();
+ break;
+ }
+ case 3: {
+ message.cluster = $root.google.cloud.managedkafka.v1.Cluster.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.CreateClusterRequest} CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateClusterRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.cluster != null && message.hasOwnProperty("cluster")) {
+ var error = $root.google.cloud.managedkafka.v1.Cluster.verify(message.cluster);
+ if (error)
+ return "cluster." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.CreateClusterRequest} CreateClusterRequest
+ */
+ CreateClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.CreateClusterRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.CreateClusterRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.cluster != null) {
+ if (typeof object.cluster !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.CreateClusterRequest.cluster: object expected");
+ message.cluster = $root.google.cloud.managedkafka.v1.Cluster.fromObject(object.cluster);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.CreateClusterRequest} message CreateClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.clusterId = "";
+ object.cluster = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
+ object.cluster = $root.google.cloud.managedkafka.v1.Cluster.toObject(message.cluster, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.CreateClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.CreateClusterRequest";
+ };
+
+ return CreateClusterRequest;
+ })();
+
+ v1.UpdateClusterRequest = (function() {
+
+ /**
+ * Properties of an UpdateClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IUpdateClusterRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateClusterRequest updateMask
+ * @property {google.cloud.managedkafka.v1.ICluster|null} [cluster] UpdateClusterRequest cluster
+ * @property {string|null} [requestId] UpdateClusterRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdateClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents an UpdateClusterRequest.
+ * @implements IUpdateClusterRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IUpdateClusterRequest=} [properties] Properties to set
+ */
+ function UpdateClusterRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * UpdateClusterRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateClusterRequest cluster.
+ * @member {google.cloud.managedkafka.v1.ICluster|null|undefined} cluster
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.cluster = null;
+
+ /**
+ * UpdateClusterRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdateClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.UpdateClusterRequest} UpdateClusterRequest instance
+ */
+ UpdateClusterRequest.create = function create(properties) {
+ return new UpdateClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateClusterRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
+ $root.google.cloud.managedkafka.v1.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateClusterRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.UpdateClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.cluster = $root.google.cloud.managedkafka.v1.Cluster.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateClusterRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.cluster != null && message.hasOwnProperty("cluster")) {
+ var error = $root.google.cloud.managedkafka.v1.Cluster.verify(message.cluster);
+ if (error)
+ return "cluster." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.UpdateClusterRequest} UpdateClusterRequest
+ */
+ UpdateClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.UpdateClusterRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.UpdateClusterRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.UpdateClusterRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.cluster != null) {
+ if (typeof object.cluster !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.UpdateClusterRequest.cluster: object expected");
+ message.cluster = $root.google.cloud.managedkafka.v1.Cluster.fromObject(object.cluster);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.UpdateClusterRequest} message UpdateClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.cluster = null;
+ object.requestId = "";
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
+ object.cluster = $root.google.cloud.managedkafka.v1.Cluster.toObject(message.cluster, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.UpdateClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.UpdateClusterRequest";
+ };
+
+ return UpdateClusterRequest;
+ })();
+
+ v1.DeleteClusterRequest = (function() {
+
+ /**
+ * Properties of a DeleteClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IDeleteClusterRequest
+ * @property {string|null} [name] DeleteClusterRequest name
+ * @property {string|null} [requestId] DeleteClusterRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteClusterRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a DeleteClusterRequest.
+ * @implements IDeleteClusterRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IDeleteClusterRequest=} [properties] Properties to set
+ */
+ function DeleteClusterRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DeleteClusterRequest name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @instance
+ */
+ DeleteClusterRequest.prototype.name = "";
+
+ /**
+ * DeleteClusterRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @instance
+ */
+ DeleteClusterRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DeleteClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteClusterRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.DeleteClusterRequest} DeleteClusterRequest instance
+ */
+ DeleteClusterRequest.create = function create(properties) {
+ return new DeleteClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteClusterRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.DeleteClusterRequest} DeleteClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteClusterRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.DeleteClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.DeleteClusterRequest} DeleteClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteClusterRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteClusterRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.DeleteClusterRequest} DeleteClusterRequest
+ */
+ DeleteClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.DeleteClusterRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.DeleteClusterRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.DeleteClusterRequest} message DeleteClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteClusterRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.DeleteClusterRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.DeleteClusterRequest";
+ };
+
+ return DeleteClusterRequest;
+ })();
+
+ v1.ListTopicsRequest = (function() {
+
+ /**
+ * Properties of a ListTopicsRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IListTopicsRequest
+ * @property {string|null} [parent] ListTopicsRequest parent
+ * @property {number|null} [pageSize] ListTopicsRequest pageSize
+ * @property {string|null} [pageToken] ListTopicsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListTopicsRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ListTopicsRequest.
+ * @implements IListTopicsRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IListTopicsRequest=} [properties] Properties to set
+ */
+ function ListTopicsRequest(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]];
+ }
+
+ /**
+ * ListTopicsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @instance
+ */
+ ListTopicsRequest.prototype.parent = "";
+
+ /**
+ * ListTopicsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @instance
+ */
+ ListTopicsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListTopicsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @instance
+ */
+ ListTopicsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListTopicsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListTopicsRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ListTopicsRequest} ListTopicsRequest instance
+ */
+ ListTopicsRequest.create = function create(properties) {
+ return new ListTopicsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListTopicsRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListTopicsRequest} message ListTopicsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTopicsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListTopicsRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListTopicsRequest} message ListTopicsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTopicsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListTopicsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ListTopicsRequest} ListTopicsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTopicsRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ListTopicsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListTopicsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ListTopicsRequest} ListTopicsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTopicsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListTopicsRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListTopicsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListTopicsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ListTopicsRequest} ListTopicsRequest
+ */
+ ListTopicsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ListTopicsRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ListTopicsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListTopicsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ListTopicsRequest} message ListTopicsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListTopicsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListTopicsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListTopicsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListTopicsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ListTopicsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListTopicsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ListTopicsRequest";
+ };
+
+ return ListTopicsRequest;
+ })();
+
+ v1.ListTopicsResponse = (function() {
+
+ /**
+ * Properties of a ListTopicsResponse.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IListTopicsResponse
+ * @property {Array.|null} [topics] ListTopicsResponse topics
+ * @property {string|null} [nextPageToken] ListTopicsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListTopicsResponse.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ListTopicsResponse.
+ * @implements IListTopicsResponse
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IListTopicsResponse=} [properties] Properties to set
+ */
+ function ListTopicsResponse(properties) {
+ this.topics = [];
+ 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]];
+ }
+
+ /**
+ * ListTopicsResponse topics.
+ * @member {Array.} topics
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @instance
+ */
+ ListTopicsResponse.prototype.topics = $util.emptyArray;
+
+ /**
+ * ListTopicsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @instance
+ */
+ ListTopicsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListTopicsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListTopicsResponse=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ListTopicsResponse} ListTopicsResponse instance
+ */
+ ListTopicsResponse.create = function create(properties) {
+ return new ListTopicsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListTopicsResponse message. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListTopicsResponse} message ListTopicsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTopicsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.topics != null && message.topics.length)
+ for (var i = 0; i < message.topics.length; ++i)
+ $root.google.cloud.managedkafka.v1.Topic.encode(message.topics[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 ListTopicsResponse message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListTopicsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListTopicsResponse} message ListTopicsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTopicsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListTopicsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ListTopicsResponse} ListTopicsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTopicsResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ListTopicsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.topics && message.topics.length))
+ message.topics = [];
+ message.topics.push($root.google.cloud.managedkafka.v1.Topic.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListTopicsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ListTopicsResponse} ListTopicsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTopicsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListTopicsResponse message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListTopicsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.topics != null && message.hasOwnProperty("topics")) {
+ if (!Array.isArray(message.topics))
+ return "topics: array expected";
+ for (var i = 0; i < message.topics.length; ++i) {
+ var error = $root.google.cloud.managedkafka.v1.Topic.verify(message.topics[i]);
+ if (error)
+ return "topics." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListTopicsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ListTopicsResponse} ListTopicsResponse
+ */
+ ListTopicsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ListTopicsResponse)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ListTopicsResponse();
+ if (object.topics) {
+ if (!Array.isArray(object.topics))
+ throw TypeError(".google.cloud.managedkafka.v1.ListTopicsResponse.topics: array expected");
+ message.topics = [];
+ for (var i = 0; i < object.topics.length; ++i) {
+ if (typeof object.topics[i] !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.ListTopicsResponse.topics: object expected");
+ message.topics[i] = $root.google.cloud.managedkafka.v1.Topic.fromObject(object.topics[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListTopicsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.ListTopicsResponse} message ListTopicsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListTopicsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.topics = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.topics && message.topics.length) {
+ object.topics = [];
+ for (var j = 0; j < message.topics.length; ++j)
+ object.topics[j] = $root.google.cloud.managedkafka.v1.Topic.toObject(message.topics[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListTopicsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListTopicsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListTopicsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ListTopicsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListTopicsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ListTopicsResponse";
+ };
+
+ return ListTopicsResponse;
+ })();
+
+ v1.GetTopicRequest = (function() {
+
+ /**
+ * Properties of a GetTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IGetTopicRequest
+ * @property {string|null} [name] GetTopicRequest name
+ */
+
+ /**
+ * Constructs a new GetTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a GetTopicRequest.
+ * @implements IGetTopicRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IGetTopicRequest=} [properties] Properties to set
+ */
+ function GetTopicRequest(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]];
+ }
+
+ /**
+ * GetTopicRequest name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @instance
+ */
+ GetTopicRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetTopicRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetTopicRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.GetTopicRequest} GetTopicRequest instance
+ */
+ GetTopicRequest.create = function create(properties) {
+ return new GetTopicRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.GetTopicRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetTopicRequest} message GetTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetTopicRequest.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 GetTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GetTopicRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetTopicRequest} message GetTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetTopicRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetTopicRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.GetTopicRequest} GetTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetTopicRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.GetTopicRequest();
+ 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 GetTopicRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.GetTopicRequest} GetTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetTopicRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetTopicRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetTopicRequest.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 GetTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.GetTopicRequest} GetTopicRequest
+ */
+ GetTopicRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.GetTopicRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.GetTopicRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetTopicRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.GetTopicRequest} message GetTopicRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetTopicRequest.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 GetTopicRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetTopicRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetTopicRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.GetTopicRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetTopicRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.GetTopicRequest";
+ };
+
+ return GetTopicRequest;
+ })();
+
+ v1.CreateTopicRequest = (function() {
+
+ /**
+ * Properties of a CreateTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface ICreateTopicRequest
+ * @property {string|null} [parent] CreateTopicRequest parent
+ * @property {string|null} [topicId] CreateTopicRequest topicId
+ * @property {google.cloud.managedkafka.v1.ITopic|null} [topic] CreateTopicRequest topic
+ */
+
+ /**
+ * Constructs a new CreateTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a CreateTopicRequest.
+ * @implements ICreateTopicRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.ICreateTopicRequest=} [properties] Properties to set
+ */
+ function CreateTopicRequest(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]];
+ }
+
+ /**
+ * CreateTopicRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @instance
+ */
+ CreateTopicRequest.prototype.parent = "";
+
+ /**
+ * CreateTopicRequest topicId.
+ * @member {string} topicId
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @instance
+ */
+ CreateTopicRequest.prototype.topicId = "";
+
+ /**
+ * CreateTopicRequest topic.
+ * @member {google.cloud.managedkafka.v1.ITopic|null|undefined} topic
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @instance
+ */
+ CreateTopicRequest.prototype.topic = null;
+
+ /**
+ * Creates a new CreateTopicRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICreateTopicRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.CreateTopicRequest} CreateTopicRequest instance
+ */
+ CreateTopicRequest.create = function create(properties) {
+ return new CreateTopicRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.CreateTopicRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICreateTopicRequest} message CreateTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateTopicRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.topicId != null && Object.hasOwnProperty.call(message, "topicId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.topicId);
+ if (message.topic != null && Object.hasOwnProperty.call(message, "topic"))
+ $root.google.cloud.managedkafka.v1.Topic.encode(message.topic, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.CreateTopicRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICreateTopicRequest} message CreateTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateTopicRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateTopicRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.CreateTopicRequest} CreateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateTopicRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.CreateTopicRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.topicId = reader.string();
+ break;
+ }
+ case 3: {
+ message.topic = $root.google.cloud.managedkafka.v1.Topic.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateTopicRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.CreateTopicRequest} CreateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateTopicRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateTopicRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateTopicRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.topicId != null && message.hasOwnProperty("topicId"))
+ if (!$util.isString(message.topicId))
+ return "topicId: string expected";
+ if (message.topic != null && message.hasOwnProperty("topic")) {
+ var error = $root.google.cloud.managedkafka.v1.Topic.verify(message.topic);
+ if (error)
+ return "topic." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.CreateTopicRequest} CreateTopicRequest
+ */
+ CreateTopicRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.CreateTopicRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.CreateTopicRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.topicId != null)
+ message.topicId = String(object.topicId);
+ if (object.topic != null) {
+ if (typeof object.topic !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.CreateTopicRequest.topic: object expected");
+ message.topic = $root.google.cloud.managedkafka.v1.Topic.fromObject(object.topic);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateTopicRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.CreateTopicRequest} message CreateTopicRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateTopicRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.topicId = "";
+ object.topic = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.topicId != null && message.hasOwnProperty("topicId"))
+ object.topicId = message.topicId;
+ if (message.topic != null && message.hasOwnProperty("topic"))
+ object.topic = $root.google.cloud.managedkafka.v1.Topic.toObject(message.topic, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateTopicRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateTopicRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateTopicRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.CreateTopicRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateTopicRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.CreateTopicRequest";
+ };
+
+ return CreateTopicRequest;
+ })();
+
+ v1.UpdateTopicRequest = (function() {
+
+ /**
+ * Properties of an UpdateTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IUpdateTopicRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTopicRequest updateMask
+ * @property {google.cloud.managedkafka.v1.ITopic|null} [topic] UpdateTopicRequest topic
+ */
+
+ /**
+ * Constructs a new UpdateTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents an UpdateTopicRequest.
+ * @implements IUpdateTopicRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IUpdateTopicRequest=} [properties] Properties to set
+ */
+ function UpdateTopicRequest(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]];
+ }
+
+ /**
+ * UpdateTopicRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @instance
+ */
+ UpdateTopicRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateTopicRequest topic.
+ * @member {google.cloud.managedkafka.v1.ITopic|null|undefined} topic
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @instance
+ */
+ UpdateTopicRequest.prototype.topic = null;
+
+ /**
+ * Creates a new UpdateTopicRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateTopicRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.UpdateTopicRequest} UpdateTopicRequest instance
+ */
+ UpdateTopicRequest.create = function create(properties) {
+ return new UpdateTopicRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateTopicRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateTopicRequest} message UpdateTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateTopicRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.topic != null && Object.hasOwnProperty.call(message, "topic"))
+ $root.google.cloud.managedkafka.v1.Topic.encode(message.topic, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateTopicRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateTopicRequest} message UpdateTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateTopicRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateTopicRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.UpdateTopicRequest} UpdateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateTopicRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.UpdateTopicRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.topic = $root.google.cloud.managedkafka.v1.Topic.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateTopicRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.UpdateTopicRequest} UpdateTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateTopicRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateTopicRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateTopicRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.topic != null && message.hasOwnProperty("topic")) {
+ var error = $root.google.cloud.managedkafka.v1.Topic.verify(message.topic);
+ if (error)
+ return "topic." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.UpdateTopicRequest} UpdateTopicRequest
+ */
+ UpdateTopicRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.UpdateTopicRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.UpdateTopicRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.UpdateTopicRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.topic != null) {
+ if (typeof object.topic !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.UpdateTopicRequest.topic: object expected");
+ message.topic = $root.google.cloud.managedkafka.v1.Topic.fromObject(object.topic);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateTopicRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.UpdateTopicRequest} message UpdateTopicRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateTopicRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.topic = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.topic != null && message.hasOwnProperty("topic"))
+ object.topic = $root.google.cloud.managedkafka.v1.Topic.toObject(message.topic, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateTopicRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateTopicRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateTopicRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.UpdateTopicRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateTopicRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.UpdateTopicRequest";
+ };
+
+ return UpdateTopicRequest;
+ })();
+
+ v1.DeleteTopicRequest = (function() {
+
+ /**
+ * Properties of a DeleteTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IDeleteTopicRequest
+ * @property {string|null} [name] DeleteTopicRequest name
+ */
+
+ /**
+ * Constructs a new DeleteTopicRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a DeleteTopicRequest.
+ * @implements IDeleteTopicRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IDeleteTopicRequest=} [properties] Properties to set
+ */
+ function DeleteTopicRequest(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]];
+ }
+
+ /**
+ * DeleteTopicRequest name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @instance
+ */
+ DeleteTopicRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteTopicRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteTopicRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.DeleteTopicRequest} DeleteTopicRequest instance
+ */
+ DeleteTopicRequest.create = function create(properties) {
+ return new DeleteTopicRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteTopicRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteTopicRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteTopicRequest} message DeleteTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteTopicRequest.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 DeleteTopicRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteTopicRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteTopicRequest} message DeleteTopicRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteTopicRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteTopicRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.DeleteTopicRequest} DeleteTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteTopicRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.DeleteTopicRequest();
+ 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 DeleteTopicRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.DeleteTopicRequest} DeleteTopicRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteTopicRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteTopicRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteTopicRequest.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 DeleteTopicRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.DeleteTopicRequest} DeleteTopicRequest
+ */
+ DeleteTopicRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.DeleteTopicRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.DeleteTopicRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteTopicRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.DeleteTopicRequest} message DeleteTopicRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteTopicRequest.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 DeleteTopicRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteTopicRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteTopicRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.DeleteTopicRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteTopicRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.DeleteTopicRequest";
+ };
+
+ return DeleteTopicRequest;
+ })();
+
+ v1.ListConsumerGroupsRequest = (function() {
+
+ /**
+ * Properties of a ListConsumerGroupsRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IListConsumerGroupsRequest
+ * @property {string|null} [parent] ListConsumerGroupsRequest parent
+ * @property {number|null} [pageSize] ListConsumerGroupsRequest pageSize
+ * @property {string|null} [pageToken] ListConsumerGroupsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListConsumerGroupsRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ListConsumerGroupsRequest.
+ * @implements IListConsumerGroupsRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsRequest=} [properties] Properties to set
+ */
+ function ListConsumerGroupsRequest(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]];
+ }
+
+ /**
+ * ListConsumerGroupsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @instance
+ */
+ ListConsumerGroupsRequest.prototype.parent = "";
+
+ /**
+ * ListConsumerGroupsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @instance
+ */
+ ListConsumerGroupsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListConsumerGroupsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @instance
+ */
+ ListConsumerGroupsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListConsumerGroupsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsRequest} ListConsumerGroupsRequest instance
+ */
+ ListConsumerGroupsRequest.create = function create(properties) {
+ return new ListConsumerGroupsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListConsumerGroupsRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsRequest} message ListConsumerGroupsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConsumerGroupsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListConsumerGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsRequest} message ListConsumerGroupsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConsumerGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConsumerGroupsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsRequest} ListConsumerGroupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConsumerGroupsRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ListConsumerGroupsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListConsumerGroupsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsRequest} ListConsumerGroupsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConsumerGroupsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConsumerGroupsRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConsumerGroupsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListConsumerGroupsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsRequest} ListConsumerGroupsRequest
+ */
+ ListConsumerGroupsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ListConsumerGroupsRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ListConsumerGroupsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListConsumerGroupsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.ListConsumerGroupsRequest} message ListConsumerGroupsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListConsumerGroupsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListConsumerGroupsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListConsumerGroupsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListConsumerGroupsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListConsumerGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ListConsumerGroupsRequest";
+ };
+
+ return ListConsumerGroupsRequest;
+ })();
+
+ v1.ListConsumerGroupsResponse = (function() {
+
+ /**
+ * Properties of a ListConsumerGroupsResponse.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IListConsumerGroupsResponse
+ * @property {Array.|null} [consumerGroups] ListConsumerGroupsResponse consumerGroups
+ * @property {string|null} [nextPageToken] ListConsumerGroupsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListConsumerGroupsResponse.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ListConsumerGroupsResponse.
+ * @implements IListConsumerGroupsResponse
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsResponse=} [properties] Properties to set
+ */
+ function ListConsumerGroupsResponse(properties) {
+ this.consumerGroups = [];
+ 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]];
+ }
+
+ /**
+ * ListConsumerGroupsResponse consumerGroups.
+ * @member {Array.} consumerGroups
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @instance
+ */
+ ListConsumerGroupsResponse.prototype.consumerGroups = $util.emptyArray;
+
+ /**
+ * ListConsumerGroupsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @instance
+ */
+ ListConsumerGroupsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListConsumerGroupsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsResponse=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsResponse} ListConsumerGroupsResponse instance
+ */
+ ListConsumerGroupsResponse.create = function create(properties) {
+ return new ListConsumerGroupsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListConsumerGroupsResponse message. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsResponse} message ListConsumerGroupsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConsumerGroupsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.consumerGroups != null && message.consumerGroups.length)
+ for (var i = 0; i < message.consumerGroups.length; ++i)
+ $root.google.cloud.managedkafka.v1.ConsumerGroup.encode(message.consumerGroups[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 ListConsumerGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ListConsumerGroupsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.IListConsumerGroupsResponse} message ListConsumerGroupsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConsumerGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConsumerGroupsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsResponse} ListConsumerGroupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConsumerGroupsResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ListConsumerGroupsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.consumerGroups && message.consumerGroups.length))
+ message.consumerGroups = [];
+ message.consumerGroups.push($root.google.cloud.managedkafka.v1.ConsumerGroup.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListConsumerGroupsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsResponse} ListConsumerGroupsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConsumerGroupsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConsumerGroupsResponse message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConsumerGroupsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.consumerGroups != null && message.hasOwnProperty("consumerGroups")) {
+ if (!Array.isArray(message.consumerGroups))
+ return "consumerGroups: array expected";
+ for (var i = 0; i < message.consumerGroups.length; ++i) {
+ var error = $root.google.cloud.managedkafka.v1.ConsumerGroup.verify(message.consumerGroups[i]);
+ if (error)
+ return "consumerGroups." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListConsumerGroupsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ListConsumerGroupsResponse} ListConsumerGroupsResponse
+ */
+ ListConsumerGroupsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ListConsumerGroupsResponse)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ListConsumerGroupsResponse();
+ if (object.consumerGroups) {
+ if (!Array.isArray(object.consumerGroups))
+ throw TypeError(".google.cloud.managedkafka.v1.ListConsumerGroupsResponse.consumerGroups: array expected");
+ message.consumerGroups = [];
+ for (var i = 0; i < object.consumerGroups.length; ++i) {
+ if (typeof object.consumerGroups[i] !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.ListConsumerGroupsResponse.consumerGroups: object expected");
+ message.consumerGroups[i] = $root.google.cloud.managedkafka.v1.ConsumerGroup.fromObject(object.consumerGroups[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListConsumerGroupsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {google.cloud.managedkafka.v1.ListConsumerGroupsResponse} message ListConsumerGroupsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListConsumerGroupsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.consumerGroups = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.consumerGroups && message.consumerGroups.length) {
+ object.consumerGroups = [];
+ for (var j = 0; j < message.consumerGroups.length; ++j)
+ object.consumerGroups[j] = $root.google.cloud.managedkafka.v1.ConsumerGroup.toObject(message.consumerGroups[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListConsumerGroupsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListConsumerGroupsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListConsumerGroupsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ListConsumerGroupsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListConsumerGroupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ListConsumerGroupsResponse";
+ };
+
+ return ListConsumerGroupsResponse;
+ })();
+
+ v1.GetConsumerGroupRequest = (function() {
+
+ /**
+ * Properties of a GetConsumerGroupRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IGetConsumerGroupRequest
+ * @property {string|null} [name] GetConsumerGroupRequest name
+ */
+
+ /**
+ * Constructs a new GetConsumerGroupRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a GetConsumerGroupRequest.
+ * @implements IGetConsumerGroupRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IGetConsumerGroupRequest=} [properties] Properties to set
+ */
+ function GetConsumerGroupRequest(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]];
+ }
+
+ /**
+ * GetConsumerGroupRequest name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @instance
+ */
+ GetConsumerGroupRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetConsumerGroupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetConsumerGroupRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.GetConsumerGroupRequest} GetConsumerGroupRequest instance
+ */
+ GetConsumerGroupRequest.create = function create(properties) {
+ return new GetConsumerGroupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetConsumerGroupRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.GetConsumerGroupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetConsumerGroupRequest} message GetConsumerGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConsumerGroupRequest.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 GetConsumerGroupRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GetConsumerGroupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGetConsumerGroupRequest} message GetConsumerGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConsumerGroupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetConsumerGroupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.GetConsumerGroupRequest} GetConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConsumerGroupRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.GetConsumerGroupRequest();
+ 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 GetConsumerGroupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.GetConsumerGroupRequest} GetConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConsumerGroupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetConsumerGroupRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetConsumerGroupRequest.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 GetConsumerGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.GetConsumerGroupRequest} GetConsumerGroupRequest
+ */
+ GetConsumerGroupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.GetConsumerGroupRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.GetConsumerGroupRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetConsumerGroupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.GetConsumerGroupRequest} message GetConsumerGroupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetConsumerGroupRequest.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 GetConsumerGroupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetConsumerGroupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetConsumerGroupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.GetConsumerGroupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetConsumerGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.GetConsumerGroupRequest";
+ };
+
+ return GetConsumerGroupRequest;
+ })();
+
+ v1.UpdateConsumerGroupRequest = (function() {
+
+ /**
+ * Properties of an UpdateConsumerGroupRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IUpdateConsumerGroupRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateConsumerGroupRequest updateMask
+ * @property {google.cloud.managedkafka.v1.IConsumerGroup|null} [consumerGroup] UpdateConsumerGroupRequest consumerGroup
+ */
+
+ /**
+ * Constructs a new UpdateConsumerGroupRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents an UpdateConsumerGroupRequest.
+ * @implements IUpdateConsumerGroupRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest=} [properties] Properties to set
+ */
+ function UpdateConsumerGroupRequest(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]];
+ }
+
+ /**
+ * UpdateConsumerGroupRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @instance
+ */
+ UpdateConsumerGroupRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateConsumerGroupRequest consumerGroup.
+ * @member {google.cloud.managedkafka.v1.IConsumerGroup|null|undefined} consumerGroup
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @instance
+ */
+ UpdateConsumerGroupRequest.prototype.consumerGroup = null;
+
+ /**
+ * Creates a new UpdateConsumerGroupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.UpdateConsumerGroupRequest} UpdateConsumerGroupRequest instance
+ */
+ UpdateConsumerGroupRequest.create = function create(properties) {
+ return new UpdateConsumerGroupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateConsumerGroupRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateConsumerGroupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest} message UpdateConsumerGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateConsumerGroupRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.consumerGroup != null && Object.hasOwnProperty.call(message, "consumerGroup"))
+ $root.google.cloud.managedkafka.v1.ConsumerGroup.encode(message.consumerGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateConsumerGroupRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.UpdateConsumerGroupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IUpdateConsumerGroupRequest} message UpdateConsumerGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateConsumerGroupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateConsumerGroupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.UpdateConsumerGroupRequest} UpdateConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateConsumerGroupRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.UpdateConsumerGroupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.consumerGroup = $root.google.cloud.managedkafka.v1.ConsumerGroup.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateConsumerGroupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.UpdateConsumerGroupRequest} UpdateConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateConsumerGroupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateConsumerGroupRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateConsumerGroupRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) {
+ var error = $root.google.cloud.managedkafka.v1.ConsumerGroup.verify(message.consumerGroup);
+ if (error)
+ return "consumerGroup." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateConsumerGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.UpdateConsumerGroupRequest} UpdateConsumerGroupRequest
+ */
+ UpdateConsumerGroupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.UpdateConsumerGroupRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.UpdateConsumerGroupRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.UpdateConsumerGroupRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.consumerGroup != null) {
+ if (typeof object.consumerGroup !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.UpdateConsumerGroupRequest.consumerGroup: object expected");
+ message.consumerGroup = $root.google.cloud.managedkafka.v1.ConsumerGroup.fromObject(object.consumerGroup);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateConsumerGroupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.UpdateConsumerGroupRequest} message UpdateConsumerGroupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateConsumerGroupRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.consumerGroup = null;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup"))
+ object.consumerGroup = $root.google.cloud.managedkafka.v1.ConsumerGroup.toObject(message.consumerGroup, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateConsumerGroupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateConsumerGroupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateConsumerGroupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.UpdateConsumerGroupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateConsumerGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.UpdateConsumerGroupRequest";
+ };
+
+ return UpdateConsumerGroupRequest;
+ })();
+
+ v1.DeleteConsumerGroupRequest = (function() {
+
+ /**
+ * Properties of a DeleteConsumerGroupRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IDeleteConsumerGroupRequest
+ * @property {string|null} [name] DeleteConsumerGroupRequest name
+ */
+
+ /**
+ * Constructs a new DeleteConsumerGroupRequest.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a DeleteConsumerGroupRequest.
+ * @implements IDeleteConsumerGroupRequest
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest=} [properties] Properties to set
+ */
+ function DeleteConsumerGroupRequest(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]];
+ }
+
+ /**
+ * DeleteConsumerGroupRequest name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @instance
+ */
+ DeleteConsumerGroupRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteConsumerGroupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.DeleteConsumerGroupRequest} DeleteConsumerGroupRequest instance
+ */
+ DeleteConsumerGroupRequest.create = function create(properties) {
+ return new DeleteConsumerGroupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteConsumerGroupRequest message. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteConsumerGroupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest} message DeleteConsumerGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteConsumerGroupRequest.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 DeleteConsumerGroupRequest message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.DeleteConsumerGroupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.IDeleteConsumerGroupRequest} message DeleteConsumerGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteConsumerGroupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteConsumerGroupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.DeleteConsumerGroupRequest} DeleteConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteConsumerGroupRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.DeleteConsumerGroupRequest();
+ 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 DeleteConsumerGroupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.DeleteConsumerGroupRequest} DeleteConsumerGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteConsumerGroupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteConsumerGroupRequest message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteConsumerGroupRequest.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 DeleteConsumerGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.DeleteConsumerGroupRequest} DeleteConsumerGroupRequest
+ */
+ DeleteConsumerGroupRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.DeleteConsumerGroupRequest)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.DeleteConsumerGroupRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteConsumerGroupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {google.cloud.managedkafka.v1.DeleteConsumerGroupRequest} message DeleteConsumerGroupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteConsumerGroupRequest.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 DeleteConsumerGroupRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteConsumerGroupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteConsumerGroupRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.DeleteConsumerGroupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteConsumerGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.DeleteConsumerGroupRequest";
+ };
+
+ return DeleteConsumerGroupRequest;
+ })();
+
+ v1.Cluster = (function() {
+
+ /**
+ * Properties of a Cluster.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface ICluster
+ * @property {google.cloud.managedkafka.v1.IGcpConfig|null} [gcpConfig] Cluster gcpConfig
+ * @property {string|null} [name] Cluster name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Cluster createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Cluster updateTime
+ * @property {Object.|null} [labels] Cluster labels
+ * @property {google.cloud.managedkafka.v1.ICapacityConfig|null} [capacityConfig] Cluster capacityConfig
+ * @property {google.cloud.managedkafka.v1.IRebalanceConfig|null} [rebalanceConfig] Cluster rebalanceConfig
+ * @property {google.cloud.managedkafka.v1.Cluster.State|null} [state] Cluster state
+ */
+
+ /**
+ * Constructs a new Cluster.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a Cluster.
+ * @implements ICluster
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.ICluster=} [properties] Properties to set
+ */
+ function Cluster(properties) {
+ this.labels = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Cluster gcpConfig.
+ * @member {google.cloud.managedkafka.v1.IGcpConfig|null|undefined} gcpConfig
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.gcpConfig = null;
+
+ /**
+ * Cluster name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.name = "";
+
+ /**
+ * Cluster createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.createTime = null;
+
+ /**
+ * Cluster updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.updateTime = null;
+
+ /**
+ * Cluster labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.labels = $util.emptyObject;
+
+ /**
+ * Cluster capacityConfig.
+ * @member {google.cloud.managedkafka.v1.ICapacityConfig|null|undefined} capacityConfig
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.capacityConfig = null;
+
+ /**
+ * Cluster rebalanceConfig.
+ * @member {google.cloud.managedkafka.v1.IRebalanceConfig|null|undefined} rebalanceConfig
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.rebalanceConfig = null;
+
+ /**
+ * Cluster state.
+ * @member {google.cloud.managedkafka.v1.Cluster.State} state
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.state = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Cluster platformConfig.
+ * @member {"gcpConfig"|undefined} platformConfig
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ */
+ Object.defineProperty(Cluster.prototype, "platformConfig", {
+ get: $util.oneOfGetter($oneOfFields = ["gcpConfig"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Cluster instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICluster=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.Cluster} Cluster instance
+ */
+ Cluster.create = function create(properties) {
+ return new Cluster(properties);
+ };
+
+ /**
+ * Encodes the specified Cluster message. Does not implicitly {@link google.cloud.managedkafka.v1.Cluster.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICluster} message Cluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Cluster.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.capacityConfig != null && Object.hasOwnProperty.call(message, "capacityConfig"))
+ $root.google.cloud.managedkafka.v1.CapacityConfig.encode(message.capacityConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.rebalanceConfig != null && Object.hasOwnProperty.call(message, "rebalanceConfig"))
+ $root.google.cloud.managedkafka.v1.RebalanceConfig.encode(message.rebalanceConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.gcpConfig != null && Object.hasOwnProperty.call(message, "gcpConfig"))
+ $root.google.cloud.managedkafka.v1.GcpConfig.encode(message.gcpConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.state);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.Cluster.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICluster} message Cluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Cluster.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.Cluster} Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Cluster.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.Cluster(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 9: {
+ message.gcpConfig = $root.google.cloud.managedkafka.v1.GcpConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 5: {
+ message.capacityConfig = $root.google.cloud.managedkafka.v1.CapacityConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.rebalanceConfig = $root.google.cloud.managedkafka.v1.RebalanceConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.Cluster} Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Cluster.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Cluster message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Cluster.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.gcpConfig != null && message.hasOwnProperty("gcpConfig")) {
+ properties.platformConfig = 1;
+ {
+ var error = $root.google.cloud.managedkafka.v1.GcpConfig.verify(message.gcpConfig);
+ if (error)
+ return "gcpConfig." + error;
+ }
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.capacityConfig != null && message.hasOwnProperty("capacityConfig")) {
+ var error = $root.google.cloud.managedkafka.v1.CapacityConfig.verify(message.capacityConfig);
+ if (error)
+ return "capacityConfig." + error;
+ }
+ if (message.rebalanceConfig != null && message.hasOwnProperty("rebalanceConfig")) {
+ var error = $root.google.cloud.managedkafka.v1.RebalanceConfig.verify(message.rebalanceConfig);
+ if (error)
+ return "rebalanceConfig." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Cluster message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.Cluster} Cluster
+ */
+ Cluster.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.Cluster)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.Cluster();
+ if (object.gcpConfig != null) {
+ if (typeof object.gcpConfig !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.Cluster.gcpConfig: object expected");
+ message.gcpConfig = $root.google.cloud.managedkafka.v1.GcpConfig.fromObject(object.gcpConfig);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.Cluster.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.Cluster.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.Cluster.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.capacityConfig != null) {
+ if (typeof object.capacityConfig !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.Cluster.capacityConfig: object expected");
+ message.capacityConfig = $root.google.cloud.managedkafka.v1.CapacityConfig.fromObject(object.capacityConfig);
+ }
+ if (object.rebalanceConfig != null) {
+ if (typeof object.rebalanceConfig !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.Cluster.rebalanceConfig: object expected");
+ message.rebalanceConfig = $root.google.cloud.managedkafka.v1.RebalanceConfig.fromObject(object.rebalanceConfig);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "ACTIVE":
+ case 2:
+ message.state = 2;
+ break;
+ case "DELETING":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Cluster message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {google.cloud.managedkafka.v1.Cluster} message Cluster
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Cluster.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.capacityConfig = null;
+ object.rebalanceConfig = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.capacityConfig != null && message.hasOwnProperty("capacityConfig"))
+ object.capacityConfig = $root.google.cloud.managedkafka.v1.CapacityConfig.toObject(message.capacityConfig, options);
+ if (message.rebalanceConfig != null && message.hasOwnProperty("rebalanceConfig"))
+ object.rebalanceConfig = $root.google.cloud.managedkafka.v1.RebalanceConfig.toObject(message.rebalanceConfig, options);
+ if (message.gcpConfig != null && message.hasOwnProperty("gcpConfig")) {
+ object.gcpConfig = $root.google.cloud.managedkafka.v1.GcpConfig.toObject(message.gcpConfig, options);
+ if (options.oneofs)
+ object.platformConfig = "gcpConfig";
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.managedkafka.v1.Cluster.State[message.state] === undefined ? message.state : $root.google.cloud.managedkafka.v1.Cluster.State[message.state] : message.state;
+ return object;
+ };
+
+ /**
+ * Converts this Cluster to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Cluster.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Cluster
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.Cluster
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Cluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.Cluster";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.managedkafka.v1.Cluster.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} ACTIVE=2 ACTIVE value
+ * @property {number} DELETING=3 DELETING value
+ */
+ Cluster.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "ACTIVE"] = 2;
+ values[valuesById[3] = "DELETING"] = 3;
+ return values;
+ })();
+
+ return Cluster;
+ })();
+
+ v1.CapacityConfig = (function() {
+
+ /**
+ * Properties of a CapacityConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface ICapacityConfig
+ * @property {number|Long|null} [vcpuCount] CapacityConfig vcpuCount
+ * @property {number|Long|null} [memoryBytes] CapacityConfig memoryBytes
+ */
+
+ /**
+ * Constructs a new CapacityConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a CapacityConfig.
+ * @implements ICapacityConfig
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.ICapacityConfig=} [properties] Properties to set
+ */
+ function CapacityConfig(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]];
+ }
+
+ /**
+ * CapacityConfig vcpuCount.
+ * @member {number|Long} vcpuCount
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @instance
+ */
+ CapacityConfig.prototype.vcpuCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * CapacityConfig memoryBytes.
+ * @member {number|Long} memoryBytes
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @instance
+ */
+ CapacityConfig.prototype.memoryBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new CapacityConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICapacityConfig=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.CapacityConfig} CapacityConfig instance
+ */
+ CapacityConfig.create = function create(properties) {
+ return new CapacityConfig(properties);
+ };
+
+ /**
+ * Encodes the specified CapacityConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.CapacityConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICapacityConfig} message CapacityConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CapacityConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.vcpuCount != null && Object.hasOwnProperty.call(message, "vcpuCount"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vcpuCount);
+ if (message.memoryBytes != null && Object.hasOwnProperty.call(message, "memoryBytes"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.memoryBytes);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CapacityConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.CapacityConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.ICapacityConfig} message CapacityConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CapacityConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CapacityConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.CapacityConfig} CapacityConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CapacityConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.CapacityConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.vcpuCount = reader.int64();
+ break;
+ }
+ case 2: {
+ message.memoryBytes = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CapacityConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.CapacityConfig} CapacityConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CapacityConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CapacityConfig message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CapacityConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.vcpuCount != null && message.hasOwnProperty("vcpuCount"))
+ if (!$util.isInteger(message.vcpuCount) && !(message.vcpuCount && $util.isInteger(message.vcpuCount.low) && $util.isInteger(message.vcpuCount.high)))
+ return "vcpuCount: integer|Long expected";
+ if (message.memoryBytes != null && message.hasOwnProperty("memoryBytes"))
+ if (!$util.isInteger(message.memoryBytes) && !(message.memoryBytes && $util.isInteger(message.memoryBytes.low) && $util.isInteger(message.memoryBytes.high)))
+ return "memoryBytes: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a CapacityConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.CapacityConfig} CapacityConfig
+ */
+ CapacityConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.CapacityConfig)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.CapacityConfig();
+ if (object.vcpuCount != null)
+ if ($util.Long)
+ (message.vcpuCount = $util.Long.fromValue(object.vcpuCount)).unsigned = false;
+ else if (typeof object.vcpuCount === "string")
+ message.vcpuCount = parseInt(object.vcpuCount, 10);
+ else if (typeof object.vcpuCount === "number")
+ message.vcpuCount = object.vcpuCount;
+ else if (typeof object.vcpuCount === "object")
+ message.vcpuCount = new $util.LongBits(object.vcpuCount.low >>> 0, object.vcpuCount.high >>> 0).toNumber();
+ if (object.memoryBytes != null)
+ if ($util.Long)
+ (message.memoryBytes = $util.Long.fromValue(object.memoryBytes)).unsigned = false;
+ else if (typeof object.memoryBytes === "string")
+ message.memoryBytes = parseInt(object.memoryBytes, 10);
+ else if (typeof object.memoryBytes === "number")
+ message.memoryBytes = object.memoryBytes;
+ else if (typeof object.memoryBytes === "object")
+ message.memoryBytes = new $util.LongBits(object.memoryBytes.low >>> 0, object.memoryBytes.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CapacityConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.CapacityConfig} message CapacityConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CapacityConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.vcpuCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.vcpuCount = options.longs === String ? "0" : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.memoryBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.memoryBytes = options.longs === String ? "0" : 0;
+ }
+ if (message.vcpuCount != null && message.hasOwnProperty("vcpuCount"))
+ if (typeof message.vcpuCount === "number")
+ object.vcpuCount = options.longs === String ? String(message.vcpuCount) : message.vcpuCount;
+ else
+ object.vcpuCount = options.longs === String ? $util.Long.prototype.toString.call(message.vcpuCount) : options.longs === Number ? new $util.LongBits(message.vcpuCount.low >>> 0, message.vcpuCount.high >>> 0).toNumber() : message.vcpuCount;
+ if (message.memoryBytes != null && message.hasOwnProperty("memoryBytes"))
+ if (typeof message.memoryBytes === "number")
+ object.memoryBytes = options.longs === String ? String(message.memoryBytes) : message.memoryBytes;
+ else
+ object.memoryBytes = options.longs === String ? $util.Long.prototype.toString.call(message.memoryBytes) : options.longs === Number ? new $util.LongBits(message.memoryBytes.low >>> 0, message.memoryBytes.high >>> 0).toNumber() : message.memoryBytes;
+ return object;
+ };
+
+ /**
+ * Converts this CapacityConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CapacityConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CapacityConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.CapacityConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CapacityConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.CapacityConfig";
+ };
+
+ return CapacityConfig;
+ })();
+
+ v1.RebalanceConfig = (function() {
+
+ /**
+ * Properties of a RebalanceConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IRebalanceConfig
+ * @property {google.cloud.managedkafka.v1.RebalanceConfig.Mode|null} [mode] RebalanceConfig mode
+ */
+
+ /**
+ * Constructs a new RebalanceConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a RebalanceConfig.
+ * @implements IRebalanceConfig
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IRebalanceConfig=} [properties] Properties to set
+ */
+ function RebalanceConfig(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]];
+ }
+
+ /**
+ * RebalanceConfig mode.
+ * @member {google.cloud.managedkafka.v1.RebalanceConfig.Mode} mode
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @instance
+ */
+ RebalanceConfig.prototype.mode = 0;
+
+ /**
+ * Creates a new RebalanceConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IRebalanceConfig=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.RebalanceConfig} RebalanceConfig instance
+ */
+ RebalanceConfig.create = function create(properties) {
+ return new RebalanceConfig(properties);
+ };
+
+ /**
+ * Encodes the specified RebalanceConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.RebalanceConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IRebalanceConfig} message RebalanceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RebalanceConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RebalanceConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.RebalanceConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IRebalanceConfig} message RebalanceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RebalanceConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RebalanceConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.RebalanceConfig} RebalanceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RebalanceConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.RebalanceConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.mode = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RebalanceConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.RebalanceConfig} RebalanceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RebalanceConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RebalanceConfig message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RebalanceConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.mode != null && message.hasOwnProperty("mode"))
+ switch (message.mode) {
+ default:
+ return "mode: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RebalanceConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.RebalanceConfig} RebalanceConfig
+ */
+ RebalanceConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.RebalanceConfig)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.RebalanceConfig();
+ switch (object.mode) {
+ default:
+ if (typeof object.mode === "number") {
+ message.mode = object.mode;
+ break;
+ }
+ break;
+ case "MODE_UNSPECIFIED":
+ case 0:
+ message.mode = 0;
+ break;
+ case "NO_REBALANCE":
+ case 1:
+ message.mode = 1;
+ break;
+ case "AUTO_REBALANCE_ON_SCALE_UP":
+ case 2:
+ message.mode = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RebalanceConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.RebalanceConfig} message RebalanceConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RebalanceConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.mode = options.enums === String ? "MODE_UNSPECIFIED" : 0;
+ if (message.mode != null && message.hasOwnProperty("mode"))
+ object.mode = options.enums === String ? $root.google.cloud.managedkafka.v1.RebalanceConfig.Mode[message.mode] === undefined ? message.mode : $root.google.cloud.managedkafka.v1.RebalanceConfig.Mode[message.mode] : message.mode;
+ return object;
+ };
+
+ /**
+ * Converts this RebalanceConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RebalanceConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RebalanceConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.RebalanceConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RebalanceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.RebalanceConfig";
+ };
+
+ /**
+ * Mode enum.
+ * @name google.cloud.managedkafka.v1.RebalanceConfig.Mode
+ * @enum {number}
+ * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value
+ * @property {number} NO_REBALANCE=1 NO_REBALANCE value
+ * @property {number} AUTO_REBALANCE_ON_SCALE_UP=2 AUTO_REBALANCE_ON_SCALE_UP value
+ */
+ RebalanceConfig.Mode = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "MODE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NO_REBALANCE"] = 1;
+ values[valuesById[2] = "AUTO_REBALANCE_ON_SCALE_UP"] = 2;
+ return values;
+ })();
+
+ return RebalanceConfig;
+ })();
+
+ v1.NetworkConfig = (function() {
+
+ /**
+ * Properties of a NetworkConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface INetworkConfig
+ * @property {string|null} [subnet] NetworkConfig subnet
+ */
+
+ /**
+ * Constructs a new NetworkConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a NetworkConfig.
+ * @implements INetworkConfig
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.INetworkConfig=} [properties] Properties to set
+ */
+ function NetworkConfig(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * NetworkConfig subnet.
+ * @member {string} subnet
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @instance
+ */
+ NetworkConfig.prototype.subnet = "";
+
+ /**
+ * Creates a new NetworkConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.INetworkConfig=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.NetworkConfig} NetworkConfig instance
+ */
+ NetworkConfig.create = function create(properties) {
+ return new NetworkConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.NetworkConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.subnet != null && Object.hasOwnProperty.call(message, "subnet"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnet);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.NetworkConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.INetworkConfig} message NetworkConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.NetworkConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.subnet = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.NetworkConfig} NetworkConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NetworkConfig message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NetworkConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.subnet != null && message.hasOwnProperty("subnet"))
+ if (!$util.isString(message.subnet))
+ return "subnet: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.NetworkConfig} NetworkConfig
+ */
+ NetworkConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.NetworkConfig)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.NetworkConfig();
+ if (object.subnet != null)
+ message.subnet = String(object.subnet);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.NetworkConfig} message NetworkConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NetworkConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.subnet = "";
+ if (message.subnet != null && message.hasOwnProperty("subnet"))
+ object.subnet = message.subnet;
+ return object;
+ };
+
+ /**
+ * Converts this NetworkConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NetworkConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NetworkConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.NetworkConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.NetworkConfig";
+ };
+
+ return NetworkConfig;
+ })();
+
+ v1.AccessConfig = (function() {
+
+ /**
+ * Properties of an AccessConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IAccessConfig
+ * @property {Array.|null} [networkConfigs] AccessConfig networkConfigs
+ */
+
+ /**
+ * Constructs a new AccessConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents an AccessConfig.
+ * @implements IAccessConfig
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IAccessConfig=} [properties] Properties to set
+ */
+ function AccessConfig(properties) {
+ this.networkConfigs = [];
+ 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]];
+ }
+
+ /**
+ * AccessConfig networkConfigs.
+ * @member {Array.} networkConfigs
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @instance
+ */
+ AccessConfig.prototype.networkConfigs = $util.emptyArray;
+
+ /**
+ * Creates a new AccessConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IAccessConfig=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.AccessConfig} AccessConfig instance
+ */
+ AccessConfig.create = function create(properties) {
+ return new AccessConfig(properties);
+ };
+
+ /**
+ * Encodes the specified AccessConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.AccessConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IAccessConfig} message AccessConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AccessConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.networkConfigs != null && message.networkConfigs.length)
+ for (var i = 0; i < message.networkConfigs.length; ++i)
+ $root.google.cloud.managedkafka.v1.NetworkConfig.encode(message.networkConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AccessConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.AccessConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IAccessConfig} message AccessConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AccessConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AccessConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.AccessConfig} AccessConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AccessConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.AccessConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.networkConfigs && message.networkConfigs.length))
+ message.networkConfigs = [];
+ message.networkConfigs.push($root.google.cloud.managedkafka.v1.NetworkConfig.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AccessConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.AccessConfig} AccessConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AccessConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AccessConfig message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AccessConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.networkConfigs != null && message.hasOwnProperty("networkConfigs")) {
+ if (!Array.isArray(message.networkConfigs))
+ return "networkConfigs: array expected";
+ for (var i = 0; i < message.networkConfigs.length; ++i) {
+ var error = $root.google.cloud.managedkafka.v1.NetworkConfig.verify(message.networkConfigs[i]);
+ if (error)
+ return "networkConfigs." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AccessConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.AccessConfig} AccessConfig
+ */
+ AccessConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.AccessConfig)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.AccessConfig();
+ if (object.networkConfigs) {
+ if (!Array.isArray(object.networkConfigs))
+ throw TypeError(".google.cloud.managedkafka.v1.AccessConfig.networkConfigs: array expected");
+ message.networkConfigs = [];
+ for (var i = 0; i < object.networkConfigs.length; ++i) {
+ if (typeof object.networkConfigs[i] !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.AccessConfig.networkConfigs: object expected");
+ message.networkConfigs[i] = $root.google.cloud.managedkafka.v1.NetworkConfig.fromObject(object.networkConfigs[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AccessConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.AccessConfig} message AccessConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AccessConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.networkConfigs = [];
+ if (message.networkConfigs && message.networkConfigs.length) {
+ object.networkConfigs = [];
+ for (var j = 0; j < message.networkConfigs.length; ++j)
+ object.networkConfigs[j] = $root.google.cloud.managedkafka.v1.NetworkConfig.toObject(message.networkConfigs[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AccessConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AccessConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AccessConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.AccessConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AccessConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.AccessConfig";
+ };
+
+ return AccessConfig;
+ })();
+
+ v1.GcpConfig = (function() {
+
+ /**
+ * Properties of a GcpConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IGcpConfig
+ * @property {google.cloud.managedkafka.v1.IAccessConfig|null} [accessConfig] GcpConfig accessConfig
+ * @property {string|null} [kmsKey] GcpConfig kmsKey
+ */
+
+ /**
+ * Constructs a new GcpConfig.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a GcpConfig.
+ * @implements IGcpConfig
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IGcpConfig=} [properties] Properties to set
+ */
+ function GcpConfig(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]];
+ }
+
+ /**
+ * GcpConfig accessConfig.
+ * @member {google.cloud.managedkafka.v1.IAccessConfig|null|undefined} accessConfig
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @instance
+ */
+ GcpConfig.prototype.accessConfig = null;
+
+ /**
+ * GcpConfig kmsKey.
+ * @member {string} kmsKey
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @instance
+ */
+ GcpConfig.prototype.kmsKey = "";
+
+ /**
+ * Creates a new GcpConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGcpConfig=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.GcpConfig} GcpConfig instance
+ */
+ GcpConfig.create = function create(properties) {
+ return new GcpConfig(properties);
+ };
+
+ /**
+ * Encodes the specified GcpConfig message. Does not implicitly {@link google.cloud.managedkafka.v1.GcpConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGcpConfig} message GcpConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GcpConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kmsKey != null && Object.hasOwnProperty.call(message, "kmsKey"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKey);
+ if (message.accessConfig != null && Object.hasOwnProperty.call(message, "accessConfig"))
+ $root.google.cloud.managedkafka.v1.AccessConfig.encode(message.accessConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GcpConfig message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.GcpConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.IGcpConfig} message GcpConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GcpConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GcpConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.GcpConfig} GcpConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GcpConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.GcpConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3: {
+ message.accessConfig = $root.google.cloud.managedkafka.v1.AccessConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.kmsKey = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GcpConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.GcpConfig} GcpConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GcpConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GcpConfig message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GcpConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.accessConfig != null && message.hasOwnProperty("accessConfig")) {
+ var error = $root.google.cloud.managedkafka.v1.AccessConfig.verify(message.accessConfig);
+ if (error)
+ return "accessConfig." + error;
+ }
+ if (message.kmsKey != null && message.hasOwnProperty("kmsKey"))
+ if (!$util.isString(message.kmsKey))
+ return "kmsKey: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GcpConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.GcpConfig} GcpConfig
+ */
+ GcpConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.GcpConfig)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.GcpConfig();
+ if (object.accessConfig != null) {
+ if (typeof object.accessConfig !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.GcpConfig.accessConfig: object expected");
+ message.accessConfig = $root.google.cloud.managedkafka.v1.AccessConfig.fromObject(object.accessConfig);
+ }
+ if (object.kmsKey != null)
+ message.kmsKey = String(object.kmsKey);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GcpConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {google.cloud.managedkafka.v1.GcpConfig} message GcpConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GcpConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.kmsKey = "";
+ object.accessConfig = null;
+ }
+ if (message.kmsKey != null && message.hasOwnProperty("kmsKey"))
+ object.kmsKey = message.kmsKey;
+ if (message.accessConfig != null && message.hasOwnProperty("accessConfig"))
+ object.accessConfig = $root.google.cloud.managedkafka.v1.AccessConfig.toObject(message.accessConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this GcpConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GcpConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GcpConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.GcpConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GcpConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.GcpConfig";
+ };
+
+ return GcpConfig;
+ })();
+
+ v1.Topic = (function() {
+
+ /**
+ * Properties of a Topic.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface ITopic
+ * @property {string|null} [name] Topic name
+ * @property {number|null} [partitionCount] Topic partitionCount
+ * @property {number|null} [replicationFactor] Topic replicationFactor
+ * @property {Object.|null} [configs] Topic configs
+ */
+
+ /**
+ * Constructs a new Topic.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a Topic.
+ * @implements ITopic
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.ITopic=} [properties] Properties to set
+ */
+ function Topic(properties) {
+ this.configs = {};
+ 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]];
+ }
+
+ /**
+ * Topic name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @instance
+ */
+ Topic.prototype.name = "";
+
+ /**
+ * Topic partitionCount.
+ * @member {number} partitionCount
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @instance
+ */
+ Topic.prototype.partitionCount = 0;
+
+ /**
+ * Topic replicationFactor.
+ * @member {number} replicationFactor
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @instance
+ */
+ Topic.prototype.replicationFactor = 0;
+
+ /**
+ * Topic configs.
+ * @member {Object.} configs
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @instance
+ */
+ Topic.prototype.configs = $util.emptyObject;
+
+ /**
+ * Creates a new Topic instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {google.cloud.managedkafka.v1.ITopic=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.Topic} Topic instance
+ */
+ Topic.create = function create(properties) {
+ return new Topic(properties);
+ };
+
+ /**
+ * Encodes the specified Topic message. Does not implicitly {@link google.cloud.managedkafka.v1.Topic.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {google.cloud.managedkafka.v1.ITopic} message Topic message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Topic.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.partitionCount != null && Object.hasOwnProperty.call(message, "partitionCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.partitionCount);
+ if (message.replicationFactor != null && Object.hasOwnProperty.call(message, "replicationFactor"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.replicationFactor);
+ if (message.configs != null && Object.hasOwnProperty.call(message, "configs"))
+ for (var keys = Object.keys(message.configs), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.configs[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Topic message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.Topic.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {google.cloud.managedkafka.v1.ITopic} message Topic message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Topic.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Topic message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.Topic} Topic
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Topic.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.Topic(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.partitionCount = reader.int32();
+ break;
+ }
+ case 3: {
+ message.replicationFactor = reader.int32();
+ break;
+ }
+ case 4: {
+ if (message.configs === $util.emptyObject)
+ message.configs = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.configs[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Topic message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.Topic} Topic
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Topic.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Topic message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Topic.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.partitionCount != null && message.hasOwnProperty("partitionCount"))
+ if (!$util.isInteger(message.partitionCount))
+ return "partitionCount: integer expected";
+ if (message.replicationFactor != null && message.hasOwnProperty("replicationFactor"))
+ if (!$util.isInteger(message.replicationFactor))
+ return "replicationFactor: integer expected";
+ if (message.configs != null && message.hasOwnProperty("configs")) {
+ if (!$util.isObject(message.configs))
+ return "configs: object expected";
+ var key = Object.keys(message.configs);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.configs[key[i]]))
+ return "configs: string{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Topic message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.Topic} Topic
+ */
+ Topic.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.Topic)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.Topic();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.partitionCount != null)
+ message.partitionCount = object.partitionCount | 0;
+ if (object.replicationFactor != null)
+ message.replicationFactor = object.replicationFactor | 0;
+ if (object.configs) {
+ if (typeof object.configs !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.Topic.configs: object expected");
+ message.configs = {};
+ for (var keys = Object.keys(object.configs), i = 0; i < keys.length; ++i)
+ message.configs[keys[i]] = String(object.configs[keys[i]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Topic message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {google.cloud.managedkafka.v1.Topic} message Topic
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Topic.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.configs = {};
+ if (options.defaults) {
+ object.name = "";
+ object.partitionCount = 0;
+ object.replicationFactor = 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.partitionCount != null && message.hasOwnProperty("partitionCount"))
+ object.partitionCount = message.partitionCount;
+ if (message.replicationFactor != null && message.hasOwnProperty("replicationFactor"))
+ object.replicationFactor = message.replicationFactor;
+ var keys2;
+ if (message.configs && (keys2 = Object.keys(message.configs)).length) {
+ object.configs = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.configs[keys2[j]] = message.configs[keys2[j]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Topic to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Topic.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Topic
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.Topic
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Topic.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.Topic";
+ };
+
+ return Topic;
+ })();
+
+ v1.ConsumerTopicMetadata = (function() {
+
+ /**
+ * Properties of a ConsumerTopicMetadata.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IConsumerTopicMetadata
+ * @property {Object.|null} [partitions] ConsumerTopicMetadata partitions
+ */
+
+ /**
+ * Constructs a new ConsumerTopicMetadata.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ConsumerTopicMetadata.
+ * @implements IConsumerTopicMetadata
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IConsumerTopicMetadata=} [properties] Properties to set
+ */
+ function ConsumerTopicMetadata(properties) {
+ this.partitions = {};
+ 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]];
+ }
+
+ /**
+ * ConsumerTopicMetadata partitions.
+ * @member {Object.} partitions
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @instance
+ */
+ ConsumerTopicMetadata.prototype.partitions = $util.emptyObject;
+
+ /**
+ * Creates a new ConsumerTopicMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerTopicMetadata=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ConsumerTopicMetadata} ConsumerTopicMetadata instance
+ */
+ ConsumerTopicMetadata.create = function create(properties) {
+ return new ConsumerTopicMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified ConsumerTopicMetadata message. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerTopicMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerTopicMetadata} message ConsumerTopicMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConsumerTopicMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.partitions != null && Object.hasOwnProperty.call(message, "partitions"))
+ for (var keys = Object.keys(message.partitions), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 0 =*/8).int32(keys[i]);
+ $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata.encode(message.partitions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConsumerTopicMetadata message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerTopicMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerTopicMetadata} message ConsumerTopicMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConsumerTopicMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConsumerTopicMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ConsumerTopicMetadata} ConsumerTopicMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConsumerTopicMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (message.partitions === $util.emptyObject)
+ message.partitions = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = 0;
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.int32();
+ break;
+ case 2:
+ value = $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.partitions[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConsumerTopicMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ConsumerTopicMetadata} ConsumerTopicMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConsumerTopicMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConsumerTopicMetadata message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConsumerTopicMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.partitions != null && message.hasOwnProperty("partitions")) {
+ if (!$util.isObject(message.partitions))
+ return "partitions: object expected";
+ var key = Object.keys(message.partitions);
+ for (var i = 0; i < key.length; ++i) {
+ if (!$util.key32Re.test(key[i]))
+ return "partitions: integer key{k:int32} expected";
+ {
+ var error = $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata.verify(message.partitions[key[i]]);
+ if (error)
+ return "partitions." + error;
+ }
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConsumerTopicMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ConsumerTopicMetadata} ConsumerTopicMetadata
+ */
+ ConsumerTopicMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata();
+ if (object.partitions) {
+ if (typeof object.partitions !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.ConsumerTopicMetadata.partitions: object expected");
+ message.partitions = {};
+ for (var keys = Object.keys(object.partitions), i = 0; i < keys.length; ++i) {
+ if (typeof object.partitions[keys[i]] !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.ConsumerTopicMetadata.partitions: object expected");
+ message.partitions[keys[i]] = $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata.fromObject(object.partitions[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConsumerTopicMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.ConsumerTopicMetadata} message ConsumerTopicMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConsumerTopicMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.partitions = {};
+ var keys2;
+ if (message.partitions && (keys2 = Object.keys(message.partitions)).length) {
+ object.partitions = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.partitions[keys2[j]] = $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata.toObject(message.partitions[keys2[j]], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ConsumerTopicMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConsumerTopicMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConsumerTopicMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ConsumerTopicMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConsumerTopicMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ConsumerTopicMetadata";
+ };
+
+ return ConsumerTopicMetadata;
+ })();
+
+ v1.ConsumerPartitionMetadata = (function() {
+
+ /**
+ * Properties of a ConsumerPartitionMetadata.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IConsumerPartitionMetadata
+ * @property {number|Long|null} [offset] ConsumerPartitionMetadata offset
+ * @property {string|null} [metadata] ConsumerPartitionMetadata metadata
+ */
+
+ /**
+ * Constructs a new ConsumerPartitionMetadata.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ConsumerPartitionMetadata.
+ * @implements IConsumerPartitionMetadata
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IConsumerPartitionMetadata=} [properties] Properties to set
+ */
+ function ConsumerPartitionMetadata(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]];
+ }
+
+ /**
+ * ConsumerPartitionMetadata offset.
+ * @member {number|Long} offset
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @instance
+ */
+ ConsumerPartitionMetadata.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ConsumerPartitionMetadata metadata.
+ * @member {string} metadata
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @instance
+ */
+ ConsumerPartitionMetadata.prototype.metadata = "";
+
+ /**
+ * Creates a new ConsumerPartitionMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerPartitionMetadata=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ConsumerPartitionMetadata} ConsumerPartitionMetadata instance
+ */
+ ConsumerPartitionMetadata.create = function create(properties) {
+ return new ConsumerPartitionMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified ConsumerPartitionMetadata message. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerPartitionMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerPartitionMetadata} message ConsumerPartitionMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConsumerPartitionMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.offset);
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadata);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConsumerPartitionMetadata message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerPartitionMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerPartitionMetadata} message ConsumerPartitionMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConsumerPartitionMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConsumerPartitionMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ConsumerPartitionMetadata} ConsumerPartitionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConsumerPartitionMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.offset = reader.int64();
+ break;
+ }
+ case 2: {
+ message.metadata = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConsumerPartitionMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ConsumerPartitionMetadata} ConsumerPartitionMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConsumerPartitionMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConsumerPartitionMetadata message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConsumerPartitionMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.offset != null && message.hasOwnProperty("offset"))
+ if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high)))
+ return "offset: integer|Long expected";
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
+ if (!$util.isString(message.metadata))
+ return "metadata: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ConsumerPartitionMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ConsumerPartitionMetadata} ConsumerPartitionMetadata
+ */
+ ConsumerPartitionMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ConsumerPartitionMetadata();
+ if (object.offset != null)
+ if ($util.Long)
+ (message.offset = $util.Long.fromValue(object.offset)).unsigned = false;
+ else if (typeof object.offset === "string")
+ message.offset = parseInt(object.offset, 10);
+ else if (typeof object.offset === "number")
+ message.offset = object.offset;
+ else if (typeof object.offset === "object")
+ message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber();
+ if (object.metadata != null)
+ message.metadata = String(object.metadata);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConsumerPartitionMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.ConsumerPartitionMetadata} message ConsumerPartitionMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConsumerPartitionMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.offset = options.longs === String ? "0" : 0;
+ object.metadata = "";
+ }
+ if (message.offset != null && message.hasOwnProperty("offset"))
+ if (typeof message.offset === "number")
+ object.offset = options.longs === String ? String(message.offset) : message.offset;
+ else
+ object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber() : message.offset;
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
+ object.metadata = message.metadata;
+ return object;
+ };
+
+ /**
+ * Converts this ConsumerPartitionMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConsumerPartitionMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConsumerPartitionMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ConsumerPartitionMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConsumerPartitionMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ConsumerPartitionMetadata";
+ };
+
+ return ConsumerPartitionMetadata;
+ })();
+
+ v1.ConsumerGroup = (function() {
+
+ /**
+ * Properties of a ConsumerGroup.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IConsumerGroup
+ * @property {string|null} [name] ConsumerGroup name
+ * @property {Object.|null} [topics] ConsumerGroup topics
+ */
+
+ /**
+ * Constructs a new ConsumerGroup.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents a ConsumerGroup.
+ * @implements IConsumerGroup
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IConsumerGroup=} [properties] Properties to set
+ */
+ function ConsumerGroup(properties) {
+ this.topics = {};
+ 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]];
+ }
+
+ /**
+ * ConsumerGroup name.
+ * @member {string} name
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @instance
+ */
+ ConsumerGroup.prototype.name = "";
+
+ /**
+ * ConsumerGroup topics.
+ * @member {Object.} topics
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @instance
+ */
+ ConsumerGroup.prototype.topics = $util.emptyObject;
+
+ /**
+ * Creates a new ConsumerGroup instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerGroup=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.ConsumerGroup} ConsumerGroup instance
+ */
+ ConsumerGroup.create = function create(properties) {
+ return new ConsumerGroup(properties);
+ };
+
+ /**
+ * Encodes the specified ConsumerGroup message. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerGroup.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerGroup} message ConsumerGroup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConsumerGroup.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.topics != null && Object.hasOwnProperty.call(message, "topics"))
+ for (var keys = Object.keys(message.topics), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata.encode(message.topics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConsumerGroup message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.ConsumerGroup.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {google.cloud.managedkafka.v1.IConsumerGroup} message ConsumerGroup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConsumerGroup.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConsumerGroup message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.ConsumerGroup} ConsumerGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConsumerGroup.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.ConsumerGroup(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ if (message.topics === $util.emptyObject)
+ message.topics = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.topics[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConsumerGroup message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.ConsumerGroup} ConsumerGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConsumerGroup.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConsumerGroup message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConsumerGroup.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.topics != null && message.hasOwnProperty("topics")) {
+ if (!$util.isObject(message.topics))
+ return "topics: object expected";
+ var key = Object.keys(message.topics);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata.verify(message.topics[key[i]]);
+ if (error)
+ return "topics." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConsumerGroup message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.ConsumerGroup} ConsumerGroup
+ */
+ ConsumerGroup.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.ConsumerGroup)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.ConsumerGroup();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.topics) {
+ if (typeof object.topics !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.ConsumerGroup.topics: object expected");
+ message.topics = {};
+ for (var keys = Object.keys(object.topics), i = 0; i < keys.length; ++i) {
+ if (typeof object.topics[keys[i]] !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.ConsumerGroup.topics: object expected");
+ message.topics[keys[i]] = $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata.fromObject(object.topics[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConsumerGroup message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {google.cloud.managedkafka.v1.ConsumerGroup} message ConsumerGroup
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConsumerGroup.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.topics = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ var keys2;
+ if (message.topics && (keys2 = Object.keys(message.topics)).length) {
+ object.topics = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.topics[keys2[j]] = $root.google.cloud.managedkafka.v1.ConsumerTopicMetadata.toObject(message.topics[keys2[j]], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ConsumerGroup to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConsumerGroup.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConsumerGroup
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.ConsumerGroup
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConsumerGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.ConsumerGroup";
+ };
+
+ return ConsumerGroup;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.managedkafka.v1
+ * @interface IOperationMetadata
+ * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime
+ * @property {string|null} [target] OperationMetadata target
+ * @property {string|null} [verb] OperationMetadata verb
+ * @property {string|null} [statusMessage] OperationMetadata statusMessage
+ * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation
+ * @property {string|null} [apiVersion] OperationMetadata apiVersion
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.managedkafka.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.managedkafka.v1.IOperationMetadata=} [properties] Properties to set
+ */
+ function OperationMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * OperationMetadata createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.managedkafka.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.managedkafka.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.target);
+ if (message.verb != null && Object.hasOwnProperty.call(message, "verb"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage);
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation);
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.managedkafka.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.managedkafka.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.managedkafka.v1.OperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.target = reader.string();
+ break;
+ }
+ case 4: {
+ message.verb = reader.string();
+ break;
+ }
+ case 5: {
+ message.statusMessage = reader.string();
+ break;
+ }
+ case 6: {
+ message.requestedCancellation = reader.bool();
+ break;
+ }
+ case 7: {
+ message.apiVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.managedkafka.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @function verify
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.target != null && message.hasOwnProperty("target"))
+ if (!$util.isString(message.target))
+ return "target: string expected";
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ if (!$util.isString(message.verb))
+ return "verb: string expected";
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ if (typeof message.requestedCancellation !== "boolean")
+ return "requestedCancellation: boolean expected";
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ if (!$util.isString(message.apiVersion))
+ return "apiVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.managedkafka.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.managedkafka.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.managedkafka.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.OperationMetadata.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.managedkafka.v1.OperationMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.target != null)
+ message.target = String(object.target);
+ if (object.verb != null)
+ message.verb = String(object.verb);
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.requestedCancellation != null)
+ message.requestedCancellation = Boolean(object.requestedCancellation);
+ if (object.apiVersion != null)
+ message.apiVersion = String(object.apiVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.managedkafka.v1.OperationMetadata} message OperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.endTime = null;
+ object.target = "";
+ object.verb = "";
+ object.statusMessage = "";
+ object.requestedCancellation = false;
+ object.apiVersion = "";
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = message.target;
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ object.verb = message.verb;
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ object.requestedCancellation = message.requestedCancellation;
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = message.apiVersion;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.managedkafka.v1.OperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.managedkafka.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ return v1;
+ })();
+
+ return managedkafka;
+ })();
+
+ return cloud;
+ })();
+
+ google.api = (function() {
+
+ /**
+ * Namespace api.
+ * @memberof google
+ * @namespace
+ */
+ var api = {};
+
+ 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.CommonLanguageSettings = (function() {
+
+ /**
+ * Properties of a CommonLanguageSettings.
+ * @memberof google.api
+ * @interface ICommonLanguageSettings
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
+ * @property {Array.|null} [destinations] CommonLanguageSettings destinations
+ */
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @memberof google.api
+ * @classdesc Represents a CommonLanguageSettings.
+ * @implements ICommonLanguageSettings
+ * @constructor
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
+ */
+ function CommonLanguageSettings(properties) {
+ this.destinations = [];
+ 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]];
+ }
+
+ /**
+ * CommonLanguageSettings referenceDocsUri.
+ * @member {string} referenceDocsUri
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ */
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
+
+ /**
+ * CommonLanguageSettings destinations.
+ * @member {Array.} destinations
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ */
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
+ */
+ CommonLanguageSettings.create = function create(properties) {
+ return new CommonLanguageSettings(properties);
+ };
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLanguageSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
+ if (message.destinations != null && message.destinations.length) {
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
+ for (var i = 0; i < message.destinations.length; ++i)
+ writer.int32(message.destinations[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLanguageSettings.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.CommonLanguageSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.referenceDocsUri = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.destinations && message.destinations.length))
+ message.destinations = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.destinations.push(reader.int32());
+ } else
+ message.destinations.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @function verify
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CommonLanguageSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
+ if (!$util.isString(message.referenceDocsUri))
+ return "referenceDocsUri: string expected";
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
+ if (!Array.isArray(message.destinations))
+ return "destinations: array expected";
+ for (var i = 0; i < message.destinations.length; ++i)
+ switch (message.destinations[i]) {
+ default:
+ return "destinations: enum value[] expected";
+ case 0:
+ case 10:
+ case 20:
+ break;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ */
+ CommonLanguageSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CommonLanguageSettings)
+ return object;
+ var message = new $root.google.api.CommonLanguageSettings();
+ if (object.referenceDocsUri != null)
+ message.referenceDocsUri = String(object.referenceDocsUri);
+ if (object.destinations) {
+ if (!Array.isArray(object.destinations))
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
+ message.destinations = [];
+ for (var i = 0; i < object.destinations.length; ++i)
+ switch (object.destinations[i]) {
+ default:
+ if (typeof object.destinations[i] === "number") {
+ message.destinations[i] = object.destinations[i];
+ break;
+ }
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
+ case 0:
+ message.destinations[i] = 0;
+ break;
+ case "GITHUB":
+ case 10:
+ message.destinations[i] = 10;
+ break;
+ case "PACKAGE_MANAGER":
+ case 20:
+ message.destinations[i] = 20;
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CommonLanguageSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.destinations = [];
+ if (options.defaults)
+ object.referenceDocsUri = "";
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
+ object.referenceDocsUri = message.referenceDocsUri;
+ if (message.destinations && message.destinations.length) {
+ object.destinations = [];
+ for (var j = 0; j < message.destinations.length; ++j)
+ object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @function getTypeUrl
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
+ };
+
+ return CommonLanguageSettings;
+ })();
+
+ api.ClientLibrarySettings = (function() {
+
+ /**
+ * Properties of a ClientLibrarySettings.
+ * @memberof google.api
+ * @interface IClientLibrarySettings
+ * @property {string|null} [version] ClientLibrarySettings version
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
+ */
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @memberof google.api
+ * @classdesc Represents a ClientLibrarySettings.
+ * @implements IClientLibrarySettings
+ * @constructor
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
+ */
+ function ClientLibrarySettings(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]];
+ }
+
+ /**
+ * ClientLibrarySettings version.
+ * @member {string} version
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.version = "";
+
+ /**
+ * ClientLibrarySettings launchStage.
+ * @member {google.api.LaunchStage} launchStage
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.launchStage = 0;
+
+ /**
+ * ClientLibrarySettings restNumericEnums.
+ * @member {boolean} restNumericEnums
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.restNumericEnums = false;
+
+ /**
+ * ClientLibrarySettings javaSettings.
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.javaSettings = null;
+
+ /**
+ * ClientLibrarySettings cppSettings.
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.cppSettings = null;
+
+ /**
+ * ClientLibrarySettings phpSettings.
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.phpSettings = null;
+
+ /**
+ * ClientLibrarySettings pythonSettings.
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.pythonSettings = null;
+
+ /**
+ * ClientLibrarySettings nodeSettings.
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.nodeSettings = null;
+
+ /**
+ * ClientLibrarySettings dotnetSettings.
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.dotnetSettings = null;
+
+ /**
+ * ClientLibrarySettings rubySettings.
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.rubySettings = null;
+
+ /**
+ * ClientLibrarySettings goSettings.
+ * @member {google.api.IGoSettings|null|undefined} goSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.goSettings = null;
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
+ */
+ ClientLibrarySettings.create = function create(properties) {
+ return new ClientLibrarySettings(properties);
+ };
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClientLibrarySettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClientLibrarySettings.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.ClientLibrarySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.launchStage = reader.int32();
+ break;
+ }
+ case 3: {
+ message.restNumericEnums = reader.bool();
+ break;
+ }
+ case 21: {
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 22: {
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 23: {
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 24: {
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 25: {
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 26: {
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 27: {
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 28: {
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @function verify
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ClientLibrarySettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
+ switch (message.launchStage) {
+ default:
+ return "launchStage: enum value expected";
+ case 0:
+ case 6:
+ case 7:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
+ if (typeof message.restNumericEnums !== "boolean")
+ return "restNumericEnums: boolean expected";
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
+ if (error)
+ return "javaSettings." + error;
+ }
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
+ if (error)
+ return "cppSettings." + error;
+ }
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
+ if (error)
+ return "phpSettings." + error;
+ }
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
+ if (error)
+ return "pythonSettings." + error;
+ }
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
+ if (error)
+ return "nodeSettings." + error;
+ }
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
+ if (error)
+ return "dotnetSettings." + error;
+ }
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
+ if (error)
+ return "rubySettings." + error;
+ }
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
+ if (error)
+ return "goSettings." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ */
+ ClientLibrarySettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ClientLibrarySettings)
+ return object;
+ var message = new $root.google.api.ClientLibrarySettings();
+ if (object.version != null)
+ message.version = String(object.version);
+ switch (object.launchStage) {
+ default:
+ if (typeof object.launchStage === "number") {
+ message.launchStage = object.launchStage;
+ break;
+ }
+ break;
+ case "LAUNCH_STAGE_UNSPECIFIED":
+ case 0:
+ message.launchStage = 0;
+ break;
+ case "UNIMPLEMENTED":
+ case 6:
+ message.launchStage = 6;
+ break;
+ case "PRELAUNCH":
+ case 7:
+ message.launchStage = 7;
+ break;
+ case "EARLY_ACCESS":
+ case 1:
+ message.launchStage = 1;
+ break;
+ case "ALPHA":
+ case 2:
+ message.launchStage = 2;
+ break;
+ case "BETA":
+ case 3:
+ message.launchStage = 3;
+ break;
+ case "GA":
+ case 4:
+ message.launchStage = 4;
+ break;
+ case "DEPRECATED":
+ case 5:
+ message.launchStage = 5;
+ break;
+ }
+ if (object.restNumericEnums != null)
+ message.restNumericEnums = Boolean(object.restNumericEnums);
+ if (object.javaSettings != null) {
+ if (typeof object.javaSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
+ }
+ if (object.cppSettings != null) {
+ if (typeof object.cppSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
+ }
+ if (object.phpSettings != null) {
+ if (typeof object.phpSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
+ }
+ if (object.pythonSettings != null) {
+ if (typeof object.pythonSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
+ }
+ if (object.nodeSettings != null) {
+ if (typeof object.nodeSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
+ }
+ if (object.dotnetSettings != null) {
+ if (typeof object.dotnetSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
+ }
+ if (object.rubySettings != null) {
+ if (typeof object.rubySettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
+ }
+ if (object.goSettings != null) {
+ if (typeof object.goSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ClientLibrarySettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
+ object.restNumericEnums = false;
+ object.javaSettings = null;
+ object.cppSettings = null;
+ object.phpSettings = null;
+ object.pythonSettings = null;
+ object.nodeSettings = null;
+ object.dotnetSettings = null;
+ object.rubySettings = null;
+ object.goSettings = null;
+ }
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
+ object.restNumericEnums = message.restNumericEnums;
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
+ return object;
+ };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @function toJSON
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @function getTypeUrl
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
+ };
+
+ return ClientLibrarySettings;
+ })();
+
+ api.Publishing = (function() {
+
+ /**
+ * Properties of a Publishing.
+ * @memberof google.api
+ * @interface IPublishing
+ * @property {Array.|null} [methodSettings] Publishing methodSettings
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
+ * @property {string|null} [documentationUri] Publishing documentationUri
+ * @property {string|null} [apiShortName] Publishing apiShortName
+ * @property {string|null} [githubLabel] Publishing githubLabel
+ * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
+ * @property {Array.|null} [librarySettings] Publishing librarySettings
+ * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
+ */
+
+ /**
+ * Constructs a new Publishing.
+ * @memberof google.api
+ * @classdesc Represents a Publishing.
+ * @implements IPublishing
+ * @constructor
+ * @param {google.api.IPublishing=} [properties] Properties to set
+ */
+ function Publishing(properties) {
+ this.methodSettings = [];
+ this.codeownerGithubTeams = [];
+ this.librarySettings = [];
+ 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]];
+ }
+
+ /**
+ * Publishing methodSettings.
+ * @member {Array.} methodSettings
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.methodSettings = $util.emptyArray;
+
+ /**
+ * Publishing newIssueUri.
+ * @member {string} newIssueUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.newIssueUri = "";
+
+ /**
+ * Publishing documentationUri.
+ * @member {string} documentationUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.documentationUri = "";
+
+ /**
+ * Publishing apiShortName.
+ * @member {string} apiShortName
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.apiShortName = "";
+
+ /**
+ * Publishing githubLabel.
+ * @member {string} githubLabel
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.githubLabel = "";
+
+ /**
+ * Publishing codeownerGithubTeams.
+ * @member {Array.} codeownerGithubTeams
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
+
+ /**
+ * Publishing docTagPrefix.
+ * @member {string} docTagPrefix
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.docTagPrefix = "";
+
+ /**
+ * Publishing organization.
+ * @member {google.api.ClientLibraryOrganization} organization
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.organization = 0;
+
+ /**
+ * Publishing librarySettings.
+ * @member {Array.} librarySettings
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.librarySettings = $util.emptyArray;
+
+ /**
+ * Publishing protoReferenceDocumentationUri.
+ * @member {string} protoReferenceDocumentationUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.protoReferenceDocumentationUri = "";
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @function create
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing=} [properties] Properties to set
+ * @returns {google.api.Publishing} Publishing instance
+ */
+ Publishing.create = function create(properties) {
+ return new Publishing(properties);
+ };
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Publishing.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.methodSettings != null && message.methodSettings.length)
+ for (var i = 0; i < message.methodSettings.length; ++i)
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
+ if (message.librarySettings != null && message.librarySettings.length)
+ for (var i = 0; i < message.librarySettings.length; ++i)
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
+ if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
+ writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Publishing
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Publishing} Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Publishing.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.Publishing();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ if (!(message.methodSettings && message.methodSettings.length))
+ message.methodSettings = [];
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
+ break;
+ }
+ case 101: {
+ message.newIssueUri = reader.string();
+ break;
+ }
+ case 102: {
+ message.documentationUri = reader.string();
+ break;
+ }
+ case 103: {
+ message.apiShortName = reader.string();
+ break;
+ }
+ case 104: {
+ message.githubLabel = reader.string();
+ break;
+ }
+ case 105: {
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
+ message.codeownerGithubTeams = [];
+ message.codeownerGithubTeams.push(reader.string());
+ break;
+ }
+ case 106: {
+ message.docTagPrefix = reader.string();
+ break;
+ }
+ case 107: {
+ message.organization = reader.int32();
+ break;
+ }
+ case 109: {
+ if (!(message.librarySettings && message.librarySettings.length))
+ message.librarySettings = [];
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
+ break;
+ }
+ case 110: {
+ message.protoReferenceDocumentationUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Publishing
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Publishing} Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Publishing message.
+ * @function verify
+ * @memberof google.api.Publishing
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Publishing.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
+ if (!Array.isArray(message.methodSettings))
+ return "methodSettings: array expected";
+ for (var i = 0; i < message.methodSettings.length; ++i) {
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
+ if (error)
+ return "methodSettings." + error;
+ }
+ }
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
+ if (!$util.isString(message.newIssueUri))
+ return "newIssueUri: string expected";
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ if (!$util.isString(message.documentationUri))
+ return "documentationUri: string expected";
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
+ if (!$util.isString(message.apiShortName))
+ return "apiShortName: string expected";
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
+ if (!$util.isString(message.githubLabel))
+ return "githubLabel: string expected";
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
+ if (!Array.isArray(message.codeownerGithubTeams))
+ return "codeownerGithubTeams: array expected";
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
+ if (!$util.isString(message.codeownerGithubTeams[i]))
+ return "codeownerGithubTeams: string[] expected";
+ }
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
+ if (!$util.isString(message.docTagPrefix))
+ return "docTagPrefix: string expected";
+ if (message.organization != null && message.hasOwnProperty("organization"))
+ switch (message.organization) {
+ default:
+ return "organization: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
+ if (!Array.isArray(message.librarySettings))
+ return "librarySettings: array expected";
+ for (var i = 0; i < message.librarySettings.length; ++i) {
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
+ if (error)
+ return "librarySettings." + error;
+ }
+ }
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
+ if (!$util.isString(message.protoReferenceDocumentationUri))
+ return "protoReferenceDocumentationUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Publishing
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Publishing} Publishing
+ */
+ Publishing.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Publishing)
+ return object;
+ var message = new $root.google.api.Publishing();
+ if (object.methodSettings) {
+ if (!Array.isArray(object.methodSettings))
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
+ message.methodSettings = [];
+ for (var i = 0; i < object.methodSettings.length; ++i) {
+ if (typeof object.methodSettings[i] !== "object")
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
+ }
+ }
+ if (object.newIssueUri != null)
+ message.newIssueUri = String(object.newIssueUri);
+ if (object.documentationUri != null)
+ message.documentationUri = String(object.documentationUri);
+ if (object.apiShortName != null)
+ message.apiShortName = String(object.apiShortName);
+ if (object.githubLabel != null)
+ message.githubLabel = String(object.githubLabel);
+ if (object.codeownerGithubTeams) {
+ if (!Array.isArray(object.codeownerGithubTeams))
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
+ message.codeownerGithubTeams = [];
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
+ }
+ if (object.docTagPrefix != null)
+ message.docTagPrefix = String(object.docTagPrefix);
+ switch (object.organization) {
+ default:
+ if (typeof object.organization === "number") {
+ message.organization = object.organization;
+ break;
+ }
+ break;
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
+ case 0:
+ message.organization = 0;
+ break;
+ case "CLOUD":
+ case 1:
+ message.organization = 1;
+ break;
+ case "ADS":
+ case 2:
+ message.organization = 2;
+ break;
+ case "PHOTOS":
+ case 3:
+ message.organization = 3;
+ break;
+ case "STREET_VIEW":
+ case 4:
+ message.organization = 4;
+ break;
+ case "SHOPPING":
+ case 5:
+ message.organization = 5;
+ break;
+ case "GEO":
+ case 6:
+ message.organization = 6;
+ break;
+ case "GENERATIVE_AI":
+ case 7:
+ message.organization = 7;
+ break;
+ }
+ if (object.librarySettings) {
+ if (!Array.isArray(object.librarySettings))
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
+ message.librarySettings = [];
+ for (var i = 0; i < object.librarySettings.length; ++i) {
+ if (typeof object.librarySettings[i] !== "object")
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
+ }
+ }
+ if (object.protoReferenceDocumentationUri != null)
+ message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.Publishing} message Publishing
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Publishing.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.methodSettings = [];
+ object.codeownerGithubTeams = [];
+ object.librarySettings = [];
+ }
+ if (options.defaults) {
+ object.newIssueUri = "";
+ object.documentationUri = "";
+ object.apiShortName = "";
+ object.githubLabel = "";
+ object.docTagPrefix = "";
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
+ object.protoReferenceDocumentationUri = "";
+ }
+ if (message.methodSettings && message.methodSettings.length) {
+ object.methodSettings = [];
+ for (var j = 0; j < message.methodSettings.length; ++j)
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
+ }
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
+ object.newIssueUri = message.newIssueUri;
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ object.documentationUri = message.documentationUri;
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
+ object.apiShortName = message.apiShortName;
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
+ object.githubLabel = message.githubLabel;
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
+ object.codeownerGithubTeams = [];
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
+ }
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
+ object.docTagPrefix = message.docTagPrefix;
+ if (message.organization != null && message.hasOwnProperty("organization"))
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
+ if (message.librarySettings && message.librarySettings.length) {
+ object.librarySettings = [];
+ for (var j = 0; j < message.librarySettings.length; ++j)
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
+ }
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
+ object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
+ return object;
+ };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @function toJSON
+ * @memberof google.api.Publishing
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Publishing.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Publishing
+ * @function getTypeUrl
+ * @memberof google.api.Publishing
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Publishing";
+ };
+
+ return Publishing;
+ })();
+
+ api.JavaSettings = (function() {
+
+ /**
+ * Properties of a JavaSettings.
+ * @memberof google.api
+ * @interface IJavaSettings
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
+ * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
+ */
+
+ /**
+ * Constructs a new JavaSettings.
+ * @memberof google.api
+ * @classdesc Represents a JavaSettings.
+ * @implements IJavaSettings
+ * @constructor
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
+ */
+ function JavaSettings(properties) {
+ this.serviceClassNames = {};
+ 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]];
+ }
+
+ /**
+ * JavaSettings libraryPackage.
+ * @member {string} libraryPackage
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.libraryPackage = "";
+
+ /**
+ * JavaSettings serviceClassNames.
+ * @member {Object.} serviceClassNames
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
+
+ /**
+ * JavaSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.common = null;
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
+ * @returns {google.api.JavaSettings} JavaSettings instance
+ */
+ JavaSettings.create = function create(properties) {
+ return new JavaSettings(properties);
+ };
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JavaSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.JavaSettings} JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JavaSettings.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.JavaSettings(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.libraryPackage = reader.string();
+ break;
+ }
+ case 2: {
+ if (message.serviceClassNames === $util.emptyObject)
+ message.serviceClassNames = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.serviceClassNames[key] = value;
+ break;
+ }
+ case 3: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.JavaSettings} JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a JavaSettings message.
+ * @function verify
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ JavaSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
+ if (!$util.isString(message.libraryPackage))
+ return "libraryPackage: string expected";
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
+ if (!$util.isObject(message.serviceClassNames))
+ return "serviceClassNames: object expected";
+ var key = Object.keys(message.serviceClassNames);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.serviceClassNames[key[i]]))
+ return "serviceClassNames: string{k:string} expected";
+ }
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.JavaSettings} JavaSettings
+ */
+ JavaSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.JavaSettings)
+ return object;
+ var message = new $root.google.api.JavaSettings();
+ if (object.libraryPackage != null)
+ message.libraryPackage = String(object.libraryPackage);
+ if (object.serviceClassNames) {
+ if (typeof object.serviceClassNames !== "object")
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
+ message.serviceClassNames = {};
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
+ }
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.JavaSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.JavaSettings} message JavaSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ JavaSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.serviceClassNames = {};
+ if (options.defaults) {
+ object.libraryPackage = "";
+ object.common = null;
+ }
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
+ object.libraryPackage = message.libraryPackage;
+ var keys2;
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
+ object.serviceClassNames = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
+ }
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.JavaSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ JavaSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @function getTypeUrl
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.JavaSettings";
+ };
+
+ return JavaSettings;
+ })();
+
+ api.CppSettings = (function() {
+
+ /**
+ * Properties of a CppSettings.
+ * @memberof google.api
+ * @interface ICppSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
+ */
+
+ /**
+ * Constructs a new CppSettings.
+ * @memberof google.api
+ * @classdesc Represents a CppSettings.
+ * @implements ICppSettings
+ * @constructor
+ * @param {google.api.ICppSettings=} [properties] Properties to set
+ */
+ function CppSettings(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]];
+ }
+
+ /**
+ * CppSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.CppSettings
+ * @instance
+ */
+ CppSettings.prototype.common = null;
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings=} [properties] Properties to set
+ * @returns {google.api.CppSettings} CppSettings instance
+ */
+ CppSettings.create = function create(properties) {
+ return new CppSettings(properties);
+ };
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CppSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CppSettings} CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CppSettings.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.CppSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CppSettings} CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CppSettings message.
+ * @function verify
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CppSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CppSettings} CppSettings
+ */
+ CppSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CppSettings)
+ return object;
+ var message = new $root.google.api.CppSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.CppSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.CppSettings} message CppSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CppSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.CppSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CppSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @function getTypeUrl
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CppSettings";
+ };
+
+ return CppSettings;
+ })();
+
+ api.PhpSettings = (function() {
+
+ /**
+ * Properties of a PhpSettings.
+ * @memberof google.api
+ * @interface IPhpSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
+ */
+
+ /**
+ * Constructs a new PhpSettings.
+ * @memberof google.api
+ * @classdesc Represents a PhpSettings.
+ * @implements IPhpSettings
+ * @constructor
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
+ */
+ function PhpSettings(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]];
+ }
+
+ /**
+ * PhpSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.PhpSettings
+ * @instance
+ */
+ PhpSettings.prototype.common = null;
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
+ * @returns {google.api.PhpSettings} PhpSettings instance
+ */
+ PhpSettings.create = function create(properties) {
+ return new PhpSettings(properties);
+ };
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PhpSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.PhpSettings} PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PhpSettings.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.PhpSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.PhpSettings} PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PhpSettings message.
+ * @function verify
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PhpSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.PhpSettings} PhpSettings
+ */
+ PhpSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.PhpSettings)
+ return object;
+ var message = new $root.google.api.PhpSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.PhpSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.PhpSettings} message PhpSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PhpSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.PhpSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PhpSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @function getTypeUrl
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.PhpSettings";
+ };
+
+ return PhpSettings;
+ })();
+
+ api.PythonSettings = (function() {
+
+ /**
+ * Properties of a PythonSettings.
+ * @memberof google.api
+ * @interface IPythonSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
+ */
+
+ /**
+ * Constructs a new PythonSettings.
+ * @memberof google.api
+ * @classdesc Represents a PythonSettings.
+ * @implements IPythonSettings
+ * @constructor
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
+ */
+ function PythonSettings(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]];
+ }
+
+ /**
+ * PythonSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.PythonSettings
+ * @instance
+ */
+ PythonSettings.prototype.common = null;
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
+ * @returns {google.api.PythonSettings} PythonSettings instance
+ */
+ PythonSettings.create = function create(properties) {
+ return new PythonSettings(properties);
+ };
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PythonSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.PythonSettings} PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PythonSettings.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.PythonSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.PythonSettings} PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PythonSettings message.
+ * @function verify
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PythonSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.PythonSettings} PythonSettings
+ */
+ PythonSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.PythonSettings)
+ return object;
+ var message = new $root.google.api.PythonSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.PythonSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.PythonSettings} message PythonSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PythonSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.PythonSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PythonSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @function getTypeUrl
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.PythonSettings";
+ };
+
+ return PythonSettings;
+ })();
+
+ api.NodeSettings = (function() {
+
+ /**
+ * Properties of a NodeSettings.
+ * @memberof google.api
+ * @interface INodeSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
+ */
+
+ /**
+ * Constructs a new NodeSettings.
+ * @memberof google.api
+ * @classdesc Represents a NodeSettings.
+ * @implements INodeSettings
+ * @constructor
+ * @param {google.api.INodeSettings=} [properties] Properties to set
+ */
+ function NodeSettings(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]];
+ }
+
+ /**
+ * NodeSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.NodeSettings
+ * @instance
+ */
+ NodeSettings.prototype.common = null;
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings=} [properties] Properties to set
+ * @returns {google.api.NodeSettings} NodeSettings instance
+ */
+ NodeSettings.create = function create(properties) {
+ return new NodeSettings(properties);
+ };
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.NodeSettings} NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeSettings.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.NodeSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.NodeSettings} NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeSettings message.
+ * @function verify
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.NodeSettings} NodeSettings
+ */
+ NodeSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.NodeSettings)
+ return object;
+ var message = new $root.google.api.NodeSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.NodeSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.NodeSettings} message NodeSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.NodeSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @function getTypeUrl
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.NodeSettings";
+ };
+
+ return NodeSettings;
+ })();
+
+ api.DotnetSettings = (function() {
+
+ /**
+ * Properties of a DotnetSettings.
+ * @memberof google.api
+ * @interface IDotnetSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
+ * @property {Object.|null} [renamedServices] DotnetSettings renamedServices
+ * @property {Object.|null} [renamedResources] DotnetSettings renamedResources
+ * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources
+ * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases
+ * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures
+ */
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @memberof google.api
+ * @classdesc Represents a DotnetSettings.
+ * @implements IDotnetSettings
+ * @constructor
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
+ */
+ function DotnetSettings(properties) {
+ this.renamedServices = {};
+ this.renamedResources = {};
+ this.ignoredResources = [];
+ this.forcedNamespaceAliases = [];
+ this.handwrittenSignatures = [];
+ 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]];
+ }
+
+ /**
+ * DotnetSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.common = null;
+
+ /**
+ * DotnetSettings renamedServices.
+ * @member {Object.} renamedServices
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.renamedServices = $util.emptyObject;
+
+ /**
+ * DotnetSettings renamedResources.
+ * @member {Object.} renamedResources
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.renamedResources = $util.emptyObject;
+
+ /**
+ * DotnetSettings ignoredResources.
+ * @member {Array.} ignoredResources
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.ignoredResources = $util.emptyArray;
+
+ /**
+ * DotnetSettings forcedNamespaceAliases.
+ * @member {Array.} forcedNamespaceAliases
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray;
+
+ /**
+ * DotnetSettings handwrittenSignatures.
+ * @member {Array.} handwrittenSignatures
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray;
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
+ */
+ DotnetSettings.create = function create(properties) {
+ return new DotnetSettings(properties);
+ };
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DotnetSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim();
+ if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources"))
+ for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim();
+ if (message.ignoredResources != null && message.ignoredResources.length)
+ for (var i = 0; i < message.ignoredResources.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]);
+ if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length)
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]);
+ if (message.handwrittenSignatures != null && message.handwrittenSignatures.length)
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DotnetSettings.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.DotnetSettings(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ if (message.renamedServices === $util.emptyObject)
+ message.renamedServices = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.renamedServices[key] = value;
+ break;
+ }
+ case 3: {
+ if (message.renamedResources === $util.emptyObject)
+ message.renamedResources = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.renamedResources[key] = value;
+ break;
+ }
+ case 4: {
+ if (!(message.ignoredResources && message.ignoredResources.length))
+ message.ignoredResources = [];
+ message.ignoredResources.push(reader.string());
+ break;
+ }
+ case 5: {
+ if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length))
+ message.forcedNamespaceAliases = [];
+ message.forcedNamespaceAliases.push(reader.string());
+ break;
+ }
+ case 6: {
+ if (!(message.handwrittenSignatures && message.handwrittenSignatures.length))
+ message.handwrittenSignatures = [];
+ message.handwrittenSignatures.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @function verify
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DotnetSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
+ if (!$util.isObject(message.renamedServices))
+ return "renamedServices: object expected";
+ var key = Object.keys(message.renamedServices);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.renamedServices[key[i]]))
+ return "renamedServices: string{k:string} expected";
+ }
+ if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) {
+ if (!$util.isObject(message.renamedResources))
+ return "renamedResources: object expected";
+ var key = Object.keys(message.renamedResources);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.renamedResources[key[i]]))
+ return "renamedResources: string{k:string} expected";
+ }
+ if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) {
+ if (!Array.isArray(message.ignoredResources))
+ return "ignoredResources: array expected";
+ for (var i = 0; i < message.ignoredResources.length; ++i)
+ if (!$util.isString(message.ignoredResources[i]))
+ return "ignoredResources: string[] expected";
+ }
+ if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) {
+ if (!Array.isArray(message.forcedNamespaceAliases))
+ return "forcedNamespaceAliases: array expected";
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
+ if (!$util.isString(message.forcedNamespaceAliases[i]))
+ return "forcedNamespaceAliases: string[] expected";
+ }
+ if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) {
+ if (!Array.isArray(message.handwrittenSignatures))
+ return "handwrittenSignatures: array expected";
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
+ if (!$util.isString(message.handwrittenSignatures[i]))
+ return "handwrittenSignatures: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ */
+ DotnetSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.DotnetSettings)
+ return object;
+ var message = new $root.google.api.DotnetSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ if (object.renamedServices) {
+ if (typeof object.renamedServices !== "object")
+ throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");
+ message.renamedServices = {};
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
+ }
+ if (object.renamedResources) {
+ if (typeof object.renamedResources !== "object")
+ throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");
+ message.renamedResources = {};
+ for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i)
+ message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]);
+ }
+ if (object.ignoredResources) {
+ if (!Array.isArray(object.ignoredResources))
+ throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");
+ message.ignoredResources = [];
+ for (var i = 0; i < object.ignoredResources.length; ++i)
+ message.ignoredResources[i] = String(object.ignoredResources[i]);
+ }
+ if (object.forcedNamespaceAliases) {
+ if (!Array.isArray(object.forcedNamespaceAliases))
+ throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");
+ message.forcedNamespaceAliases = [];
+ for (var i = 0; i < object.forcedNamespaceAliases.length; ++i)
+ message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]);
+ }
+ if (object.handwrittenSignatures) {
+ if (!Array.isArray(object.handwrittenSignatures))
+ throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");
+ message.handwrittenSignatures = [];
+ for (var i = 0; i < object.handwrittenSignatures.length; ++i)
+ message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.DotnetSettings} message DotnetSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DotnetSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.ignoredResources = [];
+ object.forcedNamespaceAliases = [];
+ object.handwrittenSignatures = [];
+ }
+ if (options.objects || options.defaults) {
+ object.renamedServices = {};
+ object.renamedResources = {};
+ }
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ var keys2;
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
+ object.renamedServices = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
+ }
+ if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) {
+ object.renamedResources = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]];
+ }
+ if (message.ignoredResources && message.ignoredResources.length) {
+ object.ignoredResources = [];
+ for (var j = 0; j < message.ignoredResources.length; ++j)
+ object.ignoredResources[j] = message.ignoredResources[j];
+ }
+ if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) {
+ object.forcedNamespaceAliases = [];
+ for (var j = 0; j < message.forcedNamespaceAliases.length; ++j)
+ object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j];
+ }
+ if (message.handwrittenSignatures && message.handwrittenSignatures.length) {
+ object.handwrittenSignatures = [];
+ for (var j = 0; j < message.handwrittenSignatures.length; ++j)
+ object.handwrittenSignatures[j] = message.handwrittenSignatures[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.DotnetSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DotnetSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @function getTypeUrl
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.DotnetSettings";
+ };
+
+ return DotnetSettings;
+ })();
+
+ api.RubySettings = (function() {
+
+ /**
+ * Properties of a RubySettings.
+ * @memberof google.api
+ * @interface IRubySettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
+ */
+
+ /**
+ * Constructs a new RubySettings.
+ * @memberof google.api
+ * @classdesc Represents a RubySettings.
+ * @implements IRubySettings
+ * @constructor
+ * @param {google.api.IRubySettings=} [properties] Properties to set
+ */
+ function RubySettings(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]];
+ }
+
+ /**
+ * RubySettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.RubySettings
+ * @instance
+ */
+ RubySettings.prototype.common = null;
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings=} [properties] Properties to set
+ * @returns {google.api.RubySettings} RubySettings instance
+ */
+ RubySettings.create = function create(properties) {
+ return new RubySettings(properties);
+ };
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RubySettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.RubySettings} RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RubySettings.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.RubySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.RubySettings} RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RubySettings message.
+ * @function verify
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RubySettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.RubySettings} RubySettings
+ */
+ RubySettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.RubySettings)
+ return object;
+ var message = new $root.google.api.RubySettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.RubySettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.RubySettings} message RubySettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RubySettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @function toJSON
+ * @memberof google.api.RubySettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RubySettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @function getTypeUrl
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.RubySettings";
+ };
+
+ return RubySettings;
+ })();
+
+ api.GoSettings = (function() {
+
+ /**
+ * Properties of a GoSettings.
+ * @memberof google.api
+ * @interface IGoSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
+ */
+
+ /**
+ * Constructs a new GoSettings.
+ * @memberof google.api
+ * @classdesc Represents a GoSettings.
+ * @implements IGoSettings
+ * @constructor
+ * @param {google.api.IGoSettings=} [properties] Properties to set
+ */
+ function GoSettings(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]];
+ }
+
+ /**
+ * GoSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.GoSettings
+ * @instance
+ */
+ GoSettings.prototype.common = null;
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings=} [properties] Properties to set
+ * @returns {google.api.GoSettings} GoSettings instance
+ */
+ GoSettings.create = function create(properties) {
+ return new GoSettings(properties);
+ };
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.GoSettings} GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoSettings.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.GoSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.GoSettings} GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GoSettings message.
+ * @function verify
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GoSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.GoSettings} GoSettings
+ */
+ GoSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.GoSettings)
+ return object;
+ var message = new $root.google.api.GoSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.GoSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.GoSettings} message GoSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GoSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.GoSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GoSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @function getTypeUrl
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.GoSettings";
+ };
+
+ return GoSettings;
+ })();
+
+ api.MethodSettings = (function() {
+
+ /**
+ * Properties of a MethodSettings.
+ * @memberof google.api
+ * @interface IMethodSettings
+ * @property {string|null} [selector] MethodSettings selector
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
+ * @property {Array.|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
+ */
+
+ /**
+ * Constructs a new MethodSettings.
+ * @memberof google.api
+ * @classdesc Represents a MethodSettings.
+ * @implements IMethodSettings
+ * @constructor
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
+ */
+ function MethodSettings(properties) {
+ this.autoPopulatedFields = [];
+ 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]];
+ }
+
+ /**
+ * MethodSettings selector.
+ * @member {string} selector
+ * @memberof google.api.MethodSettings
+ * @instance
+ */
+ MethodSettings.prototype.selector = "";
+
+ /**
+ * MethodSettings longRunning.
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
+ * @memberof google.api.MethodSettings
+ * @instance
+ */
+ MethodSettings.prototype.longRunning = null;
+
+ /**
+ * MethodSettings autoPopulatedFields.
+ * @member {Array.} autoPopulatedFields
+ * @memberof google.api.MethodSettings
+ * @instance
+ */
+ MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
+ * @returns {google.api.MethodSettings} MethodSettings instance
+ */
+ MethodSettings.create = function create(properties) {
+ return new MethodSettings(properties);
+ };
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MethodSettings.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.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.MethodSettings} MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MethodSettings.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.MethodSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
+ message.autoPopulatedFields = [];
+ message.autoPopulatedFields.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.MethodSettings} MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MethodSettings message.
+ * @function verify
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MethodSettings.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.longRunning != null && message.hasOwnProperty("longRunning")) {
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
+ if (error)
+ return "longRunning." + error;
+ }
+ if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) {
+ if (!Array.isArray(message.autoPopulatedFields))
+ return "autoPopulatedFields: array expected";
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
+ if (!$util.isString(message.autoPopulatedFields[i]))
+ return "autoPopulatedFields: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.MethodSettings} MethodSettings
+ */
+ MethodSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.MethodSettings)
+ return object;
+ var message = new $root.google.api.MethodSettings();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.longRunning != null) {
+ if (typeof object.longRunning !== "object")
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
+ }
+ if (object.autoPopulatedFields) {
+ if (!Array.isArray(object.autoPopulatedFields))
+ throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
+ message.autoPopulatedFields = [];
+ for (var i = 0; i < object.autoPopulatedFields.length; ++i)
+ message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.MethodSettings} message MethodSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MethodSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.autoPopulatedFields = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.longRunning = null;
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
+ if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
+ object.autoPopulatedFields = [];
+ for (var j = 0; j < message.autoPopulatedFields.length; ++j)
+ object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.MethodSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MethodSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @function getTypeUrl
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.MethodSettings";
+ };
+
+ MethodSettings.LongRunning = (function() {
+
+ /**
+ * Properties of a LongRunning.
+ * @memberof google.api.MethodSettings
+ * @interface ILongRunning
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
+ */
+
+ /**
+ * Constructs a new LongRunning.
+ * @memberof google.api.MethodSettings
+ * @classdesc Represents a LongRunning.
+ * @implements ILongRunning
+ * @constructor
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
+ */
+ function LongRunning(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]];
+ }
+
+ /**
+ * LongRunning initialPollDelay.
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.initialPollDelay = null;
+
+ /**
+ * LongRunning pollDelayMultiplier.
+ * @member {number} pollDelayMultiplier
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.pollDelayMultiplier = 0;
+
+ /**
+ * LongRunning maxPollDelay.
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.maxPollDelay = null;
+
+ /**
+ * LongRunning totalPollTimeout.
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.totalPollTimeout = null;
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @function create
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
+ */
+ LongRunning.create = function create(properties) {
+ return new LongRunning(properties);
+ };
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LongRunning.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LongRunning.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.MethodSettings.LongRunning();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.pollDelayMultiplier = reader.float();
+ break;
+ }
+ case 3: {
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LongRunning message.
+ * @function verify
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LongRunning.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
+ if (error)
+ return "initialPollDelay." + error;
+ }
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
+ if (typeof message.pollDelayMultiplier !== "number")
+ return "pollDelayMultiplier: number expected";
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
+ if (error)
+ return "maxPollDelay." + error;
+ }
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
+ if (error)
+ return "totalPollTimeout." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {Object.