diff --git a/packages/google-cloud-connectors/.OwlBot.yaml b/packages/google-cloud-connectors/.OwlBot.yaml
new file mode 100644
index 00000000000..2f09abb76d0
--- /dev/null
+++ b/packages/google-cloud-connectors/.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/connectors/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-connectors/$1
+
+api-name: connectors
\ No newline at end of file
diff --git a/packages/google-cloud-connectors/.eslintignore b/packages/google-cloud-connectors/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-connectors/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-connectors/.eslintrc.json b/packages/google-cloud-connectors/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-connectors/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-connectors/.gitattributes b/packages/google-cloud-connectors/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-connectors/.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-connectors/.gitignore b/packages/google-cloud-connectors/.gitignore
new file mode 100644
index 00000000000..d4f03a0df2e
--- /dev/null
+++ b/packages/google-cloud-connectors/.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-connectors/.jsdoc.js b/packages/google-cloud-connectors/.jsdoc.js
new file mode 100644
index 00000000000..b9105690d39
--- /dev/null
+++ b/packages/google-cloud-connectors/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2023 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/connectors',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-connectors/.mocharc.js b/packages/google-cloud-connectors/.mocharc.js
new file mode 100644
index 00000000000..49e7e228701
--- /dev/null
+++ b/packages/google-cloud-connectors/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-connectors/.nycrc b/packages/google-cloud-connectors/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-connectors/.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-connectors/.prettierignore b/packages/google-cloud-connectors/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-connectors/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-connectors/.prettierrc.js b/packages/google-cloud-connectors/.prettierrc.js
new file mode 100644
index 00000000000..1e6cec783e4
--- /dev/null
+++ b/packages/google-cloud-connectors/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-connectors/.repo-metadata.json b/packages/google-cloud-connectors/.repo-metadata.json
new file mode 100644
index 00000000000..3436f6bbe66
--- /dev/null
+++ b/packages/google-cloud-connectors/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "connectors",
+ "name_pretty": "Connectors API",
+ "product_documentation": "",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/connectors/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/connectors",
+ "api_id": "connectors.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO",
+ "api_shortname": "connectors"
+}
+
diff --git a/packages/google-cloud-connectors/CODE_OF_CONDUCT.md b/packages/google-cloud-connectors/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-connectors/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-connectors/CONTRIBUTING.md b/packages/google-cloud-connectors/CONTRIBUTING.md
new file mode 100644
index 00000000000..c9b184fabcc
--- /dev/null
+++ b/packages/google-cloud-connectors/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 Connectors 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=connectors.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-connectors/LICENSE b/packages/google-cloud-connectors/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-connectors/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-connectors/README.md b/packages/google-cloud-connectors/README.md
new file mode 100644
index 00000000000..8a67d32d1e8
--- /dev/null
+++ b/packages/google-cloud-connectors/README.md
@@ -0,0 +1,210 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Connectors API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-connectors)
+
+[![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/connectors.svg)](https://www.npmjs.org/package/@google-cloud/connectors)
+
+
+
+
+Connectors 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-connectors/CHANGELOG.md).
+
+* [Connectors API Node.js Client API Reference][client-docs]
+
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-connectors](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-connectors)
+
+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 Connectors 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/connectors
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * This snippet has been automatically generated and should be regarded as a code template only.
+ * It will require modifications to work.
+ * It may require correct/in-range values for request initialization.
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+/**
+ * Required. Parent resource of the Connection, of the form:
+ * `projects/* /locations/*`
+ */
+// const parent = 'abc123'
+/**
+ * Page size.
+ */
+// const pageSize = 1234
+/**
+ * Page token.
+ */
+// const pageToken = 'abc123'
+/**
+ * Filter.
+ */
+// const filter = 'abc123'
+/**
+ * Order by parameters.
+ */
+// const orderBy = 'abc123'
+/**
+ * Specifies which fields of the Connection are returned in the response.
+ * Defaults to `BASIC` view.
+ */
+// const view = {}
+
+// Imports the Connectors library
+const {ConnectorsClient} = require('@google-cloud/connectors').v1;
+
+// Instantiates a client
+const connectorsClient = new ConnectorsClient();
+
+async function callListConnections() {
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ const iterable = await connectorsClient.listConnectionsAsync(request);
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListConnections();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-connectors/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Connectors.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.create_connection.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-connectors/samples/generated/v1/connectors.create_connection.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.delete_connection.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-connectors/samples/generated/v1/connectors.delete_connection.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.get_connection.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-connectors/samples/generated/v1/connectors.get_connection.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.get_connection_schema_metadata | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.get_connection_schema_metadata.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-connectors/samples/generated/v1/connectors.get_connection_schema_metadata.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.get_connector | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.get_connector.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-connectors/samples/generated/v1/connectors.get_connector.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.get_connector_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.get_connector_version.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-connectors/samples/generated/v1/connectors.get_connector_version.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.get_global_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.get_global_settings.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-connectors/samples/generated/v1/connectors.get_global_settings.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.get_provider | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.get_provider.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-connectors/samples/generated/v1/connectors.get_provider.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.get_runtime_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.get_runtime_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-connectors/samples/generated/v1/connectors.get_runtime_config.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.list_connections.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-connectors/samples/generated/v1/connectors.list_connections.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.list_connector_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.list_connector_versions.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-connectors/samples/generated/v1/connectors.list_connector_versions.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.list_connectors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.list_connectors.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-connectors/samples/generated/v1/connectors.list_connectors.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.list_providers | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.list_providers.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-connectors/samples/generated/v1/connectors.list_providers.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.list_runtime_action_schemas | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.list_runtime_action_schemas.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-connectors/samples/generated/v1/connectors.list_runtime_action_schemas.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.list_runtime_entity_schemas | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.list_runtime_entity_schemas.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-connectors/samples/generated/v1/connectors.list_runtime_entity_schemas.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.refresh_connection_schema_metadata | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.refresh_connection_schema_metadata.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-connectors/samples/generated/v1/connectors.refresh_connection_schema_metadata.js,packages/google-cloud-connectors/samples/README.md) |
+| Connectors.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/samples/generated/v1/connectors.update_connection.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-connectors/samples/generated/v1/connectors.update_connection.js,packages/google-cloud-connectors/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-connectors/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-connectors/samples/quickstart.js,packages/google-cloud-connectors/samples/README.md) |
+
+
+
+The [Connectors 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/connectors@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/connectors/latest
+
+[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=connectors.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-connectors/package.json b/packages/google-cloud-connectors/package.json
new file mode 100644
index 00000000000..54cb642a299
--- /dev/null
+++ b/packages/google-cloud-connectors/package.json
@@ -0,0 +1,70 @@
+{
+ "name": "@google-cloud/connectors",
+ "version": "0.0.0",
+ "description": "Connectors API client for Node.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/googleapis/google-cloud-node.git",
+ "directory": "packages/google-cloud-connectors"
+ },
+ "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-connectors",
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google connectors",
+ "connectors",
+ "Connectors API"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "postpack": "minifyProtoJson",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^4.0.3"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^20.4.5",
+ "@types/sinon": "^10.0.0",
+ "c8": "^8.0.1",
+ "gapic-tools": "^0.1.8",
+ "gts": "^5.0.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^3.0.0",
+ "jsdoc-region-tag": "^3.0.0",
+ "linkinator": "4.1.2",
+ "long": "^5.2.3",
+ "mocha": "^9.2.2",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^15.0.0",
+ "typescript": "^5.1.6"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/authconfig.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/authconfig.proto
new file mode 100644
index 00000000000..d7ef19b4e7d
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/authconfig.proto
@@ -0,0 +1,145 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/cloud/connectors/v1/common.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "AuthConfigProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// AuthConfig defines details of a authentication type.
+message AuthConfig {
+ // Parameters to support Username and Password Authentication.
+ message UserPassword {
+ // Username.
+ string username = 1;
+
+ // Secret version reference containing the password.
+ Secret password = 2;
+ }
+
+ // Parameters to support JSON Web Token (JWT) Profile for Oauth 2.0
+ // Authorization Grant based authentication.
+ // See https://tools.ietf.org/html/rfc7523 for more details.
+ message Oauth2JwtBearer {
+ // JWT claims used for the jwt-bearer authorization grant.
+ message JwtClaims {
+ // Value for the "iss" claim.
+ string issuer = 1;
+
+ // Value for the "sub" claim.
+ string subject = 2;
+
+ // Value for the "aud" claim.
+ string audience = 3;
+ }
+
+ // Secret version reference containing a PKCS#8 PEM-encoded private
+ // key associated with the Client Certificate. This private key will be
+ // used to sign JWTs used for the jwt-bearer authorization grant.
+ // Specified in the form as: `projects/*/secrets/*/versions/*`.
+ Secret client_key = 1;
+
+ // JwtClaims providers fields to generate the token.
+ JwtClaims jwt_claims = 2;
+ }
+
+ // Parameters to support Oauth 2.0 Client Credentials Grant Authentication.
+ // See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
+ message Oauth2ClientCredentials {
+ // The client identifier.
+ string client_id = 1;
+
+ // Secret version reference containing the client secret.
+ Secret client_secret = 2;
+ }
+
+ // Parameters to support Ssh public key Authentication.
+ message SshPublicKey {
+ // The user account used to authenticate.
+ string username = 1;
+
+ // SSH Client Cert. It should contain both public and private key.
+ Secret ssh_client_cert = 3;
+
+ // Format of SSH Client cert.
+ string cert_type = 4;
+
+ // Password (passphrase) for ssh client certificate if it has one.
+ Secret ssh_client_cert_pass = 5;
+ }
+
+ // The type of authentication configured.
+ AuthType auth_type = 1;
+
+ // Supported auth types.
+ oneof type {
+ // UserPassword.
+ UserPassword user_password = 2;
+
+ // Oauth2JwtBearer.
+ Oauth2JwtBearer oauth2_jwt_bearer = 3;
+
+ // Oauth2ClientCredentials.
+ Oauth2ClientCredentials oauth2_client_credentials = 4;
+
+ // SSH Public Key.
+ SshPublicKey ssh_public_key = 6;
+ }
+
+ // List containing additional auth configs.
+ repeated ConfigVariable additional_variables = 5;
+}
+
+// AuthConfigTemplate defines required field over an authentication type.
+message AuthConfigTemplate {
+ // The type of authentication configured.
+ AuthType auth_type = 1;
+
+ // Config variables to describe an `AuthConfig` for a `Connection`.
+ repeated ConfigVariableTemplate config_variable_templates = 2;
+
+ // Display name for authentication template.
+ string display_name = 3;
+
+ // Connector specific description for an authentication template.
+ string description = 4;
+}
+
+// AuthType defines different authentication types.
+enum AuthType {
+ // Authentication type not specified.
+ AUTH_TYPE_UNSPECIFIED = 0;
+
+ // Username and Password Authentication.
+ USER_PASSWORD = 1;
+
+ // JSON Web Token (JWT) Profile for Oauth 2.0
+ // Authorization Grant based authentication
+ OAUTH2_JWT_BEARER = 2;
+
+ // Oauth 2.0 Client Credentials Grant Authentication
+ OAUTH2_CLIENT_CREDENTIALS = 3;
+
+ // SSH Public Key Authentication
+ SSH_PUBLIC_KEY = 4;
+
+ // Oauth 2.0 Authorization Code Flow
+ OAUTH2_AUTH_CODE_FLOW = 5;
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/common.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/common.proto
new file mode 100644
index 00000000000..64efe869311
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/common.proto
@@ -0,0 +1,267 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/field_behavior.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "CommonProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have successfully been cancelled
+ // have [Operation.error][] value with a
+ // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ // `Code.CANCELLED`.
+ bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// ConfigVariableTemplate provides metadata about a `ConfigVariable` that is
+// used in a Connection.
+message ConfigVariableTemplate {
+ // ValueType indicates the data type of the value.
+ enum ValueType {
+ // Value type is not specified.
+ VALUE_TYPE_UNSPECIFIED = 0;
+
+ // Value type is string.
+ STRING = 1;
+
+ // Value type is integer.
+ INT = 2;
+
+ // Value type is boolean.
+ BOOL = 3;
+
+ // Value type is secret.
+ SECRET = 4;
+
+ // Value type is enum.
+ ENUM = 5;
+
+ // Value type is authorization code.
+ AUTHORIZATION_CODE = 6;
+ }
+
+ // Indicates the state of the config variable.
+ enum State {
+ // Status is unspecified.
+ STATE_UNSPECIFIED = 0;
+
+ // Config variable is active
+ ACTIVE = 1;
+
+ // Config variable is deprecated.
+ DEPRECATED = 2;
+ }
+
+ // Key of the config variable.
+ string key = 1;
+
+ // Type of the parameter: string, int, bool etc.
+ // consider custom type for the benefit for the validation.
+ ValueType value_type = 2;
+
+ // Display name of the parameter.
+ string display_name = 3;
+
+ // Description.
+ string description = 4;
+
+ // Regular expression in RE2 syntax used for validating the `value` of a
+ // `ConfigVariable`.
+ string validation_regex = 5;
+
+ // Flag represents that this `ConfigVariable` must be provided for a
+ // connection.
+ bool required = 6;
+
+ // Role grant configuration for the config variable.
+ RoleGrant role_grant = 7;
+
+ // Enum options. To be populated if `ValueType` is `ENUM`
+ repeated EnumOption enum_options = 8;
+
+ // Authorization code link options. To be populated if `ValueType` is
+ // `AUTHORIZATION_CODE`
+ AuthorizationCodeLink authorization_code_link = 9;
+
+ // State of the config variable.
+ State state = 10;
+
+ // Indicates if current template is part of advanced settings
+ bool is_advanced = 11;
+}
+
+// Secret provides a reference to entries in Secret Manager.
+message Secret {
+ // The resource name of the secret version in the format,
+ // format as: `projects/*/secrets/*/versions/*`.
+ string secret_version = 1;
+}
+
+// EnumOption definition
+message EnumOption {
+ // Id of the option.
+ string id = 1;
+
+ // Display name of the option.
+ string display_name = 2;
+}
+
+// ConfigVariable represents a configuration variable present in a Connection.
+// or AuthConfig.
+message ConfigVariable {
+ // Key of the config variable.
+ string key = 1;
+
+ // Value type of the config variable.
+ oneof value {
+ // Value is an integer
+ int64 int_value = 2;
+
+ // Value is a bool.
+ bool bool_value = 3;
+
+ // Value is a string.
+ string string_value = 4;
+
+ // Value is a secret.
+ Secret secret_value = 5;
+ }
+}
+
+// This configuration defines all the Cloud IAM roles that needs to be granted
+// to a particular GCP resource for the selected prinicpal like service
+// account. These configurations will let UI display to customers what
+// IAM roles need to be granted by them. Or these configurations can be used
+// by the UI to render a 'grant' button to do the same on behalf of the user.
+message RoleGrant {
+ // Supported Principal values.
+ enum Principal {
+ // Value type is not specified.
+ PRINCIPAL_UNSPECIFIED = 0;
+
+ // Service Account used for Connector workload identity
+ // This is either the default service account if unspecified or Service
+ // Account provided by Customers through BYOSA.
+ CONNECTOR_SA = 1;
+ }
+
+ // Resource definition
+ message Resource {
+ // Resource Type definition.
+ enum Type {
+ // Value type is not specified.
+ TYPE_UNSPECIFIED = 0;
+
+ // GCP Project Resource.
+ GCP_PROJECT = 1;
+
+ // Any GCP Resource which is identified uniquely by IAM.
+ GCP_RESOURCE = 2;
+
+ // GCP Secret Resource.
+ GCP_SECRETMANAGER_SECRET = 3;
+
+ // GCP Secret Version Resource.
+ GCP_SECRETMANAGER_SECRET_VERSION = 4;
+ }
+
+ // Different types of resource supported.
+ Type type = 1;
+
+ // Template to uniquely represent a GCP resource in a format IAM expects
+ // This is a template that can have references to other values provided in
+ // the config variable template.
+ string path_template = 3;
+ }
+
+ // Prinicipal/Identity for whom the role need to assigned.
+ Principal principal = 1;
+
+ // List of roles that need to be granted.
+ repeated string roles = 2;
+
+ // Resource on which the roles needs to be granted for the principal.
+ Resource resource = 3;
+
+ // Template that UI can use to provide helper text to customers.
+ string helper_text_template = 4;
+}
+
+// This configuration captures the details required to render an authorization
+// link for the OAuth Authorization Code Flow.
+message AuthorizationCodeLink {
+ // The base URI the user must click to trigger the authorization code login
+ // flow.
+ string uri = 1;
+
+ // The scopes for which the user will authorize GCP Connectors on the
+ // connector data source.
+ repeated string scopes = 2;
+
+ // The client ID assigned to the GCP Connectors OAuth app for the connector
+ // data source.
+ string client_id = 3;
+
+ // Whether to enable PKCE for the auth code flow.
+ bool enable_pkce = 4;
+}
+
+// LaunchStage is a enum to indicate launch stage:
+// PREVIEW, GA, DEPRECATED, PRIVATE_PREVIEW.
+enum LaunchStage {
+ // LAUNCH_STAGE_UNSPECIFIED.
+ LAUNCH_STAGE_UNSPECIFIED = 0;
+
+ // PREVIEW.
+ PREVIEW = 1;
+
+ // GA.
+ GA = 2;
+
+ // DEPRECATED.
+ DEPRECATED = 3;
+
+ // PRIVATE_PREVIEW.
+ PRIVATE_PREVIEW = 5;
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connection.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connection.proto
new file mode 100644
index 00000000000..16fd258b32c
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connection.proto
@@ -0,0 +1,673 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/connectors/v1/authconfig.proto";
+import "google/cloud/connectors/v1/common.proto";
+import "google/cloud/connectors/v1/destination_config.proto";
+import "google/cloud/connectors/v1/ssl_config.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "ConnectionProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Connection represents an instance of connector.
+message Connection {
+ option (google.api.resource) = {
+ type: "connectors.googleapis.com/Connection"
+ pattern: "projects/{project}/locations/{location}/connections/{connection}"
+ };
+
+ // Output only. Resource name of the Connection.
+ // Format: projects/{project}/locations/{location}/connections/{connection}
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Created time.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Updated time.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Resource labels to represent user-provided metadata.
+ // Refer to cloud documentation on labels for more details.
+ // https://cloud.google.com/compute/docs/labeling-resources
+ map labels = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Description of the resource.
+ string description = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Connector version on which the connection is created.
+ // The format is:
+ // projects/*/locations/*/providers/*/connectors/*/versions/*
+ // Only global location is supported for ConnectorVersion resource.
+ string connector_version = 6 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/ConnectorVersion"
+ }
+ ];
+
+ // Output only. Current status of the connection.
+ ConnectionStatus status = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Configuration for configuring the connection with an external
+ // system.
+ repeated ConfigVariable config_variables = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Configuration for establishing the connection's authentication
+ // with an external system.
+ AuthConfig auth_config = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Configuration that indicates whether or not the Connection can be
+ // edited.
+ LockConfig lock_config = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Configuration of the Connector's destination. Only accepted for
+ // Connectors that accepts user defined destination(s).
+ repeated DestinationConfig destination_configs = 18
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. GCR location where the runtime image is stored.
+ // formatted like: gcr.io/{bucketName}/{imageName}
+ string image_location = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Service account needed for runtime plane to access GCP resources.
+ string service_account = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The name of the Service Directory service name. Used for
+ // Private Harpoon to resolve the ILB address.
+ // e.g.
+ // "projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio-system/services/istio-ingressgateway-connectors"
+ string service_directory = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. GCR location where the envoy image is stored.
+ // formatted like: gcr.io/{bucketName}/{imageName}
+ string envoy_image_location = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Suspended indicates if a user has suspended a connection or not.
+ bool suspended = 17 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Node configuration for the connection.
+ NodeConfig node_config = 19 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Ssl config of a connection
+ SslConfig ssl_config = 21 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Node configuration for the connection.
+message NodeConfig {
+ // Minimum number of nodes in the runtime nodes.
+ int32 min_node_count = 1;
+
+ // Maximum number of nodes in the runtime nodes.
+ int32 max_node_count = 2;
+}
+
+// ConnectionSchemaMetadata is the singleton resource of each connection.
+// It includes the entity and action names of runtime resources exposed
+// by a connection backend.
+message ConnectionSchemaMetadata {
+ option (google.api.resource) = {
+ type: "connectors.googleapis.com/ConnectionSchemaMetadata"
+ pattern: "projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata"
+ };
+
+ // State of connection runtime schema.
+ enum State {
+ // Default state.
+ STATE_UNSPECIFIED = 0;
+
+ // Schema refresh is in progress.
+ REFRESHING = 1;
+
+ // Schema has been updated.
+ UPDATED = 2;
+ }
+
+ // Output only. List of entity names.
+ repeated string entities = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of actions.
+ repeated string actions = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Resource name.
+ // Format:
+ // projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
+ string name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Timestamp when the connection runtime schema was updated.
+ google.protobuf.Timestamp update_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Timestamp when the connection runtime schema refresh was
+ // triggered.
+ google.protobuf.Timestamp refresh_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of runtime schema.
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Schema of a runtime entity.
+message RuntimeEntitySchema {
+ // Metadata of an entity field.
+ message Field {
+ // Name of the Field.
+ string field = 1;
+
+ // A brief description of the Field.
+ string description = 2;
+
+ // The data type of the Field.
+ DataType data_type = 3;
+
+ // The following boolean field specifies if the current Field acts
+ // as a primary key or id if the parent is of type entity.
+ bool key = 4;
+
+ // Specifies if the Field is readonly.
+ bool readonly = 5;
+
+ // Specifies whether a null value is allowed.
+ bool nullable = 6;
+
+ // The following field specifies the default value of the Field provided
+ // by the external system if a value is not provided.
+ google.protobuf.Value default_value = 7;
+
+ // The following map contains fields that are not explicitly mentioned
+ // above,this give connectors the flexibility to add new metadata
+ // fields.
+ google.protobuf.Struct additional_details = 8;
+ }
+
+ // Output only. Name of the entity.
+ string entity = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of fields in the entity.
+ repeated Field fields = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Schema of a runtime action.
+message RuntimeActionSchema {
+ // Metadata of an input parameter.
+ message InputParameter {
+ // Name of the Parameter.
+ string parameter = 1;
+
+ // A brief description of the Parameter.
+ string description = 2;
+
+ // The data type of the Parameter.
+ DataType data_type = 3;
+
+ // Specifies whether a null value is allowed.
+ bool nullable = 4;
+
+ // The following field specifies the default value of the Parameter
+ // provided by the external system if a value is not provided.
+ google.protobuf.Value default_value = 5;
+ }
+
+ // Metadata of result field.
+ message ResultMetadata {
+ // Name of the result field.
+ string field = 1;
+
+ // A brief description of the field.
+ string description = 2;
+
+ // The data type of the field.
+ DataType data_type = 3;
+ }
+
+ // Output only. Name of the action.
+ string action = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of input parameter metadata for the action.
+ repeated InputParameter input_parameters = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of result field metadata.
+ repeated ResultMetadata result_metadata = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Determines whether or no a connection is locked. If locked, a reason must be
+// specified.
+message LockConfig {
+ // Indicates whether or not the connection is locked.
+ bool locked = 1;
+
+ // Describes why a connection is locked.
+ string reason = 2;
+}
+
+// Request message for ConnectorsService.ListConnections
+message ListConnectionsRequest {
+ // Required. Parent resource of the Connection, of the form:
+ // `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "connectors.googleapis.com/Connection"
+ }
+ ];
+
+ // Page size.
+ int32 page_size = 2;
+
+ // Page token.
+ string page_token = 3;
+
+ // Filter.
+ string filter = 4;
+
+ // Order by parameters.
+ string order_by = 5;
+
+ // Specifies which fields of the Connection are returned in the response.
+ // Defaults to `BASIC` view.
+ ConnectionView view = 6;
+}
+
+// Response message for ConnectorsService.ListConnections
+message ListConnectionsResponse {
+ // Connections.
+ repeated Connection connections = 1;
+
+ // Next page token.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Request message for ConnectorsService.GetConnection
+message GetConnectionRequest {
+ // Required. Resource name of the form:
+ // `projects/*/locations/*/connections/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Connection"
+ }
+ ];
+
+ // Specifies which fields of the Connection are returned in the response.
+ // Defaults to `BASIC` view.
+ ConnectionView view = 2;
+}
+
+// Request message for ConnectorsService.CreateConnection
+message CreateConnectionRequest {
+ // Required. Parent resource of the Connection, of the form:
+ // `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "connectors.googleapis.com/Connection"
+ }
+ ];
+
+ // Required. Identifier to assign to the Connection. Must be unique within
+ // scope of the parent resource.
+ string connection_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Connection resource.
+ Connection connection = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for ConnectorsService.UpdateConnection
+message UpdateConnectionRequest {
+ // Required. Connection resource.
+ Connection connection = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. You can modify only the fields listed below.
+ //
+ // To lock/unlock a connection:
+ // * `lock_config`
+ //
+ // To suspend/resume a connection:
+ // * `suspended`
+ //
+ // To update the connection details:
+ // * `description`
+ // * `labels`
+ // * `connector_version`
+ // * `config_variables`
+ // * `auth_config`
+ // * `destination_configs`
+ // * `node_config`
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for ConnectorsService.DeleteConnection.
+message DeleteConnectionRequest {
+ // Required. Resource name of the form:
+ // `projects/*/locations/*/connections/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Connection"
+ }
+ ];
+}
+
+// Request message for ConnectorsService.GetConnectionSchemaMetadata.
+message GetConnectionSchemaMetadataRequest {
+ // Required. Connection name
+ // Format:
+ // projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/ConnectionSchemaMetadata"
+ }
+ ];
+}
+
+// Request message for ConnectorsService.RefreshConnectionSchemaMetadata.
+message RefreshConnectionSchemaMetadataRequest {
+ // Required. Resource name.
+ // Format:
+ // projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/ConnectionSchemaMetadata"
+ }
+ ];
+}
+
+// Request message for ConnectorsService.ListRuntimeEntitySchemas.
+// For filter, only entity field is supported with literal equality operator.
+// Accepted filter example: entity="Order"
+// Wildcards are not supported in the filter currently.
+message ListRuntimeEntitySchemasRequest {
+ // Required. Parent resource of RuntimeEntitySchema
+ // Format:
+ // projects/{project}/locations/{location}/connections/{connection}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Connection"
+ }
+ ];
+
+ // Page size.
+ int32 page_size = 2;
+
+ // Page token.
+ string page_token = 3;
+
+ // Required. Filter
+ // Format:
+ // entity="{entityId}"
+ // Only entity field is supported with literal equality operator.
+ // Accepted filter example: entity="Order"
+ // Wildcards are not supported in the filter currently.
+ string filter = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response message for ConnectorsService.ListRuntimeEntitySchemas.
+message ListRuntimeEntitySchemasResponse {
+ // Runtime entity schemas.
+ repeated RuntimeEntitySchema runtime_entity_schemas = 1;
+
+ // Next page token.
+ string next_page_token = 2;
+}
+
+// Request message for ConnectorsService.ListRuntimeActionSchemas.
+// For filter, only action field is supported with literal equality operator.
+// Accepted filter example: action="approveOrder"
+// Wildcards are not supported in the filter currently.
+message ListRuntimeActionSchemasRequest {
+ // Required. Parent resource of RuntimeActionSchema
+ // Format:
+ // projects/{project}/locations/{location}/connections/{connection}
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Connection"
+ }
+ ];
+
+ // Page size.
+ int32 page_size = 2;
+
+ // Page token.
+ string page_token = 3;
+
+ // Required. Filter
+ // Format:
+ // action="{actionId}"
+ // Only action field is supported with literal equality operator.
+ // Accepted filter example: action="CancelOrder"
+ // Wildcards are not supported in the filter currently.
+ string filter = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response message for ConnectorsService.ListRuntimeActionSchemas.
+message ListRuntimeActionSchemasResponse {
+ // Runtime action schemas.
+ repeated RuntimeActionSchema runtime_action_schemas = 1;
+
+ // Next page token.
+ string next_page_token = 2;
+}
+
+// ConnectionStatus indicates the state of the connection.
+message ConnectionStatus {
+ // All the possible Connection State.
+ enum State {
+ // Connection does not have a state yet.
+ STATE_UNSPECIFIED = 0;
+
+ // Connection is being created.
+ CREATING = 1;
+
+ // Connection is running and ready for requests.
+ ACTIVE = 2;
+
+ // Connection is stopped.
+ INACTIVE = 3;
+
+ // Connection is being deleted.
+ DELETING = 4;
+
+ // Connection is being updated.
+ UPDATING = 5;
+
+ // Connection is not running due to an error.
+ ERROR = 6;
+
+ // Connection is not running due to an auth error for the Oauth2 Auth Code
+ // based connector.
+ AUTHORIZATION_REQUIRED = 7;
+ }
+
+ // State.
+ State state = 1;
+
+ // Description.
+ string description = 2;
+
+ // Status provides detailed information for the state.
+ string status = 3;
+}
+
+// All possible data types of a entity or action field.
+enum DataType {
+ // Data type is not specified.
+ DATA_TYPE_UNSPECIFIED = 0;
+
+ // DEPRECATED! Use DATA_TYPE_INTEGER.
+ DATA_TYPE_INT = 1 [deprecated = true];
+
+ // Short integer(int16) data type.
+ DATA_TYPE_SMALLINT = 2;
+
+ // Double data type.
+ DATA_TYPE_DOUBLE = 3;
+
+ // Date data type.
+ DATA_TYPE_DATE = 4;
+
+ // DEPRECATED! Use DATA_TYPE_TIMESTAMP.
+ DATA_TYPE_DATETIME = 5 [deprecated = true];
+
+ // Time data type.
+ DATA_TYPE_TIME = 6;
+
+ // DEPRECATED! Use DATA_TYPE_VARCHAR.
+ DATA_TYPE_STRING = 7 [deprecated = true];
+
+ // DEPRECATED! Use DATA_TYPE_BIGINT.
+ DATA_TYPE_LONG = 8 [deprecated = true];
+
+ // Boolean data type.
+ DATA_TYPE_BOOLEAN = 9;
+
+ // Decimal data type.
+ DATA_TYPE_DECIMAL = 10;
+
+ // DEPRECATED! Use DATA_TYPE_VARCHAR.
+ DATA_TYPE_UUID = 11 [deprecated = true];
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_BLOB = 12;
+
+ // Bit data type.
+ DATA_TYPE_BIT = 13;
+
+ // Small integer(int8) data type.
+ DATA_TYPE_TINYINT = 14;
+
+ // Integer(int32) data type.
+ DATA_TYPE_INTEGER = 15;
+
+ // Long integer(int64) data type.
+ DATA_TYPE_BIGINT = 16;
+
+ // Float data type.
+ DATA_TYPE_FLOAT = 17;
+
+ // Real data type.
+ DATA_TYPE_REAL = 18;
+
+ // Numeric data type.
+ DATA_TYPE_NUMERIC = 19;
+
+ // Char data type.
+ DATA_TYPE_CHAR = 20;
+
+ // Varchar data type.
+ DATA_TYPE_VARCHAR = 21;
+
+ // Longvarchar data type.
+ DATA_TYPE_LONGVARCHAR = 22;
+
+ // Timestamp data type.
+ DATA_TYPE_TIMESTAMP = 23;
+
+ // Nchar data type.
+ DATA_TYPE_NCHAR = 24;
+
+ // Nvarchar data type.
+ DATA_TYPE_NVARCHAR = 25;
+
+ // Longnvarchar data type.
+ DATA_TYPE_LONGNVARCHAR = 26;
+
+ // Null data type.
+ DATA_TYPE_NULL = 27;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_OTHER = 28;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_JAVA_OBJECT = 29;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_DISTINCT = 30;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_STRUCT = 31;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_ARRAY = 32;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_CLOB = 33;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_REF = 34;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_DATALINK = 35;
+
+ // UNSUPPORTED! Row id data type.
+ DATA_TYPE_ROWID = 36;
+
+ // UNSUPPORTED! Binary data type.
+ DATA_TYPE_BINARY = 37;
+
+ // UNSUPPORTED! Variable binary data type.
+ DATA_TYPE_VARBINARY = 38;
+
+ // UNSUPPORTED! Long variable binary data type.
+ DATA_TYPE_LONGVARBINARY = 39;
+
+ // UNSUPPORTED! NCLOB data type.
+ DATA_TYPE_NCLOB = 40;
+
+ // UNSUPPORTED! SQL XML data type is not supported.
+ DATA_TYPE_SQLXML = 41;
+
+ // UNSUPPORTED! Cursor reference type is not supported.
+ DATA_TYPE_REF_CURSOR = 42;
+
+ // UNSUPPORTED! Use TIME or TIMESTAMP instead.
+ DATA_TYPE_TIME_WITH_TIMEZONE = 43;
+
+ // UNSUPPORTED! Use TIMESTAMP instead.
+ DATA_TYPE_TIMESTAMP_WITH_TIMEZONE = 44;
+}
+
+// Enum to control which fields should be included in the response.
+enum ConnectionView {
+ // CONNECTION_UNSPECIFIED.
+ CONNECTION_VIEW_UNSPECIFIED = 0;
+
+ // Do not include runtime required configs.
+ BASIC = 1;
+
+ // Include runtime required configs.
+ FULL = 2;
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connector.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connector.proto
new file mode 100644
index 00000000000..0aeb357c69c
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connector.proto
@@ -0,0 +1,116 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/connectors/v1/common.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "ConnectorProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Connectors indicates a specific connector type, e.x. Salesforce, SAP etc.
+message Connector {
+ option (google.api.resource) = {
+ type: "connectors.googleapis.com/Connector"
+ pattern: "projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}"
+ };
+
+ // Output only. Resource name of the Connector.
+ // Format:
+ // projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}
+ // Only global location is supported for Connector resource.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Created time.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Updated time.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Resource labels to represent user-provided metadata.
+ // Refer to cloud documentation on labels for more details.
+ // https://cloud.google.com/compute/docs/labeling-resources
+ map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Link to documentation page.
+ string documentation_uri = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Link to external page.
+ string external_uri = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Description of the resource.
+ string description = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Cloud storage location of icons etc consumed by UI.
+ string web_assets_location = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Display name.
+ string display_name = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Flag to mark the version indicating the launch stage.
+ LaunchStage launch_stage = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for Connectors.GetConnector.
+message GetConnectorRequest {
+ // Required. Resource name of the form:
+ // `projects/*/locations/*/providers/*/connectors/*`
+ // Only global location is supported for Connector resource.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Connector"
+ }
+ ];
+}
+
+// Request message for Connectors.ListConnectors.
+message ListConnectorsRequest {
+ // Required. Parent resource of the connectors, of the form:
+ // `projects/*/locations/*/providers/*`
+ // Only global location is supported for Connector resource.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Provider"
+ }
+ ];
+
+ // Page size.
+ int32 page_size = 2;
+
+ // Page token.
+ string page_token = 3;
+}
+
+// Response message for Connectors.ListConnectors.
+message ListConnectorsResponse {
+ // A list of connectors.
+ repeated Connector connectors = 1;
+
+ // Next page token.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connector_version.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connector_version.proto
new file mode 100644
index 00000000000..00c8c603627
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connector_version.proto
@@ -0,0 +1,226 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/connectors/v1/authconfig.proto";
+import "google/cloud/connectors/v1/common.proto";
+import "google/cloud/connectors/v1/ssl_config.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "ConnectorVersionProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// ConnectorVersion indicates a specific version of a connector.
+message ConnectorVersion {
+ option (google.api.resource) = {
+ type: "connectors.googleapis.com/ConnectorVersion"
+ pattern: "projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version}"
+ };
+
+ // Output only. Resource name of the Version.
+ // Format:
+ // projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version}
+ // Only global location is supported for Connector resource.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Created time.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Updated time.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Resource labels to represent user-provided metadata.
+ // Refer to cloud documentation on labels for more details.
+ // https://cloud.google.com/compute/docs/labeling-resources
+ map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Flag to mark the version indicating the launch stage.
+ LaunchStage launch_stage = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. ReleaseVersion of the connector, for example: "1.0.1-alpha".
+ string release_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of auth configs supported by the Connector Version.
+ repeated AuthConfigTemplate auth_config_templates = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. List of config variables needed to create a connection.
+ repeated ConfigVariableTemplate config_variable_templates = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Information about the runtime features supported by the
+ // Connector.
+ SupportedRuntimeFeatures supported_runtime_features = 10
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Display name.
+ string display_name = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Configuration for Egress Control.
+ EgressControlConfig egress_control_config = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Role grant configurations for this connector version.
+ repeated RoleGrant role_grants = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Role grant configuration for this config variable. It will be
+ // DEPRECATED soon.
+ RoleGrant role_grant = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Ssl configuration supported by the Connector.
+ SslConfigTemplate ssl_config_template = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for Connectors.GetConnectorVersion.
+message GetConnectorVersionRequest {
+ // Required. Resource name of the form:
+ // `projects/*/locations/*/providers/*/connectors/*/versions/*`
+ // Only global location is supported for ConnectorVersion resource.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/ConnectorVersion"
+ }
+ ];
+
+ // Specifies which fields of the ConnectorVersion are returned in the
+ // response. Defaults to `CUSTOMER` view.
+ ConnectorVersionView view = 2;
+}
+
+// Request message for Connectors.ListConnectorVersions.
+message ListConnectorVersionsRequest {
+ // Required. Parent resource of the connectors, of the form:
+ // `projects/*/locations/*/providers/*/connectors/*`
+ // Only global location is supported for ConnectorVersion resource.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Connector"
+ }
+ ];
+
+ // Page size.
+ int32 page_size = 2;
+
+ // Page token.
+ string page_token = 3;
+
+ // Specifies which fields of the ConnectorVersion are returned in the
+ // response. Defaults to `BASIC` view.
+ ConnectorVersionView view = 4;
+}
+
+// Response message for Connectors.ListConnectorVersions.
+message ListConnectorVersionsResponse {
+ // A list of connector versions.
+ repeated ConnectorVersion connector_versions = 1;
+
+ // Next page token.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Supported runtime features of a connector version. This is passed to the
+// management layer to add a new connector version by the connector developer.
+// Details about how this proto is passed to the management layer is covered in
+// this doc - go/runtime-manifest.
+message SupportedRuntimeFeatures {
+ // Specifies if the connector supports entity apis like 'createEntity'.
+ bool entity_apis = 1;
+
+ // Specifies if the connector supports action apis like 'executeAction'.
+ bool action_apis = 2;
+
+ // Specifies if the connector supports 'ExecuteSqlQuery' operation.
+ bool sql_query = 3;
+}
+
+// Egress control config for connector runtime. These configurations define the
+// rules to identify which outbound domains/hosts needs to be whitelisted. It
+// may be a static information for a particular connector version or it is
+// derived from the configurations provided by the customer in Connection
+// resource.
+message EgressControlConfig {
+ oneof oneof_backends {
+ // Static Comma separated backends which are common for all Connection
+ // resources. Supported formats for each backend are host:port or just
+ // host (host can be ip address or domain name).
+ string backends = 1;
+
+ // Extractions Rules to extract the backends from customer provided
+ // configuration.
+ ExtractionRules extraction_rules = 2;
+ }
+}
+
+// Extraction Rules to identity the backends from customer provided
+// configuration in Connection resource.
+message ExtractionRules {
+ // Collection of Extraction Rule.
+ repeated ExtractionRule extraction_rule = 1;
+}
+
+// Extraction Rule.
+message ExtractionRule {
+ // Source to extract the backend from.
+ message Source {
+ // Type of the source.
+ SourceType source_type = 1;
+
+ // Field identifier. For example config vaiable name.
+ string field_id = 2;
+ }
+
+ // Supported Source types for extraction.
+ enum SourceType {
+ // Default SOURCE.
+ SOURCE_TYPE_UNSPECIFIED = 0;
+
+ // Config Variable source type.
+ CONFIG_VARIABLE = 1;
+ }
+
+ // Source on which the rule is applied.
+ Source source = 1;
+
+ // Regex used to extract backend details from source. If empty, whole source
+ // value will be used.
+ string extraction_regex = 2;
+}
+
+// Enum to control which fields should be included in the response.
+enum ConnectorVersionView {
+ // CONNECTOR_VERSION_VIEW_UNSPECIFIED.
+ CONNECTOR_VERSION_VIEW_UNSPECIFIED = 0;
+
+ // Do not include role grant configs.
+ CONNECTOR_VERSION_VIEW_BASIC = 1;
+
+ // Include role grant configs.
+ CONNECTOR_VERSION_VIEW_FULL = 2;
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connectors_service.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connectors_service.proto
new file mode 100644
index 00000000000..2f1d3e03365
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/connectors_service.proto
@@ -0,0 +1,209 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/cloud/connectors/v1/common.proto";
+import "google/cloud/connectors/v1/connection.proto";
+import "google/cloud/connectors/v1/connector.proto";
+import "google/cloud/connectors/v1/connector_version.proto";
+import "google/cloud/connectors/v1/provider.proto";
+import "google/cloud/connectors/v1/runtime.proto";
+import "google/cloud/connectors/v1/settings.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "ConnectorsServiceProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Connectors is the interface for managing Connectors.
+service Connectors {
+ option (google.api.default_host) = "connectors.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists Connections in a given project and location.
+ rpc ListConnections(ListConnectionsRequest)
+ returns (ListConnectionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/connections"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Connection.
+ rpc GetConnection(GetConnectionRequest) returns (Connection) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/connections/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Connection in a given project and location.
+ rpc CreateConnection(CreateConnectionRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/connections"
+ body: "connection"
+ };
+ option (google.api.method_signature) = "parent,connection,connection_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Connection"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single Connection.
+ rpc UpdateConnection(UpdateConnectionRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{connection.name=projects/*/locations/*/connections/*}"
+ body: "connection"
+ };
+ option (google.api.method_signature) = "connection,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Connection"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Connection.
+ rpc DeleteConnection(DeleteConnectionRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/connections/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists Providers in a given project and location.
+ rpc ListProviders(ListProvidersRequest) returns (ListProvidersResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/providers"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a provider.
+ rpc GetProvider(GetProviderRequest) returns (Provider) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/providers/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists Connectors in a given project and location.
+ rpc ListConnectors(ListConnectorsRequest) returns (ListConnectorsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/providers/*}/connectors"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Connector.
+ rpc GetConnector(GetConnectorRequest) returns (Connector) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/providers/*/connectors/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists Connector Versions in a given project and location.
+ rpc ListConnectorVersions(ListConnectorVersionsRequest)
+ returns (ListConnectorVersionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/providers/*/connectors/*}/versions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single connector version.
+ rpc GetConnectorVersion(GetConnectorVersionRequest)
+ returns (ConnectorVersion) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/providers/*/connectors/*/versions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets schema metadata of a connection.
+ // SchemaMetadata is a singleton resource for each connection.
+ rpc GetConnectionSchemaMetadata(GetConnectionSchemaMetadataRequest)
+ returns (ConnectionSchemaMetadata) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/connections/*/connectionSchemaMetadata}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Refresh runtime schema of a connection.
+ rpc RefreshConnectionSchemaMetadata(RefreshConnectionSchemaMetadataRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/connections/*/connectionSchemaMetadata}:refresh"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "ConnectionSchemaMetadata"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // List schema of a runtime entities filtered by entity name.
+ rpc ListRuntimeEntitySchemas(ListRuntimeEntitySchemasRequest)
+ returns (ListRuntimeEntitySchemasResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/connections/*}/runtimeEntitySchemas"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // List schema of a runtime actions filtered by action name.
+ rpc ListRuntimeActionSchemas(ListRuntimeActionSchemasRequest)
+ returns (ListRuntimeActionSchemasResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/connections/*}/runtimeActionSchemas"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets the runtimeConfig of a location.
+ // RuntimeConfig is a singleton resource for each location.
+ rpc GetRuntimeConfig(GetRuntimeConfigRequest) returns (RuntimeConfig) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/runtimeConfig}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // GetGlobalSettings gets settings of a project.
+ // GlobalSettings is a singleton resource.
+ rpc GetGlobalSettings(GetGlobalSettingsRequest) returns (Settings) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/global/settings}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/destination_config.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/destination_config.proto
new file mode 100644
index 00000000000..b8a2665884d
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/destination_config.proto
@@ -0,0 +1,43 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+
+// Define the Connectors target endpoint.
+message DestinationConfig {
+ // The key is the destination identifier that is supported by the Connector.
+ string key = 1;
+
+ // The destinations for the key.
+ repeated Destination destinations = 2;
+}
+
+message Destination {
+ oneof destination {
+ // PSC service attachments.
+ // Format: projects/*/regions/*/serviceAttachments/*
+ string service_attachment = 1;
+
+ // For publicly routable host.
+ string host = 2;
+ }
+
+ // The port is the target port number that is accepted by the destination.
+ int32 port = 3;
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/provider.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/provider.proto
new file mode 100644
index 00000000000..6f908a45614
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/provider.proto
@@ -0,0 +1,115 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/connectors/v1/common.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "ProviderProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Provider indicates the owner who provides the connectors.
+message Provider {
+ option (google.api.resource) = {
+ type: "connectors.googleapis.com/Provider"
+ pattern: "projects/{project}/locations/{location}/providers/{provider}"
+ };
+
+ // Output only. Resource name of the Provider.
+ // Format: projects/{project}/locations/{location}/providers/{provider}
+ // Only global location is supported for Provider resource.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Created time.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Updated time.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Resource labels to represent user-provided metadata.
+ // Refer to cloud documentation on labels for more details.
+ // https://cloud.google.com/compute/docs/labeling-resources
+ map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Link to documentation page.
+ string documentation_uri = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Link to external page.
+ string external_uri = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Description of the resource.
+ string description = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Cloud storage location of icons etc consumed by UI.
+ string web_assets_location = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Display name.
+ string display_name = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Flag to mark the version indicating the launch stage.
+ LaunchStage launch_stage = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for Connectors.GetProvider.
+message GetProviderRequest {
+ // Required. Resource name of the form:
+ // `projects/*/locations/*/providers/*`
+ // Only global location is supported for Provider resource.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Provider"
+ }
+ ];
+}
+
+// Request message for Connectors.ListProviders.
+message ListProvidersRequest {
+ // Required. Parent resource of the API, of the form:
+ // `projects/*/locations/*`
+ // Only global location is supported for Provider resource.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "connectors.googleapis.com/Provider"
+ }
+ ];
+
+ // Page size.
+ int32 page_size = 2;
+
+ // Page token.
+ string page_token = 3;
+}
+
+// Response message for Connectors.ListProviders.
+message ListProvidersResponse {
+ // A list of providers.
+ repeated Provider providers = 1;
+
+ // Next page token.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/runtime.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/runtime.proto
new file mode 100644
index 00000000000..80408246223
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/runtime.proto
@@ -0,0 +1,110 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "RuntimeProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Request message for Connectors.GetRuntimeConfig.
+message GetRuntimeConfigRequest {
+ // Required. Resource name of the form:
+ // `projects/*/locations/*/runtimeConfig`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/RuntimeConfig"
+ }
+ ];
+}
+
+// RuntimeConfig is the singleton resource of each location.
+// It includes generic resource configs consumed by control plane and runtime
+// plane like: pub/sub topic/subscription resource name, Cloud Storage location
+// storing schema etc.
+message RuntimeConfig {
+ option (google.api.resource) = {
+ type: "connectors.googleapis.com/RuntimeConfig"
+ pattern: "projects/{project}/locations/{location}/runtimeConfig"
+ };
+
+ // State of the location.
+ enum State {
+ // STATE_UNSPECIFIED.
+ STATE_UNSPECIFIED = 0;
+
+ // INACTIVE.
+ INACTIVE = 1 [deprecated = true];
+
+ // ACTIVATING.
+ ACTIVATING = 2 [deprecated = true];
+
+ // ACTIVE.
+ ACTIVE = 3;
+
+ // CREATING.
+ CREATING = 4;
+
+ // DELETING.
+ DELETING = 5;
+
+ // UPDATING.
+ UPDATING = 6;
+ }
+
+ // Output only. location_id of the runtime location. E.g. "us-west1".
+ string location_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Pub/Sub topic for connd to send message.
+ // E.g. projects/{project-id}/topics/{topic-id}
+ string connd_topic = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Pub/Sub subscription for connd to receive message.
+ // E.g. projects/{project-id}/subscriptions/{topic-id}
+ string connd_subscription = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Pub/Sub topic for control plne to send message.
+ // communication.
+ // E.g. projects/{project-id}/topics/{topic-id}
+ string control_plane_topic = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Pub/Sub subscription for control plane to receive message.
+ // E.g. projects/{project-id}/subscriptions/{topic-id}
+ string control_plane_subscription = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The endpoint of the connectors runtime ingress.
+ string runtime_endpoint = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The state of the location.
+ State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The Cloud Storage bucket that stores connector's schema
+ // reports.
+ string schema_gcs_bucket = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The name of the Service Directory service name.
+ string service_directory = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the runtimeConfig resource.
+ // Format: projects/{project}/locations/{location}/runtimeConfig
+ string name = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/settings.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/settings.proto
new file mode 100644
index 00000000000..31879187d72
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/settings.proto
@@ -0,0 +1,54 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "SettingsProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Request for [GetGlobalSettingsRequest].
+message GetGlobalSettingsRequest {
+ // Required. The resource name of the Settings.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "connectors.googleapis.com/Settings"
+ }
+ ];
+}
+
+// Global Settings details.
+message Settings {
+ option (google.api.resource) = {
+ type: "connectors.googleapis.com/Settings"
+ pattern: "projects/{project}/locations/global/settings"
+ };
+
+ // Output only. Resource name of the Connection.
+ // Format: projects/{project}/locations/global/settings}
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Flag indicates whether vpc-sc is enabled.
+ bool vpcsc = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Flag indicates if user is in PayG model
+ bool payg = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/ssl_config.proto b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/ssl_config.proto
new file mode 100644
index 00000000000..cc4ae370701
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/google/cloud/connectors/v1/ssl_config.proto
@@ -0,0 +1,109 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.connectors.v1;
+
+import "google/cloud/connectors/v1/common.proto";
+
+option go_package = "cloud.google.com/go/connectors/apiv1/connectorspb;connectorspb";
+option java_multiple_files = true;
+option java_outer_classname = "SslConfigProto";
+option java_package = "com.google.cloud.connectors.v1";
+
+// Ssl config details of a connector version
+message SslConfigTemplate {
+ // Controls the ssl type for the given connector version
+ SslType ssl_type = 1;
+
+ // Boolean for determining if the connector version mandates TLS.
+ bool is_tls_mandatory = 2;
+
+ // List of supported Server Cert Types
+ repeated CertType server_cert_type = 3;
+
+ // List of supported Client Cert Types
+ repeated CertType client_cert_type = 4;
+
+ // Any additional fields that need to be rendered
+ repeated ConfigVariableTemplate additional_variables = 5;
+}
+
+// SSL Configuration of a connection
+message SslConfig {
+ // Enum for Ttust Model
+ enum TrustModel {
+ // Public Trust Model. Takes the Default Java trust store.
+ PUBLIC = 0;
+
+ // Private Trust Model. Takes custom/private trust store.
+ PRIVATE = 1;
+
+ // Insecure Trust Model. Accept all certificates.
+ INSECURE = 2;
+ }
+
+ // Controls the ssl type for the given connector version.
+ SslType type = 1;
+
+ // Trust Model of the SSL connection
+ TrustModel trust_model = 2;
+
+ // Private Server Certificate. Needs to be specified if trust model is
+ // `PRIVATE`.
+ Secret private_server_certificate = 3;
+
+ // Client Certificate
+ Secret client_certificate = 4;
+
+ // Client Private Key
+ Secret client_private_key = 5;
+
+ // Secret containing the passphrase protecting the Client Private Key
+ Secret client_private_key_pass = 6;
+
+ // Type of Server Cert (PEM/JKS/.. etc.)
+ CertType server_cert_type = 7;
+
+ // Type of Client Cert (PEM/JKS/.. etc.)
+ CertType client_cert_type = 8;
+
+ // Bool for enabling SSL
+ bool use_ssl = 9;
+
+ // Additional SSL related field values
+ repeated ConfigVariable additional_variables = 10;
+}
+
+// Enum for controlling the SSL Type (TLS/MTLS)
+enum SslType {
+ // No SSL configuration required.
+ SSL_TYPE_UNSPECIFIED = 0;
+
+ // TLS Handshake
+ TLS = 1;
+
+ // mutual TLS (MTLS) Handshake
+ MTLS = 2;
+}
+
+// Enum for Cert Types
+enum CertType {
+ // Cert type unspecified.
+ CERT_TYPE_UNSPECIFIED = 0;
+
+ // Privacy Enhanced Mail (PEM) Type
+ PEM = 1;
+}
diff --git a/packages/google-cloud-connectors/protos/protos.d.ts b/packages/google-cloud-connectors/protos/protos.d.ts
new file mode 100644
index 00000000000..af4d4ceff65
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/protos.d.ts
@@ -0,0 +1,15119 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace connectors. */
+ namespace connectors {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of an AuthConfig. */
+ interface IAuthConfig {
+
+ /** AuthConfig authType */
+ authType?: (google.cloud.connectors.v1.AuthType|keyof typeof google.cloud.connectors.v1.AuthType|null);
+
+ /** AuthConfig userPassword */
+ userPassword?: (google.cloud.connectors.v1.AuthConfig.IUserPassword|null);
+
+ /** AuthConfig oauth2JwtBearer */
+ oauth2JwtBearer?: (google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer|null);
+
+ /** AuthConfig oauth2ClientCredentials */
+ oauth2ClientCredentials?: (google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials|null);
+
+ /** AuthConfig sshPublicKey */
+ sshPublicKey?: (google.cloud.connectors.v1.AuthConfig.ISshPublicKey|null);
+
+ /** AuthConfig additionalVariables */
+ additionalVariables?: (google.cloud.connectors.v1.IConfigVariable[]|null);
+ }
+
+ /** Represents an AuthConfig. */
+ class AuthConfig implements IAuthConfig {
+
+ /**
+ * Constructs a new AuthConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IAuthConfig);
+
+ /** AuthConfig authType. */
+ public authType: (google.cloud.connectors.v1.AuthType|keyof typeof google.cloud.connectors.v1.AuthType);
+
+ /** AuthConfig userPassword. */
+ public userPassword?: (google.cloud.connectors.v1.AuthConfig.IUserPassword|null);
+
+ /** AuthConfig oauth2JwtBearer. */
+ public oauth2JwtBearer?: (google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer|null);
+
+ /** AuthConfig oauth2ClientCredentials. */
+ public oauth2ClientCredentials?: (google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials|null);
+
+ /** AuthConfig sshPublicKey. */
+ public sshPublicKey?: (google.cloud.connectors.v1.AuthConfig.ISshPublicKey|null);
+
+ /** AuthConfig additionalVariables. */
+ public additionalVariables: google.cloud.connectors.v1.IConfigVariable[];
+
+ /** AuthConfig type. */
+ public type?: ("userPassword"|"oauth2JwtBearer"|"oauth2ClientCredentials"|"sshPublicKey");
+
+ /**
+ * Creates a new AuthConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthConfig instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IAuthConfig): google.cloud.connectors.v1.AuthConfig;
+
+ /**
+ * Encodes the specified AuthConfig message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.verify|verify} messages.
+ * @param message AuthConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.verify|verify} messages.
+ * @param message AuthConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthConfig
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthConfig;
+
+ /**
+ * Decodes an AuthConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthConfig
+ * @throws {Error} If the payload 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.connectors.v1.AuthConfig;
+
+ /**
+ * Verifies an AuthConfig message.
+ * @param message Plain 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 AuthConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthConfig;
+
+ /**
+ * Creates a plain object from an AuthConfig message. Also converts values to other types if specified.
+ * @param message AuthConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuthConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AuthConfig {
+
+ /** Properties of a UserPassword. */
+ interface IUserPassword {
+
+ /** UserPassword username */
+ username?: (string|null);
+
+ /** UserPassword password */
+ password?: (google.cloud.connectors.v1.ISecret|null);
+ }
+
+ /** Represents a UserPassword. */
+ class UserPassword implements IUserPassword {
+
+ /**
+ * Constructs a new UserPassword.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.AuthConfig.IUserPassword);
+
+ /** UserPassword username. */
+ public username: string;
+
+ /** UserPassword password. */
+ public password?: (google.cloud.connectors.v1.ISecret|null);
+
+ /**
+ * Creates a new UserPassword instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UserPassword instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.AuthConfig.IUserPassword): google.cloud.connectors.v1.AuthConfig.UserPassword;
+
+ /**
+ * Encodes the specified UserPassword message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.UserPassword.verify|verify} messages.
+ * @param message UserPassword message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.AuthConfig.IUserPassword, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UserPassword message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.UserPassword.verify|verify} messages.
+ * @param message UserPassword message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.AuthConfig.IUserPassword, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a UserPassword message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UserPassword
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthConfig.UserPassword;
+
+ /**
+ * Decodes a UserPassword message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UserPassword
+ * @throws {Error} If the payload 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.connectors.v1.AuthConfig.UserPassword;
+
+ /**
+ * Verifies a UserPassword message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a UserPassword message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UserPassword
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthConfig.UserPassword;
+
+ /**
+ * Creates a plain object from a UserPassword message. Also converts values to other types if specified.
+ * @param message UserPassword
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthConfig.UserPassword, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UserPassword to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UserPassword
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Oauth2JwtBearer. */
+ interface IOauth2JwtBearer {
+
+ /** Oauth2JwtBearer clientKey */
+ clientKey?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** Oauth2JwtBearer jwtClaims */
+ jwtClaims?: (google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims|null);
+ }
+
+ /** Represents an Oauth2JwtBearer. */
+ class Oauth2JwtBearer implements IOauth2JwtBearer {
+
+ /**
+ * Constructs a new Oauth2JwtBearer.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer);
+
+ /** Oauth2JwtBearer clientKey. */
+ public clientKey?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** Oauth2JwtBearer jwtClaims. */
+ public jwtClaims?: (google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims|null);
+
+ /**
+ * Creates a new Oauth2JwtBearer instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Oauth2JwtBearer instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer): google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer;
+
+ /**
+ * Encodes the specified Oauth2JwtBearer message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.verify|verify} messages.
+ * @param message Oauth2JwtBearer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Oauth2JwtBearer message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.verify|verify} messages.
+ * @param message Oauth2JwtBearer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Oauth2JwtBearer message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Oauth2JwtBearer
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthConfig.Oauth2JwtBearer;
+
+ /**
+ * Decodes an Oauth2JwtBearer message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Oauth2JwtBearer
+ * @throws {Error} If the payload 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.connectors.v1.AuthConfig.Oauth2JwtBearer;
+
+ /**
+ * Verifies an Oauth2JwtBearer message.
+ * @param message Plain 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 Oauth2JwtBearer message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Oauth2JwtBearer
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer;
+
+ /**
+ * Creates a plain object from an Oauth2JwtBearer message. Also converts values to other types if specified.
+ * @param message Oauth2JwtBearer
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Oauth2JwtBearer to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Oauth2JwtBearer
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Oauth2JwtBearer {
+
+ /** Properties of a JwtClaims. */
+ interface IJwtClaims {
+
+ /** JwtClaims issuer */
+ issuer?: (string|null);
+
+ /** JwtClaims subject */
+ subject?: (string|null);
+
+ /** JwtClaims audience */
+ audience?: (string|null);
+ }
+
+ /** Represents a JwtClaims. */
+ class JwtClaims implements IJwtClaims {
+
+ /**
+ * Constructs a new JwtClaims.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims);
+
+ /** JwtClaims issuer. */
+ public issuer: string;
+
+ /** JwtClaims subject. */
+ public subject: string;
+
+ /** JwtClaims audience. */
+ public audience: string;
+
+ /**
+ * Creates a new JwtClaims instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JwtClaims instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims): google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims;
+
+ /**
+ * Encodes the specified JwtClaims message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.verify|verify} messages.
+ * @param message JwtClaims message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JwtClaims message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.verify|verify} messages.
+ * @param message JwtClaims message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JwtClaims message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JwtClaims
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims;
+
+ /**
+ * Decodes a JwtClaims message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JwtClaims
+ * @throws {Error} If the payload 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.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims;
+
+ /**
+ * Verifies a JwtClaims message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JwtClaims message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JwtClaims
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims;
+
+ /**
+ * Creates a plain object from a JwtClaims message. Also converts values to other types if specified.
+ * @param message JwtClaims
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JwtClaims to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JwtClaims
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Oauth2ClientCredentials. */
+ interface IOauth2ClientCredentials {
+
+ /** Oauth2ClientCredentials clientId */
+ clientId?: (string|null);
+
+ /** Oauth2ClientCredentials clientSecret */
+ clientSecret?: (google.cloud.connectors.v1.ISecret|null);
+ }
+
+ /** Represents an Oauth2ClientCredentials. */
+ class Oauth2ClientCredentials implements IOauth2ClientCredentials {
+
+ /**
+ * Constructs a new Oauth2ClientCredentials.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials);
+
+ /** Oauth2ClientCredentials clientId. */
+ public clientId: string;
+
+ /** Oauth2ClientCredentials clientSecret. */
+ public clientSecret?: (google.cloud.connectors.v1.ISecret|null);
+
+ /**
+ * Creates a new Oauth2ClientCredentials instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Oauth2ClientCredentials instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials): google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials;
+
+ /**
+ * Encodes the specified Oauth2ClientCredentials message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.verify|verify} messages.
+ * @param message Oauth2ClientCredentials message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Oauth2ClientCredentials message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.verify|verify} messages.
+ * @param message Oauth2ClientCredentials message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Oauth2ClientCredentials message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Oauth2ClientCredentials
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthConfig.Oauth2ClientCredentials;
+
+ /**
+ * Decodes an Oauth2ClientCredentials message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Oauth2ClientCredentials
+ * @throws {Error} If the payload 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.connectors.v1.AuthConfig.Oauth2ClientCredentials;
+
+ /**
+ * Verifies an Oauth2ClientCredentials message.
+ * @param message Plain 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 Oauth2ClientCredentials message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Oauth2ClientCredentials
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials;
+
+ /**
+ * Creates a plain object from an Oauth2ClientCredentials message. Also converts values to other types if specified.
+ * @param message Oauth2ClientCredentials
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Oauth2ClientCredentials to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Oauth2ClientCredentials
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SshPublicKey. */
+ interface ISshPublicKey {
+
+ /** SshPublicKey username */
+ username?: (string|null);
+
+ /** SshPublicKey sshClientCert */
+ sshClientCert?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SshPublicKey certType */
+ certType?: (string|null);
+
+ /** SshPublicKey sshClientCertPass */
+ sshClientCertPass?: (google.cloud.connectors.v1.ISecret|null);
+ }
+
+ /** Represents a SshPublicKey. */
+ class SshPublicKey implements ISshPublicKey {
+
+ /**
+ * Constructs a new SshPublicKey.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.AuthConfig.ISshPublicKey);
+
+ /** SshPublicKey username. */
+ public username: string;
+
+ /** SshPublicKey sshClientCert. */
+ public sshClientCert?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SshPublicKey certType. */
+ public certType: string;
+
+ /** SshPublicKey sshClientCertPass. */
+ public sshClientCertPass?: (google.cloud.connectors.v1.ISecret|null);
+
+ /**
+ * Creates a new SshPublicKey instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SshPublicKey instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.AuthConfig.ISshPublicKey): google.cloud.connectors.v1.AuthConfig.SshPublicKey;
+
+ /**
+ * Encodes the specified SshPublicKey message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.SshPublicKey.verify|verify} messages.
+ * @param message SshPublicKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.AuthConfig.ISshPublicKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SshPublicKey message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.SshPublicKey.verify|verify} messages.
+ * @param message SshPublicKey message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.AuthConfig.ISshPublicKey, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SshPublicKey message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SshPublicKey
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthConfig.SshPublicKey;
+
+ /**
+ * Decodes a SshPublicKey message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SshPublicKey
+ * @throws {Error} If the payload 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.connectors.v1.AuthConfig.SshPublicKey;
+
+ /**
+ * Verifies a SshPublicKey message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SshPublicKey message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SshPublicKey
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthConfig.SshPublicKey;
+
+ /**
+ * Creates a plain object from a SshPublicKey message. Also converts values to other types if specified.
+ * @param message SshPublicKey
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthConfig.SshPublicKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SshPublicKey to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SshPublicKey
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an AuthConfigTemplate. */
+ interface IAuthConfigTemplate {
+
+ /** AuthConfigTemplate authType */
+ authType?: (google.cloud.connectors.v1.AuthType|keyof typeof google.cloud.connectors.v1.AuthType|null);
+
+ /** AuthConfigTemplate configVariableTemplates */
+ configVariableTemplates?: (google.cloud.connectors.v1.IConfigVariableTemplate[]|null);
+
+ /** AuthConfigTemplate displayName */
+ displayName?: (string|null);
+
+ /** AuthConfigTemplate description */
+ description?: (string|null);
+ }
+
+ /** Represents an AuthConfigTemplate. */
+ class AuthConfigTemplate implements IAuthConfigTemplate {
+
+ /**
+ * Constructs a new AuthConfigTemplate.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IAuthConfigTemplate);
+
+ /** AuthConfigTemplate authType. */
+ public authType: (google.cloud.connectors.v1.AuthType|keyof typeof google.cloud.connectors.v1.AuthType);
+
+ /** AuthConfigTemplate configVariableTemplates. */
+ public configVariableTemplates: google.cloud.connectors.v1.IConfigVariableTemplate[];
+
+ /** AuthConfigTemplate displayName. */
+ public displayName: string;
+
+ /** AuthConfigTemplate description. */
+ public description: string;
+
+ /**
+ * Creates a new AuthConfigTemplate instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthConfigTemplate instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IAuthConfigTemplate): google.cloud.connectors.v1.AuthConfigTemplate;
+
+ /**
+ * Encodes the specified AuthConfigTemplate message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfigTemplate.verify|verify} messages.
+ * @param message AuthConfigTemplate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IAuthConfigTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthConfigTemplate message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfigTemplate.verify|verify} messages.
+ * @param message AuthConfigTemplate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IAuthConfigTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthConfigTemplate message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthConfigTemplate
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthConfigTemplate;
+
+ /**
+ * Decodes an AuthConfigTemplate message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthConfigTemplate
+ * @throws {Error} If the payload 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.connectors.v1.AuthConfigTemplate;
+
+ /**
+ * Verifies an AuthConfigTemplate message.
+ * @param message Plain 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 AuthConfigTemplate message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthConfigTemplate
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthConfigTemplate;
+
+ /**
+ * Creates a plain object from an AuthConfigTemplate message. Also converts values to other types if specified.
+ * @param message AuthConfigTemplate
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthConfigTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthConfigTemplate to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuthConfigTemplate
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** AuthType enum. */
+ enum AuthType {
+ AUTH_TYPE_UNSPECIFIED = 0,
+ USER_PASSWORD = 1,
+ OAUTH2_JWT_BEARER = 2,
+ OAUTH2_CLIENT_CREDENTIALS = 3,
+ SSH_PUBLIC_KEY = 4,
+ OAUTH2_AUTH_CODE_FLOW = 5
+ }
+
+ /** 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.connectors.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.connectors.v1.IOperationMetadata): google.cloud.connectors.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.connectors.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.connectors.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.connectors.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.connectors.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.connectors.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.connectors.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.connectors.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.connectors.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConfigVariableTemplate. */
+ interface IConfigVariableTemplate {
+
+ /** ConfigVariableTemplate key */
+ key?: (string|null);
+
+ /** ConfigVariableTemplate valueType */
+ valueType?: (google.cloud.connectors.v1.ConfigVariableTemplate.ValueType|keyof typeof google.cloud.connectors.v1.ConfigVariableTemplate.ValueType|null);
+
+ /** ConfigVariableTemplate displayName */
+ displayName?: (string|null);
+
+ /** ConfigVariableTemplate description */
+ description?: (string|null);
+
+ /** ConfigVariableTemplate validationRegex */
+ validationRegex?: (string|null);
+
+ /** ConfigVariableTemplate required */
+ required?: (boolean|null);
+
+ /** ConfigVariableTemplate roleGrant */
+ roleGrant?: (google.cloud.connectors.v1.IRoleGrant|null);
+
+ /** ConfigVariableTemplate enumOptions */
+ enumOptions?: (google.cloud.connectors.v1.IEnumOption[]|null);
+
+ /** ConfigVariableTemplate authorizationCodeLink */
+ authorizationCodeLink?: (google.cloud.connectors.v1.IAuthorizationCodeLink|null);
+
+ /** ConfigVariableTemplate state */
+ state?: (google.cloud.connectors.v1.ConfigVariableTemplate.State|keyof typeof google.cloud.connectors.v1.ConfigVariableTemplate.State|null);
+
+ /** ConfigVariableTemplate isAdvanced */
+ isAdvanced?: (boolean|null);
+ }
+
+ /** Represents a ConfigVariableTemplate. */
+ class ConfigVariableTemplate implements IConfigVariableTemplate {
+
+ /**
+ * Constructs a new ConfigVariableTemplate.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IConfigVariableTemplate);
+
+ /** ConfigVariableTemplate key. */
+ public key: string;
+
+ /** ConfigVariableTemplate valueType. */
+ public valueType: (google.cloud.connectors.v1.ConfigVariableTemplate.ValueType|keyof typeof google.cloud.connectors.v1.ConfigVariableTemplate.ValueType);
+
+ /** ConfigVariableTemplate displayName. */
+ public displayName: string;
+
+ /** ConfigVariableTemplate description. */
+ public description: string;
+
+ /** ConfigVariableTemplate validationRegex. */
+ public validationRegex: string;
+
+ /** ConfigVariableTemplate required. */
+ public required: boolean;
+
+ /** ConfigVariableTemplate roleGrant. */
+ public roleGrant?: (google.cloud.connectors.v1.IRoleGrant|null);
+
+ /** ConfigVariableTemplate enumOptions. */
+ public enumOptions: google.cloud.connectors.v1.IEnumOption[];
+
+ /** ConfigVariableTemplate authorizationCodeLink. */
+ public authorizationCodeLink?: (google.cloud.connectors.v1.IAuthorizationCodeLink|null);
+
+ /** ConfigVariableTemplate state. */
+ public state: (google.cloud.connectors.v1.ConfigVariableTemplate.State|keyof typeof google.cloud.connectors.v1.ConfigVariableTemplate.State);
+
+ /** ConfigVariableTemplate isAdvanced. */
+ public isAdvanced: boolean;
+
+ /**
+ * Creates a new ConfigVariableTemplate instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfigVariableTemplate instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IConfigVariableTemplate): google.cloud.connectors.v1.ConfigVariableTemplate;
+
+ /**
+ * Encodes the specified ConfigVariableTemplate message. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariableTemplate.verify|verify} messages.
+ * @param message ConfigVariableTemplate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IConfigVariableTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfigVariableTemplate message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariableTemplate.verify|verify} messages.
+ * @param message ConfigVariableTemplate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IConfigVariableTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfigVariableTemplate message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfigVariableTemplate
+ * @throws {Error} If the payload is not 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.connectors.v1.ConfigVariableTemplate;
+
+ /**
+ * Decodes a ConfigVariableTemplate message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfigVariableTemplate
+ * @throws {Error} If the payload 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.connectors.v1.ConfigVariableTemplate;
+
+ /**
+ * Verifies a ConfigVariableTemplate message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfigVariableTemplate message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfigVariableTemplate
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ConfigVariableTemplate;
+
+ /**
+ * Creates a plain object from a ConfigVariableTemplate message. Also converts values to other types if specified.
+ * @param message ConfigVariableTemplate
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ConfigVariableTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfigVariableTemplate to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfigVariableTemplate
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConfigVariableTemplate {
+
+ /** ValueType enum. */
+ enum ValueType {
+ VALUE_TYPE_UNSPECIFIED = 0,
+ STRING = 1,
+ INT = 2,
+ BOOL = 3,
+ SECRET = 4,
+ ENUM = 5,
+ AUTHORIZATION_CODE = 6
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ DEPRECATED = 2
+ }
+ }
+
+ /** Properties of a Secret. */
+ interface ISecret {
+
+ /** Secret secretVersion */
+ secretVersion?: (string|null);
+ }
+
+ /** Represents a Secret. */
+ class Secret implements ISecret {
+
+ /**
+ * Constructs a new Secret.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ISecret);
+
+ /** Secret secretVersion. */
+ public secretVersion: string;
+
+ /**
+ * Creates a new Secret instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Secret instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ISecret): google.cloud.connectors.v1.Secret;
+
+ /**
+ * Encodes the specified Secret message. Does not implicitly {@link google.cloud.connectors.v1.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Secret message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Secret.verify|verify} messages.
+ * @param message Secret message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ISecret, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Secret
+ * @throws {Error} If the payload is not 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.connectors.v1.Secret;
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Secret
+ * @throws {Error} If the payload 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.connectors.v1.Secret;
+
+ /**
+ * Verifies a Secret message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Secret message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Secret
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.Secret;
+
+ /**
+ * Creates a plain object from a Secret message. Also converts values to other types if specified.
+ * @param message Secret
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.Secret, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Secret to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Secret
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOption. */
+ interface IEnumOption {
+
+ /** EnumOption id */
+ id?: (string|null);
+
+ /** EnumOption displayName */
+ displayName?: (string|null);
+ }
+
+ /** Represents an EnumOption. */
+ class EnumOption implements IEnumOption {
+
+ /**
+ * Constructs a new EnumOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IEnumOption);
+
+ /** EnumOption id. */
+ public id: string;
+
+ /** EnumOption displayName. */
+ public displayName: string;
+
+ /**
+ * Creates a new EnumOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOption instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IEnumOption): google.cloud.connectors.v1.EnumOption;
+
+ /**
+ * Encodes the specified EnumOption message. Does not implicitly {@link google.cloud.connectors.v1.EnumOption.verify|verify} messages.
+ * @param message EnumOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IEnumOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOption message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.EnumOption.verify|verify} messages.
+ * @param message EnumOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IEnumOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOption
+ * @throws {Error} If the payload is not 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.connectors.v1.EnumOption;
+
+ /**
+ * Decodes an EnumOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOption
+ * @throws {Error} If the payload 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.connectors.v1.EnumOption;
+
+ /**
+ * Verifies an EnumOption message.
+ * @param message Plain 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 EnumOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.EnumOption;
+
+ /**
+ * Creates a plain object from an EnumOption message. Also converts values to other types if specified.
+ * @param message EnumOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.EnumOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConfigVariable. */
+ interface IConfigVariable {
+
+ /** ConfigVariable key */
+ key?: (string|null);
+
+ /** ConfigVariable intValue */
+ intValue?: (number|Long|string|null);
+
+ /** ConfigVariable boolValue */
+ boolValue?: (boolean|null);
+
+ /** ConfigVariable stringValue */
+ stringValue?: (string|null);
+
+ /** ConfigVariable secretValue */
+ secretValue?: (google.cloud.connectors.v1.ISecret|null);
+ }
+
+ /** Represents a ConfigVariable. */
+ class ConfigVariable implements IConfigVariable {
+
+ /**
+ * Constructs a new ConfigVariable.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IConfigVariable);
+
+ /** ConfigVariable key. */
+ public key: string;
+
+ /** ConfigVariable intValue. */
+ public intValue?: (number|Long|string|null);
+
+ /** ConfigVariable boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** ConfigVariable stringValue. */
+ public stringValue?: (string|null);
+
+ /** ConfigVariable secretValue. */
+ public secretValue?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** ConfigVariable value. */
+ public value?: ("intValue"|"boolValue"|"stringValue"|"secretValue");
+
+ /**
+ * Creates a new ConfigVariable instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConfigVariable instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IConfigVariable): google.cloud.connectors.v1.ConfigVariable;
+
+ /**
+ * Encodes the specified ConfigVariable message. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariable.verify|verify} messages.
+ * @param message ConfigVariable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IConfigVariable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConfigVariable message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariable.verify|verify} messages.
+ * @param message ConfigVariable message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IConfigVariable, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConfigVariable message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConfigVariable
+ * @throws {Error} If the payload is not 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.connectors.v1.ConfigVariable;
+
+ /**
+ * Decodes a ConfigVariable message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConfigVariable
+ * @throws {Error} If the payload 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.connectors.v1.ConfigVariable;
+
+ /**
+ * Verifies a ConfigVariable message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConfigVariable message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConfigVariable
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ConfigVariable;
+
+ /**
+ * Creates a plain object from a ConfigVariable message. Also converts values to other types if specified.
+ * @param message ConfigVariable
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ConfigVariable, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfigVariable to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConfigVariable
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RoleGrant. */
+ interface IRoleGrant {
+
+ /** RoleGrant principal */
+ principal?: (google.cloud.connectors.v1.RoleGrant.Principal|keyof typeof google.cloud.connectors.v1.RoleGrant.Principal|null);
+
+ /** RoleGrant roles */
+ roles?: (string[]|null);
+
+ /** RoleGrant resource */
+ resource?: (google.cloud.connectors.v1.RoleGrant.IResource|null);
+
+ /** RoleGrant helperTextTemplate */
+ helperTextTemplate?: (string|null);
+ }
+
+ /** Represents a RoleGrant. */
+ class RoleGrant implements IRoleGrant {
+
+ /**
+ * Constructs a new RoleGrant.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IRoleGrant);
+
+ /** RoleGrant principal. */
+ public principal: (google.cloud.connectors.v1.RoleGrant.Principal|keyof typeof google.cloud.connectors.v1.RoleGrant.Principal);
+
+ /** RoleGrant roles. */
+ public roles: string[];
+
+ /** RoleGrant resource. */
+ public resource?: (google.cloud.connectors.v1.RoleGrant.IResource|null);
+
+ /** RoleGrant helperTextTemplate. */
+ public helperTextTemplate: string;
+
+ /**
+ * Creates a new RoleGrant instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RoleGrant instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IRoleGrant): google.cloud.connectors.v1.RoleGrant;
+
+ /**
+ * Encodes the specified RoleGrant message. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.verify|verify} messages.
+ * @param message RoleGrant message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IRoleGrant, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RoleGrant message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.verify|verify} messages.
+ * @param message RoleGrant message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IRoleGrant, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RoleGrant message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RoleGrant
+ * @throws {Error} If the payload is not 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.connectors.v1.RoleGrant;
+
+ /**
+ * Decodes a RoleGrant message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RoleGrant
+ * @throws {Error} If the payload 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.connectors.v1.RoleGrant;
+
+ /**
+ * Verifies a RoleGrant message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RoleGrant message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RoleGrant
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RoleGrant;
+
+ /**
+ * Creates a plain object from a RoleGrant message. Also converts values to other types if specified.
+ * @param message RoleGrant
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RoleGrant, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RoleGrant to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RoleGrant
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RoleGrant {
+
+ /** Principal enum. */
+ enum Principal {
+ PRINCIPAL_UNSPECIFIED = 0,
+ CONNECTOR_SA = 1
+ }
+
+ /** Properties of a Resource. */
+ interface IResource {
+
+ /** Resource type */
+ type?: (google.cloud.connectors.v1.RoleGrant.Resource.Type|keyof typeof google.cloud.connectors.v1.RoleGrant.Resource.Type|null);
+
+ /** Resource pathTemplate */
+ pathTemplate?: (string|null);
+ }
+
+ /** Represents a Resource. */
+ class Resource implements IResource {
+
+ /**
+ * Constructs a new Resource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.RoleGrant.IResource);
+
+ /** Resource type. */
+ public type: (google.cloud.connectors.v1.RoleGrant.Resource.Type|keyof typeof google.cloud.connectors.v1.RoleGrant.Resource.Type);
+
+ /** Resource pathTemplate. */
+ public pathTemplate: string;
+
+ /**
+ * Creates a new Resource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Resource instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.RoleGrant.IResource): google.cloud.connectors.v1.RoleGrant.Resource;
+
+ /**
+ * Encodes the specified Resource message. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.Resource.verify|verify} messages.
+ * @param message Resource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.RoleGrant.IResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Resource message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.Resource.verify|verify} messages.
+ * @param message Resource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.RoleGrant.IResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Resource
+ * @throws {Error} If the payload is not 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.connectors.v1.RoleGrant.Resource;
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Resource
+ * @throws {Error} If the payload 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.connectors.v1.RoleGrant.Resource;
+
+ /**
+ * Verifies a Resource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Resource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Resource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RoleGrant.Resource;
+
+ /**
+ * Creates a plain object from a Resource message. Also converts values to other types if specified.
+ * @param message Resource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RoleGrant.Resource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Resource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Resource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Resource {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ GCP_PROJECT = 1,
+ GCP_RESOURCE = 2,
+ GCP_SECRETMANAGER_SECRET = 3,
+ GCP_SECRETMANAGER_SECRET_VERSION = 4
+ }
+ }
+ }
+
+ /** Properties of an AuthorizationCodeLink. */
+ interface IAuthorizationCodeLink {
+
+ /** AuthorizationCodeLink uri */
+ uri?: (string|null);
+
+ /** AuthorizationCodeLink scopes */
+ scopes?: (string[]|null);
+
+ /** AuthorizationCodeLink clientId */
+ clientId?: (string|null);
+
+ /** AuthorizationCodeLink enablePkce */
+ enablePkce?: (boolean|null);
+ }
+
+ /** Represents an AuthorizationCodeLink. */
+ class AuthorizationCodeLink implements IAuthorizationCodeLink {
+
+ /**
+ * Constructs a new AuthorizationCodeLink.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IAuthorizationCodeLink);
+
+ /** AuthorizationCodeLink uri. */
+ public uri: string;
+
+ /** AuthorizationCodeLink scopes. */
+ public scopes: string[];
+
+ /** AuthorizationCodeLink clientId. */
+ public clientId: string;
+
+ /** AuthorizationCodeLink enablePkce. */
+ public enablePkce: boolean;
+
+ /**
+ * Creates a new AuthorizationCodeLink instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthorizationCodeLink instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IAuthorizationCodeLink): google.cloud.connectors.v1.AuthorizationCodeLink;
+
+ /**
+ * Encodes the specified AuthorizationCodeLink message. Does not implicitly {@link google.cloud.connectors.v1.AuthorizationCodeLink.verify|verify} messages.
+ * @param message AuthorizationCodeLink message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IAuthorizationCodeLink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthorizationCodeLink message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthorizationCodeLink.verify|verify} messages.
+ * @param message AuthorizationCodeLink message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IAuthorizationCodeLink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthorizationCodeLink message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthorizationCodeLink
+ * @throws {Error} If the payload is not 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.connectors.v1.AuthorizationCodeLink;
+
+ /**
+ * Decodes an AuthorizationCodeLink message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthorizationCodeLink
+ * @throws {Error} If the payload 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.connectors.v1.AuthorizationCodeLink;
+
+ /**
+ * Verifies an AuthorizationCodeLink message.
+ * @param message Plain 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 AuthorizationCodeLink message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthorizationCodeLink
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.AuthorizationCodeLink;
+
+ /**
+ * Creates a plain object from an AuthorizationCodeLink message. Also converts values to other types if specified.
+ * @param message AuthorizationCodeLink
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.AuthorizationCodeLink, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthorizationCodeLink to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuthorizationCodeLink
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ PREVIEW = 1,
+ GA = 2,
+ DEPRECATED = 3,
+ PRIVATE_PREVIEW = 5
+ }
+
+ /** Properties of a Connection. */
+ interface IConnection {
+
+ /** Connection name */
+ name?: (string|null);
+
+ /** Connection createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Connection description */
+ description?: (string|null);
+
+ /** Connection connectorVersion */
+ connectorVersion?: (string|null);
+
+ /** Connection status */
+ status?: (google.cloud.connectors.v1.IConnectionStatus|null);
+
+ /** Connection configVariables */
+ configVariables?: (google.cloud.connectors.v1.IConfigVariable[]|null);
+
+ /** Connection authConfig */
+ authConfig?: (google.cloud.connectors.v1.IAuthConfig|null);
+
+ /** Connection lockConfig */
+ lockConfig?: (google.cloud.connectors.v1.ILockConfig|null);
+
+ /** Connection destinationConfigs */
+ destinationConfigs?: (google.cloud.connectors.v1.IDestinationConfig[]|null);
+
+ /** Connection imageLocation */
+ imageLocation?: (string|null);
+
+ /** Connection serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** Connection serviceDirectory */
+ serviceDirectory?: (string|null);
+
+ /** Connection envoyImageLocation */
+ envoyImageLocation?: (string|null);
+
+ /** Connection suspended */
+ suspended?: (boolean|null);
+
+ /** Connection nodeConfig */
+ nodeConfig?: (google.cloud.connectors.v1.INodeConfig|null);
+
+ /** Connection sslConfig */
+ sslConfig?: (google.cloud.connectors.v1.ISslConfig|null);
+ }
+
+ /** Represents a Connection. */
+ class Connection implements IConnection {
+
+ /**
+ * Constructs a new Connection.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IConnection);
+
+ /** Connection name. */
+ public name: string;
+
+ /** Connection createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection labels. */
+ public labels: { [k: string]: string };
+
+ /** Connection description. */
+ public description: string;
+
+ /** Connection connectorVersion. */
+ public connectorVersion: string;
+
+ /** Connection status. */
+ public status?: (google.cloud.connectors.v1.IConnectionStatus|null);
+
+ /** Connection configVariables. */
+ public configVariables: google.cloud.connectors.v1.IConfigVariable[];
+
+ /** Connection authConfig. */
+ public authConfig?: (google.cloud.connectors.v1.IAuthConfig|null);
+
+ /** Connection lockConfig. */
+ public lockConfig?: (google.cloud.connectors.v1.ILockConfig|null);
+
+ /** Connection destinationConfigs. */
+ public destinationConfigs: google.cloud.connectors.v1.IDestinationConfig[];
+
+ /** Connection imageLocation. */
+ public imageLocation: string;
+
+ /** Connection serviceAccount. */
+ public serviceAccount: string;
+
+ /** Connection serviceDirectory. */
+ public serviceDirectory: string;
+
+ /** Connection envoyImageLocation. */
+ public envoyImageLocation: string;
+
+ /** Connection suspended. */
+ public suspended: boolean;
+
+ /** Connection nodeConfig. */
+ public nodeConfig?: (google.cloud.connectors.v1.INodeConfig|null);
+
+ /** Connection sslConfig. */
+ public sslConfig?: (google.cloud.connectors.v1.ISslConfig|null);
+
+ /**
+ * Creates a new Connection instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Connection instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IConnection): google.cloud.connectors.v1.Connection;
+
+ /**
+ * Encodes the specified Connection message. Does not implicitly {@link google.cloud.connectors.v1.Connection.verify|verify} messages.
+ * @param message Connection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IConnection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Connection message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Connection.verify|verify} messages.
+ * @param message Connection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IConnection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Connection
+ * @throws {Error} If the payload is not 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.connectors.v1.Connection;
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Connection
+ * @throws {Error} If the payload 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.connectors.v1.Connection;
+
+ /**
+ * Verifies a Connection message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Connection message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Connection
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.Connection;
+
+ /**
+ * Creates a plain object from a Connection message. Also converts values to other types if specified.
+ * @param message Connection
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.Connection, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Connection to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Connection
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeConfig. */
+ interface INodeConfig {
+
+ /** NodeConfig minNodeCount */
+ minNodeCount?: (number|null);
+
+ /** NodeConfig maxNodeCount */
+ maxNodeCount?: (number|null);
+ }
+
+ /** Represents a NodeConfig. */
+ class NodeConfig implements INodeConfig {
+
+ /**
+ * Constructs a new NodeConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.INodeConfig);
+
+ /** NodeConfig minNodeCount. */
+ public minNodeCount: number;
+
+ /** NodeConfig maxNodeCount. */
+ public maxNodeCount: number;
+
+ /**
+ * Creates a new NodeConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeConfig instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.INodeConfig): google.cloud.connectors.v1.NodeConfig;
+
+ /**
+ * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.connectors.v1.NodeConfig.verify|verify} messages.
+ * @param message NodeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.NodeConfig.verify|verify} messages.
+ * @param message NodeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeConfig
+ * @throws {Error} If the payload is not 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.connectors.v1.NodeConfig;
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeConfig
+ * @throws {Error} If the payload 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.connectors.v1.NodeConfig;
+
+ /**
+ * Verifies a NodeConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.NodeConfig;
+
+ /**
+ * Creates a plain object from a NodeConfig message. Also converts values to other types if specified.
+ * @param message NodeConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.NodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConnectionSchemaMetadata. */
+ interface IConnectionSchemaMetadata {
+
+ /** ConnectionSchemaMetadata entities */
+ entities?: (string[]|null);
+
+ /** ConnectionSchemaMetadata actions */
+ actions?: (string[]|null);
+
+ /** ConnectionSchemaMetadata name */
+ name?: (string|null);
+
+ /** ConnectionSchemaMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectionSchemaMetadata refreshTime */
+ refreshTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectionSchemaMetadata state */
+ state?: (google.cloud.connectors.v1.ConnectionSchemaMetadata.State|keyof typeof google.cloud.connectors.v1.ConnectionSchemaMetadata.State|null);
+ }
+
+ /** Represents a ConnectionSchemaMetadata. */
+ class ConnectionSchemaMetadata implements IConnectionSchemaMetadata {
+
+ /**
+ * Constructs a new ConnectionSchemaMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IConnectionSchemaMetadata);
+
+ /** ConnectionSchemaMetadata entities. */
+ public entities: string[];
+
+ /** ConnectionSchemaMetadata actions. */
+ public actions: string[];
+
+ /** ConnectionSchemaMetadata name. */
+ public name: string;
+
+ /** ConnectionSchemaMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectionSchemaMetadata refreshTime. */
+ public refreshTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectionSchemaMetadata state. */
+ public state: (google.cloud.connectors.v1.ConnectionSchemaMetadata.State|keyof typeof google.cloud.connectors.v1.ConnectionSchemaMetadata.State);
+
+ /**
+ * Creates a new ConnectionSchemaMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConnectionSchemaMetadata instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IConnectionSchemaMetadata): google.cloud.connectors.v1.ConnectionSchemaMetadata;
+
+ /**
+ * Encodes the specified ConnectionSchemaMetadata message. Does not implicitly {@link google.cloud.connectors.v1.ConnectionSchemaMetadata.verify|verify} messages.
+ * @param message ConnectionSchemaMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IConnectionSchemaMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConnectionSchemaMetadata message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConnectionSchemaMetadata.verify|verify} messages.
+ * @param message ConnectionSchemaMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IConnectionSchemaMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConnectionSchemaMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConnectionSchemaMetadata
+ * @throws {Error} If the payload is not 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.connectors.v1.ConnectionSchemaMetadata;
+
+ /**
+ * Decodes a ConnectionSchemaMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConnectionSchemaMetadata
+ * @throws {Error} If the payload 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.connectors.v1.ConnectionSchemaMetadata;
+
+ /**
+ * Verifies a ConnectionSchemaMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConnectionSchemaMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConnectionSchemaMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ConnectionSchemaMetadata;
+
+ /**
+ * Creates a plain object from a ConnectionSchemaMetadata message. Also converts values to other types if specified.
+ * @param message ConnectionSchemaMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ConnectionSchemaMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConnectionSchemaMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConnectionSchemaMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConnectionSchemaMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ REFRESHING = 1,
+ UPDATED = 2
+ }
+ }
+
+ /** Properties of a RuntimeEntitySchema. */
+ interface IRuntimeEntitySchema {
+
+ /** RuntimeEntitySchema entity */
+ entity?: (string|null);
+
+ /** RuntimeEntitySchema fields */
+ fields?: (google.cloud.connectors.v1.RuntimeEntitySchema.IField[]|null);
+ }
+
+ /** Represents a RuntimeEntitySchema. */
+ class RuntimeEntitySchema implements IRuntimeEntitySchema {
+
+ /**
+ * Constructs a new RuntimeEntitySchema.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IRuntimeEntitySchema);
+
+ /** RuntimeEntitySchema entity. */
+ public entity: string;
+
+ /** RuntimeEntitySchema fields. */
+ public fields: google.cloud.connectors.v1.RuntimeEntitySchema.IField[];
+
+ /**
+ * Creates a new RuntimeEntitySchema instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RuntimeEntitySchema instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IRuntimeEntitySchema): google.cloud.connectors.v1.RuntimeEntitySchema;
+
+ /**
+ * Encodes the specified RuntimeEntitySchema message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.verify|verify} messages.
+ * @param message RuntimeEntitySchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IRuntimeEntitySchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RuntimeEntitySchema message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.verify|verify} messages.
+ * @param message RuntimeEntitySchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IRuntimeEntitySchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RuntimeEntitySchema message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RuntimeEntitySchema
+ * @throws {Error} If the payload is not 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.connectors.v1.RuntimeEntitySchema;
+
+ /**
+ * Decodes a RuntimeEntitySchema message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RuntimeEntitySchema
+ * @throws {Error} If the payload 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.connectors.v1.RuntimeEntitySchema;
+
+ /**
+ * Verifies a RuntimeEntitySchema message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RuntimeEntitySchema message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RuntimeEntitySchema
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RuntimeEntitySchema;
+
+ /**
+ * Creates a plain object from a RuntimeEntitySchema message. Also converts values to other types if specified.
+ * @param message RuntimeEntitySchema
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RuntimeEntitySchema, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RuntimeEntitySchema to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RuntimeEntitySchema
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RuntimeEntitySchema {
+
+ /** Properties of a Field. */
+ interface IField {
+
+ /** Field field */
+ field?: (string|null);
+
+ /** Field description */
+ description?: (string|null);
+
+ /** Field dataType */
+ dataType?: (google.cloud.connectors.v1.DataType|keyof typeof google.cloud.connectors.v1.DataType|null);
+
+ /** Field key */
+ key?: (boolean|null);
+
+ /** Field readonly */
+ readonly?: (boolean|null);
+
+ /** Field nullable */
+ nullable?: (boolean|null);
+
+ /** Field defaultValue */
+ defaultValue?: (google.protobuf.IValue|null);
+
+ /** Field additionalDetails */
+ additionalDetails?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents a Field. */
+ class Field implements IField {
+
+ /**
+ * Constructs a new Field.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.RuntimeEntitySchema.IField);
+
+ /** Field field. */
+ public field: string;
+
+ /** Field description. */
+ public description: string;
+
+ /** Field dataType. */
+ public dataType: (google.cloud.connectors.v1.DataType|keyof typeof google.cloud.connectors.v1.DataType);
+
+ /** Field key. */
+ public key: boolean;
+
+ /** Field readonly. */
+ public readonly: boolean;
+
+ /** Field nullable. */
+ public nullable: boolean;
+
+ /** Field defaultValue. */
+ public defaultValue?: (google.protobuf.IValue|null);
+
+ /** Field additionalDetails. */
+ public additionalDetails?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new Field instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Field instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.RuntimeEntitySchema.IField): google.cloud.connectors.v1.RuntimeEntitySchema.Field;
+
+ /**
+ * Encodes the specified Field message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.Field.verify|verify} messages.
+ * @param message Field message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.RuntimeEntitySchema.IField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Field message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.Field.verify|verify} messages.
+ * @param message Field message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.RuntimeEntitySchema.IField, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Field message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.connectors.v1.RuntimeEntitySchema.Field;
+
+ /**
+ * Decodes a Field message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.connectors.v1.RuntimeEntitySchema.Field;
+
+ /**
+ * Verifies a Field message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Field message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Field
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RuntimeEntitySchema.Field;
+
+ /**
+ * Creates a plain object from a Field message. Also converts values to other types if specified.
+ * @param message Field
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RuntimeEntitySchema.Field, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Field to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Field
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a RuntimeActionSchema. */
+ interface IRuntimeActionSchema {
+
+ /** RuntimeActionSchema action */
+ action?: (string|null);
+
+ /** RuntimeActionSchema inputParameters */
+ inputParameters?: (google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter[]|null);
+
+ /** RuntimeActionSchema resultMetadata */
+ resultMetadata?: (google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata[]|null);
+ }
+
+ /** Represents a RuntimeActionSchema. */
+ class RuntimeActionSchema implements IRuntimeActionSchema {
+
+ /**
+ * Constructs a new RuntimeActionSchema.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IRuntimeActionSchema);
+
+ /** RuntimeActionSchema action. */
+ public action: string;
+
+ /** RuntimeActionSchema inputParameters. */
+ public inputParameters: google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter[];
+
+ /** RuntimeActionSchema resultMetadata. */
+ public resultMetadata: google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata[];
+
+ /**
+ * Creates a new RuntimeActionSchema instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RuntimeActionSchema instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IRuntimeActionSchema): google.cloud.connectors.v1.RuntimeActionSchema;
+
+ /**
+ * Encodes the specified RuntimeActionSchema message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.verify|verify} messages.
+ * @param message RuntimeActionSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IRuntimeActionSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RuntimeActionSchema message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.verify|verify} messages.
+ * @param message RuntimeActionSchema message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IRuntimeActionSchema, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RuntimeActionSchema message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RuntimeActionSchema
+ * @throws {Error} If the payload is not 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.connectors.v1.RuntimeActionSchema;
+
+ /**
+ * Decodes a RuntimeActionSchema message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RuntimeActionSchema
+ * @throws {Error} If the payload 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.connectors.v1.RuntimeActionSchema;
+
+ /**
+ * Verifies a RuntimeActionSchema message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RuntimeActionSchema message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RuntimeActionSchema
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RuntimeActionSchema;
+
+ /**
+ * Creates a plain object from a RuntimeActionSchema message. Also converts values to other types if specified.
+ * @param message RuntimeActionSchema
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RuntimeActionSchema, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RuntimeActionSchema to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RuntimeActionSchema
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RuntimeActionSchema {
+
+ /** Properties of an InputParameter. */
+ interface IInputParameter {
+
+ /** InputParameter parameter */
+ parameter?: (string|null);
+
+ /** InputParameter description */
+ description?: (string|null);
+
+ /** InputParameter dataType */
+ dataType?: (google.cloud.connectors.v1.DataType|keyof typeof google.cloud.connectors.v1.DataType|null);
+
+ /** InputParameter nullable */
+ nullable?: (boolean|null);
+
+ /** InputParameter defaultValue */
+ defaultValue?: (google.protobuf.IValue|null);
+ }
+
+ /** Represents an InputParameter. */
+ class InputParameter implements IInputParameter {
+
+ /**
+ * Constructs a new InputParameter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter);
+
+ /** InputParameter parameter. */
+ public parameter: string;
+
+ /** InputParameter description. */
+ public description: string;
+
+ /** InputParameter dataType. */
+ public dataType: (google.cloud.connectors.v1.DataType|keyof typeof google.cloud.connectors.v1.DataType);
+
+ /** InputParameter nullable. */
+ public nullable: boolean;
+
+ /** InputParameter defaultValue. */
+ public defaultValue?: (google.protobuf.IValue|null);
+
+ /**
+ * Creates a new InputParameter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InputParameter instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter): google.cloud.connectors.v1.RuntimeActionSchema.InputParameter;
+
+ /**
+ * Encodes the specified InputParameter message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.verify|verify} messages.
+ * @param message InputParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InputParameter message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.verify|verify} messages.
+ * @param message InputParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InputParameter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InputParameter
+ * @throws {Error} If the payload is not 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.connectors.v1.RuntimeActionSchema.InputParameter;
+
+ /**
+ * Decodes an InputParameter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InputParameter
+ * @throws {Error} If the payload 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.connectors.v1.RuntimeActionSchema.InputParameter;
+
+ /**
+ * Verifies an InputParameter message.
+ * @param message Plain 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 InputParameter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InputParameter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RuntimeActionSchema.InputParameter;
+
+ /**
+ * Creates a plain object from an InputParameter message. Also converts values to other types if specified.
+ * @param message InputParameter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RuntimeActionSchema.InputParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InputParameter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InputParameter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResultMetadata. */
+ interface IResultMetadata {
+
+ /** ResultMetadata field */
+ field?: (string|null);
+
+ /** ResultMetadata description */
+ description?: (string|null);
+
+ /** ResultMetadata dataType */
+ dataType?: (google.cloud.connectors.v1.DataType|keyof typeof google.cloud.connectors.v1.DataType|null);
+ }
+
+ /** Represents a ResultMetadata. */
+ class ResultMetadata implements IResultMetadata {
+
+ /**
+ * Constructs a new ResultMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata);
+
+ /** ResultMetadata field. */
+ public field: string;
+
+ /** ResultMetadata description. */
+ public description: string;
+
+ /** ResultMetadata dataType. */
+ public dataType: (google.cloud.connectors.v1.DataType|keyof typeof google.cloud.connectors.v1.DataType);
+
+ /**
+ * Creates a new ResultMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResultMetadata instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata): google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata;
+
+ /**
+ * Encodes the specified ResultMetadata message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.verify|verify} messages.
+ * @param message ResultMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResultMetadata message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.verify|verify} messages.
+ * @param message ResultMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResultMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResultMetadata
+ * @throws {Error} If the payload is not 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.connectors.v1.RuntimeActionSchema.ResultMetadata;
+
+ /**
+ * Decodes a ResultMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResultMetadata
+ * @throws {Error} If the payload 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.connectors.v1.RuntimeActionSchema.ResultMetadata;
+
+ /**
+ * Verifies a ResultMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResultMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResultMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata;
+
+ /**
+ * Creates a plain object from a ResultMetadata message. Also converts values to other types if specified.
+ * @param message ResultMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResultMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResultMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a LockConfig. */
+ interface ILockConfig {
+
+ /** LockConfig locked */
+ locked?: (boolean|null);
+
+ /** LockConfig reason */
+ reason?: (string|null);
+ }
+
+ /** Represents a LockConfig. */
+ class LockConfig implements ILockConfig {
+
+ /**
+ * Constructs a new LockConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ILockConfig);
+
+ /** LockConfig locked. */
+ public locked: boolean;
+
+ /** LockConfig reason. */
+ public reason: string;
+
+ /**
+ * Creates a new LockConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LockConfig instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ILockConfig): google.cloud.connectors.v1.LockConfig;
+
+ /**
+ * Encodes the specified LockConfig message. Does not implicitly {@link google.cloud.connectors.v1.LockConfig.verify|verify} messages.
+ * @param message LockConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ILockConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LockConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.LockConfig.verify|verify} messages.
+ * @param message LockConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ILockConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LockConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LockConfig
+ * @throws {Error} If the payload is not 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.connectors.v1.LockConfig;
+
+ /**
+ * Decodes a LockConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LockConfig
+ * @throws {Error} If the payload 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.connectors.v1.LockConfig;
+
+ /**
+ * Verifies a LockConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LockConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LockConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.LockConfig;
+
+ /**
+ * Creates a plain object from a LockConfig message. Also converts values to other types if specified.
+ * @param message LockConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.LockConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LockConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LockConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectionsRequest. */
+ interface IListConnectionsRequest {
+
+ /** ListConnectionsRequest parent */
+ parent?: (string|null);
+
+ /** ListConnectionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListConnectionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListConnectionsRequest filter */
+ filter?: (string|null);
+
+ /** ListConnectionsRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListConnectionsRequest view */
+ view?: (google.cloud.connectors.v1.ConnectionView|keyof typeof google.cloud.connectors.v1.ConnectionView|null);
+ }
+
+ /** Represents a ListConnectionsRequest. */
+ class ListConnectionsRequest implements IListConnectionsRequest {
+
+ /**
+ * Constructs a new ListConnectionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListConnectionsRequest);
+
+ /** ListConnectionsRequest parent. */
+ public parent: string;
+
+ /** ListConnectionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListConnectionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListConnectionsRequest filter. */
+ public filter: string;
+
+ /** ListConnectionsRequest orderBy. */
+ public orderBy: string;
+
+ /** ListConnectionsRequest view. */
+ public view: (google.cloud.connectors.v1.ConnectionView|keyof typeof google.cloud.connectors.v1.ConnectionView);
+
+ /**
+ * Creates a new ListConnectionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectionsRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListConnectionsRequest): google.cloud.connectors.v1.ListConnectionsRequest;
+
+ /**
+ * Encodes the specified ListConnectionsRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsRequest.verify|verify} messages.
+ * @param message ListConnectionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsRequest.verify|verify} messages.
+ * @param message ListConnectionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectionsRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.ListConnectionsRequest;
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectionsRequest
+ * @throws {Error} If the payload 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.connectors.v1.ListConnectionsRequest;
+
+ /**
+ * Verifies a ListConnectionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConnectionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListConnectionsRequest;
+
+ /**
+ * Creates a plain object from a ListConnectionsRequest message. Also converts values to other types if specified.
+ * @param message ListConnectionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectionsResponse. */
+ interface IListConnectionsResponse {
+
+ /** ListConnectionsResponse connections */
+ connections?: (google.cloud.connectors.v1.IConnection[]|null);
+
+ /** ListConnectionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListConnectionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListConnectionsResponse. */
+ class ListConnectionsResponse implements IListConnectionsResponse {
+
+ /**
+ * Constructs a new ListConnectionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListConnectionsResponse);
+
+ /** ListConnectionsResponse connections. */
+ public connections: google.cloud.connectors.v1.IConnection[];
+
+ /** ListConnectionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListConnectionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListConnectionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectionsResponse instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListConnectionsResponse): google.cloud.connectors.v1.ListConnectionsResponse;
+
+ /**
+ * Encodes the specified ListConnectionsResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsResponse.verify|verify} messages.
+ * @param message ListConnectionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsResponse.verify|verify} messages.
+ * @param message ListConnectionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectionsResponse
+ * @throws {Error} If the payload is not 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.connectors.v1.ListConnectionsResponse;
+
+ /**
+ * Decodes a ListConnectionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectionsResponse
+ * @throws {Error} If the payload 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.connectors.v1.ListConnectionsResponse;
+
+ /**
+ * Verifies a ListConnectionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConnectionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListConnectionsResponse;
+
+ /**
+ * Creates a plain object from a ListConnectionsResponse message. Also converts values to other types if specified.
+ * @param message ListConnectionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetConnectionRequest. */
+ interface IGetConnectionRequest {
+
+ /** GetConnectionRequest name */
+ name?: (string|null);
+
+ /** GetConnectionRequest view */
+ view?: (google.cloud.connectors.v1.ConnectionView|keyof typeof google.cloud.connectors.v1.ConnectionView|null);
+ }
+
+ /** Represents a GetConnectionRequest. */
+ class GetConnectionRequest implements IGetConnectionRequest {
+
+ /**
+ * Constructs a new GetConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IGetConnectionRequest);
+
+ /** GetConnectionRequest name. */
+ public name: string;
+
+ /** GetConnectionRequest view. */
+ public view: (google.cloud.connectors.v1.ConnectionView|keyof typeof google.cloud.connectors.v1.ConnectionView);
+
+ /**
+ * Creates a new GetConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IGetConnectionRequest): google.cloud.connectors.v1.GetConnectionRequest;
+
+ /**
+ * Encodes the specified GetConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionRequest.verify|verify} messages.
+ * @param message GetConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IGetConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionRequest.verify|verify} messages.
+ * @param message GetConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IGetConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetConnectionRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.GetConnectionRequest;
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetConnectionRequest
+ * @throws {Error} If the payload 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.connectors.v1.GetConnectionRequest;
+
+ /**
+ * Verifies a GetConnectionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.GetConnectionRequest;
+
+ /**
+ * Creates a plain object from a GetConnectionRequest message. Also converts values to other types if specified.
+ * @param message GetConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.GetConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateConnectionRequest. */
+ interface ICreateConnectionRequest {
+
+ /** CreateConnectionRequest parent */
+ parent?: (string|null);
+
+ /** CreateConnectionRequest connectionId */
+ connectionId?: (string|null);
+
+ /** CreateConnectionRequest connection */
+ connection?: (google.cloud.connectors.v1.IConnection|null);
+ }
+
+ /** Represents a CreateConnectionRequest. */
+ class CreateConnectionRequest implements ICreateConnectionRequest {
+
+ /**
+ * Constructs a new CreateConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ICreateConnectionRequest);
+
+ /** CreateConnectionRequest parent. */
+ public parent: string;
+
+ /** CreateConnectionRequest connectionId. */
+ public connectionId: string;
+
+ /** CreateConnectionRequest connection. */
+ public connection?: (google.cloud.connectors.v1.IConnection|null);
+
+ /**
+ * Creates a new CreateConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ICreateConnectionRequest): google.cloud.connectors.v1.CreateConnectionRequest;
+
+ /**
+ * Encodes the specified CreateConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.CreateConnectionRequest.verify|verify} messages.
+ * @param message CreateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ICreateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.CreateConnectionRequest.verify|verify} messages.
+ * @param message CreateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ICreateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateConnectionRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.CreateConnectionRequest;
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateConnectionRequest
+ * @throws {Error} If the payload 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.connectors.v1.CreateConnectionRequest;
+
+ /**
+ * Verifies a CreateConnectionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.CreateConnectionRequest;
+
+ /**
+ * Creates a plain object from a CreateConnectionRequest message. Also converts values to other types if specified.
+ * @param message CreateConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.CreateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateConnectionRequest. */
+ interface IUpdateConnectionRequest {
+
+ /** UpdateConnectionRequest connection */
+ connection?: (google.cloud.connectors.v1.IConnection|null);
+
+ /** UpdateConnectionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateConnectionRequest. */
+ class UpdateConnectionRequest implements IUpdateConnectionRequest {
+
+ /**
+ * Constructs a new UpdateConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IUpdateConnectionRequest);
+
+ /** UpdateConnectionRequest connection. */
+ public connection?: (google.cloud.connectors.v1.IConnection|null);
+
+ /** UpdateConnectionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IUpdateConnectionRequest): google.cloud.connectors.v1.UpdateConnectionRequest;
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @param message UpdateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IUpdateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @param message UpdateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IUpdateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateConnectionRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.UpdateConnectionRequest;
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateConnectionRequest
+ * @throws {Error} If the payload 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.connectors.v1.UpdateConnectionRequest;
+
+ /**
+ * Verifies an UpdateConnectionRequest message.
+ * @param message Plain 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 UpdateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.UpdateConnectionRequest;
+
+ /**
+ * Creates a plain object from an UpdateConnectionRequest message. Also converts values to other types if specified.
+ * @param message UpdateConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.UpdateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteConnectionRequest. */
+ interface IDeleteConnectionRequest {
+
+ /** DeleteConnectionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteConnectionRequest. */
+ class DeleteConnectionRequest implements IDeleteConnectionRequest {
+
+ /**
+ * Constructs a new DeleteConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IDeleteConnectionRequest);
+
+ /** DeleteConnectionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IDeleteConnectionRequest): google.cloud.connectors.v1.DeleteConnectionRequest;
+
+ /**
+ * Encodes the specified DeleteConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @param message DeleteConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IDeleteConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @param message DeleteConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IDeleteConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteConnectionRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.DeleteConnectionRequest;
+
+ /**
+ * Decodes a DeleteConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteConnectionRequest
+ * @throws {Error} If the payload 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.connectors.v1.DeleteConnectionRequest;
+
+ /**
+ * Verifies a DeleteConnectionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.DeleteConnectionRequest;
+
+ /**
+ * Creates a plain object from a DeleteConnectionRequest message. Also converts values to other types if specified.
+ * @param message DeleteConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.DeleteConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetConnectionSchemaMetadataRequest. */
+ interface IGetConnectionSchemaMetadataRequest {
+
+ /** GetConnectionSchemaMetadataRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetConnectionSchemaMetadataRequest. */
+ class GetConnectionSchemaMetadataRequest implements IGetConnectionSchemaMetadataRequest {
+
+ /**
+ * Constructs a new GetConnectionSchemaMetadataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest);
+
+ /** GetConnectionSchemaMetadataRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetConnectionSchemaMetadataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetConnectionSchemaMetadataRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest): google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest;
+
+ /**
+ * Encodes the specified GetConnectionSchemaMetadataRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @param message GetConnectionSchemaMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetConnectionSchemaMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @param message GetConnectionSchemaMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetConnectionSchemaMetadataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.GetConnectionSchemaMetadataRequest;
+
+ /**
+ * Decodes a GetConnectionSchemaMetadataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload 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.connectors.v1.GetConnectionSchemaMetadataRequest;
+
+ /**
+ * Verifies a GetConnectionSchemaMetadataRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetConnectionSchemaMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetConnectionSchemaMetadataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest;
+
+ /**
+ * Creates a plain object from a GetConnectionSchemaMetadataRequest message. Also converts values to other types if specified.
+ * @param message GetConnectionSchemaMetadataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetConnectionSchemaMetadataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetConnectionSchemaMetadataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RefreshConnectionSchemaMetadataRequest. */
+ interface IRefreshConnectionSchemaMetadataRequest {
+
+ /** RefreshConnectionSchemaMetadataRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a RefreshConnectionSchemaMetadataRequest. */
+ class RefreshConnectionSchemaMetadataRequest implements IRefreshConnectionSchemaMetadataRequest {
+
+ /**
+ * Constructs a new RefreshConnectionSchemaMetadataRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest);
+
+ /** RefreshConnectionSchemaMetadataRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new RefreshConnectionSchemaMetadataRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RefreshConnectionSchemaMetadataRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest): google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest;
+
+ /**
+ * Encodes the specified RefreshConnectionSchemaMetadataRequest message. Does not implicitly {@link google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @param message RefreshConnectionSchemaMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RefreshConnectionSchemaMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @param message RefreshConnectionSchemaMetadataRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RefreshConnectionSchemaMetadataRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RefreshConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.RefreshConnectionSchemaMetadataRequest;
+
+ /**
+ * Decodes a RefreshConnectionSchemaMetadataRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RefreshConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload 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.connectors.v1.RefreshConnectionSchemaMetadataRequest;
+
+ /**
+ * Verifies a RefreshConnectionSchemaMetadataRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RefreshConnectionSchemaMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RefreshConnectionSchemaMetadataRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest;
+
+ /**
+ * Creates a plain object from a RefreshConnectionSchemaMetadataRequest message. Also converts values to other types if specified.
+ * @param message RefreshConnectionSchemaMetadataRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RefreshConnectionSchemaMetadataRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RefreshConnectionSchemaMetadataRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimeEntitySchemasRequest. */
+ interface IListRuntimeEntitySchemasRequest {
+
+ /** ListRuntimeEntitySchemasRequest parent */
+ parent?: (string|null);
+
+ /** ListRuntimeEntitySchemasRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListRuntimeEntitySchemasRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListRuntimeEntitySchemasRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListRuntimeEntitySchemasRequest. */
+ class ListRuntimeEntitySchemasRequest implements IListRuntimeEntitySchemasRequest {
+
+ /**
+ * Constructs a new ListRuntimeEntitySchemasRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest);
+
+ /** ListRuntimeEntitySchemasRequest parent. */
+ public parent: string;
+
+ /** ListRuntimeEntitySchemasRequest pageSize. */
+ public pageSize: number;
+
+ /** ListRuntimeEntitySchemasRequest pageToken. */
+ public pageToken: string;
+
+ /** ListRuntimeEntitySchemasRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListRuntimeEntitySchemasRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimeEntitySchemasRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest): google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest;
+
+ /**
+ * Encodes the specified ListRuntimeEntitySchemasRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest.verify|verify} messages.
+ * @param message ListRuntimeEntitySchemasRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimeEntitySchemasRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest.verify|verify} messages.
+ * @param message ListRuntimeEntitySchemasRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimeEntitySchemasRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.ListRuntimeEntitySchemasRequest;
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimeEntitySchemasRequest
+ * @throws {Error} If the payload 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.connectors.v1.ListRuntimeEntitySchemasRequest;
+
+ /**
+ * Verifies a ListRuntimeEntitySchemasRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimeEntitySchemasRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimeEntitySchemasRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest;
+
+ /**
+ * Creates a plain object from a ListRuntimeEntitySchemasRequest message. Also converts values to other types if specified.
+ * @param message ListRuntimeEntitySchemasRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimeEntitySchemasRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimeEntitySchemasRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimeEntitySchemasResponse. */
+ interface IListRuntimeEntitySchemasResponse {
+
+ /** ListRuntimeEntitySchemasResponse runtimeEntitySchemas */
+ runtimeEntitySchemas?: (google.cloud.connectors.v1.IRuntimeEntitySchema[]|null);
+
+ /** ListRuntimeEntitySchemasResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListRuntimeEntitySchemasResponse. */
+ class ListRuntimeEntitySchemasResponse implements IListRuntimeEntitySchemasResponse {
+
+ /**
+ * Constructs a new ListRuntimeEntitySchemasResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse);
+
+ /** ListRuntimeEntitySchemasResponse runtimeEntitySchemas. */
+ public runtimeEntitySchemas: google.cloud.connectors.v1.IRuntimeEntitySchema[];
+
+ /** ListRuntimeEntitySchemasResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListRuntimeEntitySchemasResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimeEntitySchemasResponse instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse): google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse;
+
+ /**
+ * Encodes the specified ListRuntimeEntitySchemasResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse.verify|verify} messages.
+ * @param message ListRuntimeEntitySchemasResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimeEntitySchemasResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse.verify|verify} messages.
+ * @param message ListRuntimeEntitySchemasResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimeEntitySchemasResponse
+ * @throws {Error} If the payload is not 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.connectors.v1.ListRuntimeEntitySchemasResponse;
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimeEntitySchemasResponse
+ * @throws {Error} If the payload 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.connectors.v1.ListRuntimeEntitySchemasResponse;
+
+ /**
+ * Verifies a ListRuntimeEntitySchemasResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimeEntitySchemasResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimeEntitySchemasResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse;
+
+ /**
+ * Creates a plain object from a ListRuntimeEntitySchemasResponse message. Also converts values to other types if specified.
+ * @param message ListRuntimeEntitySchemasResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimeEntitySchemasResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimeEntitySchemasResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimeActionSchemasRequest. */
+ interface IListRuntimeActionSchemasRequest {
+
+ /** ListRuntimeActionSchemasRequest parent */
+ parent?: (string|null);
+
+ /** ListRuntimeActionSchemasRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListRuntimeActionSchemasRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListRuntimeActionSchemasRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListRuntimeActionSchemasRequest. */
+ class ListRuntimeActionSchemasRequest implements IListRuntimeActionSchemasRequest {
+
+ /**
+ * Constructs a new ListRuntimeActionSchemasRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListRuntimeActionSchemasRequest);
+
+ /** ListRuntimeActionSchemasRequest parent. */
+ public parent: string;
+
+ /** ListRuntimeActionSchemasRequest pageSize. */
+ public pageSize: number;
+
+ /** ListRuntimeActionSchemasRequest pageToken. */
+ public pageToken: string;
+
+ /** ListRuntimeActionSchemasRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListRuntimeActionSchemasRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimeActionSchemasRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListRuntimeActionSchemasRequest): google.cloud.connectors.v1.ListRuntimeActionSchemasRequest;
+
+ /**
+ * Encodes the specified ListRuntimeActionSchemasRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasRequest.verify|verify} messages.
+ * @param message ListRuntimeActionSchemasRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListRuntimeActionSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimeActionSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasRequest.verify|verify} messages.
+ * @param message ListRuntimeActionSchemasRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListRuntimeActionSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimeActionSchemasRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimeActionSchemasRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.ListRuntimeActionSchemasRequest;
+
+ /**
+ * Decodes a ListRuntimeActionSchemasRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimeActionSchemasRequest
+ * @throws {Error} If the payload 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.connectors.v1.ListRuntimeActionSchemasRequest;
+
+ /**
+ * Verifies a ListRuntimeActionSchemasRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimeActionSchemasRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimeActionSchemasRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListRuntimeActionSchemasRequest;
+
+ /**
+ * Creates a plain object from a ListRuntimeActionSchemasRequest message. Also converts values to other types if specified.
+ * @param message ListRuntimeActionSchemasRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListRuntimeActionSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimeActionSchemasRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimeActionSchemasRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimeActionSchemasResponse. */
+ interface IListRuntimeActionSchemasResponse {
+
+ /** ListRuntimeActionSchemasResponse runtimeActionSchemas */
+ runtimeActionSchemas?: (google.cloud.connectors.v1.IRuntimeActionSchema[]|null);
+
+ /** ListRuntimeActionSchemasResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListRuntimeActionSchemasResponse. */
+ class ListRuntimeActionSchemasResponse implements IListRuntimeActionSchemasResponse {
+
+ /**
+ * Constructs a new ListRuntimeActionSchemasResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListRuntimeActionSchemasResponse);
+
+ /** ListRuntimeActionSchemasResponse runtimeActionSchemas. */
+ public runtimeActionSchemas: google.cloud.connectors.v1.IRuntimeActionSchema[];
+
+ /** ListRuntimeActionSchemasResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListRuntimeActionSchemasResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimeActionSchemasResponse instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListRuntimeActionSchemasResponse): google.cloud.connectors.v1.ListRuntimeActionSchemasResponse;
+
+ /**
+ * Encodes the specified ListRuntimeActionSchemasResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasResponse.verify|verify} messages.
+ * @param message ListRuntimeActionSchemasResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListRuntimeActionSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimeActionSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasResponse.verify|verify} messages.
+ * @param message ListRuntimeActionSchemasResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListRuntimeActionSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimeActionSchemasResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimeActionSchemasResponse
+ * @throws {Error} If the payload is not 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.connectors.v1.ListRuntimeActionSchemasResponse;
+
+ /**
+ * Decodes a ListRuntimeActionSchemasResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimeActionSchemasResponse
+ * @throws {Error} If the payload 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.connectors.v1.ListRuntimeActionSchemasResponse;
+
+ /**
+ * Verifies a ListRuntimeActionSchemasResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimeActionSchemasResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimeActionSchemasResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListRuntimeActionSchemasResponse;
+
+ /**
+ * Creates a plain object from a ListRuntimeActionSchemasResponse message. Also converts values to other types if specified.
+ * @param message ListRuntimeActionSchemasResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListRuntimeActionSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimeActionSchemasResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimeActionSchemasResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConnectionStatus. */
+ interface IConnectionStatus {
+
+ /** ConnectionStatus state */
+ state?: (google.cloud.connectors.v1.ConnectionStatus.State|keyof typeof google.cloud.connectors.v1.ConnectionStatus.State|null);
+
+ /** ConnectionStatus description */
+ description?: (string|null);
+
+ /** ConnectionStatus status */
+ status?: (string|null);
+ }
+
+ /** Represents a ConnectionStatus. */
+ class ConnectionStatus implements IConnectionStatus {
+
+ /**
+ * Constructs a new ConnectionStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IConnectionStatus);
+
+ /** ConnectionStatus state. */
+ public state: (google.cloud.connectors.v1.ConnectionStatus.State|keyof typeof google.cloud.connectors.v1.ConnectionStatus.State);
+
+ /** ConnectionStatus description. */
+ public description: string;
+
+ /** ConnectionStatus status. */
+ public status: string;
+
+ /**
+ * Creates a new ConnectionStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConnectionStatus instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IConnectionStatus): google.cloud.connectors.v1.ConnectionStatus;
+
+ /**
+ * Encodes the specified ConnectionStatus message. Does not implicitly {@link google.cloud.connectors.v1.ConnectionStatus.verify|verify} messages.
+ * @param message ConnectionStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IConnectionStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConnectionStatus message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConnectionStatus.verify|verify} messages.
+ * @param message ConnectionStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IConnectionStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConnectionStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConnectionStatus
+ * @throws {Error} If the payload is not 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.connectors.v1.ConnectionStatus;
+
+ /**
+ * Decodes a ConnectionStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConnectionStatus
+ * @throws {Error} If the payload 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.connectors.v1.ConnectionStatus;
+
+ /**
+ * Verifies a ConnectionStatus message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConnectionStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConnectionStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ConnectionStatus;
+
+ /**
+ * Creates a plain object from a ConnectionStatus message. Also converts values to other types if specified.
+ * @param message ConnectionStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ConnectionStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConnectionStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConnectionStatus
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ConnectionStatus {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ ACTIVE = 2,
+ INACTIVE = 3,
+ DELETING = 4,
+ UPDATING = 5,
+ ERROR = 6,
+ AUTHORIZATION_REQUIRED = 7
+ }
+ }
+
+ /** DataType enum. */
+ enum DataType {
+ DATA_TYPE_UNSPECIFIED = 0,
+ DATA_TYPE_INT = 1,
+ DATA_TYPE_SMALLINT = 2,
+ DATA_TYPE_DOUBLE = 3,
+ DATA_TYPE_DATE = 4,
+ DATA_TYPE_DATETIME = 5,
+ DATA_TYPE_TIME = 6,
+ DATA_TYPE_STRING = 7,
+ DATA_TYPE_LONG = 8,
+ DATA_TYPE_BOOLEAN = 9,
+ DATA_TYPE_DECIMAL = 10,
+ DATA_TYPE_UUID = 11,
+ DATA_TYPE_BLOB = 12,
+ DATA_TYPE_BIT = 13,
+ DATA_TYPE_TINYINT = 14,
+ DATA_TYPE_INTEGER = 15,
+ DATA_TYPE_BIGINT = 16,
+ DATA_TYPE_FLOAT = 17,
+ DATA_TYPE_REAL = 18,
+ DATA_TYPE_NUMERIC = 19,
+ DATA_TYPE_CHAR = 20,
+ DATA_TYPE_VARCHAR = 21,
+ DATA_TYPE_LONGVARCHAR = 22,
+ DATA_TYPE_TIMESTAMP = 23,
+ DATA_TYPE_NCHAR = 24,
+ DATA_TYPE_NVARCHAR = 25,
+ DATA_TYPE_LONGNVARCHAR = 26,
+ DATA_TYPE_NULL = 27,
+ DATA_TYPE_OTHER = 28,
+ DATA_TYPE_JAVA_OBJECT = 29,
+ DATA_TYPE_DISTINCT = 30,
+ DATA_TYPE_STRUCT = 31,
+ DATA_TYPE_ARRAY = 32,
+ DATA_TYPE_CLOB = 33,
+ DATA_TYPE_REF = 34,
+ DATA_TYPE_DATALINK = 35,
+ DATA_TYPE_ROWID = 36,
+ DATA_TYPE_BINARY = 37,
+ DATA_TYPE_VARBINARY = 38,
+ DATA_TYPE_LONGVARBINARY = 39,
+ DATA_TYPE_NCLOB = 40,
+ DATA_TYPE_SQLXML = 41,
+ DATA_TYPE_REF_CURSOR = 42,
+ DATA_TYPE_TIME_WITH_TIMEZONE = 43,
+ DATA_TYPE_TIMESTAMP_WITH_TIMEZONE = 44
+ }
+
+ /** ConnectionView enum. */
+ enum ConnectionView {
+ CONNECTION_VIEW_UNSPECIFIED = 0,
+ BASIC = 1,
+ FULL = 2
+ }
+
+ /** Properties of a DestinationConfig. */
+ interface IDestinationConfig {
+
+ /** DestinationConfig key */
+ key?: (string|null);
+
+ /** DestinationConfig destinations */
+ destinations?: (google.cloud.connectors.v1.IDestination[]|null);
+ }
+
+ /** Represents a DestinationConfig. */
+ class DestinationConfig implements IDestinationConfig {
+
+ /**
+ * Constructs a new DestinationConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IDestinationConfig);
+
+ /** DestinationConfig key. */
+ public key: string;
+
+ /** DestinationConfig destinations. */
+ public destinations: google.cloud.connectors.v1.IDestination[];
+
+ /**
+ * Creates a new DestinationConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DestinationConfig instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IDestinationConfig): google.cloud.connectors.v1.DestinationConfig;
+
+ /**
+ * Encodes the specified DestinationConfig message. Does not implicitly {@link google.cloud.connectors.v1.DestinationConfig.verify|verify} messages.
+ * @param message DestinationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IDestinationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DestinationConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.DestinationConfig.verify|verify} messages.
+ * @param message DestinationConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IDestinationConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DestinationConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DestinationConfig
+ * @throws {Error} If the payload is not 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.connectors.v1.DestinationConfig;
+
+ /**
+ * Decodes a DestinationConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DestinationConfig
+ * @throws {Error} If the payload 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.connectors.v1.DestinationConfig;
+
+ /**
+ * Verifies a DestinationConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DestinationConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DestinationConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.DestinationConfig;
+
+ /**
+ * Creates a plain object from a DestinationConfig message. Also converts values to other types if specified.
+ * @param message DestinationConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.DestinationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DestinationConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DestinationConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Destination. */
+ interface IDestination {
+
+ /** Destination serviceAttachment */
+ serviceAttachment?: (string|null);
+
+ /** Destination host */
+ host?: (string|null);
+
+ /** Destination port */
+ port?: (number|null);
+ }
+
+ /** Represents a Destination. */
+ class Destination implements IDestination {
+
+ /**
+ * Constructs a new Destination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IDestination);
+
+ /** Destination serviceAttachment. */
+ public serviceAttachment?: (string|null);
+
+ /** Destination host. */
+ public host?: (string|null);
+
+ /** Destination port. */
+ public port: number;
+
+ /** Destination destination. */
+ public destination?: ("serviceAttachment"|"host");
+
+ /**
+ * Creates a new Destination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Destination instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IDestination): google.cloud.connectors.v1.Destination;
+
+ /**
+ * Encodes the specified Destination message. Does not implicitly {@link google.cloud.connectors.v1.Destination.verify|verify} messages.
+ * @param message Destination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Destination message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Destination.verify|verify} messages.
+ * @param message Destination message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Destination message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Destination
+ * @throws {Error} If the payload is not 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.connectors.v1.Destination;
+
+ /**
+ * Decodes a Destination message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Destination
+ * @throws {Error} If the payload 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.connectors.v1.Destination;
+
+ /**
+ * Verifies a Destination message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Destination message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Destination
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.Destination;
+
+ /**
+ * Creates a plain object from a Destination message. Also converts values to other types if specified.
+ * @param message Destination
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.Destination, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Destination to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Destination
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SslConfigTemplate. */
+ interface ISslConfigTemplate {
+
+ /** SslConfigTemplate sslType */
+ sslType?: (google.cloud.connectors.v1.SslType|keyof typeof google.cloud.connectors.v1.SslType|null);
+
+ /** SslConfigTemplate isTlsMandatory */
+ isTlsMandatory?: (boolean|null);
+
+ /** SslConfigTemplate serverCertType */
+ serverCertType?: (google.cloud.connectors.v1.CertType[]|null);
+
+ /** SslConfigTemplate clientCertType */
+ clientCertType?: (google.cloud.connectors.v1.CertType[]|null);
+
+ /** SslConfigTemplate additionalVariables */
+ additionalVariables?: (google.cloud.connectors.v1.IConfigVariableTemplate[]|null);
+ }
+
+ /** Represents a SslConfigTemplate. */
+ class SslConfigTemplate implements ISslConfigTemplate {
+
+ /**
+ * Constructs a new SslConfigTemplate.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ISslConfigTemplate);
+
+ /** SslConfigTemplate sslType. */
+ public sslType: (google.cloud.connectors.v1.SslType|keyof typeof google.cloud.connectors.v1.SslType);
+
+ /** SslConfigTemplate isTlsMandatory. */
+ public isTlsMandatory: boolean;
+
+ /** SslConfigTemplate serverCertType. */
+ public serverCertType: google.cloud.connectors.v1.CertType[];
+
+ /** SslConfigTemplate clientCertType. */
+ public clientCertType: google.cloud.connectors.v1.CertType[];
+
+ /** SslConfigTemplate additionalVariables. */
+ public additionalVariables: google.cloud.connectors.v1.IConfigVariableTemplate[];
+
+ /**
+ * Creates a new SslConfigTemplate instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SslConfigTemplate instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ISslConfigTemplate): google.cloud.connectors.v1.SslConfigTemplate;
+
+ /**
+ * Encodes the specified SslConfigTemplate message. Does not implicitly {@link google.cloud.connectors.v1.SslConfigTemplate.verify|verify} messages.
+ * @param message SslConfigTemplate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ISslConfigTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SslConfigTemplate message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.SslConfigTemplate.verify|verify} messages.
+ * @param message SslConfigTemplate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ISslConfigTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SslConfigTemplate message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SslConfigTemplate
+ * @throws {Error} If the payload is not 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.connectors.v1.SslConfigTemplate;
+
+ /**
+ * Decodes a SslConfigTemplate message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SslConfigTemplate
+ * @throws {Error} If the payload 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.connectors.v1.SslConfigTemplate;
+
+ /**
+ * Verifies a SslConfigTemplate message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SslConfigTemplate message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SslConfigTemplate
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.SslConfigTemplate;
+
+ /**
+ * Creates a plain object from a SslConfigTemplate message. Also converts values to other types if specified.
+ * @param message SslConfigTemplate
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.SslConfigTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SslConfigTemplate to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SslConfigTemplate
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SslConfig. */
+ interface ISslConfig {
+
+ /** SslConfig type */
+ type?: (google.cloud.connectors.v1.SslType|keyof typeof google.cloud.connectors.v1.SslType|null);
+
+ /** SslConfig trustModel */
+ trustModel?: (google.cloud.connectors.v1.SslConfig.TrustModel|keyof typeof google.cloud.connectors.v1.SslConfig.TrustModel|null);
+
+ /** SslConfig privateServerCertificate */
+ privateServerCertificate?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig clientCertificate */
+ clientCertificate?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig clientPrivateKey */
+ clientPrivateKey?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig clientPrivateKeyPass */
+ clientPrivateKeyPass?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig serverCertType */
+ serverCertType?: (google.cloud.connectors.v1.CertType|keyof typeof google.cloud.connectors.v1.CertType|null);
+
+ /** SslConfig clientCertType */
+ clientCertType?: (google.cloud.connectors.v1.CertType|keyof typeof google.cloud.connectors.v1.CertType|null);
+
+ /** SslConfig useSsl */
+ useSsl?: (boolean|null);
+
+ /** SslConfig additionalVariables */
+ additionalVariables?: (google.cloud.connectors.v1.IConfigVariable[]|null);
+ }
+
+ /** Represents a SslConfig. */
+ class SslConfig implements ISslConfig {
+
+ /**
+ * Constructs a new SslConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ISslConfig);
+
+ /** SslConfig type. */
+ public type: (google.cloud.connectors.v1.SslType|keyof typeof google.cloud.connectors.v1.SslType);
+
+ /** SslConfig trustModel. */
+ public trustModel: (google.cloud.connectors.v1.SslConfig.TrustModel|keyof typeof google.cloud.connectors.v1.SslConfig.TrustModel);
+
+ /** SslConfig privateServerCertificate. */
+ public privateServerCertificate?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig clientCertificate. */
+ public clientCertificate?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig clientPrivateKey. */
+ public clientPrivateKey?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig clientPrivateKeyPass. */
+ public clientPrivateKeyPass?: (google.cloud.connectors.v1.ISecret|null);
+
+ /** SslConfig serverCertType. */
+ public serverCertType: (google.cloud.connectors.v1.CertType|keyof typeof google.cloud.connectors.v1.CertType);
+
+ /** SslConfig clientCertType. */
+ public clientCertType: (google.cloud.connectors.v1.CertType|keyof typeof google.cloud.connectors.v1.CertType);
+
+ /** SslConfig useSsl. */
+ public useSsl: boolean;
+
+ /** SslConfig additionalVariables. */
+ public additionalVariables: google.cloud.connectors.v1.IConfigVariable[];
+
+ /**
+ * Creates a new SslConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SslConfig instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ISslConfig): google.cloud.connectors.v1.SslConfig;
+
+ /**
+ * Encodes the specified SslConfig message. Does not implicitly {@link google.cloud.connectors.v1.SslConfig.verify|verify} messages.
+ * @param message SslConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ISslConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SslConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.SslConfig.verify|verify} messages.
+ * @param message SslConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ISslConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SslConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SslConfig
+ * @throws {Error} If the payload is not 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.connectors.v1.SslConfig;
+
+ /**
+ * Decodes a SslConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SslConfig
+ * @throws {Error} If the payload 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.connectors.v1.SslConfig;
+
+ /**
+ * Verifies a SslConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SslConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SslConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.SslConfig;
+
+ /**
+ * Creates a plain object from a SslConfig message. Also converts values to other types if specified.
+ * @param message SslConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.SslConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SslConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SslConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SslConfig {
+
+ /** TrustModel enum. */
+ enum TrustModel {
+ PUBLIC = 0,
+ PRIVATE = 1,
+ INSECURE = 2
+ }
+ }
+
+ /** SslType enum. */
+ enum SslType {
+ SSL_TYPE_UNSPECIFIED = 0,
+ TLS = 1,
+ MTLS = 2
+ }
+
+ /** CertType enum. */
+ enum CertType {
+ CERT_TYPE_UNSPECIFIED = 0,
+ PEM = 1
+ }
+
+ /** Properties of a Connector. */
+ interface IConnector {
+
+ /** Connector name */
+ name?: (string|null);
+
+ /** Connector createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connector updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connector labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Connector documentationUri */
+ documentationUri?: (string|null);
+
+ /** Connector externalUri */
+ externalUri?: (string|null);
+
+ /** Connector description */
+ description?: (string|null);
+
+ /** Connector webAssetsLocation */
+ webAssetsLocation?: (string|null);
+
+ /** Connector displayName */
+ displayName?: (string|null);
+
+ /** Connector launchStage */
+ launchStage?: (google.cloud.connectors.v1.LaunchStage|keyof typeof google.cloud.connectors.v1.LaunchStage|null);
+ }
+
+ /** Represents a Connector. */
+ class Connector implements IConnector {
+
+ /**
+ * Constructs a new Connector.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IConnector);
+
+ /** Connector name. */
+ public name: string;
+
+ /** Connector createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connector updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connector labels. */
+ public labels: { [k: string]: string };
+
+ /** Connector documentationUri. */
+ public documentationUri: string;
+
+ /** Connector externalUri. */
+ public externalUri: string;
+
+ /** Connector description. */
+ public description: string;
+
+ /** Connector webAssetsLocation. */
+ public webAssetsLocation: string;
+
+ /** Connector displayName. */
+ public displayName: string;
+
+ /** Connector launchStage. */
+ public launchStage: (google.cloud.connectors.v1.LaunchStage|keyof typeof google.cloud.connectors.v1.LaunchStage);
+
+ /**
+ * Creates a new Connector instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Connector instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IConnector): google.cloud.connectors.v1.Connector;
+
+ /**
+ * Encodes the specified Connector message. Does not implicitly {@link google.cloud.connectors.v1.Connector.verify|verify} messages.
+ * @param message Connector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IConnector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Connector message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Connector.verify|verify} messages.
+ * @param message Connector message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IConnector, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Connector message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Connector
+ * @throws {Error} If the payload is not 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.connectors.v1.Connector;
+
+ /**
+ * Decodes a Connector message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Connector
+ * @throws {Error} If the payload 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.connectors.v1.Connector;
+
+ /**
+ * Verifies a Connector message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Connector message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Connector
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.Connector;
+
+ /**
+ * Creates a plain object from a Connector message. Also converts values to other types if specified.
+ * @param message Connector
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.Connector, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Connector to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Connector
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetConnectorRequest. */
+ interface IGetConnectorRequest {
+
+ /** GetConnectorRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetConnectorRequest. */
+ class GetConnectorRequest implements IGetConnectorRequest {
+
+ /**
+ * Constructs a new GetConnectorRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IGetConnectorRequest);
+
+ /** GetConnectorRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetConnectorRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetConnectorRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IGetConnectorRequest): google.cloud.connectors.v1.GetConnectorRequest;
+
+ /**
+ * Encodes the specified GetConnectorRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetConnectorRequest.verify|verify} messages.
+ * @param message GetConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IGetConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetConnectorRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetConnectorRequest.verify|verify} messages.
+ * @param message GetConnectorRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IGetConnectorRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetConnectorRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetConnectorRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.GetConnectorRequest;
+
+ /**
+ * Decodes a GetConnectorRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetConnectorRequest
+ * @throws {Error} If the payload 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.connectors.v1.GetConnectorRequest;
+
+ /**
+ * Verifies a GetConnectorRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetConnectorRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetConnectorRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.GetConnectorRequest;
+
+ /**
+ * Creates a plain object from a GetConnectorRequest message. Also converts values to other types if specified.
+ * @param message GetConnectorRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.GetConnectorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetConnectorRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetConnectorRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectorsRequest. */
+ interface IListConnectorsRequest {
+
+ /** ListConnectorsRequest parent */
+ parent?: (string|null);
+
+ /** ListConnectorsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListConnectorsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListConnectorsRequest. */
+ class ListConnectorsRequest implements IListConnectorsRequest {
+
+ /**
+ * Constructs a new ListConnectorsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListConnectorsRequest);
+
+ /** ListConnectorsRequest parent. */
+ public parent: string;
+
+ /** ListConnectorsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListConnectorsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListConnectorsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectorsRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListConnectorsRequest): google.cloud.connectors.v1.ListConnectorsRequest;
+
+ /**
+ * Encodes the specified ListConnectorsRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsRequest.verify|verify} messages.
+ * @param message ListConnectorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListConnectorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectorsRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsRequest.verify|verify} messages.
+ * @param message ListConnectorsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListConnectorsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectorsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectorsRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.ListConnectorsRequest;
+
+ /**
+ * Decodes a ListConnectorsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectorsRequest
+ * @throws {Error} If the payload 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.connectors.v1.ListConnectorsRequest;
+
+ /**
+ * Verifies a ListConnectorsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConnectorsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectorsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListConnectorsRequest;
+
+ /**
+ * Creates a plain object from a ListConnectorsRequest message. Also converts values to other types if specified.
+ * @param message ListConnectorsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListConnectorsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectorsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectorsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectorsResponse. */
+ interface IListConnectorsResponse {
+
+ /** ListConnectorsResponse connectors */
+ connectors?: (google.cloud.connectors.v1.IConnector[]|null);
+
+ /** ListConnectorsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListConnectorsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListConnectorsResponse. */
+ class ListConnectorsResponse implements IListConnectorsResponse {
+
+ /**
+ * Constructs a new ListConnectorsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListConnectorsResponse);
+
+ /** ListConnectorsResponse connectors. */
+ public connectors: google.cloud.connectors.v1.IConnector[];
+
+ /** ListConnectorsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListConnectorsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListConnectorsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectorsResponse instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListConnectorsResponse): google.cloud.connectors.v1.ListConnectorsResponse;
+
+ /**
+ * Encodes the specified ListConnectorsResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsResponse.verify|verify} messages.
+ * @param message ListConnectorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListConnectorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectorsResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsResponse.verify|verify} messages.
+ * @param message ListConnectorsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListConnectorsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectorsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectorsResponse
+ * @throws {Error} If the payload is not 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.connectors.v1.ListConnectorsResponse;
+
+ /**
+ * Decodes a ListConnectorsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectorsResponse
+ * @throws {Error} If the payload 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.connectors.v1.ListConnectorsResponse;
+
+ /**
+ * Verifies a ListConnectorsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConnectorsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectorsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListConnectorsResponse;
+
+ /**
+ * Creates a plain object from a ListConnectorsResponse message. Also converts values to other types if specified.
+ * @param message ListConnectorsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListConnectorsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectorsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectorsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ConnectorVersion. */
+ interface IConnectorVersion {
+
+ /** ConnectorVersion name */
+ name?: (string|null);
+
+ /** ConnectorVersion createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectorVersion updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectorVersion labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ConnectorVersion launchStage */
+ launchStage?: (google.cloud.connectors.v1.LaunchStage|keyof typeof google.cloud.connectors.v1.LaunchStage|null);
+
+ /** ConnectorVersion releaseVersion */
+ releaseVersion?: (string|null);
+
+ /** ConnectorVersion authConfigTemplates */
+ authConfigTemplates?: (google.cloud.connectors.v1.IAuthConfigTemplate[]|null);
+
+ /** ConnectorVersion configVariableTemplates */
+ configVariableTemplates?: (google.cloud.connectors.v1.IConfigVariableTemplate[]|null);
+
+ /** ConnectorVersion supportedRuntimeFeatures */
+ supportedRuntimeFeatures?: (google.cloud.connectors.v1.ISupportedRuntimeFeatures|null);
+
+ /** ConnectorVersion displayName */
+ displayName?: (string|null);
+
+ /** ConnectorVersion egressControlConfig */
+ egressControlConfig?: (google.cloud.connectors.v1.IEgressControlConfig|null);
+
+ /** ConnectorVersion roleGrants */
+ roleGrants?: (google.cloud.connectors.v1.IRoleGrant[]|null);
+
+ /** ConnectorVersion roleGrant */
+ roleGrant?: (google.cloud.connectors.v1.IRoleGrant|null);
+
+ /** ConnectorVersion sslConfigTemplate */
+ sslConfigTemplate?: (google.cloud.connectors.v1.ISslConfigTemplate|null);
+ }
+
+ /** Represents a ConnectorVersion. */
+ class ConnectorVersion implements IConnectorVersion {
+
+ /**
+ * Constructs a new ConnectorVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IConnectorVersion);
+
+ /** ConnectorVersion name. */
+ public name: string;
+
+ /** ConnectorVersion createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectorVersion updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ConnectorVersion labels. */
+ public labels: { [k: string]: string };
+
+ /** ConnectorVersion launchStage. */
+ public launchStage: (google.cloud.connectors.v1.LaunchStage|keyof typeof google.cloud.connectors.v1.LaunchStage);
+
+ /** ConnectorVersion releaseVersion. */
+ public releaseVersion: string;
+
+ /** ConnectorVersion authConfigTemplates. */
+ public authConfigTemplates: google.cloud.connectors.v1.IAuthConfigTemplate[];
+
+ /** ConnectorVersion configVariableTemplates. */
+ public configVariableTemplates: google.cloud.connectors.v1.IConfigVariableTemplate[];
+
+ /** ConnectorVersion supportedRuntimeFeatures. */
+ public supportedRuntimeFeatures?: (google.cloud.connectors.v1.ISupportedRuntimeFeatures|null);
+
+ /** ConnectorVersion displayName. */
+ public displayName: string;
+
+ /** ConnectorVersion egressControlConfig. */
+ public egressControlConfig?: (google.cloud.connectors.v1.IEgressControlConfig|null);
+
+ /** ConnectorVersion roleGrants. */
+ public roleGrants: google.cloud.connectors.v1.IRoleGrant[];
+
+ /** ConnectorVersion roleGrant. */
+ public roleGrant?: (google.cloud.connectors.v1.IRoleGrant|null);
+
+ /** ConnectorVersion sslConfigTemplate. */
+ public sslConfigTemplate?: (google.cloud.connectors.v1.ISslConfigTemplate|null);
+
+ /**
+ * Creates a new ConnectorVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ConnectorVersion instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IConnectorVersion): google.cloud.connectors.v1.ConnectorVersion;
+
+ /**
+ * Encodes the specified ConnectorVersion message. Does not implicitly {@link google.cloud.connectors.v1.ConnectorVersion.verify|verify} messages.
+ * @param message ConnectorVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IConnectorVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ConnectorVersion message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConnectorVersion.verify|verify} messages.
+ * @param message ConnectorVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IConnectorVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ConnectorVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ConnectorVersion
+ * @throws {Error} If the payload is not 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.connectors.v1.ConnectorVersion;
+
+ /**
+ * Decodes a ConnectorVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ConnectorVersion
+ * @throws {Error} If the payload 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.connectors.v1.ConnectorVersion;
+
+ /**
+ * Verifies a ConnectorVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ConnectorVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ConnectorVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ConnectorVersion;
+
+ /**
+ * Creates a plain object from a ConnectorVersion message. Also converts values to other types if specified.
+ * @param message ConnectorVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ConnectorVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConnectorVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ConnectorVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetConnectorVersionRequest. */
+ interface IGetConnectorVersionRequest {
+
+ /** GetConnectorVersionRequest name */
+ name?: (string|null);
+
+ /** GetConnectorVersionRequest view */
+ view?: (google.cloud.connectors.v1.ConnectorVersionView|keyof typeof google.cloud.connectors.v1.ConnectorVersionView|null);
+ }
+
+ /** Represents a GetConnectorVersionRequest. */
+ class GetConnectorVersionRequest implements IGetConnectorVersionRequest {
+
+ /**
+ * Constructs a new GetConnectorVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IGetConnectorVersionRequest);
+
+ /** GetConnectorVersionRequest name. */
+ public name: string;
+
+ /** GetConnectorVersionRequest view. */
+ public view: (google.cloud.connectors.v1.ConnectorVersionView|keyof typeof google.cloud.connectors.v1.ConnectorVersionView);
+
+ /**
+ * Creates a new GetConnectorVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetConnectorVersionRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IGetConnectorVersionRequest): google.cloud.connectors.v1.GetConnectorVersionRequest;
+
+ /**
+ * Encodes the specified GetConnectorVersionRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetConnectorVersionRequest.verify|verify} messages.
+ * @param message GetConnectorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IGetConnectorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetConnectorVersionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetConnectorVersionRequest.verify|verify} messages.
+ * @param message GetConnectorVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IGetConnectorVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetConnectorVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetConnectorVersionRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.GetConnectorVersionRequest;
+
+ /**
+ * Decodes a GetConnectorVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetConnectorVersionRequest
+ * @throws {Error} If the payload 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.connectors.v1.GetConnectorVersionRequest;
+
+ /**
+ * Verifies a GetConnectorVersionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetConnectorVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetConnectorVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.GetConnectorVersionRequest;
+
+ /**
+ * Creates a plain object from a GetConnectorVersionRequest message. Also converts values to other types if specified.
+ * @param message GetConnectorVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.GetConnectorVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetConnectorVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetConnectorVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectorVersionsRequest. */
+ interface IListConnectorVersionsRequest {
+
+ /** ListConnectorVersionsRequest parent */
+ parent?: (string|null);
+
+ /** ListConnectorVersionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListConnectorVersionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListConnectorVersionsRequest view */
+ view?: (google.cloud.connectors.v1.ConnectorVersionView|keyof typeof google.cloud.connectors.v1.ConnectorVersionView|null);
+ }
+
+ /** Represents a ListConnectorVersionsRequest. */
+ class ListConnectorVersionsRequest implements IListConnectorVersionsRequest {
+
+ /**
+ * Constructs a new ListConnectorVersionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListConnectorVersionsRequest);
+
+ /** ListConnectorVersionsRequest parent. */
+ public parent: string;
+
+ /** ListConnectorVersionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListConnectorVersionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListConnectorVersionsRequest view. */
+ public view: (google.cloud.connectors.v1.ConnectorVersionView|keyof typeof google.cloud.connectors.v1.ConnectorVersionView);
+
+ /**
+ * Creates a new ListConnectorVersionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectorVersionsRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListConnectorVersionsRequest): google.cloud.connectors.v1.ListConnectorVersionsRequest;
+
+ /**
+ * Encodes the specified ListConnectorVersionsRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorVersionsRequest.verify|verify} messages.
+ * @param message ListConnectorVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListConnectorVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectorVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorVersionsRequest.verify|verify} messages.
+ * @param message ListConnectorVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListConnectorVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectorVersionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectorVersionsRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.ListConnectorVersionsRequest;
+
+ /**
+ * Decodes a ListConnectorVersionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectorVersionsRequest
+ * @throws {Error} If the payload 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.connectors.v1.ListConnectorVersionsRequest;
+
+ /**
+ * Verifies a ListConnectorVersionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConnectorVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectorVersionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListConnectorVersionsRequest;
+
+ /**
+ * Creates a plain object from a ListConnectorVersionsRequest message. Also converts values to other types if specified.
+ * @param message ListConnectorVersionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListConnectorVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectorVersionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectorVersionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectorVersionsResponse. */
+ interface IListConnectorVersionsResponse {
+
+ /** ListConnectorVersionsResponse connectorVersions */
+ connectorVersions?: (google.cloud.connectors.v1.IConnectorVersion[]|null);
+
+ /** ListConnectorVersionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListConnectorVersionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListConnectorVersionsResponse. */
+ class ListConnectorVersionsResponse implements IListConnectorVersionsResponse {
+
+ /**
+ * Constructs a new ListConnectorVersionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListConnectorVersionsResponse);
+
+ /** ListConnectorVersionsResponse connectorVersions. */
+ public connectorVersions: google.cloud.connectors.v1.IConnectorVersion[];
+
+ /** ListConnectorVersionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListConnectorVersionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListConnectorVersionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectorVersionsResponse instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListConnectorVersionsResponse): google.cloud.connectors.v1.ListConnectorVersionsResponse;
+
+ /**
+ * Encodes the specified ListConnectorVersionsResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorVersionsResponse.verify|verify} messages.
+ * @param message ListConnectorVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListConnectorVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectorVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorVersionsResponse.verify|verify} messages.
+ * @param message ListConnectorVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListConnectorVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectorVersionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectorVersionsResponse
+ * @throws {Error} If the payload is not 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.connectors.v1.ListConnectorVersionsResponse;
+
+ /**
+ * Decodes a ListConnectorVersionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectorVersionsResponse
+ * @throws {Error} If the payload 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.connectors.v1.ListConnectorVersionsResponse;
+
+ /**
+ * Verifies a ListConnectorVersionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListConnectorVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectorVersionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListConnectorVersionsResponse;
+
+ /**
+ * Creates a plain object from a ListConnectorVersionsResponse message. Also converts values to other types if specified.
+ * @param message ListConnectorVersionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListConnectorVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectorVersionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectorVersionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SupportedRuntimeFeatures. */
+ interface ISupportedRuntimeFeatures {
+
+ /** SupportedRuntimeFeatures entityApis */
+ entityApis?: (boolean|null);
+
+ /** SupportedRuntimeFeatures actionApis */
+ actionApis?: (boolean|null);
+
+ /** SupportedRuntimeFeatures sqlQuery */
+ sqlQuery?: (boolean|null);
+ }
+
+ /** Represents a SupportedRuntimeFeatures. */
+ class SupportedRuntimeFeatures implements ISupportedRuntimeFeatures {
+
+ /**
+ * Constructs a new SupportedRuntimeFeatures.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ISupportedRuntimeFeatures);
+
+ /** SupportedRuntimeFeatures entityApis. */
+ public entityApis: boolean;
+
+ /** SupportedRuntimeFeatures actionApis. */
+ public actionApis: boolean;
+
+ /** SupportedRuntimeFeatures sqlQuery. */
+ public sqlQuery: boolean;
+
+ /**
+ * Creates a new SupportedRuntimeFeatures instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SupportedRuntimeFeatures instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ISupportedRuntimeFeatures): google.cloud.connectors.v1.SupportedRuntimeFeatures;
+
+ /**
+ * Encodes the specified SupportedRuntimeFeatures message. Does not implicitly {@link google.cloud.connectors.v1.SupportedRuntimeFeatures.verify|verify} messages.
+ * @param message SupportedRuntimeFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ISupportedRuntimeFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SupportedRuntimeFeatures message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.SupportedRuntimeFeatures.verify|verify} messages.
+ * @param message SupportedRuntimeFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ISupportedRuntimeFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SupportedRuntimeFeatures message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SupportedRuntimeFeatures
+ * @throws {Error} If the payload is not 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.connectors.v1.SupportedRuntimeFeatures;
+
+ /**
+ * Decodes a SupportedRuntimeFeatures message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SupportedRuntimeFeatures
+ * @throws {Error} If the payload 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.connectors.v1.SupportedRuntimeFeatures;
+
+ /**
+ * Verifies a SupportedRuntimeFeatures message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SupportedRuntimeFeatures message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SupportedRuntimeFeatures
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.SupportedRuntimeFeatures;
+
+ /**
+ * Creates a plain object from a SupportedRuntimeFeatures message. Also converts values to other types if specified.
+ * @param message SupportedRuntimeFeatures
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.SupportedRuntimeFeatures, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SupportedRuntimeFeatures to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SupportedRuntimeFeatures
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EgressControlConfig. */
+ interface IEgressControlConfig {
+
+ /** EgressControlConfig backends */
+ backends?: (string|null);
+
+ /** EgressControlConfig extractionRules */
+ extractionRules?: (google.cloud.connectors.v1.IExtractionRules|null);
+ }
+
+ /** Represents an EgressControlConfig. */
+ class EgressControlConfig implements IEgressControlConfig {
+
+ /**
+ * Constructs a new EgressControlConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IEgressControlConfig);
+
+ /** EgressControlConfig backends. */
+ public backends?: (string|null);
+
+ /** EgressControlConfig extractionRules. */
+ public extractionRules?: (google.cloud.connectors.v1.IExtractionRules|null);
+
+ /** EgressControlConfig oneofBackends. */
+ public oneofBackends?: ("backends"|"extractionRules");
+
+ /**
+ * Creates a new EgressControlConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EgressControlConfig instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IEgressControlConfig): google.cloud.connectors.v1.EgressControlConfig;
+
+ /**
+ * Encodes the specified EgressControlConfig message. Does not implicitly {@link google.cloud.connectors.v1.EgressControlConfig.verify|verify} messages.
+ * @param message EgressControlConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IEgressControlConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EgressControlConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.EgressControlConfig.verify|verify} messages.
+ * @param message EgressControlConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IEgressControlConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EgressControlConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EgressControlConfig
+ * @throws {Error} If the payload is not 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.connectors.v1.EgressControlConfig;
+
+ /**
+ * Decodes an EgressControlConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EgressControlConfig
+ * @throws {Error} If the payload 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.connectors.v1.EgressControlConfig;
+
+ /**
+ * Verifies an EgressControlConfig message.
+ * @param message Plain 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 EgressControlConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EgressControlConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.EgressControlConfig;
+
+ /**
+ * Creates a plain object from an EgressControlConfig message. Also converts values to other types if specified.
+ * @param message EgressControlConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.EgressControlConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EgressControlConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EgressControlConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExtractionRules. */
+ interface IExtractionRules {
+
+ /** ExtractionRules extractionRule */
+ extractionRule?: (google.cloud.connectors.v1.IExtractionRule[]|null);
+ }
+
+ /** Represents an ExtractionRules. */
+ class ExtractionRules implements IExtractionRules {
+
+ /**
+ * Constructs a new ExtractionRules.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IExtractionRules);
+
+ /** ExtractionRules extractionRule. */
+ public extractionRule: google.cloud.connectors.v1.IExtractionRule[];
+
+ /**
+ * Creates a new ExtractionRules instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtractionRules instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IExtractionRules): google.cloud.connectors.v1.ExtractionRules;
+
+ /**
+ * Encodes the specified ExtractionRules message. Does not implicitly {@link google.cloud.connectors.v1.ExtractionRules.verify|verify} messages.
+ * @param message ExtractionRules message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IExtractionRules, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtractionRules message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ExtractionRules.verify|verify} messages.
+ * @param message ExtractionRules message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IExtractionRules, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtractionRules message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtractionRules
+ * @throws {Error} If the payload is not 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.connectors.v1.ExtractionRules;
+
+ /**
+ * Decodes an ExtractionRules message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtractionRules
+ * @throws {Error} If the payload 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.connectors.v1.ExtractionRules;
+
+ /**
+ * Verifies an ExtractionRules message.
+ * @param message Plain 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 ExtractionRules message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtractionRules
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ExtractionRules;
+
+ /**
+ * Creates a plain object from an ExtractionRules message. Also converts values to other types if specified.
+ * @param message ExtractionRules
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ExtractionRules, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtractionRules to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtractionRules
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ExtractionRule. */
+ interface IExtractionRule {
+
+ /** ExtractionRule source */
+ source?: (google.cloud.connectors.v1.ExtractionRule.ISource|null);
+
+ /** ExtractionRule extractionRegex */
+ extractionRegex?: (string|null);
+ }
+
+ /** Represents an ExtractionRule. */
+ class ExtractionRule implements IExtractionRule {
+
+ /**
+ * Constructs a new ExtractionRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IExtractionRule);
+
+ /** ExtractionRule source. */
+ public source?: (google.cloud.connectors.v1.ExtractionRule.ISource|null);
+
+ /** ExtractionRule extractionRegex. */
+ public extractionRegex: string;
+
+ /**
+ * Creates a new ExtractionRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtractionRule instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IExtractionRule): google.cloud.connectors.v1.ExtractionRule;
+
+ /**
+ * Encodes the specified ExtractionRule message. Does not implicitly {@link google.cloud.connectors.v1.ExtractionRule.verify|verify} messages.
+ * @param message ExtractionRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IExtractionRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtractionRule message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ExtractionRule.verify|verify} messages.
+ * @param message ExtractionRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IExtractionRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtractionRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtractionRule
+ * @throws {Error} If the payload is not 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.connectors.v1.ExtractionRule;
+
+ /**
+ * Decodes an ExtractionRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtractionRule
+ * @throws {Error} If the payload 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.connectors.v1.ExtractionRule;
+
+ /**
+ * Verifies an ExtractionRule message.
+ * @param message Plain 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 ExtractionRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtractionRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ExtractionRule;
+
+ /**
+ * Creates a plain object from an ExtractionRule message. Also converts values to other types if specified.
+ * @param message ExtractionRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ExtractionRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtractionRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtractionRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExtractionRule {
+
+ /** Properties of a Source. */
+ interface ISource {
+
+ /** Source sourceType */
+ sourceType?: (google.cloud.connectors.v1.ExtractionRule.SourceType|keyof typeof google.cloud.connectors.v1.ExtractionRule.SourceType|null);
+
+ /** Source fieldId */
+ fieldId?: (string|null);
+ }
+
+ /** Represents a Source. */
+ class Source implements ISource {
+
+ /**
+ * Constructs a new Source.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ExtractionRule.ISource);
+
+ /** Source sourceType. */
+ public sourceType: (google.cloud.connectors.v1.ExtractionRule.SourceType|keyof typeof google.cloud.connectors.v1.ExtractionRule.SourceType);
+
+ /** Source fieldId. */
+ public fieldId: string;
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Source instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ExtractionRule.ISource): google.cloud.connectors.v1.ExtractionRule.Source;
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.connectors.v1.ExtractionRule.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ExtractionRule.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ExtractionRule.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ExtractionRule.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.connectors.v1.ExtractionRule.Source;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.connectors.v1.ExtractionRule.Source;
+
+ /**
+ * Verifies a Source message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Source
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ExtractionRule.Source;
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @param message Source
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ExtractionRule.Source, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Source to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Source
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** SourceType enum. */
+ enum SourceType {
+ SOURCE_TYPE_UNSPECIFIED = 0,
+ CONFIG_VARIABLE = 1
+ }
+ }
+
+ /** ConnectorVersionView enum. */
+ enum ConnectorVersionView {
+ CONNECTOR_VERSION_VIEW_UNSPECIFIED = 0,
+ CONNECTOR_VERSION_VIEW_BASIC = 1,
+ CONNECTOR_VERSION_VIEW_FULL = 2
+ }
+
+ /** Represents a Connectors */
+ class Connectors extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Connectors 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 Connectors 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): Connectors;
+
+ /**
+ * Calls ListConnections.
+ * @param request ListConnectionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListConnectionsResponse
+ */
+ public listConnections(request: google.cloud.connectors.v1.IListConnectionsRequest, callback: google.cloud.connectors.v1.Connectors.ListConnectionsCallback): void;
+
+ /**
+ * Calls ListConnections.
+ * @param request ListConnectionsRequest message or plain object
+ * @returns Promise
+ */
+ public listConnections(request: google.cloud.connectors.v1.IListConnectionsRequest): Promise;
+
+ /**
+ * Calls GetConnection.
+ * @param request GetConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Connection
+ */
+ public getConnection(request: google.cloud.connectors.v1.IGetConnectionRequest, callback: google.cloud.connectors.v1.Connectors.GetConnectionCallback): void;
+
+ /**
+ * Calls GetConnection.
+ * @param request GetConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public getConnection(request: google.cloud.connectors.v1.IGetConnectionRequest): Promise;
+
+ /**
+ * Calls CreateConnection.
+ * @param request CreateConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createConnection(request: google.cloud.connectors.v1.ICreateConnectionRequest, callback: google.cloud.connectors.v1.Connectors.CreateConnectionCallback): void;
+
+ /**
+ * Calls CreateConnection.
+ * @param request CreateConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public createConnection(request: google.cloud.connectors.v1.ICreateConnectionRequest): Promise;
+
+ /**
+ * Calls UpdateConnection.
+ * @param request UpdateConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateConnection(request: google.cloud.connectors.v1.IUpdateConnectionRequest, callback: google.cloud.connectors.v1.Connectors.UpdateConnectionCallback): void;
+
+ /**
+ * Calls UpdateConnection.
+ * @param request UpdateConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public updateConnection(request: google.cloud.connectors.v1.IUpdateConnectionRequest): Promise;
+
+ /**
+ * Calls DeleteConnection.
+ * @param request DeleteConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteConnection(request: google.cloud.connectors.v1.IDeleteConnectionRequest, callback: google.cloud.connectors.v1.Connectors.DeleteConnectionCallback): void;
+
+ /**
+ * Calls DeleteConnection.
+ * @param request DeleteConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteConnection(request: google.cloud.connectors.v1.IDeleteConnectionRequest): Promise;
+
+ /**
+ * Calls ListProviders.
+ * @param request ListProvidersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListProvidersResponse
+ */
+ public listProviders(request: google.cloud.connectors.v1.IListProvidersRequest, callback: google.cloud.connectors.v1.Connectors.ListProvidersCallback): void;
+
+ /**
+ * Calls ListProviders.
+ * @param request ListProvidersRequest message or plain object
+ * @returns Promise
+ */
+ public listProviders(request: google.cloud.connectors.v1.IListProvidersRequest): Promise;
+
+ /**
+ * Calls GetProvider.
+ * @param request GetProviderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Provider
+ */
+ public getProvider(request: google.cloud.connectors.v1.IGetProviderRequest, callback: google.cloud.connectors.v1.Connectors.GetProviderCallback): void;
+
+ /**
+ * Calls GetProvider.
+ * @param request GetProviderRequest message or plain object
+ * @returns Promise
+ */
+ public getProvider(request: google.cloud.connectors.v1.IGetProviderRequest): Promise;
+
+ /**
+ * Calls ListConnectors.
+ * @param request ListConnectorsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListConnectorsResponse
+ */
+ public listConnectors(request: google.cloud.connectors.v1.IListConnectorsRequest, callback: google.cloud.connectors.v1.Connectors.ListConnectorsCallback): void;
+
+ /**
+ * Calls ListConnectors.
+ * @param request ListConnectorsRequest message or plain object
+ * @returns Promise
+ */
+ public listConnectors(request: google.cloud.connectors.v1.IListConnectorsRequest): Promise;
+
+ /**
+ * Calls GetConnector.
+ * @param request GetConnectorRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Connector
+ */
+ public getConnector(request: google.cloud.connectors.v1.IGetConnectorRequest, callback: google.cloud.connectors.v1.Connectors.GetConnectorCallback): void;
+
+ /**
+ * Calls GetConnector.
+ * @param request GetConnectorRequest message or plain object
+ * @returns Promise
+ */
+ public getConnector(request: google.cloud.connectors.v1.IGetConnectorRequest): Promise;
+
+ /**
+ * Calls ListConnectorVersions.
+ * @param request ListConnectorVersionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListConnectorVersionsResponse
+ */
+ public listConnectorVersions(request: google.cloud.connectors.v1.IListConnectorVersionsRequest, callback: google.cloud.connectors.v1.Connectors.ListConnectorVersionsCallback): void;
+
+ /**
+ * Calls ListConnectorVersions.
+ * @param request ListConnectorVersionsRequest message or plain object
+ * @returns Promise
+ */
+ public listConnectorVersions(request: google.cloud.connectors.v1.IListConnectorVersionsRequest): Promise;
+
+ /**
+ * Calls GetConnectorVersion.
+ * @param request GetConnectorVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ConnectorVersion
+ */
+ public getConnectorVersion(request: google.cloud.connectors.v1.IGetConnectorVersionRequest, callback: google.cloud.connectors.v1.Connectors.GetConnectorVersionCallback): void;
+
+ /**
+ * Calls GetConnectorVersion.
+ * @param request GetConnectorVersionRequest message or plain object
+ * @returns Promise
+ */
+ public getConnectorVersion(request: google.cloud.connectors.v1.IGetConnectorVersionRequest): Promise;
+
+ /**
+ * Calls GetConnectionSchemaMetadata.
+ * @param request GetConnectionSchemaMetadataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ConnectionSchemaMetadata
+ */
+ public getConnectionSchemaMetadata(request: google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest, callback: google.cloud.connectors.v1.Connectors.GetConnectionSchemaMetadataCallback): void;
+
+ /**
+ * Calls GetConnectionSchemaMetadata.
+ * @param request GetConnectionSchemaMetadataRequest message or plain object
+ * @returns Promise
+ */
+ public getConnectionSchemaMetadata(request: google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest): Promise;
+
+ /**
+ * Calls RefreshConnectionSchemaMetadata.
+ * @param request RefreshConnectionSchemaMetadataRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public refreshConnectionSchemaMetadata(request: google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest, callback: google.cloud.connectors.v1.Connectors.RefreshConnectionSchemaMetadataCallback): void;
+
+ /**
+ * Calls RefreshConnectionSchemaMetadata.
+ * @param request RefreshConnectionSchemaMetadataRequest message or plain object
+ * @returns Promise
+ */
+ public refreshConnectionSchemaMetadata(request: google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest): Promise;
+
+ /**
+ * Calls ListRuntimeEntitySchemas.
+ * @param request ListRuntimeEntitySchemasRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRuntimeEntitySchemasResponse
+ */
+ public listRuntimeEntitySchemas(request: google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest, callback: google.cloud.connectors.v1.Connectors.ListRuntimeEntitySchemasCallback): void;
+
+ /**
+ * Calls ListRuntimeEntitySchemas.
+ * @param request ListRuntimeEntitySchemasRequest message or plain object
+ * @returns Promise
+ */
+ public listRuntimeEntitySchemas(request: google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest): Promise;
+
+ /**
+ * Calls ListRuntimeActionSchemas.
+ * @param request ListRuntimeActionSchemasRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRuntimeActionSchemasResponse
+ */
+ public listRuntimeActionSchemas(request: google.cloud.connectors.v1.IListRuntimeActionSchemasRequest, callback: google.cloud.connectors.v1.Connectors.ListRuntimeActionSchemasCallback): void;
+
+ /**
+ * Calls ListRuntimeActionSchemas.
+ * @param request ListRuntimeActionSchemasRequest message or plain object
+ * @returns Promise
+ */
+ public listRuntimeActionSchemas(request: google.cloud.connectors.v1.IListRuntimeActionSchemasRequest): Promise;
+
+ /**
+ * Calls GetRuntimeConfig.
+ * @param request GetRuntimeConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RuntimeConfig
+ */
+ public getRuntimeConfig(request: google.cloud.connectors.v1.IGetRuntimeConfigRequest, callback: google.cloud.connectors.v1.Connectors.GetRuntimeConfigCallback): void;
+
+ /**
+ * Calls GetRuntimeConfig.
+ * @param request GetRuntimeConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getRuntimeConfig(request: google.cloud.connectors.v1.IGetRuntimeConfigRequest): Promise;
+
+ /**
+ * Calls GetGlobalSettings.
+ * @param request GetGlobalSettingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Settings
+ */
+ public getGlobalSettings(request: google.cloud.connectors.v1.IGetGlobalSettingsRequest, callback: google.cloud.connectors.v1.Connectors.GetGlobalSettingsCallback): void;
+
+ /**
+ * Calls GetGlobalSettings.
+ * @param request GetGlobalSettingsRequest message or plain object
+ * @returns Promise
+ */
+ public getGlobalSettings(request: google.cloud.connectors.v1.IGetGlobalSettingsRequest): Promise;
+ }
+
+ namespace Connectors {
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|listConnections}.
+ * @param error Error, if any
+ * @param [response] ListConnectionsResponse
+ */
+ type ListConnectionsCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ListConnectionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|getConnection}.
+ * @param error Error, if any
+ * @param [response] Connection
+ */
+ type GetConnectionCallback = (error: (Error|null), response?: google.cloud.connectors.v1.Connection) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|createConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|updateConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|deleteConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|listProviders}.
+ * @param error Error, if any
+ * @param [response] ListProvidersResponse
+ */
+ type ListProvidersCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ListProvidersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|getProvider}.
+ * @param error Error, if any
+ * @param [response] Provider
+ */
+ type GetProviderCallback = (error: (Error|null), response?: google.cloud.connectors.v1.Provider) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|listConnectors}.
+ * @param error Error, if any
+ * @param [response] ListConnectorsResponse
+ */
+ type ListConnectorsCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ListConnectorsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|getConnector}.
+ * @param error Error, if any
+ * @param [response] Connector
+ */
+ type GetConnectorCallback = (error: (Error|null), response?: google.cloud.connectors.v1.Connector) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|listConnectorVersions}.
+ * @param error Error, if any
+ * @param [response] ListConnectorVersionsResponse
+ */
+ type ListConnectorVersionsCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ListConnectorVersionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|getConnectorVersion}.
+ * @param error Error, if any
+ * @param [response] ConnectorVersion
+ */
+ type GetConnectorVersionCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ConnectorVersion) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|getConnectionSchemaMetadata}.
+ * @param error Error, if any
+ * @param [response] ConnectionSchemaMetadata
+ */
+ type GetConnectionSchemaMetadataCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ConnectionSchemaMetadata) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|refreshConnectionSchemaMetadata}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RefreshConnectionSchemaMetadataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|listRuntimeEntitySchemas}.
+ * @param error Error, if any
+ * @param [response] ListRuntimeEntitySchemasResponse
+ */
+ type ListRuntimeEntitySchemasCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|listRuntimeActionSchemas}.
+ * @param error Error, if any
+ * @param [response] ListRuntimeActionSchemasResponse
+ */
+ type ListRuntimeActionSchemasCallback = (error: (Error|null), response?: google.cloud.connectors.v1.ListRuntimeActionSchemasResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|getRuntimeConfig}.
+ * @param error Error, if any
+ * @param [response] RuntimeConfig
+ */
+ type GetRuntimeConfigCallback = (error: (Error|null), response?: google.cloud.connectors.v1.RuntimeConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.connectors.v1.Connectors|getGlobalSettings}.
+ * @param error Error, if any
+ * @param [response] Settings
+ */
+ type GetGlobalSettingsCallback = (error: (Error|null), response?: google.cloud.connectors.v1.Settings) => void;
+ }
+
+ /** Properties of a Provider. */
+ interface IProvider {
+
+ /** Provider name */
+ name?: (string|null);
+
+ /** Provider createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Provider updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Provider labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Provider documentationUri */
+ documentationUri?: (string|null);
+
+ /** Provider externalUri */
+ externalUri?: (string|null);
+
+ /** Provider description */
+ description?: (string|null);
+
+ /** Provider webAssetsLocation */
+ webAssetsLocation?: (string|null);
+
+ /** Provider displayName */
+ displayName?: (string|null);
+
+ /** Provider launchStage */
+ launchStage?: (google.cloud.connectors.v1.LaunchStage|keyof typeof google.cloud.connectors.v1.LaunchStage|null);
+ }
+
+ /** Represents a Provider. */
+ class Provider implements IProvider {
+
+ /**
+ * Constructs a new Provider.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IProvider);
+
+ /** Provider name. */
+ public name: string;
+
+ /** Provider createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Provider updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Provider labels. */
+ public labels: { [k: string]: string };
+
+ /** Provider documentationUri. */
+ public documentationUri: string;
+
+ /** Provider externalUri. */
+ public externalUri: string;
+
+ /** Provider description. */
+ public description: string;
+
+ /** Provider webAssetsLocation. */
+ public webAssetsLocation: string;
+
+ /** Provider displayName. */
+ public displayName: string;
+
+ /** Provider launchStage. */
+ public launchStage: (google.cloud.connectors.v1.LaunchStage|keyof typeof google.cloud.connectors.v1.LaunchStage);
+
+ /**
+ * Creates a new Provider instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Provider instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IProvider): google.cloud.connectors.v1.Provider;
+
+ /**
+ * Encodes the specified Provider message. Does not implicitly {@link google.cloud.connectors.v1.Provider.verify|verify} messages.
+ * @param message Provider message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IProvider, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Provider message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Provider.verify|verify} messages.
+ * @param message Provider message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IProvider, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Provider message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Provider
+ * @throws {Error} If the payload is not 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.connectors.v1.Provider;
+
+ /**
+ * Decodes a Provider message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Provider
+ * @throws {Error} If the payload 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.connectors.v1.Provider;
+
+ /**
+ * Verifies a Provider message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Provider message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Provider
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.Provider;
+
+ /**
+ * Creates a plain object from a Provider message. Also converts values to other types if specified.
+ * @param message Provider
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.Provider, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Provider to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Provider
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetProviderRequest. */
+ interface IGetProviderRequest {
+
+ /** GetProviderRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetProviderRequest. */
+ class GetProviderRequest implements IGetProviderRequest {
+
+ /**
+ * Constructs a new GetProviderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IGetProviderRequest);
+
+ /** GetProviderRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetProviderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetProviderRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IGetProviderRequest): google.cloud.connectors.v1.GetProviderRequest;
+
+ /**
+ * Encodes the specified GetProviderRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetProviderRequest.verify|verify} messages.
+ * @param message GetProviderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IGetProviderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProviderRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetProviderRequest.verify|verify} messages.
+ * @param message GetProviderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IGetProviderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetProviderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetProviderRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.GetProviderRequest;
+
+ /**
+ * Decodes a GetProviderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetProviderRequest
+ * @throws {Error} If the payload 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.connectors.v1.GetProviderRequest;
+
+ /**
+ * Verifies a GetProviderRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetProviderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetProviderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.GetProviderRequest;
+
+ /**
+ * Creates a plain object from a GetProviderRequest message. Also converts values to other types if specified.
+ * @param message GetProviderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.GetProviderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetProviderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetProviderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProvidersRequest. */
+ interface IListProvidersRequest {
+
+ /** ListProvidersRequest parent */
+ parent?: (string|null);
+
+ /** ListProvidersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListProvidersRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListProvidersRequest. */
+ class ListProvidersRequest implements IListProvidersRequest {
+
+ /**
+ * Constructs a new ListProvidersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListProvidersRequest);
+
+ /** ListProvidersRequest parent. */
+ public parent: string;
+
+ /** ListProvidersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProvidersRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListProvidersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProvidersRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListProvidersRequest): google.cloud.connectors.v1.ListProvidersRequest;
+
+ /**
+ * Encodes the specified ListProvidersRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListProvidersRequest.verify|verify} messages.
+ * @param message ListProvidersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListProvidersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProvidersRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListProvidersRequest.verify|verify} messages.
+ * @param message ListProvidersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListProvidersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProvidersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProvidersRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.ListProvidersRequest;
+
+ /**
+ * Decodes a ListProvidersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProvidersRequest
+ * @throws {Error} If the payload 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.connectors.v1.ListProvidersRequest;
+
+ /**
+ * Verifies a ListProvidersRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProvidersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProvidersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListProvidersRequest;
+
+ /**
+ * Creates a plain object from a ListProvidersRequest message. Also converts values to other types if specified.
+ * @param message ListProvidersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListProvidersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProvidersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProvidersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListProvidersResponse. */
+ interface IListProvidersResponse {
+
+ /** ListProvidersResponse providers */
+ providers?: (google.cloud.connectors.v1.IProvider[]|null);
+
+ /** ListProvidersResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListProvidersResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListProvidersResponse. */
+ class ListProvidersResponse implements IListProvidersResponse {
+
+ /**
+ * Constructs a new ListProvidersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IListProvidersResponse);
+
+ /** ListProvidersResponse providers. */
+ public providers: google.cloud.connectors.v1.IProvider[];
+
+ /** ListProvidersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListProvidersResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListProvidersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProvidersResponse instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IListProvidersResponse): google.cloud.connectors.v1.ListProvidersResponse;
+
+ /**
+ * Encodes the specified ListProvidersResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListProvidersResponse.verify|verify} messages.
+ * @param message ListProvidersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IListProvidersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProvidersResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListProvidersResponse.verify|verify} messages.
+ * @param message ListProvidersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IListProvidersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListProvidersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListProvidersResponse
+ * @throws {Error} If the payload is not 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.connectors.v1.ListProvidersResponse;
+
+ /**
+ * Decodes a ListProvidersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListProvidersResponse
+ * @throws {Error} If the payload 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.connectors.v1.ListProvidersResponse;
+
+ /**
+ * Verifies a ListProvidersResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListProvidersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListProvidersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.ListProvidersResponse;
+
+ /**
+ * Creates a plain object from a ListProvidersResponse message. Also converts values to other types if specified.
+ * @param message ListProvidersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.ListProvidersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListProvidersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListProvidersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetRuntimeConfigRequest. */
+ interface IGetRuntimeConfigRequest {
+
+ /** GetRuntimeConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetRuntimeConfigRequest. */
+ class GetRuntimeConfigRequest implements IGetRuntimeConfigRequest {
+
+ /**
+ * Constructs a new GetRuntimeConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IGetRuntimeConfigRequest);
+
+ /** GetRuntimeConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetRuntimeConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetRuntimeConfigRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IGetRuntimeConfigRequest): google.cloud.connectors.v1.GetRuntimeConfigRequest;
+
+ /**
+ * Encodes the specified GetRuntimeConfigRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetRuntimeConfigRequest.verify|verify} messages.
+ * @param message GetRuntimeConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IGetRuntimeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetRuntimeConfigRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetRuntimeConfigRequest.verify|verify} messages.
+ * @param message GetRuntimeConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IGetRuntimeConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetRuntimeConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetRuntimeConfigRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.GetRuntimeConfigRequest;
+
+ /**
+ * Decodes a GetRuntimeConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetRuntimeConfigRequest
+ * @throws {Error} If the payload 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.connectors.v1.GetRuntimeConfigRequest;
+
+ /**
+ * Verifies a GetRuntimeConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetRuntimeConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetRuntimeConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.GetRuntimeConfigRequest;
+
+ /**
+ * Creates a plain object from a GetRuntimeConfigRequest message. Also converts values to other types if specified.
+ * @param message GetRuntimeConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.GetRuntimeConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetRuntimeConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetRuntimeConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RuntimeConfig. */
+ interface IRuntimeConfig {
+
+ /** RuntimeConfig locationId */
+ locationId?: (string|null);
+
+ /** RuntimeConfig conndTopic */
+ conndTopic?: (string|null);
+
+ /** RuntimeConfig conndSubscription */
+ conndSubscription?: (string|null);
+
+ /** RuntimeConfig controlPlaneTopic */
+ controlPlaneTopic?: (string|null);
+
+ /** RuntimeConfig controlPlaneSubscription */
+ controlPlaneSubscription?: (string|null);
+
+ /** RuntimeConfig runtimeEndpoint */
+ runtimeEndpoint?: (string|null);
+
+ /** RuntimeConfig state */
+ state?: (google.cloud.connectors.v1.RuntimeConfig.State|keyof typeof google.cloud.connectors.v1.RuntimeConfig.State|null);
+
+ /** RuntimeConfig schemaGcsBucket */
+ schemaGcsBucket?: (string|null);
+
+ /** RuntimeConfig serviceDirectory */
+ serviceDirectory?: (string|null);
+
+ /** RuntimeConfig name */
+ name?: (string|null);
+ }
+
+ /** Represents a RuntimeConfig. */
+ class RuntimeConfig implements IRuntimeConfig {
+
+ /**
+ * Constructs a new RuntimeConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IRuntimeConfig);
+
+ /** RuntimeConfig locationId. */
+ public locationId: string;
+
+ /** RuntimeConfig conndTopic. */
+ public conndTopic: string;
+
+ /** RuntimeConfig conndSubscription. */
+ public conndSubscription: string;
+
+ /** RuntimeConfig controlPlaneTopic. */
+ public controlPlaneTopic: string;
+
+ /** RuntimeConfig controlPlaneSubscription. */
+ public controlPlaneSubscription: string;
+
+ /** RuntimeConfig runtimeEndpoint. */
+ public runtimeEndpoint: string;
+
+ /** RuntimeConfig state. */
+ public state: (google.cloud.connectors.v1.RuntimeConfig.State|keyof typeof google.cloud.connectors.v1.RuntimeConfig.State);
+
+ /** RuntimeConfig schemaGcsBucket. */
+ public schemaGcsBucket: string;
+
+ /** RuntimeConfig serviceDirectory. */
+ public serviceDirectory: string;
+
+ /** RuntimeConfig name. */
+ public name: string;
+
+ /**
+ * Creates a new RuntimeConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RuntimeConfig instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IRuntimeConfig): google.cloud.connectors.v1.RuntimeConfig;
+
+ /**
+ * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeConfig.verify|verify} messages.
+ * @param message RuntimeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeConfig.verify|verify} messages.
+ * @param message RuntimeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RuntimeConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RuntimeConfig
+ * @throws {Error} If the payload is not 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.connectors.v1.RuntimeConfig;
+
+ /**
+ * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RuntimeConfig
+ * @throws {Error} If the payload 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.connectors.v1.RuntimeConfig;
+
+ /**
+ * Verifies a RuntimeConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RuntimeConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.RuntimeConfig;
+
+ /**
+ * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified.
+ * @param message RuntimeConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RuntimeConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RuntimeConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace RuntimeConfig {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ INACTIVE = 1,
+ ACTIVATING = 2,
+ ACTIVE = 3,
+ CREATING = 4,
+ DELETING = 5,
+ UPDATING = 6
+ }
+ }
+
+ /** Properties of a GetGlobalSettingsRequest. */
+ interface IGetGlobalSettingsRequest {
+
+ /** GetGlobalSettingsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetGlobalSettingsRequest. */
+ class GetGlobalSettingsRequest implements IGetGlobalSettingsRequest {
+
+ /**
+ * Constructs a new GetGlobalSettingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.IGetGlobalSettingsRequest);
+
+ /** GetGlobalSettingsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetGlobalSettingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetGlobalSettingsRequest instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.IGetGlobalSettingsRequest): google.cloud.connectors.v1.GetGlobalSettingsRequest;
+
+ /**
+ * Encodes the specified GetGlobalSettingsRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetGlobalSettingsRequest.verify|verify} messages.
+ * @param message GetGlobalSettingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.IGetGlobalSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetGlobalSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetGlobalSettingsRequest.verify|verify} messages.
+ * @param message GetGlobalSettingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.IGetGlobalSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetGlobalSettingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetGlobalSettingsRequest
+ * @throws {Error} If the payload is not 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.connectors.v1.GetGlobalSettingsRequest;
+
+ /**
+ * Decodes a GetGlobalSettingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetGlobalSettingsRequest
+ * @throws {Error} If the payload 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.connectors.v1.GetGlobalSettingsRequest;
+
+ /**
+ * Verifies a GetGlobalSettingsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetGlobalSettingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetGlobalSettingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.GetGlobalSettingsRequest;
+
+ /**
+ * Creates a plain object from a GetGlobalSettingsRequest message. Also converts values to other types if specified.
+ * @param message GetGlobalSettingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.GetGlobalSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetGlobalSettingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetGlobalSettingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Settings. */
+ interface ISettings {
+
+ /** Settings name */
+ name?: (string|null);
+
+ /** Settings vpcsc */
+ vpcsc?: (boolean|null);
+
+ /** Settings payg */
+ payg?: (boolean|null);
+ }
+
+ /** Represents a Settings. */
+ class Settings implements ISettings {
+
+ /**
+ * Constructs a new Settings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.connectors.v1.ISettings);
+
+ /** Settings name. */
+ public name: string;
+
+ /** Settings vpcsc. */
+ public vpcsc: boolean;
+
+ /** Settings payg. */
+ public payg: boolean;
+
+ /**
+ * Creates a new Settings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Settings instance
+ */
+ public static create(properties?: google.cloud.connectors.v1.ISettings): google.cloud.connectors.v1.Settings;
+
+ /**
+ * Encodes the specified Settings message. Does not implicitly {@link google.cloud.connectors.v1.Settings.verify|verify} messages.
+ * @param message Settings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.connectors.v1.ISettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Settings message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Settings.verify|verify} messages.
+ * @param message Settings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.connectors.v1.ISettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Settings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Settings
+ * @throws {Error} If the payload is not 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.connectors.v1.Settings;
+
+ /**
+ * Decodes a Settings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Settings
+ * @throws {Error} If the payload 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.connectors.v1.Settings;
+
+ /**
+ * Verifies a Settings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Settings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Settings
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.connectors.v1.Settings;
+
+ /**
+ * Creates a plain object from a Settings message. Also converts values to other types if specified.
+ * @param message Settings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.connectors.v1.Settings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Settings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Settings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions target */
+ target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions target. */
+ public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Struct. */
+ interface IStruct {
+
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ }
+
+ /** Represents a Struct. */
+ class Struct implements IStruct {
+
+ /**
+ * Constructs a new Struct.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStruct);
+
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
+
+ /**
+ * Creates a new Struct instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Struct instance
+ */
+ public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
+
+ /**
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Struct
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Struct
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Struct;
+
+ /**
+ * Verifies a Struct message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Struct message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Struct
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
+
+ /**
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
+ * @param message Struct
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Struct to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Struct
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue */
+ numberValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value boolValue */
+ boolValue?: (boolean|null);
+
+ /** Value structValue */
+ structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue */
+ listValue?: (google.protobuf.IListValue|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue. */
+ public numberValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** Value structValue. */
+ public structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue. */
+ public listValue?: (google.protobuf.IListValue|null);
+
+ /** Value kind. */
+ public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** NullValue enum. */
+ enum NullValue {
+ NULL_VALUE = 0
+ }
+
+ /** Properties of a ListValue. */
+ interface IListValue {
+
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
+
+ /**
+ * Constructs a new ListValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IListValue);
+
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
+
+ /**
+ * Creates a new ListValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListValue instance
+ */
+ public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
+
+ /**
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListValue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ListValue;
+
+ /**
+ * Verifies a ListValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
+
+ /**
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
+ * @param message ListValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-connectors/protos/protos.js b/packages/google-cloud-connectors/protos/protos.js
new file mode 100644
index 00000000000..6d0d124bfc7
--- /dev/null
+++ b/packages/google-cloud-connectors/protos/protos.js
@@ -0,0 +1,39768 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_cloud_connectors_protos || ($protobuf.roots._google_cloud_connectors_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.connectors = (function() {
+
+ /**
+ * Namespace connectors.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var connectors = {};
+
+ connectors.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.connectors
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.AuthConfig = (function() {
+
+ /**
+ * Properties of an AuthConfig.
+ * @memberof google.cloud.connectors.v1
+ * @interface IAuthConfig
+ * @property {google.cloud.connectors.v1.AuthType|null} [authType] AuthConfig authType
+ * @property {google.cloud.connectors.v1.AuthConfig.IUserPassword|null} [userPassword] AuthConfig userPassword
+ * @property {google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer|null} [oauth2JwtBearer] AuthConfig oauth2JwtBearer
+ * @property {google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials|null} [oauth2ClientCredentials] AuthConfig oauth2ClientCredentials
+ * @property {google.cloud.connectors.v1.AuthConfig.ISshPublicKey|null} [sshPublicKey] AuthConfig sshPublicKey
+ * @property {Array.|null} [additionalVariables] AuthConfig additionalVariables
+ */
+
+ /**
+ * Constructs a new AuthConfig.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents an AuthConfig.
+ * @implements IAuthConfig
+ * @constructor
+ * @param {google.cloud.connectors.v1.IAuthConfig=} [properties] Properties to set
+ */
+ function AuthConfig(properties) {
+ this.additionalVariables = [];
+ 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]];
+ }
+
+ /**
+ * AuthConfig authType.
+ * @member {google.cloud.connectors.v1.AuthType} authType
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ */
+ AuthConfig.prototype.authType = 0;
+
+ /**
+ * AuthConfig userPassword.
+ * @member {google.cloud.connectors.v1.AuthConfig.IUserPassword|null|undefined} userPassword
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ */
+ AuthConfig.prototype.userPassword = null;
+
+ /**
+ * AuthConfig oauth2JwtBearer.
+ * @member {google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer|null|undefined} oauth2JwtBearer
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ */
+ AuthConfig.prototype.oauth2JwtBearer = null;
+
+ /**
+ * AuthConfig oauth2ClientCredentials.
+ * @member {google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials|null|undefined} oauth2ClientCredentials
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ */
+ AuthConfig.prototype.oauth2ClientCredentials = null;
+
+ /**
+ * AuthConfig sshPublicKey.
+ * @member {google.cloud.connectors.v1.AuthConfig.ISshPublicKey|null|undefined} sshPublicKey
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ */
+ AuthConfig.prototype.sshPublicKey = null;
+
+ /**
+ * AuthConfig additionalVariables.
+ * @member {Array.} additionalVariables
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ */
+ AuthConfig.prototype.additionalVariables = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * AuthConfig type.
+ * @member {"userPassword"|"oauth2JwtBearer"|"oauth2ClientCredentials"|"sshPublicKey"|undefined} type
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ */
+ Object.defineProperty(AuthConfig.prototype, "type", {
+ get: $util.oneOfGetter($oneOfFields = ["userPassword", "oauth2JwtBearer", "oauth2ClientCredentials", "sshPublicKey"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new AuthConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthConfig=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthConfig} AuthConfig instance
+ */
+ AuthConfig.create = function create(properties) {
+ return new AuthConfig(properties);
+ };
+
+ /**
+ * Encodes the specified AuthConfig message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthConfig} message AuthConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.authType != null && Object.hasOwnProperty.call(message, "authType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.authType);
+ if (message.userPassword != null && Object.hasOwnProperty.call(message, "userPassword"))
+ $root.google.cloud.connectors.v1.AuthConfig.UserPassword.encode(message.userPassword, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.oauth2JwtBearer != null && Object.hasOwnProperty.call(message, "oauth2JwtBearer"))
+ $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.encode(message.oauth2JwtBearer, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.oauth2ClientCredentials != null && Object.hasOwnProperty.call(message, "oauth2ClientCredentials"))
+ $root.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.encode(message.oauth2ClientCredentials, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.additionalVariables != null && message.additionalVariables.length)
+ for (var i = 0; i < message.additionalVariables.length; ++i)
+ $root.google.cloud.connectors.v1.ConfigVariable.encode(message.additionalVariables[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.sshPublicKey != null && Object.hasOwnProperty.call(message, "sshPublicKey"))
+ $root.google.cloud.connectors.v1.AuthConfig.SshPublicKey.encode(message.sshPublicKey, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AuthConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthConfig} message AuthConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AuthConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthConfig} AuthConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthConfig.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.connectors.v1.AuthConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.authType = reader.int32();
+ break;
+ }
+ case 2: {
+ message.userPassword = $root.google.cloud.connectors.v1.AuthConfig.UserPassword.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.oauth2JwtBearer = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.oauth2ClientCredentials = $root.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.sshPublicKey = $root.google.cloud.connectors.v1.AuthConfig.SshPublicKey.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ if (!(message.additionalVariables && message.additionalVariables.length))
+ message.additionalVariables = [];
+ message.additionalVariables.push($root.google.cloud.connectors.v1.ConfigVariable.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AuthConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthConfig} AuthConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AuthConfig message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AuthConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.authType != null && message.hasOwnProperty("authType"))
+ switch (message.authType) {
+ default:
+ return "authType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.userPassword != null && message.hasOwnProperty("userPassword")) {
+ properties.type = 1;
+ {
+ var error = $root.google.cloud.connectors.v1.AuthConfig.UserPassword.verify(message.userPassword);
+ if (error)
+ return "userPassword." + error;
+ }
+ }
+ if (message.oauth2JwtBearer != null && message.hasOwnProperty("oauth2JwtBearer")) {
+ if (properties.type === 1)
+ return "type: multiple values";
+ properties.type = 1;
+ {
+ var error = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.verify(message.oauth2JwtBearer);
+ if (error)
+ return "oauth2JwtBearer." + error;
+ }
+ }
+ if (message.oauth2ClientCredentials != null && message.hasOwnProperty("oauth2ClientCredentials")) {
+ if (properties.type === 1)
+ return "type: multiple values";
+ properties.type = 1;
+ {
+ var error = $root.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.verify(message.oauth2ClientCredentials);
+ if (error)
+ return "oauth2ClientCredentials." + error;
+ }
+ }
+ if (message.sshPublicKey != null && message.hasOwnProperty("sshPublicKey")) {
+ if (properties.type === 1)
+ return "type: multiple values";
+ properties.type = 1;
+ {
+ var error = $root.google.cloud.connectors.v1.AuthConfig.SshPublicKey.verify(message.sshPublicKey);
+ if (error)
+ return "sshPublicKey." + error;
+ }
+ }
+ if (message.additionalVariables != null && message.hasOwnProperty("additionalVariables")) {
+ if (!Array.isArray(message.additionalVariables))
+ return "additionalVariables: array expected";
+ for (var i = 0; i < message.additionalVariables.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.ConfigVariable.verify(message.additionalVariables[i]);
+ if (error)
+ return "additionalVariables." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an AuthConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthConfig} AuthConfig
+ */
+ AuthConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthConfig)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthConfig();
+ switch (object.authType) {
+ default:
+ if (typeof object.authType === "number") {
+ message.authType = object.authType;
+ break;
+ }
+ break;
+ case "AUTH_TYPE_UNSPECIFIED":
+ case 0:
+ message.authType = 0;
+ break;
+ case "USER_PASSWORD":
+ case 1:
+ message.authType = 1;
+ break;
+ case "OAUTH2_JWT_BEARER":
+ case 2:
+ message.authType = 2;
+ break;
+ case "OAUTH2_CLIENT_CREDENTIALS":
+ case 3:
+ message.authType = 3;
+ break;
+ case "SSH_PUBLIC_KEY":
+ case 4:
+ message.authType = 4;
+ break;
+ case "OAUTH2_AUTH_CODE_FLOW":
+ case 5:
+ message.authType = 5;
+ break;
+ }
+ if (object.userPassword != null) {
+ if (typeof object.userPassword !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.userPassword: object expected");
+ message.userPassword = $root.google.cloud.connectors.v1.AuthConfig.UserPassword.fromObject(object.userPassword);
+ }
+ if (object.oauth2JwtBearer != null) {
+ if (typeof object.oauth2JwtBearer !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.oauth2JwtBearer: object expected");
+ message.oauth2JwtBearer = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.fromObject(object.oauth2JwtBearer);
+ }
+ if (object.oauth2ClientCredentials != null) {
+ if (typeof object.oauth2ClientCredentials !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.oauth2ClientCredentials: object expected");
+ message.oauth2ClientCredentials = $root.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.fromObject(object.oauth2ClientCredentials);
+ }
+ if (object.sshPublicKey != null) {
+ if (typeof object.sshPublicKey !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.sshPublicKey: object expected");
+ message.sshPublicKey = $root.google.cloud.connectors.v1.AuthConfig.SshPublicKey.fromObject(object.sshPublicKey);
+ }
+ if (object.additionalVariables) {
+ if (!Array.isArray(object.additionalVariables))
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.additionalVariables: array expected");
+ message.additionalVariables = [];
+ for (var i = 0; i < object.additionalVariables.length; ++i) {
+ if (typeof object.additionalVariables[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.additionalVariables: object expected");
+ message.additionalVariables[i] = $root.google.cloud.connectors.v1.ConfigVariable.fromObject(object.additionalVariables[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AuthConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig} message AuthConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AuthConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalVariables = [];
+ if (options.defaults)
+ object.authType = options.enums === String ? "AUTH_TYPE_UNSPECIFIED" : 0;
+ if (message.authType != null && message.hasOwnProperty("authType"))
+ object.authType = options.enums === String ? $root.google.cloud.connectors.v1.AuthType[message.authType] === undefined ? message.authType : $root.google.cloud.connectors.v1.AuthType[message.authType] : message.authType;
+ if (message.userPassword != null && message.hasOwnProperty("userPassword")) {
+ object.userPassword = $root.google.cloud.connectors.v1.AuthConfig.UserPassword.toObject(message.userPassword, options);
+ if (options.oneofs)
+ object.type = "userPassword";
+ }
+ if (message.oauth2JwtBearer != null && message.hasOwnProperty("oauth2JwtBearer")) {
+ object.oauth2JwtBearer = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.toObject(message.oauth2JwtBearer, options);
+ if (options.oneofs)
+ object.type = "oauth2JwtBearer";
+ }
+ if (message.oauth2ClientCredentials != null && message.hasOwnProperty("oauth2ClientCredentials")) {
+ object.oauth2ClientCredentials = $root.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.toObject(message.oauth2ClientCredentials, options);
+ if (options.oneofs)
+ object.type = "oauth2ClientCredentials";
+ }
+ if (message.additionalVariables && message.additionalVariables.length) {
+ object.additionalVariables = [];
+ for (var j = 0; j < message.additionalVariables.length; ++j)
+ object.additionalVariables[j] = $root.google.cloud.connectors.v1.ConfigVariable.toObject(message.additionalVariables[j], options);
+ }
+ if (message.sshPublicKey != null && message.hasOwnProperty("sshPublicKey")) {
+ object.sshPublicKey = $root.google.cloud.connectors.v1.AuthConfig.SshPublicKey.toObject(message.sshPublicKey, options);
+ if (options.oneofs)
+ object.type = "sshPublicKey";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this AuthConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AuthConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AuthConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AuthConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthConfig";
+ };
+
+ AuthConfig.UserPassword = (function() {
+
+ /**
+ * Properties of a UserPassword.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @interface IUserPassword
+ * @property {string|null} [username] UserPassword username
+ * @property {google.cloud.connectors.v1.ISecret|null} [password] UserPassword password
+ */
+
+ /**
+ * Constructs a new UserPassword.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @classdesc Represents a UserPassword.
+ * @implements IUserPassword
+ * @constructor
+ * @param {google.cloud.connectors.v1.AuthConfig.IUserPassword=} [properties] Properties to set
+ */
+ function UserPassword(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]];
+ }
+
+ /**
+ * UserPassword username.
+ * @member {string} username
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @instance
+ */
+ UserPassword.prototype.username = "";
+
+ /**
+ * UserPassword password.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} password
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @instance
+ */
+ UserPassword.prototype.password = null;
+
+ /**
+ * Creates a new UserPassword instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IUserPassword=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthConfig.UserPassword} UserPassword instance
+ */
+ UserPassword.create = function create(properties) {
+ return new UserPassword(properties);
+ };
+
+ /**
+ * Encodes the specified UserPassword message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.UserPassword.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IUserPassword} message UserPassword message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UserPassword.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.username);
+ if (message.password != null && Object.hasOwnProperty.call(message, "password"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.password, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UserPassword message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.UserPassword.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IUserPassword} message UserPassword message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UserPassword.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a UserPassword message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthConfig.UserPassword} UserPassword
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UserPassword.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.connectors.v1.AuthConfig.UserPassword();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.username = reader.string();
+ break;
+ }
+ case 2: {
+ message.password = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a UserPassword message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthConfig.UserPassword} UserPassword
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UserPassword.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a UserPassword message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UserPassword.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.username != null && message.hasOwnProperty("username"))
+ if (!$util.isString(message.username))
+ return "username: string expected";
+ if (message.password != null && message.hasOwnProperty("password")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.password);
+ if (error)
+ return "password." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a UserPassword message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthConfig.UserPassword} UserPassword
+ */
+ UserPassword.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthConfig.UserPassword)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthConfig.UserPassword();
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.password != null) {
+ if (typeof object.password !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.UserPassword.password: object expected");
+ message.password = $root.google.cloud.connectors.v1.Secret.fromObject(object.password);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a UserPassword message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.UserPassword} message UserPassword
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UserPassword.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.username = "";
+ object.password = null;
+ }
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.password != null && message.hasOwnProperty("password"))
+ object.password = $root.google.cloud.connectors.v1.Secret.toObject(message.password, options);
+ return object;
+ };
+
+ /**
+ * Converts this UserPassword to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UserPassword.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UserPassword
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthConfig.UserPassword
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UserPassword.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthConfig.UserPassword";
+ };
+
+ return UserPassword;
+ })();
+
+ AuthConfig.Oauth2JwtBearer = (function() {
+
+ /**
+ * Properties of an Oauth2JwtBearer.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @interface IOauth2JwtBearer
+ * @property {google.cloud.connectors.v1.ISecret|null} [clientKey] Oauth2JwtBearer clientKey
+ * @property {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims|null} [jwtClaims] Oauth2JwtBearer jwtClaims
+ */
+
+ /**
+ * Constructs a new Oauth2JwtBearer.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @classdesc Represents an Oauth2JwtBearer.
+ * @implements IOauth2JwtBearer
+ * @constructor
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer=} [properties] Properties to set
+ */
+ function Oauth2JwtBearer(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]];
+ }
+
+ /**
+ * Oauth2JwtBearer clientKey.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} clientKey
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @instance
+ */
+ Oauth2JwtBearer.prototype.clientKey = null;
+
+ /**
+ * Oauth2JwtBearer jwtClaims.
+ * @member {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims|null|undefined} jwtClaims
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @instance
+ */
+ Oauth2JwtBearer.prototype.jwtClaims = null;
+
+ /**
+ * Creates a new Oauth2JwtBearer instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer} Oauth2JwtBearer instance
+ */
+ Oauth2JwtBearer.create = function create(properties) {
+ return new Oauth2JwtBearer(properties);
+ };
+
+ /**
+ * Encodes the specified Oauth2JwtBearer message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer} message Oauth2JwtBearer message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Oauth2JwtBearer.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.clientKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.jwtClaims != null && Object.hasOwnProperty.call(message, "jwtClaims"))
+ $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.encode(message.jwtClaims, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Oauth2JwtBearer message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2JwtBearer} message Oauth2JwtBearer message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Oauth2JwtBearer.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Oauth2JwtBearer message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer} Oauth2JwtBearer
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Oauth2JwtBearer.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.connectors.v1.AuthConfig.Oauth2JwtBearer();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.clientKey = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.jwtClaims = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Oauth2JwtBearer message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer} Oauth2JwtBearer
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Oauth2JwtBearer.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Oauth2JwtBearer message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Oauth2JwtBearer.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.clientKey != null && message.hasOwnProperty("clientKey")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.clientKey);
+ if (error)
+ return "clientKey." + error;
+ }
+ if (message.jwtClaims != null && message.hasOwnProperty("jwtClaims")) {
+ var error = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.verify(message.jwtClaims);
+ if (error)
+ return "jwtClaims." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Oauth2JwtBearer message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer} Oauth2JwtBearer
+ */
+ Oauth2JwtBearer.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer();
+ if (object.clientKey != null) {
+ if (typeof object.clientKey !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.clientKey: object expected");
+ message.clientKey = $root.google.cloud.connectors.v1.Secret.fromObject(object.clientKey);
+ }
+ if (object.jwtClaims != null) {
+ if (typeof object.jwtClaims !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.jwtClaims: object expected");
+ message.jwtClaims = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.fromObject(object.jwtClaims);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Oauth2JwtBearer message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer} message Oauth2JwtBearer
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Oauth2JwtBearer.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.clientKey = null;
+ object.jwtClaims = null;
+ }
+ if (message.clientKey != null && message.hasOwnProperty("clientKey"))
+ object.clientKey = $root.google.cloud.connectors.v1.Secret.toObject(message.clientKey, options);
+ if (message.jwtClaims != null && message.hasOwnProperty("jwtClaims"))
+ object.jwtClaims = $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.toObject(message.jwtClaims, options);
+ return object;
+ };
+
+ /**
+ * Converts this Oauth2JwtBearer to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Oauth2JwtBearer.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Oauth2JwtBearer
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Oauth2JwtBearer.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer";
+ };
+
+ Oauth2JwtBearer.JwtClaims = (function() {
+
+ /**
+ * Properties of a JwtClaims.
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @interface IJwtClaims
+ * @property {string|null} [issuer] JwtClaims issuer
+ * @property {string|null} [subject] JwtClaims subject
+ * @property {string|null} [audience] JwtClaims audience
+ */
+
+ /**
+ * Constructs a new JwtClaims.
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
+ * @classdesc Represents a JwtClaims.
+ * @implements IJwtClaims
+ * @constructor
+ * @param {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims=} [properties] Properties to set
+ */
+ function JwtClaims(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]];
+ }
+
+ /**
+ * JwtClaims issuer.
+ * @member {string} issuer
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @instance
+ */
+ JwtClaims.prototype.issuer = "";
+
+ /**
+ * JwtClaims subject.
+ * @member {string} subject
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @instance
+ */
+ JwtClaims.prototype.subject = "";
+
+ /**
+ * JwtClaims audience.
+ * @member {string} audience
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @instance
+ */
+ JwtClaims.prototype.audience = "";
+
+ /**
+ * Creates a new JwtClaims instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims} JwtClaims instance
+ */
+ JwtClaims.create = function create(properties) {
+ return new JwtClaims(properties);
+ };
+
+ /**
+ * Encodes the specified JwtClaims message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims} message JwtClaims message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JwtClaims.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer);
+ if (message.subject != null && Object.hasOwnProperty.call(message, "subject"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.subject);
+ if (message.audience != null && Object.hasOwnProperty.call(message, "audience"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.audience);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified JwtClaims message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.IJwtClaims} message JwtClaims message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JwtClaims.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a JwtClaims message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims} JwtClaims
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JwtClaims.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.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.issuer = reader.string();
+ break;
+ }
+ case 2: {
+ message.subject = reader.string();
+ break;
+ }
+ case 3: {
+ message.audience = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a JwtClaims message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims} JwtClaims
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JwtClaims.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a JwtClaims message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ JwtClaims.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.issuer != null && message.hasOwnProperty("issuer"))
+ if (!$util.isString(message.issuer))
+ return "issuer: string expected";
+ if (message.subject != null && message.hasOwnProperty("subject"))
+ if (!$util.isString(message.subject))
+ return "subject: string expected";
+ if (message.audience != null && message.hasOwnProperty("audience"))
+ if (!$util.isString(message.audience))
+ return "audience: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a JwtClaims message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims} JwtClaims
+ */
+ JwtClaims.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims();
+ if (object.issuer != null)
+ message.issuer = String(object.issuer);
+ if (object.subject != null)
+ message.subject = String(object.subject);
+ if (object.audience != null)
+ message.audience = String(object.audience);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a JwtClaims message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims} message JwtClaims
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ JwtClaims.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.issuer = "";
+ object.subject = "";
+ object.audience = "";
+ }
+ if (message.issuer != null && message.hasOwnProperty("issuer"))
+ object.issuer = message.issuer;
+ if (message.subject != null && message.hasOwnProperty("subject"))
+ object.subject = message.subject;
+ if (message.audience != null && message.hasOwnProperty("audience"))
+ object.audience = message.audience;
+ return object;
+ };
+
+ /**
+ * Converts this JwtClaims to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ JwtClaims.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for JwtClaims
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ JwtClaims.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims";
+ };
+
+ return JwtClaims;
+ })();
+
+ return Oauth2JwtBearer;
+ })();
+
+ AuthConfig.Oauth2ClientCredentials = (function() {
+
+ /**
+ * Properties of an Oauth2ClientCredentials.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @interface IOauth2ClientCredentials
+ * @property {string|null} [clientId] Oauth2ClientCredentials clientId
+ * @property {google.cloud.connectors.v1.ISecret|null} [clientSecret] Oauth2ClientCredentials clientSecret
+ */
+
+ /**
+ * Constructs a new Oauth2ClientCredentials.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @classdesc Represents an Oauth2ClientCredentials.
+ * @implements IOauth2ClientCredentials
+ * @constructor
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials=} [properties] Properties to set
+ */
+ function Oauth2ClientCredentials(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]];
+ }
+
+ /**
+ * Oauth2ClientCredentials clientId.
+ * @member {string} clientId
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @instance
+ */
+ Oauth2ClientCredentials.prototype.clientId = "";
+
+ /**
+ * Oauth2ClientCredentials clientSecret.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} clientSecret
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @instance
+ */
+ Oauth2ClientCredentials.prototype.clientSecret = null;
+
+ /**
+ * Creates a new Oauth2ClientCredentials instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials} Oauth2ClientCredentials instance
+ */
+ Oauth2ClientCredentials.create = function create(properties) {
+ return new Oauth2ClientCredentials(properties);
+ };
+
+ /**
+ * Encodes the specified Oauth2ClientCredentials message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials} message Oauth2ClientCredentials message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Oauth2ClientCredentials.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId);
+ if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.clientSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Oauth2ClientCredentials message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.IOauth2ClientCredentials} message Oauth2ClientCredentials message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Oauth2ClientCredentials.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Oauth2ClientCredentials message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials} Oauth2ClientCredentials
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Oauth2ClientCredentials.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.connectors.v1.AuthConfig.Oauth2ClientCredentials();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.clientId = reader.string();
+ break;
+ }
+ case 2: {
+ message.clientSecret = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Oauth2ClientCredentials message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials} Oauth2ClientCredentials
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Oauth2ClientCredentials.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Oauth2ClientCredentials message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Oauth2ClientCredentials.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
+ if (!$util.isString(message.clientId))
+ return "clientId: string expected";
+ if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.clientSecret);
+ if (error)
+ return "clientSecret." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Oauth2ClientCredentials message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials} Oauth2ClientCredentials
+ */
+ Oauth2ClientCredentials.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials();
+ if (object.clientId != null)
+ message.clientId = String(object.clientId);
+ if (object.clientSecret != null) {
+ if (typeof object.clientSecret !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.clientSecret: object expected");
+ message.clientSecret = $root.google.cloud.connectors.v1.Secret.fromObject(object.clientSecret);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Oauth2ClientCredentials message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials} message Oauth2ClientCredentials
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Oauth2ClientCredentials.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.clientId = "";
+ object.clientSecret = null;
+ }
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
+ object.clientId = message.clientId;
+ if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
+ object.clientSecret = $root.google.cloud.connectors.v1.Secret.toObject(message.clientSecret, options);
+ return object;
+ };
+
+ /**
+ * Converts this Oauth2ClientCredentials to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Oauth2ClientCredentials.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Oauth2ClientCredentials
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Oauth2ClientCredentials.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials";
+ };
+
+ return Oauth2ClientCredentials;
+ })();
+
+ AuthConfig.SshPublicKey = (function() {
+
+ /**
+ * Properties of a SshPublicKey.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @interface ISshPublicKey
+ * @property {string|null} [username] SshPublicKey username
+ * @property {google.cloud.connectors.v1.ISecret|null} [sshClientCert] SshPublicKey sshClientCert
+ * @property {string|null} [certType] SshPublicKey certType
+ * @property {google.cloud.connectors.v1.ISecret|null} [sshClientCertPass] SshPublicKey sshClientCertPass
+ */
+
+ /**
+ * Constructs a new SshPublicKey.
+ * @memberof google.cloud.connectors.v1.AuthConfig
+ * @classdesc Represents a SshPublicKey.
+ * @implements ISshPublicKey
+ * @constructor
+ * @param {google.cloud.connectors.v1.AuthConfig.ISshPublicKey=} [properties] Properties to set
+ */
+ function SshPublicKey(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]];
+ }
+
+ /**
+ * SshPublicKey username.
+ * @member {string} username
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @instance
+ */
+ SshPublicKey.prototype.username = "";
+
+ /**
+ * SshPublicKey sshClientCert.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} sshClientCert
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @instance
+ */
+ SshPublicKey.prototype.sshClientCert = null;
+
+ /**
+ * SshPublicKey certType.
+ * @member {string} certType
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @instance
+ */
+ SshPublicKey.prototype.certType = "";
+
+ /**
+ * SshPublicKey sshClientCertPass.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} sshClientCertPass
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @instance
+ */
+ SshPublicKey.prototype.sshClientCertPass = null;
+
+ /**
+ * Creates a new SshPublicKey instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.ISshPublicKey=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthConfig.SshPublicKey} SshPublicKey instance
+ */
+ SshPublicKey.create = function create(properties) {
+ return new SshPublicKey(properties);
+ };
+
+ /**
+ * Encodes the specified SshPublicKey message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.SshPublicKey.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.ISshPublicKey} message SshPublicKey message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SshPublicKey.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.username);
+ if (message.sshClientCert != null && Object.hasOwnProperty.call(message, "sshClientCert"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.sshClientCert, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.certType != null && Object.hasOwnProperty.call(message, "certType"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.certType);
+ if (message.sshClientCertPass != null && Object.hasOwnProperty.call(message, "sshClientCertPass"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.sshClientCertPass, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SshPublicKey message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfig.SshPublicKey.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.ISshPublicKey} message SshPublicKey message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SshPublicKey.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SshPublicKey message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthConfig.SshPublicKey} SshPublicKey
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SshPublicKey.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.connectors.v1.AuthConfig.SshPublicKey();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.username = reader.string();
+ break;
+ }
+ case 3: {
+ message.sshClientCert = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.certType = reader.string();
+ break;
+ }
+ case 5: {
+ message.sshClientCertPass = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SshPublicKey message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthConfig.SshPublicKey} SshPublicKey
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SshPublicKey.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SshPublicKey message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SshPublicKey.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.username != null && message.hasOwnProperty("username"))
+ if (!$util.isString(message.username))
+ return "username: string expected";
+ if (message.sshClientCert != null && message.hasOwnProperty("sshClientCert")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.sshClientCert);
+ if (error)
+ return "sshClientCert." + error;
+ }
+ if (message.certType != null && message.hasOwnProperty("certType"))
+ if (!$util.isString(message.certType))
+ return "certType: string expected";
+ if (message.sshClientCertPass != null && message.hasOwnProperty("sshClientCertPass")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.sshClientCertPass);
+ if (error)
+ return "sshClientCertPass." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SshPublicKey message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthConfig.SshPublicKey} SshPublicKey
+ */
+ SshPublicKey.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthConfig.SshPublicKey)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthConfig.SshPublicKey();
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.sshClientCert != null) {
+ if (typeof object.sshClientCert !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.SshPublicKey.sshClientCert: object expected");
+ message.sshClientCert = $root.google.cloud.connectors.v1.Secret.fromObject(object.sshClientCert);
+ }
+ if (object.certType != null)
+ message.certType = String(object.certType);
+ if (object.sshClientCertPass != null) {
+ if (typeof object.sshClientCertPass !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfig.SshPublicKey.sshClientCertPass: object expected");
+ message.sshClientCertPass = $root.google.cloud.connectors.v1.Secret.fromObject(object.sshClientCertPass);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SshPublicKey message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfig.SshPublicKey} message SshPublicKey
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SshPublicKey.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.username = "";
+ object.sshClientCert = null;
+ object.certType = "";
+ object.sshClientCertPass = null;
+ }
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.sshClientCert != null && message.hasOwnProperty("sshClientCert"))
+ object.sshClientCert = $root.google.cloud.connectors.v1.Secret.toObject(message.sshClientCert, options);
+ if (message.certType != null && message.hasOwnProperty("certType"))
+ object.certType = message.certType;
+ if (message.sshClientCertPass != null && message.hasOwnProperty("sshClientCertPass"))
+ object.sshClientCertPass = $root.google.cloud.connectors.v1.Secret.toObject(message.sshClientCertPass, options);
+ return object;
+ };
+
+ /**
+ * Converts this SshPublicKey to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SshPublicKey.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SshPublicKey
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthConfig.SshPublicKey
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SshPublicKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthConfig.SshPublicKey";
+ };
+
+ return SshPublicKey;
+ })();
+
+ return AuthConfig;
+ })();
+
+ v1.AuthConfigTemplate = (function() {
+
+ /**
+ * Properties of an AuthConfigTemplate.
+ * @memberof google.cloud.connectors.v1
+ * @interface IAuthConfigTemplate
+ * @property {google.cloud.connectors.v1.AuthType|null} [authType] AuthConfigTemplate authType
+ * @property {Array.|null} [configVariableTemplates] AuthConfigTemplate configVariableTemplates
+ * @property {string|null} [displayName] AuthConfigTemplate displayName
+ * @property {string|null} [description] AuthConfigTemplate description
+ */
+
+ /**
+ * Constructs a new AuthConfigTemplate.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents an AuthConfigTemplate.
+ * @implements IAuthConfigTemplate
+ * @constructor
+ * @param {google.cloud.connectors.v1.IAuthConfigTemplate=} [properties] Properties to set
+ */
+ function AuthConfigTemplate(properties) {
+ this.configVariableTemplates = [];
+ 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]];
+ }
+
+ /**
+ * AuthConfigTemplate authType.
+ * @member {google.cloud.connectors.v1.AuthType} authType
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @instance
+ */
+ AuthConfigTemplate.prototype.authType = 0;
+
+ /**
+ * AuthConfigTemplate configVariableTemplates.
+ * @member {Array.} configVariableTemplates
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @instance
+ */
+ AuthConfigTemplate.prototype.configVariableTemplates = $util.emptyArray;
+
+ /**
+ * AuthConfigTemplate displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @instance
+ */
+ AuthConfigTemplate.prototype.displayName = "";
+
+ /**
+ * AuthConfigTemplate description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @instance
+ */
+ AuthConfigTemplate.prototype.description = "";
+
+ /**
+ * Creates a new AuthConfigTemplate instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthConfigTemplate=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthConfigTemplate} AuthConfigTemplate instance
+ */
+ AuthConfigTemplate.create = function create(properties) {
+ return new AuthConfigTemplate(properties);
+ };
+
+ /**
+ * Encodes the specified AuthConfigTemplate message. Does not implicitly {@link google.cloud.connectors.v1.AuthConfigTemplate.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthConfigTemplate} message AuthConfigTemplate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthConfigTemplate.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.authType != null && Object.hasOwnProperty.call(message, "authType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.authType);
+ if (message.configVariableTemplates != null && message.configVariableTemplates.length)
+ for (var i = 0; i < message.configVariableTemplates.length; ++i)
+ $root.google.cloud.connectors.v1.ConfigVariableTemplate.encode(message.configVariableTemplates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.description);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AuthConfigTemplate message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthConfigTemplate.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthConfigTemplate} message AuthConfigTemplate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthConfigTemplate.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AuthConfigTemplate message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthConfigTemplate} AuthConfigTemplate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthConfigTemplate.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.connectors.v1.AuthConfigTemplate();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.authType = reader.int32();
+ break;
+ }
+ case 2: {
+ if (!(message.configVariableTemplates && message.configVariableTemplates.length))
+ message.configVariableTemplates = [];
+ message.configVariableTemplates.push($root.google.cloud.connectors.v1.ConfigVariableTemplate.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 4: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AuthConfigTemplate message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthConfigTemplate} AuthConfigTemplate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthConfigTemplate.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AuthConfigTemplate message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AuthConfigTemplate.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.authType != null && message.hasOwnProperty("authType"))
+ switch (message.authType) {
+ default:
+ return "authType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.configVariableTemplates != null && message.hasOwnProperty("configVariableTemplates")) {
+ if (!Array.isArray(message.configVariableTemplates))
+ return "configVariableTemplates: array expected";
+ for (var i = 0; i < message.configVariableTemplates.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.ConfigVariableTemplate.verify(message.configVariableTemplates[i]);
+ if (error)
+ return "configVariableTemplates." + error;
+ }
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AuthConfigTemplate message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthConfigTemplate} AuthConfigTemplate
+ */
+ AuthConfigTemplate.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthConfigTemplate)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthConfigTemplate();
+ switch (object.authType) {
+ default:
+ if (typeof object.authType === "number") {
+ message.authType = object.authType;
+ break;
+ }
+ break;
+ case "AUTH_TYPE_UNSPECIFIED":
+ case 0:
+ message.authType = 0;
+ break;
+ case "USER_PASSWORD":
+ case 1:
+ message.authType = 1;
+ break;
+ case "OAUTH2_JWT_BEARER":
+ case 2:
+ message.authType = 2;
+ break;
+ case "OAUTH2_CLIENT_CREDENTIALS":
+ case 3:
+ message.authType = 3;
+ break;
+ case "SSH_PUBLIC_KEY":
+ case 4:
+ message.authType = 4;
+ break;
+ case "OAUTH2_AUTH_CODE_FLOW":
+ case 5:
+ message.authType = 5;
+ break;
+ }
+ if (object.configVariableTemplates) {
+ if (!Array.isArray(object.configVariableTemplates))
+ throw TypeError(".google.cloud.connectors.v1.AuthConfigTemplate.configVariableTemplates: array expected");
+ message.configVariableTemplates = [];
+ for (var i = 0; i < object.configVariableTemplates.length; ++i) {
+ if (typeof object.configVariableTemplates[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.AuthConfigTemplate.configVariableTemplates: object expected");
+ message.configVariableTemplates[i] = $root.google.cloud.connectors.v1.ConfigVariableTemplate.fromObject(object.configVariableTemplates[i]);
+ }
+ }
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AuthConfigTemplate message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.AuthConfigTemplate} message AuthConfigTemplate
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AuthConfigTemplate.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.configVariableTemplates = [];
+ if (options.defaults) {
+ object.authType = options.enums === String ? "AUTH_TYPE_UNSPECIFIED" : 0;
+ object.displayName = "";
+ object.description = "";
+ }
+ if (message.authType != null && message.hasOwnProperty("authType"))
+ object.authType = options.enums === String ? $root.google.cloud.connectors.v1.AuthType[message.authType] === undefined ? message.authType : $root.google.cloud.connectors.v1.AuthType[message.authType] : message.authType;
+ if (message.configVariableTemplates && message.configVariableTemplates.length) {
+ object.configVariableTemplates = [];
+ for (var j = 0; j < message.configVariableTemplates.length; ++j)
+ object.configVariableTemplates[j] = $root.google.cloud.connectors.v1.ConfigVariableTemplate.toObject(message.configVariableTemplates[j], options);
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ return object;
+ };
+
+ /**
+ * Converts this AuthConfigTemplate to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AuthConfigTemplate.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AuthConfigTemplate
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthConfigTemplate
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AuthConfigTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthConfigTemplate";
+ };
+
+ return AuthConfigTemplate;
+ })();
+
+ /**
+ * AuthType enum.
+ * @name google.cloud.connectors.v1.AuthType
+ * @enum {number}
+ * @property {number} AUTH_TYPE_UNSPECIFIED=0 AUTH_TYPE_UNSPECIFIED value
+ * @property {number} USER_PASSWORD=1 USER_PASSWORD value
+ * @property {number} OAUTH2_JWT_BEARER=2 OAUTH2_JWT_BEARER value
+ * @property {number} OAUTH2_CLIENT_CREDENTIALS=3 OAUTH2_CLIENT_CREDENTIALS value
+ * @property {number} SSH_PUBLIC_KEY=4 SSH_PUBLIC_KEY value
+ * @property {number} OAUTH2_AUTH_CODE_FLOW=5 OAUTH2_AUTH_CODE_FLOW value
+ */
+ v1.AuthType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "AUTH_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "USER_PASSWORD"] = 1;
+ values[valuesById[2] = "OAUTH2_JWT_BEARER"] = 2;
+ values[valuesById[3] = "OAUTH2_CLIENT_CREDENTIALS"] = 3;
+ values[valuesById[4] = "SSH_PUBLIC_KEY"] = 4;
+ values[valuesById[5] = "OAUTH2_AUTH_CODE_FLOW"] = 5;
+ return values;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.connectors.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.connectors.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.connectors.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.connectors.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.connectors.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.connectors.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.connectors.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.connectors.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.connectors.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.connectors.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.connectors.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.connectors.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.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.connectors.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.connectors.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.connectors.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.connectors.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.connectors.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.connectors.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.connectors.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.connectors.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.connectors.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.ConfigVariableTemplate = (function() {
+
+ /**
+ * Properties of a ConfigVariableTemplate.
+ * @memberof google.cloud.connectors.v1
+ * @interface IConfigVariableTemplate
+ * @property {string|null} [key] ConfigVariableTemplate key
+ * @property {google.cloud.connectors.v1.ConfigVariableTemplate.ValueType|null} [valueType] ConfigVariableTemplate valueType
+ * @property {string|null} [displayName] ConfigVariableTemplate displayName
+ * @property {string|null} [description] ConfigVariableTemplate description
+ * @property {string|null} [validationRegex] ConfigVariableTemplate validationRegex
+ * @property {boolean|null} [required] ConfigVariableTemplate required
+ * @property {google.cloud.connectors.v1.IRoleGrant|null} [roleGrant] ConfigVariableTemplate roleGrant
+ * @property {Array.|null} [enumOptions] ConfigVariableTemplate enumOptions
+ * @property {google.cloud.connectors.v1.IAuthorizationCodeLink|null} [authorizationCodeLink] ConfigVariableTemplate authorizationCodeLink
+ * @property {google.cloud.connectors.v1.ConfigVariableTemplate.State|null} [state] ConfigVariableTemplate state
+ * @property {boolean|null} [isAdvanced] ConfigVariableTemplate isAdvanced
+ */
+
+ /**
+ * Constructs a new ConfigVariableTemplate.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ConfigVariableTemplate.
+ * @implements IConfigVariableTemplate
+ * @constructor
+ * @param {google.cloud.connectors.v1.IConfigVariableTemplate=} [properties] Properties to set
+ */
+ function ConfigVariableTemplate(properties) {
+ this.enumOptions = [];
+ 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]];
+ }
+
+ /**
+ * ConfigVariableTemplate key.
+ * @member {string} key
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.key = "";
+
+ /**
+ * ConfigVariableTemplate valueType.
+ * @member {google.cloud.connectors.v1.ConfigVariableTemplate.ValueType} valueType
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.valueType = 0;
+
+ /**
+ * ConfigVariableTemplate displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.displayName = "";
+
+ /**
+ * ConfigVariableTemplate description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.description = "";
+
+ /**
+ * ConfigVariableTemplate validationRegex.
+ * @member {string} validationRegex
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.validationRegex = "";
+
+ /**
+ * ConfigVariableTemplate required.
+ * @member {boolean} required
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.required = false;
+
+ /**
+ * ConfigVariableTemplate roleGrant.
+ * @member {google.cloud.connectors.v1.IRoleGrant|null|undefined} roleGrant
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.roleGrant = null;
+
+ /**
+ * ConfigVariableTemplate enumOptions.
+ * @member {Array.} enumOptions
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.enumOptions = $util.emptyArray;
+
+ /**
+ * ConfigVariableTemplate authorizationCodeLink.
+ * @member {google.cloud.connectors.v1.IAuthorizationCodeLink|null|undefined} authorizationCodeLink
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.authorizationCodeLink = null;
+
+ /**
+ * ConfigVariableTemplate state.
+ * @member {google.cloud.connectors.v1.ConfigVariableTemplate.State} state
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.state = 0;
+
+ /**
+ * ConfigVariableTemplate isAdvanced.
+ * @member {boolean} isAdvanced
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ */
+ ConfigVariableTemplate.prototype.isAdvanced = false;
+
+ /**
+ * Creates a new ConfigVariableTemplate instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.IConfigVariableTemplate=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ConfigVariableTemplate} ConfigVariableTemplate instance
+ */
+ ConfigVariableTemplate.create = function create(properties) {
+ return new ConfigVariableTemplate(properties);
+ };
+
+ /**
+ * Encodes the specified ConfigVariableTemplate message. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariableTemplate.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.IConfigVariableTemplate} message ConfigVariableTemplate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigVariableTemplate.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
+ if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.valueType);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.description);
+ if (message.validationRegex != null && Object.hasOwnProperty.call(message, "validationRegex"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.validationRegex);
+ if (message.required != null && Object.hasOwnProperty.call(message, "required"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.required);
+ if (message.roleGrant != null && Object.hasOwnProperty.call(message, "roleGrant"))
+ $root.google.cloud.connectors.v1.RoleGrant.encode(message.roleGrant, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.enumOptions != null && message.enumOptions.length)
+ for (var i = 0; i < message.enumOptions.length; ++i)
+ $root.google.cloud.connectors.v1.EnumOption.encode(message.enumOptions[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.authorizationCodeLink != null && Object.hasOwnProperty.call(message, "authorizationCodeLink"))
+ $root.google.cloud.connectors.v1.AuthorizationCodeLink.encode(message.authorizationCodeLink, 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);
+ if (message.isAdvanced != null && Object.hasOwnProperty.call(message, "isAdvanced"))
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isAdvanced);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfigVariableTemplate message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariableTemplate.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.IConfigVariableTemplate} message ConfigVariableTemplate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigVariableTemplate.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfigVariableTemplate message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ConfigVariableTemplate} ConfigVariableTemplate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigVariableTemplate.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.connectors.v1.ConfigVariableTemplate();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.key = reader.string();
+ break;
+ }
+ case 2: {
+ message.valueType = reader.int32();
+ break;
+ }
+ case 3: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 4: {
+ message.description = reader.string();
+ break;
+ }
+ case 5: {
+ message.validationRegex = reader.string();
+ break;
+ }
+ case 6: {
+ message.required = reader.bool();
+ break;
+ }
+ case 7: {
+ message.roleGrant = $root.google.cloud.connectors.v1.RoleGrant.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ if (!(message.enumOptions && message.enumOptions.length))
+ message.enumOptions = [];
+ message.enumOptions.push($root.google.cloud.connectors.v1.EnumOption.decode(reader, reader.uint32()));
+ break;
+ }
+ case 9: {
+ message.authorizationCodeLink = $root.google.cloud.connectors.v1.AuthorizationCodeLink.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.state = reader.int32();
+ break;
+ }
+ case 11: {
+ message.isAdvanced = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfigVariableTemplate message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ConfigVariableTemplate} ConfigVariableTemplate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigVariableTemplate.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfigVariableTemplate message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfigVariableTemplate.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (!$util.isString(message.key))
+ return "key: string expected";
+ if (message.valueType != null && message.hasOwnProperty("valueType"))
+ switch (message.valueType) {
+ default:
+ return "valueType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ break;
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.validationRegex != null && message.hasOwnProperty("validationRegex"))
+ if (!$util.isString(message.validationRegex))
+ return "validationRegex: string expected";
+ if (message.required != null && message.hasOwnProperty("required"))
+ if (typeof message.required !== "boolean")
+ return "required: boolean expected";
+ if (message.roleGrant != null && message.hasOwnProperty("roleGrant")) {
+ var error = $root.google.cloud.connectors.v1.RoleGrant.verify(message.roleGrant);
+ if (error)
+ return "roleGrant." + error;
+ }
+ if (message.enumOptions != null && message.hasOwnProperty("enumOptions")) {
+ if (!Array.isArray(message.enumOptions))
+ return "enumOptions: array expected";
+ for (var i = 0; i < message.enumOptions.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.EnumOption.verify(message.enumOptions[i]);
+ if (error)
+ return "enumOptions." + error;
+ }
+ }
+ if (message.authorizationCodeLink != null && message.hasOwnProperty("authorizationCodeLink")) {
+ var error = $root.google.cloud.connectors.v1.AuthorizationCodeLink.verify(message.authorizationCodeLink);
+ if (error)
+ return "authorizationCodeLink." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.isAdvanced != null && message.hasOwnProperty("isAdvanced"))
+ if (typeof message.isAdvanced !== "boolean")
+ return "isAdvanced: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a ConfigVariableTemplate message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ConfigVariableTemplate} ConfigVariableTemplate
+ */
+ ConfigVariableTemplate.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ConfigVariableTemplate)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ConfigVariableTemplate();
+ if (object.key != null)
+ message.key = String(object.key);
+ switch (object.valueType) {
+ default:
+ if (typeof object.valueType === "number") {
+ message.valueType = object.valueType;
+ break;
+ }
+ break;
+ case "VALUE_TYPE_UNSPECIFIED":
+ case 0:
+ message.valueType = 0;
+ break;
+ case "STRING":
+ case 1:
+ message.valueType = 1;
+ break;
+ case "INT":
+ case 2:
+ message.valueType = 2;
+ break;
+ case "BOOL":
+ case 3:
+ message.valueType = 3;
+ break;
+ case "SECRET":
+ case 4:
+ message.valueType = 4;
+ break;
+ case "ENUM":
+ case 5:
+ message.valueType = 5;
+ break;
+ case "AUTHORIZATION_CODE":
+ case 6:
+ message.valueType = 6;
+ break;
+ }
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.validationRegex != null)
+ message.validationRegex = String(object.validationRegex);
+ if (object.required != null)
+ message.required = Boolean(object.required);
+ if (object.roleGrant != null) {
+ if (typeof object.roleGrant !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ConfigVariableTemplate.roleGrant: object expected");
+ message.roleGrant = $root.google.cloud.connectors.v1.RoleGrant.fromObject(object.roleGrant);
+ }
+ if (object.enumOptions) {
+ if (!Array.isArray(object.enumOptions))
+ throw TypeError(".google.cloud.connectors.v1.ConfigVariableTemplate.enumOptions: array expected");
+ message.enumOptions = [];
+ for (var i = 0; i < object.enumOptions.length; ++i) {
+ if (typeof object.enumOptions[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ConfigVariableTemplate.enumOptions: object expected");
+ message.enumOptions[i] = $root.google.cloud.connectors.v1.EnumOption.fromObject(object.enumOptions[i]);
+ }
+ }
+ if (object.authorizationCodeLink != null) {
+ if (typeof object.authorizationCodeLink !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ConfigVariableTemplate.authorizationCodeLink: object expected");
+ message.authorizationCodeLink = $root.google.cloud.connectors.v1.AuthorizationCodeLink.fromObject(object.authorizationCodeLink);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "DEPRECATED":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ if (object.isAdvanced != null)
+ message.isAdvanced = Boolean(object.isAdvanced);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfigVariableTemplate message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.ConfigVariableTemplate} message ConfigVariableTemplate
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfigVariableTemplate.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.enumOptions = [];
+ if (options.defaults) {
+ object.key = "";
+ object.valueType = options.enums === String ? "VALUE_TYPE_UNSPECIFIED" : 0;
+ object.displayName = "";
+ object.description = "";
+ object.validationRegex = "";
+ object.required = false;
+ object.roleGrant = null;
+ object.authorizationCodeLink = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.isAdvanced = false;
+ }
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.valueType != null && message.hasOwnProperty("valueType"))
+ object.valueType = options.enums === String ? $root.google.cloud.connectors.v1.ConfigVariableTemplate.ValueType[message.valueType] === undefined ? message.valueType : $root.google.cloud.connectors.v1.ConfigVariableTemplate.ValueType[message.valueType] : message.valueType;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.validationRegex != null && message.hasOwnProperty("validationRegex"))
+ object.validationRegex = message.validationRegex;
+ if (message.required != null && message.hasOwnProperty("required"))
+ object.required = message.required;
+ if (message.roleGrant != null && message.hasOwnProperty("roleGrant"))
+ object.roleGrant = $root.google.cloud.connectors.v1.RoleGrant.toObject(message.roleGrant, options);
+ if (message.enumOptions && message.enumOptions.length) {
+ object.enumOptions = [];
+ for (var j = 0; j < message.enumOptions.length; ++j)
+ object.enumOptions[j] = $root.google.cloud.connectors.v1.EnumOption.toObject(message.enumOptions[j], options);
+ }
+ if (message.authorizationCodeLink != null && message.hasOwnProperty("authorizationCodeLink"))
+ object.authorizationCodeLink = $root.google.cloud.connectors.v1.AuthorizationCodeLink.toObject(message.authorizationCodeLink, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.connectors.v1.ConfigVariableTemplate.State[message.state] === undefined ? message.state : $root.google.cloud.connectors.v1.ConfigVariableTemplate.State[message.state] : message.state;
+ if (message.isAdvanced != null && message.hasOwnProperty("isAdvanced"))
+ object.isAdvanced = message.isAdvanced;
+ return object;
+ };
+
+ /**
+ * Converts this ConfigVariableTemplate to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfigVariableTemplate.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfigVariableTemplate
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ConfigVariableTemplate
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfigVariableTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ConfigVariableTemplate";
+ };
+
+ /**
+ * ValueType enum.
+ * @name google.cloud.connectors.v1.ConfigVariableTemplate.ValueType
+ * @enum {number}
+ * @property {number} VALUE_TYPE_UNSPECIFIED=0 VALUE_TYPE_UNSPECIFIED value
+ * @property {number} STRING=1 STRING value
+ * @property {number} INT=2 INT value
+ * @property {number} BOOL=3 BOOL value
+ * @property {number} SECRET=4 SECRET value
+ * @property {number} ENUM=5 ENUM value
+ * @property {number} AUTHORIZATION_CODE=6 AUTHORIZATION_CODE value
+ */
+ ConfigVariableTemplate.ValueType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "VALUE_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "STRING"] = 1;
+ values[valuesById[2] = "INT"] = 2;
+ values[valuesById[3] = "BOOL"] = 3;
+ values[valuesById[4] = "SECRET"] = 4;
+ values[valuesById[5] = "ENUM"] = 5;
+ values[valuesById[6] = "AUTHORIZATION_CODE"] = 6;
+ return values;
+ })();
+
+ /**
+ * State enum.
+ * @name google.cloud.connectors.v1.ConfigVariableTemplate.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} DEPRECATED=2 DEPRECATED value
+ */
+ ConfigVariableTemplate.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "DEPRECATED"] = 2;
+ return values;
+ })();
+
+ return ConfigVariableTemplate;
+ })();
+
+ v1.Secret = (function() {
+
+ /**
+ * Properties of a Secret.
+ * @memberof google.cloud.connectors.v1
+ * @interface ISecret
+ * @property {string|null} [secretVersion] Secret secretVersion
+ */
+
+ /**
+ * Constructs a new Secret.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a Secret.
+ * @implements ISecret
+ * @constructor
+ * @param {google.cloud.connectors.v1.ISecret=} [properties] Properties to set
+ */
+ function Secret(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]];
+ }
+
+ /**
+ * Secret secretVersion.
+ * @member {string} secretVersion
+ * @memberof google.cloud.connectors.v1.Secret
+ * @instance
+ */
+ Secret.prototype.secretVersion = "";
+
+ /**
+ * Creates a new Secret instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {google.cloud.connectors.v1.ISecret=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.Secret} Secret instance
+ */
+ Secret.create = function create(properties) {
+ return new Secret(properties);
+ };
+
+ /**
+ * Encodes the specified Secret message. Does not implicitly {@link google.cloud.connectors.v1.Secret.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {google.cloud.connectors.v1.ISecret} message Secret message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Secret.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.secretVersion != null && Object.hasOwnProperty.call(message, "secretVersion"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.secretVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Secret message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Secret.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {google.cloud.connectors.v1.ISecret} message Secret message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Secret.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.Secret} Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Secret.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.connectors.v1.Secret();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.secretVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Secret message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.Secret} Secret
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Secret.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Secret message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Secret.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.secretVersion != null && message.hasOwnProperty("secretVersion"))
+ if (!$util.isString(message.secretVersion))
+ return "secretVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Secret message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.Secret} Secret
+ */
+ Secret.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.Secret)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.Secret();
+ if (object.secretVersion != null)
+ message.secretVersion = String(object.secretVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Secret message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {google.cloud.connectors.v1.Secret} message Secret
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Secret.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.secretVersion = "";
+ if (message.secretVersion != null && message.hasOwnProperty("secretVersion"))
+ object.secretVersion = message.secretVersion;
+ return object;
+ };
+
+ /**
+ * Converts this Secret to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.Secret
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Secret.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Secret
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.Secret
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Secret.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.Secret";
+ };
+
+ return Secret;
+ })();
+
+ v1.EnumOption = (function() {
+
+ /**
+ * Properties of an EnumOption.
+ * @memberof google.cloud.connectors.v1
+ * @interface IEnumOption
+ * @property {string|null} [id] EnumOption id
+ * @property {string|null} [displayName] EnumOption displayName
+ */
+
+ /**
+ * Constructs a new EnumOption.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents an EnumOption.
+ * @implements IEnumOption
+ * @constructor
+ * @param {google.cloud.connectors.v1.IEnumOption=} [properties] Properties to set
+ */
+ function EnumOption(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]];
+ }
+
+ /**
+ * EnumOption id.
+ * @member {string} id
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @instance
+ */
+ EnumOption.prototype.id = "";
+
+ /**
+ * EnumOption displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @instance
+ */
+ EnumOption.prototype.displayName = "";
+
+ /**
+ * Creates a new EnumOption instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {google.cloud.connectors.v1.IEnumOption=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.EnumOption} EnumOption instance
+ */
+ EnumOption.create = function create(properties) {
+ return new EnumOption(properties);
+ };
+
+ /**
+ * Encodes the specified EnumOption message. Does not implicitly {@link google.cloud.connectors.v1.EnumOption.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {google.cloud.connectors.v1.IEnumOption} message EnumOption message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumOption.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EnumOption message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.EnumOption.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {google.cloud.connectors.v1.IEnumOption} message EnumOption message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnumOption.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EnumOption message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.EnumOption} EnumOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumOption.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.connectors.v1.EnumOption();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EnumOption message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.EnumOption} EnumOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnumOption.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EnumOption message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EnumOption.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EnumOption message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.EnumOption} EnumOption
+ */
+ EnumOption.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.EnumOption)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.EnumOption();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EnumOption message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {google.cloud.connectors.v1.EnumOption} message EnumOption
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EnumOption.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.id = "";
+ object.displayName = "";
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ return object;
+ };
+
+ /**
+ * Converts this EnumOption to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EnumOption.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EnumOption
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.EnumOption
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EnumOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.EnumOption";
+ };
+
+ return EnumOption;
+ })();
+
+ v1.ConfigVariable = (function() {
+
+ /**
+ * Properties of a ConfigVariable.
+ * @memberof google.cloud.connectors.v1
+ * @interface IConfigVariable
+ * @property {string|null} [key] ConfigVariable key
+ * @property {number|Long|null} [intValue] ConfigVariable intValue
+ * @property {boolean|null} [boolValue] ConfigVariable boolValue
+ * @property {string|null} [stringValue] ConfigVariable stringValue
+ * @property {google.cloud.connectors.v1.ISecret|null} [secretValue] ConfigVariable secretValue
+ */
+
+ /**
+ * Constructs a new ConfigVariable.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ConfigVariable.
+ * @implements IConfigVariable
+ * @constructor
+ * @param {google.cloud.connectors.v1.IConfigVariable=} [properties] Properties to set
+ */
+ function ConfigVariable(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]];
+ }
+
+ /**
+ * ConfigVariable key.
+ * @member {string} key
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @instance
+ */
+ ConfigVariable.prototype.key = "";
+
+ /**
+ * ConfigVariable intValue.
+ * @member {number|Long|null|undefined} intValue
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @instance
+ */
+ ConfigVariable.prototype.intValue = null;
+
+ /**
+ * ConfigVariable boolValue.
+ * @member {boolean|null|undefined} boolValue
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @instance
+ */
+ ConfigVariable.prototype.boolValue = null;
+
+ /**
+ * ConfigVariable stringValue.
+ * @member {string|null|undefined} stringValue
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @instance
+ */
+ ConfigVariable.prototype.stringValue = null;
+
+ /**
+ * ConfigVariable secretValue.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} secretValue
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @instance
+ */
+ ConfigVariable.prototype.secretValue = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * ConfigVariable value.
+ * @member {"intValue"|"boolValue"|"stringValue"|"secretValue"|undefined} value
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @instance
+ */
+ Object.defineProperty(ConfigVariable.prototype, "value", {
+ get: $util.oneOfGetter($oneOfFields = ["intValue", "boolValue", "stringValue", "secretValue"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new ConfigVariable instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {google.cloud.connectors.v1.IConfigVariable=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ConfigVariable} ConfigVariable instance
+ */
+ ConfigVariable.create = function create(properties) {
+ return new ConfigVariable(properties);
+ };
+
+ /**
+ * Encodes the specified ConfigVariable message. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariable.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {google.cloud.connectors.v1.IConfigVariable} message ConfigVariable message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigVariable.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
+ if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.intValue);
+ if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.boolValue);
+ if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.stringValue);
+ if (message.secretValue != null && Object.hasOwnProperty.call(message, "secretValue"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.secretValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConfigVariable message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConfigVariable.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {google.cloud.connectors.v1.IConfigVariable} message ConfigVariable message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConfigVariable.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConfigVariable message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ConfigVariable} ConfigVariable
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigVariable.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.connectors.v1.ConfigVariable();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.key = reader.string();
+ break;
+ }
+ case 2: {
+ message.intValue = reader.int64();
+ break;
+ }
+ case 3: {
+ message.boolValue = reader.bool();
+ break;
+ }
+ case 4: {
+ message.stringValue = reader.string();
+ break;
+ }
+ case 5: {
+ message.secretValue = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConfigVariable message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ConfigVariable} ConfigVariable
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConfigVariable.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConfigVariable message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConfigVariable.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (!$util.isString(message.key))
+ return "key: string expected";
+ if (message.intValue != null && message.hasOwnProperty("intValue")) {
+ properties.value = 1;
+ if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high)))
+ return "intValue: integer|Long expected";
+ }
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
+ if (properties.value === 1)
+ return "value: multiple values";
+ properties.value = 1;
+ if (typeof message.boolValue !== "boolean")
+ return "boolValue: boolean expected";
+ }
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
+ if (properties.value === 1)
+ return "value: multiple values";
+ properties.value = 1;
+ if (!$util.isString(message.stringValue))
+ return "stringValue: string expected";
+ }
+ if (message.secretValue != null && message.hasOwnProperty("secretValue")) {
+ if (properties.value === 1)
+ return "value: multiple values";
+ properties.value = 1;
+ {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.secretValue);
+ if (error)
+ return "secretValue." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConfigVariable message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ConfigVariable} ConfigVariable
+ */
+ ConfigVariable.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ConfigVariable)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ConfigVariable();
+ if (object.key != null)
+ message.key = String(object.key);
+ if (object.intValue != null)
+ if ($util.Long)
+ (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false;
+ else if (typeof object.intValue === "string")
+ message.intValue = parseInt(object.intValue, 10);
+ else if (typeof object.intValue === "number")
+ message.intValue = object.intValue;
+ else if (typeof object.intValue === "object")
+ message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
+ if (object.boolValue != null)
+ message.boolValue = Boolean(object.boolValue);
+ if (object.stringValue != null)
+ message.stringValue = String(object.stringValue);
+ if (object.secretValue != null) {
+ if (typeof object.secretValue !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ConfigVariable.secretValue: object expected");
+ message.secretValue = $root.google.cloud.connectors.v1.Secret.fromObject(object.secretValue);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConfigVariable message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {google.cloud.connectors.v1.ConfigVariable} message ConfigVariable
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConfigVariable.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.key = "";
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.intValue != null && message.hasOwnProperty("intValue")) {
+ if (typeof message.intValue === "number")
+ object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
+ else
+ object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue;
+ if (options.oneofs)
+ object.value = "intValue";
+ }
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
+ object.boolValue = message.boolValue;
+ if (options.oneofs)
+ object.value = "boolValue";
+ }
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
+ object.stringValue = message.stringValue;
+ if (options.oneofs)
+ object.value = "stringValue";
+ }
+ if (message.secretValue != null && message.hasOwnProperty("secretValue")) {
+ object.secretValue = $root.google.cloud.connectors.v1.Secret.toObject(message.secretValue, options);
+ if (options.oneofs)
+ object.value = "secretValue";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ConfigVariable to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConfigVariable.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConfigVariable
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ConfigVariable
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConfigVariable.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ConfigVariable";
+ };
+
+ return ConfigVariable;
+ })();
+
+ v1.RoleGrant = (function() {
+
+ /**
+ * Properties of a RoleGrant.
+ * @memberof google.cloud.connectors.v1
+ * @interface IRoleGrant
+ * @property {google.cloud.connectors.v1.RoleGrant.Principal|null} [principal] RoleGrant principal
+ * @property {Array.|null} [roles] RoleGrant roles
+ * @property {google.cloud.connectors.v1.RoleGrant.IResource|null} [resource] RoleGrant resource
+ * @property {string|null} [helperTextTemplate] RoleGrant helperTextTemplate
+ */
+
+ /**
+ * Constructs a new RoleGrant.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a RoleGrant.
+ * @implements IRoleGrant
+ * @constructor
+ * @param {google.cloud.connectors.v1.IRoleGrant=} [properties] Properties to set
+ */
+ function RoleGrant(properties) {
+ this.roles = [];
+ 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]];
+ }
+
+ /**
+ * RoleGrant principal.
+ * @member {google.cloud.connectors.v1.RoleGrant.Principal} principal
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @instance
+ */
+ RoleGrant.prototype.principal = 0;
+
+ /**
+ * RoleGrant roles.
+ * @member {Array.} roles
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @instance
+ */
+ RoleGrant.prototype.roles = $util.emptyArray;
+
+ /**
+ * RoleGrant resource.
+ * @member {google.cloud.connectors.v1.RoleGrant.IResource|null|undefined} resource
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @instance
+ */
+ RoleGrant.prototype.resource = null;
+
+ /**
+ * RoleGrant helperTextTemplate.
+ * @member {string} helperTextTemplate
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @instance
+ */
+ RoleGrant.prototype.helperTextTemplate = "";
+
+ /**
+ * Creates a new RoleGrant instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {google.cloud.connectors.v1.IRoleGrant=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RoleGrant} RoleGrant instance
+ */
+ RoleGrant.create = function create(properties) {
+ return new RoleGrant(properties);
+ };
+
+ /**
+ * Encodes the specified RoleGrant message. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {google.cloud.connectors.v1.IRoleGrant} message RoleGrant message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RoleGrant.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.principal != null && Object.hasOwnProperty.call(message, "principal"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.principal);
+ if (message.roles != null && message.roles.length)
+ for (var i = 0; i < message.roles.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.roles[i]);
+ if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
+ $root.google.cloud.connectors.v1.RoleGrant.Resource.encode(message.resource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.helperTextTemplate != null && Object.hasOwnProperty.call(message, "helperTextTemplate"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.helperTextTemplate);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RoleGrant message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {google.cloud.connectors.v1.IRoleGrant} message RoleGrant message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RoleGrant.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RoleGrant message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RoleGrant} RoleGrant
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RoleGrant.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.connectors.v1.RoleGrant();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.principal = reader.int32();
+ break;
+ }
+ case 2: {
+ if (!(message.roles && message.roles.length))
+ message.roles = [];
+ message.roles.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.resource = $root.google.cloud.connectors.v1.RoleGrant.Resource.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.helperTextTemplate = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RoleGrant message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RoleGrant} RoleGrant
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RoleGrant.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RoleGrant message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RoleGrant.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.principal != null && message.hasOwnProperty("principal"))
+ switch (message.principal) {
+ default:
+ return "principal: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.roles != null && message.hasOwnProperty("roles")) {
+ if (!Array.isArray(message.roles))
+ return "roles: array expected";
+ for (var i = 0; i < message.roles.length; ++i)
+ if (!$util.isString(message.roles[i]))
+ return "roles: string[] expected";
+ }
+ if (message.resource != null && message.hasOwnProperty("resource")) {
+ var error = $root.google.cloud.connectors.v1.RoleGrant.Resource.verify(message.resource);
+ if (error)
+ return "resource." + error;
+ }
+ if (message.helperTextTemplate != null && message.hasOwnProperty("helperTextTemplate"))
+ if (!$util.isString(message.helperTextTemplate))
+ return "helperTextTemplate: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a RoleGrant message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RoleGrant} RoleGrant
+ */
+ RoleGrant.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RoleGrant)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RoleGrant();
+ switch (object.principal) {
+ default:
+ if (typeof object.principal === "number") {
+ message.principal = object.principal;
+ break;
+ }
+ break;
+ case "PRINCIPAL_UNSPECIFIED":
+ case 0:
+ message.principal = 0;
+ break;
+ case "CONNECTOR_SA":
+ case 1:
+ message.principal = 1;
+ break;
+ }
+ if (object.roles) {
+ if (!Array.isArray(object.roles))
+ throw TypeError(".google.cloud.connectors.v1.RoleGrant.roles: array expected");
+ message.roles = [];
+ for (var i = 0; i < object.roles.length; ++i)
+ message.roles[i] = String(object.roles[i]);
+ }
+ if (object.resource != null) {
+ if (typeof object.resource !== "object")
+ throw TypeError(".google.cloud.connectors.v1.RoleGrant.resource: object expected");
+ message.resource = $root.google.cloud.connectors.v1.RoleGrant.Resource.fromObject(object.resource);
+ }
+ if (object.helperTextTemplate != null)
+ message.helperTextTemplate = String(object.helperTextTemplate);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RoleGrant message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {google.cloud.connectors.v1.RoleGrant} message RoleGrant
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RoleGrant.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.roles = [];
+ if (options.defaults) {
+ object.principal = options.enums === String ? "PRINCIPAL_UNSPECIFIED" : 0;
+ object.resource = null;
+ object.helperTextTemplate = "";
+ }
+ if (message.principal != null && message.hasOwnProperty("principal"))
+ object.principal = options.enums === String ? $root.google.cloud.connectors.v1.RoleGrant.Principal[message.principal] === undefined ? message.principal : $root.google.cloud.connectors.v1.RoleGrant.Principal[message.principal] : message.principal;
+ if (message.roles && message.roles.length) {
+ object.roles = [];
+ for (var j = 0; j < message.roles.length; ++j)
+ object.roles[j] = message.roles[j];
+ }
+ if (message.resource != null && message.hasOwnProperty("resource"))
+ object.resource = $root.google.cloud.connectors.v1.RoleGrant.Resource.toObject(message.resource, options);
+ if (message.helperTextTemplate != null && message.hasOwnProperty("helperTextTemplate"))
+ object.helperTextTemplate = message.helperTextTemplate;
+ return object;
+ };
+
+ /**
+ * Converts this RoleGrant to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RoleGrant.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RoleGrant
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RoleGrant.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RoleGrant";
+ };
+
+ /**
+ * Principal enum.
+ * @name google.cloud.connectors.v1.RoleGrant.Principal
+ * @enum {number}
+ * @property {number} PRINCIPAL_UNSPECIFIED=0 PRINCIPAL_UNSPECIFIED value
+ * @property {number} CONNECTOR_SA=1 CONNECTOR_SA value
+ */
+ RoleGrant.Principal = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "PRINCIPAL_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CONNECTOR_SA"] = 1;
+ return values;
+ })();
+
+ RoleGrant.Resource = (function() {
+
+ /**
+ * Properties of a Resource.
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @interface IResource
+ * @property {google.cloud.connectors.v1.RoleGrant.Resource.Type|null} [type] Resource type
+ * @property {string|null} [pathTemplate] Resource pathTemplate
+ */
+
+ /**
+ * Constructs a new Resource.
+ * @memberof google.cloud.connectors.v1.RoleGrant
+ * @classdesc Represents a Resource.
+ * @implements IResource
+ * @constructor
+ * @param {google.cloud.connectors.v1.RoleGrant.IResource=} [properties] Properties to set
+ */
+ function Resource(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]];
+ }
+
+ /**
+ * Resource type.
+ * @member {google.cloud.connectors.v1.RoleGrant.Resource.Type} type
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @instance
+ */
+ Resource.prototype.type = 0;
+
+ /**
+ * Resource pathTemplate.
+ * @member {string} pathTemplate
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @instance
+ */
+ Resource.prototype.pathTemplate = "";
+
+ /**
+ * Creates a new Resource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {google.cloud.connectors.v1.RoleGrant.IResource=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RoleGrant.Resource} Resource instance
+ */
+ Resource.create = function create(properties) {
+ return new Resource(properties);
+ };
+
+ /**
+ * Encodes the specified Resource message. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.Resource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {google.cloud.connectors.v1.RoleGrant.IResource} message Resource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Resource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
+ if (message.pathTemplate != null && Object.hasOwnProperty.call(message, "pathTemplate"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pathTemplate);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Resource message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RoleGrant.Resource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {google.cloud.connectors.v1.RoleGrant.IResource} message Resource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Resource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RoleGrant.Resource} Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Resource.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.connectors.v1.RoleGrant.Resource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pathTemplate = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Resource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RoleGrant.Resource} Resource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Resource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Resource message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Resource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.pathTemplate != null && message.hasOwnProperty("pathTemplate"))
+ if (!$util.isString(message.pathTemplate))
+ return "pathTemplate: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Resource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RoleGrant.Resource} Resource
+ */
+ Resource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RoleGrant.Resource)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RoleGrant.Resource();
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "GCP_PROJECT":
+ case 1:
+ message.type = 1;
+ break;
+ case "GCP_RESOURCE":
+ case 2:
+ message.type = 2;
+ break;
+ case "GCP_SECRETMANAGER_SECRET":
+ case 3:
+ message.type = 3;
+ break;
+ case "GCP_SECRETMANAGER_SECRET_VERSION":
+ case 4:
+ message.type = 4;
+ break;
+ }
+ if (object.pathTemplate != null)
+ message.pathTemplate = String(object.pathTemplate);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Resource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {google.cloud.connectors.v1.RoleGrant.Resource} message Resource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Resource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ object.pathTemplate = "";
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.cloud.connectors.v1.RoleGrant.Resource.Type[message.type] === undefined ? message.type : $root.google.cloud.connectors.v1.RoleGrant.Resource.Type[message.type] : message.type;
+ if (message.pathTemplate != null && message.hasOwnProperty("pathTemplate"))
+ object.pathTemplate = message.pathTemplate;
+ return object;
+ };
+
+ /**
+ * Converts this Resource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Resource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Resource
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RoleGrant.Resource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Resource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RoleGrant.Resource";
+ };
+
+ /**
+ * Type enum.
+ * @name google.cloud.connectors.v1.RoleGrant.Resource.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} GCP_PROJECT=1 GCP_PROJECT value
+ * @property {number} GCP_RESOURCE=2 GCP_RESOURCE value
+ * @property {number} GCP_SECRETMANAGER_SECRET=3 GCP_SECRETMANAGER_SECRET value
+ * @property {number} GCP_SECRETMANAGER_SECRET_VERSION=4 GCP_SECRETMANAGER_SECRET_VERSION value
+ */
+ Resource.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "GCP_PROJECT"] = 1;
+ values[valuesById[2] = "GCP_RESOURCE"] = 2;
+ values[valuesById[3] = "GCP_SECRETMANAGER_SECRET"] = 3;
+ values[valuesById[4] = "GCP_SECRETMANAGER_SECRET_VERSION"] = 4;
+ return values;
+ })();
+
+ return Resource;
+ })();
+
+ return RoleGrant;
+ })();
+
+ v1.AuthorizationCodeLink = (function() {
+
+ /**
+ * Properties of an AuthorizationCodeLink.
+ * @memberof google.cloud.connectors.v1
+ * @interface IAuthorizationCodeLink
+ * @property {string|null} [uri] AuthorizationCodeLink uri
+ * @property {Array.|null} [scopes] AuthorizationCodeLink scopes
+ * @property {string|null} [clientId] AuthorizationCodeLink clientId
+ * @property {boolean|null} [enablePkce] AuthorizationCodeLink enablePkce
+ */
+
+ /**
+ * Constructs a new AuthorizationCodeLink.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents an AuthorizationCodeLink.
+ * @implements IAuthorizationCodeLink
+ * @constructor
+ * @param {google.cloud.connectors.v1.IAuthorizationCodeLink=} [properties] Properties to set
+ */
+ function AuthorizationCodeLink(properties) {
+ this.scopes = [];
+ 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]];
+ }
+
+ /**
+ * AuthorizationCodeLink uri.
+ * @member {string} uri
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @instance
+ */
+ AuthorizationCodeLink.prototype.uri = "";
+
+ /**
+ * AuthorizationCodeLink scopes.
+ * @member {Array.} scopes
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @instance
+ */
+ AuthorizationCodeLink.prototype.scopes = $util.emptyArray;
+
+ /**
+ * AuthorizationCodeLink clientId.
+ * @member {string} clientId
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @instance
+ */
+ AuthorizationCodeLink.prototype.clientId = "";
+
+ /**
+ * AuthorizationCodeLink enablePkce.
+ * @member {boolean} enablePkce
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @instance
+ */
+ AuthorizationCodeLink.prototype.enablePkce = false;
+
+ /**
+ * Creates a new AuthorizationCodeLink instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthorizationCodeLink=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.AuthorizationCodeLink} AuthorizationCodeLink instance
+ */
+ AuthorizationCodeLink.create = function create(properties) {
+ return new AuthorizationCodeLink(properties);
+ };
+
+ /**
+ * Encodes the specified AuthorizationCodeLink message. Does not implicitly {@link google.cloud.connectors.v1.AuthorizationCodeLink.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthorizationCodeLink} message AuthorizationCodeLink message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthorizationCodeLink.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri);
+ if (message.scopes != null && message.scopes.length)
+ for (var i = 0; i < message.scopes.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.scopes[i]);
+ if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientId);
+ if (message.enablePkce != null && Object.hasOwnProperty.call(message, "enablePkce"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enablePkce);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AuthorizationCodeLink message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.AuthorizationCodeLink.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {google.cloud.connectors.v1.IAuthorizationCodeLink} message AuthorizationCodeLink message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthorizationCodeLink.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AuthorizationCodeLink message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.AuthorizationCodeLink} AuthorizationCodeLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthorizationCodeLink.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.connectors.v1.AuthorizationCodeLink();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.uri = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.scopes && message.scopes.length))
+ message.scopes = [];
+ message.scopes.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.clientId = reader.string();
+ break;
+ }
+ case 4: {
+ message.enablePkce = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AuthorizationCodeLink message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.AuthorizationCodeLink} AuthorizationCodeLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthorizationCodeLink.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AuthorizationCodeLink message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AuthorizationCodeLink.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ if (!$util.isString(message.uri))
+ return "uri: string expected";
+ if (message.scopes != null && message.hasOwnProperty("scopes")) {
+ if (!Array.isArray(message.scopes))
+ return "scopes: array expected";
+ for (var i = 0; i < message.scopes.length; ++i)
+ if (!$util.isString(message.scopes[i]))
+ return "scopes: string[] expected";
+ }
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
+ if (!$util.isString(message.clientId))
+ return "clientId: string expected";
+ if (message.enablePkce != null && message.hasOwnProperty("enablePkce"))
+ if (typeof message.enablePkce !== "boolean")
+ return "enablePkce: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an AuthorizationCodeLink message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.AuthorizationCodeLink} AuthorizationCodeLink
+ */
+ AuthorizationCodeLink.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.AuthorizationCodeLink)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.AuthorizationCodeLink();
+ if (object.uri != null)
+ message.uri = String(object.uri);
+ if (object.scopes) {
+ if (!Array.isArray(object.scopes))
+ throw TypeError(".google.cloud.connectors.v1.AuthorizationCodeLink.scopes: array expected");
+ message.scopes = [];
+ for (var i = 0; i < object.scopes.length; ++i)
+ message.scopes[i] = String(object.scopes[i]);
+ }
+ if (object.clientId != null)
+ message.clientId = String(object.clientId);
+ if (object.enablePkce != null)
+ message.enablePkce = Boolean(object.enablePkce);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AuthorizationCodeLink message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {google.cloud.connectors.v1.AuthorizationCodeLink} message AuthorizationCodeLink
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AuthorizationCodeLink.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.scopes = [];
+ if (options.defaults) {
+ object.uri = "";
+ object.clientId = "";
+ object.enablePkce = false;
+ }
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ object.uri = message.uri;
+ if (message.scopes && message.scopes.length) {
+ object.scopes = [];
+ for (var j = 0; j < message.scopes.length; ++j)
+ object.scopes[j] = message.scopes[j];
+ }
+ if (message.clientId != null && message.hasOwnProperty("clientId"))
+ object.clientId = message.clientId;
+ if (message.enablePkce != null && message.hasOwnProperty("enablePkce"))
+ object.enablePkce = message.enablePkce;
+ return object;
+ };
+
+ /**
+ * Converts this AuthorizationCodeLink to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AuthorizationCodeLink.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AuthorizationCodeLink
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.AuthorizationCodeLink
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AuthorizationCodeLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.AuthorizationCodeLink";
+ };
+
+ return AuthorizationCodeLink;
+ })();
+
+ /**
+ * LaunchStage enum.
+ * @name google.cloud.connectors.v1.LaunchStage
+ * @enum {number}
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
+ * @property {number} PREVIEW=1 PREVIEW value
+ * @property {number} GA=2 GA value
+ * @property {number} DEPRECATED=3 DEPRECATED value
+ * @property {number} PRIVATE_PREVIEW=5 PRIVATE_PREVIEW value
+ */
+ v1.LaunchStage = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PREVIEW"] = 1;
+ values[valuesById[2] = "GA"] = 2;
+ values[valuesById[3] = "DEPRECATED"] = 3;
+ values[valuesById[5] = "PRIVATE_PREVIEW"] = 5;
+ return values;
+ })();
+
+ v1.Connection = (function() {
+
+ /**
+ * Properties of a Connection.
+ * @memberof google.cloud.connectors.v1
+ * @interface IConnection
+ * @property {string|null} [name] Connection name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Connection createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Connection updateTime
+ * @property {Object.|null} [labels] Connection labels
+ * @property {string|null} [description] Connection description
+ * @property {string|null} [connectorVersion] Connection connectorVersion
+ * @property {google.cloud.connectors.v1.IConnectionStatus|null} [status] Connection status
+ * @property {Array.|null} [configVariables] Connection configVariables
+ * @property {google.cloud.connectors.v1.IAuthConfig|null} [authConfig] Connection authConfig
+ * @property {google.cloud.connectors.v1.ILockConfig|null} [lockConfig] Connection lockConfig
+ * @property {Array.|null} [destinationConfigs] Connection destinationConfigs
+ * @property {string|null} [imageLocation] Connection imageLocation
+ * @property {string|null} [serviceAccount] Connection serviceAccount
+ * @property {string|null} [serviceDirectory] Connection serviceDirectory
+ * @property {string|null} [envoyImageLocation] Connection envoyImageLocation
+ * @property {boolean|null} [suspended] Connection suspended
+ * @property {google.cloud.connectors.v1.INodeConfig|null} [nodeConfig] Connection nodeConfig
+ * @property {google.cloud.connectors.v1.ISslConfig|null} [sslConfig] Connection sslConfig
+ */
+
+ /**
+ * Constructs a new Connection.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a Connection.
+ * @implements IConnection
+ * @constructor
+ * @param {google.cloud.connectors.v1.IConnection=} [properties] Properties to set
+ */
+ function Connection(properties) {
+ this.labels = {};
+ this.configVariables = [];
+ this.destinationConfigs = [];
+ 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]];
+ }
+
+ /**
+ * Connection name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.name = "";
+
+ /**
+ * Connection createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.createTime = null;
+
+ /**
+ * Connection updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.updateTime = null;
+
+ /**
+ * Connection labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.labels = $util.emptyObject;
+
+ /**
+ * Connection description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.description = "";
+
+ /**
+ * Connection connectorVersion.
+ * @member {string} connectorVersion
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.connectorVersion = "";
+
+ /**
+ * Connection status.
+ * @member {google.cloud.connectors.v1.IConnectionStatus|null|undefined} status
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.status = null;
+
+ /**
+ * Connection configVariables.
+ * @member {Array.} configVariables
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.configVariables = $util.emptyArray;
+
+ /**
+ * Connection authConfig.
+ * @member {google.cloud.connectors.v1.IAuthConfig|null|undefined} authConfig
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.authConfig = null;
+
+ /**
+ * Connection lockConfig.
+ * @member {google.cloud.connectors.v1.ILockConfig|null|undefined} lockConfig
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.lockConfig = null;
+
+ /**
+ * Connection destinationConfigs.
+ * @member {Array.} destinationConfigs
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.destinationConfigs = $util.emptyArray;
+
+ /**
+ * Connection imageLocation.
+ * @member {string} imageLocation
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.imageLocation = "";
+
+ /**
+ * Connection serviceAccount.
+ * @member {string} serviceAccount
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.serviceAccount = "";
+
+ /**
+ * Connection serviceDirectory.
+ * @member {string} serviceDirectory
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.serviceDirectory = "";
+
+ /**
+ * Connection envoyImageLocation.
+ * @member {string} envoyImageLocation
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.envoyImageLocation = "";
+
+ /**
+ * Connection suspended.
+ * @member {boolean} suspended
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.suspended = false;
+
+ /**
+ * Connection nodeConfig.
+ * @member {google.cloud.connectors.v1.INodeConfig|null|undefined} nodeConfig
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.nodeConfig = null;
+
+ /**
+ * Connection sslConfig.
+ * @member {google.cloud.connectors.v1.ISslConfig|null|undefined} sslConfig
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ */
+ Connection.prototype.sslConfig = null;
+
+ /**
+ * Creates a new Connection instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {google.cloud.connectors.v1.IConnection=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.Connection} Connection instance
+ */
+ Connection.create = function create(properties) {
+ return new Connection(properties);
+ };
+
+ /**
+ * Encodes the specified Connection message. Does not implicitly {@link google.cloud.connectors.v1.Connection.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {google.cloud.connectors.v1.IConnection} message Connection message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Connection.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.description);
+ if (message.connectorVersion != null && Object.hasOwnProperty.call(message, "connectorVersion"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.connectorVersion);
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ $root.google.cloud.connectors.v1.ConnectionStatus.encode(message.status, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.configVariables != null && message.configVariables.length)
+ for (var i = 0; i < message.configVariables.length; ++i)
+ $root.google.cloud.connectors.v1.ConfigVariable.encode(message.configVariables[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.authConfig != null && Object.hasOwnProperty.call(message, "authConfig"))
+ $root.google.cloud.connectors.v1.AuthConfig.encode(message.authConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.lockConfig != null && Object.hasOwnProperty.call(message, "lockConfig"))
+ $root.google.cloud.connectors.v1.LockConfig.encode(message.lockConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.imageLocation != null && Object.hasOwnProperty.call(message, "imageLocation"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.imageLocation);
+ if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.serviceAccount);
+ if (message.serviceDirectory != null && Object.hasOwnProperty.call(message, "serviceDirectory"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.serviceDirectory);
+ if (message.envoyImageLocation != null && Object.hasOwnProperty.call(message, "envoyImageLocation"))
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.envoyImageLocation);
+ if (message.suspended != null && Object.hasOwnProperty.call(message, "suspended"))
+ writer.uint32(/* id 17, wireType 0 =*/136).bool(message.suspended);
+ if (message.destinationConfigs != null && message.destinationConfigs.length)
+ for (var i = 0; i < message.destinationConfigs.length; ++i)
+ $root.google.cloud.connectors.v1.DestinationConfig.encode(message.destinationConfigs[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
+ if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig"))
+ $root.google.cloud.connectors.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
+ if (message.sslConfig != null && Object.hasOwnProperty.call(message, "sslConfig"))
+ $root.google.cloud.connectors.v1.SslConfig.encode(message.sslConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Connection message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Connection.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {google.cloud.connectors.v1.IConnection} message Connection message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Connection.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.Connection} Connection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Connection.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.connectors.v1.Connection(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 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.description = reader.string();
+ break;
+ }
+ case 6: {
+ message.connectorVersion = reader.string();
+ break;
+ }
+ case 7: {
+ message.status = $root.google.cloud.connectors.v1.ConnectionStatus.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ if (!(message.configVariables && message.configVariables.length))
+ message.configVariables = [];
+ message.configVariables.push($root.google.cloud.connectors.v1.ConfigVariable.decode(reader, reader.uint32()));
+ break;
+ }
+ case 9: {
+ message.authConfig = $root.google.cloud.connectors.v1.AuthConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.lockConfig = $root.google.cloud.connectors.v1.LockConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 18: {
+ if (!(message.destinationConfigs && message.destinationConfigs.length))
+ message.destinationConfigs = [];
+ message.destinationConfigs.push($root.google.cloud.connectors.v1.DestinationConfig.decode(reader, reader.uint32()));
+ break;
+ }
+ case 11: {
+ message.imageLocation = reader.string();
+ break;
+ }
+ case 12: {
+ message.serviceAccount = reader.string();
+ break;
+ }
+ case 13: {
+ message.serviceDirectory = reader.string();
+ break;
+ }
+ case 15: {
+ message.envoyImageLocation = reader.string();
+ break;
+ }
+ case 17: {
+ message.suspended = reader.bool();
+ break;
+ }
+ case 19: {
+ message.nodeConfig = $root.google.cloud.connectors.v1.NodeConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 21: {
+ message.sslConfig = $root.google.cloud.connectors.v1.SslConfig.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.Connection} Connection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Connection.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Connection message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Connection.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.connectorVersion != null && message.hasOwnProperty("connectorVersion"))
+ if (!$util.isString(message.connectorVersion))
+ return "connectorVersion: string expected";
+ if (message.status != null && message.hasOwnProperty("status")) {
+ var error = $root.google.cloud.connectors.v1.ConnectionStatus.verify(message.status);
+ if (error)
+ return "status." + error;
+ }
+ if (message.configVariables != null && message.hasOwnProperty("configVariables")) {
+ if (!Array.isArray(message.configVariables))
+ return "configVariables: array expected";
+ for (var i = 0; i < message.configVariables.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.ConfigVariable.verify(message.configVariables[i]);
+ if (error)
+ return "configVariables." + error;
+ }
+ }
+ if (message.authConfig != null && message.hasOwnProperty("authConfig")) {
+ var error = $root.google.cloud.connectors.v1.AuthConfig.verify(message.authConfig);
+ if (error)
+ return "authConfig." + error;
+ }
+ if (message.lockConfig != null && message.hasOwnProperty("lockConfig")) {
+ var error = $root.google.cloud.connectors.v1.LockConfig.verify(message.lockConfig);
+ if (error)
+ return "lockConfig." + error;
+ }
+ if (message.destinationConfigs != null && message.hasOwnProperty("destinationConfigs")) {
+ if (!Array.isArray(message.destinationConfigs))
+ return "destinationConfigs: array expected";
+ for (var i = 0; i < message.destinationConfigs.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.DestinationConfig.verify(message.destinationConfigs[i]);
+ if (error)
+ return "destinationConfigs." + error;
+ }
+ }
+ if (message.imageLocation != null && message.hasOwnProperty("imageLocation"))
+ if (!$util.isString(message.imageLocation))
+ return "imageLocation: string expected";
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ if (!$util.isString(message.serviceAccount))
+ return "serviceAccount: string expected";
+ if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory"))
+ if (!$util.isString(message.serviceDirectory))
+ return "serviceDirectory: string expected";
+ if (message.envoyImageLocation != null && message.hasOwnProperty("envoyImageLocation"))
+ if (!$util.isString(message.envoyImageLocation))
+ return "envoyImageLocation: string expected";
+ if (message.suspended != null && message.hasOwnProperty("suspended"))
+ if (typeof message.suspended !== "boolean")
+ return "suspended: boolean expected";
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) {
+ var error = $root.google.cloud.connectors.v1.NodeConfig.verify(message.nodeConfig);
+ if (error)
+ return "nodeConfig." + error;
+ }
+ if (message.sslConfig != null && message.hasOwnProperty("sslConfig")) {
+ var error = $root.google.cloud.connectors.v1.SslConfig.verify(message.sslConfig);
+ if (error)
+ return "sslConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Connection message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.Connection} Connection
+ */
+ Connection.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.Connection)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.Connection();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.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.connectors.v1.Connection.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.connectorVersion != null)
+ message.connectorVersion = String(object.connectorVersion);
+ if (object.status != null) {
+ if (typeof object.status !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.status: object expected");
+ message.status = $root.google.cloud.connectors.v1.ConnectionStatus.fromObject(object.status);
+ }
+ if (object.configVariables) {
+ if (!Array.isArray(object.configVariables))
+ throw TypeError(".google.cloud.connectors.v1.Connection.configVariables: array expected");
+ message.configVariables = [];
+ for (var i = 0; i < object.configVariables.length; ++i) {
+ if (typeof object.configVariables[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.configVariables: object expected");
+ message.configVariables[i] = $root.google.cloud.connectors.v1.ConfigVariable.fromObject(object.configVariables[i]);
+ }
+ }
+ if (object.authConfig != null) {
+ if (typeof object.authConfig !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.authConfig: object expected");
+ message.authConfig = $root.google.cloud.connectors.v1.AuthConfig.fromObject(object.authConfig);
+ }
+ if (object.lockConfig != null) {
+ if (typeof object.lockConfig !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.lockConfig: object expected");
+ message.lockConfig = $root.google.cloud.connectors.v1.LockConfig.fromObject(object.lockConfig);
+ }
+ if (object.destinationConfigs) {
+ if (!Array.isArray(object.destinationConfigs))
+ throw TypeError(".google.cloud.connectors.v1.Connection.destinationConfigs: array expected");
+ message.destinationConfigs = [];
+ for (var i = 0; i < object.destinationConfigs.length; ++i) {
+ if (typeof object.destinationConfigs[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.destinationConfigs: object expected");
+ message.destinationConfigs[i] = $root.google.cloud.connectors.v1.DestinationConfig.fromObject(object.destinationConfigs[i]);
+ }
+ }
+ if (object.imageLocation != null)
+ message.imageLocation = String(object.imageLocation);
+ if (object.serviceAccount != null)
+ message.serviceAccount = String(object.serviceAccount);
+ if (object.serviceDirectory != null)
+ message.serviceDirectory = String(object.serviceDirectory);
+ if (object.envoyImageLocation != null)
+ message.envoyImageLocation = String(object.envoyImageLocation);
+ if (object.suspended != null)
+ message.suspended = Boolean(object.suspended);
+ if (object.nodeConfig != null) {
+ if (typeof object.nodeConfig !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.nodeConfig: object expected");
+ message.nodeConfig = $root.google.cloud.connectors.v1.NodeConfig.fromObject(object.nodeConfig);
+ }
+ if (object.sslConfig != null) {
+ if (typeof object.sslConfig !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connection.sslConfig: object expected");
+ message.sslConfig = $root.google.cloud.connectors.v1.SslConfig.fromObject(object.sslConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Connection message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {google.cloud.connectors.v1.Connection} message Connection
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Connection.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.configVariables = [];
+ object.destinationConfigs = [];
+ }
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.description = "";
+ object.connectorVersion = "";
+ object.status = null;
+ object.authConfig = null;
+ object.lockConfig = null;
+ object.imageLocation = "";
+ object.serviceAccount = "";
+ object.serviceDirectory = "";
+ object.envoyImageLocation = "";
+ object.suspended = false;
+ object.nodeConfig = null;
+ object.sslConfig = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.connectorVersion != null && message.hasOwnProperty("connectorVersion"))
+ object.connectorVersion = message.connectorVersion;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = $root.google.cloud.connectors.v1.ConnectionStatus.toObject(message.status, options);
+ if (message.configVariables && message.configVariables.length) {
+ object.configVariables = [];
+ for (var j = 0; j < message.configVariables.length; ++j)
+ object.configVariables[j] = $root.google.cloud.connectors.v1.ConfigVariable.toObject(message.configVariables[j], options);
+ }
+ if (message.authConfig != null && message.hasOwnProperty("authConfig"))
+ object.authConfig = $root.google.cloud.connectors.v1.AuthConfig.toObject(message.authConfig, options);
+ if (message.lockConfig != null && message.hasOwnProperty("lockConfig"))
+ object.lockConfig = $root.google.cloud.connectors.v1.LockConfig.toObject(message.lockConfig, options);
+ if (message.imageLocation != null && message.hasOwnProperty("imageLocation"))
+ object.imageLocation = message.imageLocation;
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ object.serviceAccount = message.serviceAccount;
+ if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory"))
+ object.serviceDirectory = message.serviceDirectory;
+ if (message.envoyImageLocation != null && message.hasOwnProperty("envoyImageLocation"))
+ object.envoyImageLocation = message.envoyImageLocation;
+ if (message.suspended != null && message.hasOwnProperty("suspended"))
+ object.suspended = message.suspended;
+ if (message.destinationConfigs && message.destinationConfigs.length) {
+ object.destinationConfigs = [];
+ for (var j = 0; j < message.destinationConfigs.length; ++j)
+ object.destinationConfigs[j] = $root.google.cloud.connectors.v1.DestinationConfig.toObject(message.destinationConfigs[j], options);
+ }
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig"))
+ object.nodeConfig = $root.google.cloud.connectors.v1.NodeConfig.toObject(message.nodeConfig, options);
+ if (message.sslConfig != null && message.hasOwnProperty("sslConfig"))
+ object.sslConfig = $root.google.cloud.connectors.v1.SslConfig.toObject(message.sslConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this Connection to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.Connection
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Connection.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Connection
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.Connection
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Connection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.Connection";
+ };
+
+ return Connection;
+ })();
+
+ v1.NodeConfig = (function() {
+
+ /**
+ * Properties of a NodeConfig.
+ * @memberof google.cloud.connectors.v1
+ * @interface INodeConfig
+ * @property {number|null} [minNodeCount] NodeConfig minNodeCount
+ * @property {number|null} [maxNodeCount] NodeConfig maxNodeCount
+ */
+
+ /**
+ * Constructs a new NodeConfig.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a NodeConfig.
+ * @implements INodeConfig
+ * @constructor
+ * @param {google.cloud.connectors.v1.INodeConfig=} [properties] Properties to set
+ */
+ function NodeConfig(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]];
+ }
+
+ /**
+ * NodeConfig minNodeCount.
+ * @member {number} minNodeCount
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.minNodeCount = 0;
+
+ /**
+ * NodeConfig maxNodeCount.
+ * @member {number} maxNodeCount
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.maxNodeCount = 0;
+
+ /**
+ * Creates a new NodeConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {google.cloud.connectors.v1.INodeConfig=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.NodeConfig} NodeConfig instance
+ */
+ NodeConfig.create = function create(properties) {
+ return new NodeConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.connectors.v1.NodeConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {google.cloud.connectors.v1.INodeConfig} message NodeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minNodeCount);
+ if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxNodeCount);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.NodeConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {google.cloud.connectors.v1.INodeConfig} message NodeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.NodeConfig} NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeConfig.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.connectors.v1.NodeConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.minNodeCount = reader.int32();
+ break;
+ }
+ case 2: {
+ message.maxNodeCount = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.NodeConfig} NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeConfig message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount"))
+ if (!$util.isInteger(message.minNodeCount))
+ return "minNodeCount: integer expected";
+ if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount"))
+ if (!$util.isInteger(message.maxNodeCount))
+ return "maxNodeCount: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.NodeConfig} NodeConfig
+ */
+ NodeConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.NodeConfig)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.NodeConfig();
+ if (object.minNodeCount != null)
+ message.minNodeCount = object.minNodeCount | 0;
+ if (object.maxNodeCount != null)
+ message.maxNodeCount = object.maxNodeCount | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {google.cloud.connectors.v1.NodeConfig} message NodeConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.minNodeCount = 0;
+ object.maxNodeCount = 0;
+ }
+ if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount"))
+ object.minNodeCount = message.minNodeCount;
+ if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount"))
+ object.maxNodeCount = message.maxNodeCount;
+ return object;
+ };
+
+ /**
+ * Converts this NodeConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.NodeConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.NodeConfig";
+ };
+
+ return NodeConfig;
+ })();
+
+ v1.ConnectionSchemaMetadata = (function() {
+
+ /**
+ * Properties of a ConnectionSchemaMetadata.
+ * @memberof google.cloud.connectors.v1
+ * @interface IConnectionSchemaMetadata
+ * @property {Array.|null} [entities] ConnectionSchemaMetadata entities
+ * @property {Array.|null} [actions] ConnectionSchemaMetadata actions
+ * @property {string|null} [name] ConnectionSchemaMetadata name
+ * @property {google.protobuf.ITimestamp|null} [updateTime] ConnectionSchemaMetadata updateTime
+ * @property {google.protobuf.ITimestamp|null} [refreshTime] ConnectionSchemaMetadata refreshTime
+ * @property {google.cloud.connectors.v1.ConnectionSchemaMetadata.State|null} [state] ConnectionSchemaMetadata state
+ */
+
+ /**
+ * Constructs a new ConnectionSchemaMetadata.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ConnectionSchemaMetadata.
+ * @implements IConnectionSchemaMetadata
+ * @constructor
+ * @param {google.cloud.connectors.v1.IConnectionSchemaMetadata=} [properties] Properties to set
+ */
+ function ConnectionSchemaMetadata(properties) {
+ this.entities = [];
+ this.actions = [];
+ 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]];
+ }
+
+ /**
+ * ConnectionSchemaMetadata entities.
+ * @member {Array.} entities
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @instance
+ */
+ ConnectionSchemaMetadata.prototype.entities = $util.emptyArray;
+
+ /**
+ * ConnectionSchemaMetadata actions.
+ * @member {Array.} actions
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @instance
+ */
+ ConnectionSchemaMetadata.prototype.actions = $util.emptyArray;
+
+ /**
+ * ConnectionSchemaMetadata name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @instance
+ */
+ ConnectionSchemaMetadata.prototype.name = "";
+
+ /**
+ * ConnectionSchemaMetadata updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @instance
+ */
+ ConnectionSchemaMetadata.prototype.updateTime = null;
+
+ /**
+ * ConnectionSchemaMetadata refreshTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} refreshTime
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @instance
+ */
+ ConnectionSchemaMetadata.prototype.refreshTime = null;
+
+ /**
+ * ConnectionSchemaMetadata state.
+ * @member {google.cloud.connectors.v1.ConnectionSchemaMetadata.State} state
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @instance
+ */
+ ConnectionSchemaMetadata.prototype.state = 0;
+
+ /**
+ * Creates a new ConnectionSchemaMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.IConnectionSchemaMetadata=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ConnectionSchemaMetadata} ConnectionSchemaMetadata instance
+ */
+ ConnectionSchemaMetadata.create = function create(properties) {
+ return new ConnectionSchemaMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified ConnectionSchemaMetadata message. Does not implicitly {@link google.cloud.connectors.v1.ConnectionSchemaMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.IConnectionSchemaMetadata} message ConnectionSchemaMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConnectionSchemaMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.entities != null && message.entities.length)
+ for (var i = 0; i < message.entities.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.entities[i]);
+ if (message.actions != null && message.actions.length)
+ for (var i = 0; i < message.actions.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.actions[i]);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.name);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.refreshTime != null && Object.hasOwnProperty.call(message, "refreshTime"))
+ $root.google.protobuf.Timestamp.encode(message.refreshTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConnectionSchemaMetadata message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConnectionSchemaMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.IConnectionSchemaMetadata} message ConnectionSchemaMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConnectionSchemaMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConnectionSchemaMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ConnectionSchemaMetadata} ConnectionSchemaMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConnectionSchemaMetadata.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.connectors.v1.ConnectionSchemaMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.entities && message.entities.length))
+ message.entities = [];
+ message.entities.push(reader.string());
+ break;
+ }
+ case 2: {
+ if (!(message.actions && message.actions.length))
+ message.actions = [];
+ message.actions.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.name = reader.string();
+ break;
+ }
+ case 4: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.refreshTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.state = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConnectionSchemaMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ConnectionSchemaMetadata} ConnectionSchemaMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConnectionSchemaMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConnectionSchemaMetadata message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConnectionSchemaMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.entities != null && message.hasOwnProperty("entities")) {
+ if (!Array.isArray(message.entities))
+ return "entities: array expected";
+ for (var i = 0; i < message.entities.length; ++i)
+ if (!$util.isString(message.entities[i]))
+ return "entities: string[] expected";
+ }
+ if (message.actions != null && message.hasOwnProperty("actions")) {
+ if (!Array.isArray(message.actions))
+ return "actions: array expected";
+ for (var i = 0; i < message.actions.length; ++i)
+ if (!$util.isString(message.actions[i]))
+ return "actions: string[] expected";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.refreshTime != null && message.hasOwnProperty("refreshTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.refreshTime);
+ if (error)
+ return "refreshTime." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ConnectionSchemaMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ConnectionSchemaMetadata} ConnectionSchemaMetadata
+ */
+ ConnectionSchemaMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ConnectionSchemaMetadata)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ConnectionSchemaMetadata();
+ if (object.entities) {
+ if (!Array.isArray(object.entities))
+ throw TypeError(".google.cloud.connectors.v1.ConnectionSchemaMetadata.entities: array expected");
+ message.entities = [];
+ for (var i = 0; i < object.entities.length; ++i)
+ message.entities[i] = String(object.entities[i]);
+ }
+ if (object.actions) {
+ if (!Array.isArray(object.actions))
+ throw TypeError(".google.cloud.connectors.v1.ConnectionSchemaMetadata.actions: array expected");
+ message.actions = [];
+ for (var i = 0; i < object.actions.length; ++i)
+ message.actions[i] = String(object.actions[i]);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ConnectionSchemaMetadata.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.refreshTime != null) {
+ if (typeof object.refreshTime !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ConnectionSchemaMetadata.refreshTime: object expected");
+ message.refreshTime = $root.google.protobuf.Timestamp.fromObject(object.refreshTime);
+ }
+ 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 "REFRESHING":
+ case 1:
+ message.state = 1;
+ break;
+ case "UPDATED":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConnectionSchemaMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.ConnectionSchemaMetadata} message ConnectionSchemaMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConnectionSchemaMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.entities = [];
+ object.actions = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.updateTime = null;
+ object.refreshTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ }
+ if (message.entities && message.entities.length) {
+ object.entities = [];
+ for (var j = 0; j < message.entities.length; ++j)
+ object.entities[j] = message.entities[j];
+ }
+ if (message.actions && message.actions.length) {
+ object.actions = [];
+ for (var j = 0; j < message.actions.length; ++j)
+ object.actions[j] = message.actions[j];
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.refreshTime != null && message.hasOwnProperty("refreshTime"))
+ object.refreshTime = $root.google.protobuf.Timestamp.toObject(message.refreshTime, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.connectors.v1.ConnectionSchemaMetadata.State[message.state] === undefined ? message.state : $root.google.cloud.connectors.v1.ConnectionSchemaMetadata.State[message.state] : message.state;
+ return object;
+ };
+
+ /**
+ * Converts this ConnectionSchemaMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConnectionSchemaMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConnectionSchemaMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ConnectionSchemaMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConnectionSchemaMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ConnectionSchemaMetadata";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.connectors.v1.ConnectionSchemaMetadata.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} REFRESHING=1 REFRESHING value
+ * @property {number} UPDATED=2 UPDATED value
+ */
+ ConnectionSchemaMetadata.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "REFRESHING"] = 1;
+ values[valuesById[2] = "UPDATED"] = 2;
+ return values;
+ })();
+
+ return ConnectionSchemaMetadata;
+ })();
+
+ v1.RuntimeEntitySchema = (function() {
+
+ /**
+ * Properties of a RuntimeEntitySchema.
+ * @memberof google.cloud.connectors.v1
+ * @interface IRuntimeEntitySchema
+ * @property {string|null} [entity] RuntimeEntitySchema entity
+ * @property {Array.|null} [fields] RuntimeEntitySchema fields
+ */
+
+ /**
+ * Constructs a new RuntimeEntitySchema.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a RuntimeEntitySchema.
+ * @implements IRuntimeEntitySchema
+ * @constructor
+ * @param {google.cloud.connectors.v1.IRuntimeEntitySchema=} [properties] Properties to set
+ */
+ function RuntimeEntitySchema(properties) {
+ this.fields = [];
+ 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]];
+ }
+
+ /**
+ * RuntimeEntitySchema entity.
+ * @member {string} entity
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @instance
+ */
+ RuntimeEntitySchema.prototype.entity = "";
+
+ /**
+ * RuntimeEntitySchema fields.
+ * @member {Array.} fields
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @instance
+ */
+ RuntimeEntitySchema.prototype.fields = $util.emptyArray;
+
+ /**
+ * Creates a new RuntimeEntitySchema instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {google.cloud.connectors.v1.IRuntimeEntitySchema=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema} RuntimeEntitySchema instance
+ */
+ RuntimeEntitySchema.create = function create(properties) {
+ return new RuntimeEntitySchema(properties);
+ };
+
+ /**
+ * Encodes the specified RuntimeEntitySchema message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {google.cloud.connectors.v1.IRuntimeEntitySchema} message RuntimeEntitySchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RuntimeEntitySchema.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.entity != null && Object.hasOwnProperty.call(message, "entity"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.entity);
+ if (message.fields != null && message.fields.length)
+ for (var i = 0; i < message.fields.length; ++i)
+ $root.google.cloud.connectors.v1.RuntimeEntitySchema.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RuntimeEntitySchema message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {google.cloud.connectors.v1.IRuntimeEntitySchema} message RuntimeEntitySchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RuntimeEntitySchema.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RuntimeEntitySchema message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema} RuntimeEntitySchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RuntimeEntitySchema.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.connectors.v1.RuntimeEntitySchema();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.entity = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.fields && message.fields.length))
+ message.fields = [];
+ message.fields.push($root.google.cloud.connectors.v1.RuntimeEntitySchema.Field.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RuntimeEntitySchema message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema} RuntimeEntitySchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RuntimeEntitySchema.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RuntimeEntitySchema message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RuntimeEntitySchema.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.entity != null && message.hasOwnProperty("entity"))
+ if (!$util.isString(message.entity))
+ return "entity: string expected";
+ if (message.fields != null && message.hasOwnProperty("fields")) {
+ if (!Array.isArray(message.fields))
+ return "fields: array expected";
+ for (var i = 0; i < message.fields.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.RuntimeEntitySchema.Field.verify(message.fields[i]);
+ if (error)
+ return "fields." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RuntimeEntitySchema message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema} RuntimeEntitySchema
+ */
+ RuntimeEntitySchema.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RuntimeEntitySchema)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RuntimeEntitySchema();
+ if (object.entity != null)
+ message.entity = String(object.entity);
+ if (object.fields) {
+ if (!Array.isArray(object.fields))
+ throw TypeError(".google.cloud.connectors.v1.RuntimeEntitySchema.fields: array expected");
+ message.fields = [];
+ for (var i = 0; i < object.fields.length; ++i) {
+ if (typeof object.fields[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.RuntimeEntitySchema.fields: object expected");
+ message.fields[i] = $root.google.cloud.connectors.v1.RuntimeEntitySchema.Field.fromObject(object.fields[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RuntimeEntitySchema message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeEntitySchema} message RuntimeEntitySchema
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RuntimeEntitySchema.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.fields = [];
+ if (options.defaults)
+ object.entity = "";
+ if (message.entity != null && message.hasOwnProperty("entity"))
+ object.entity = message.entity;
+ if (message.fields && message.fields.length) {
+ object.fields = [];
+ for (var j = 0; j < message.fields.length; ++j)
+ object.fields[j] = $root.google.cloud.connectors.v1.RuntimeEntitySchema.Field.toObject(message.fields[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this RuntimeEntitySchema to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RuntimeEntitySchema.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RuntimeEntitySchema
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RuntimeEntitySchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RuntimeEntitySchema";
+ };
+
+ RuntimeEntitySchema.Field = (function() {
+
+ /**
+ * Properties of a Field.
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @interface IField
+ * @property {string|null} [field] Field field
+ * @property {string|null} [description] Field description
+ * @property {google.cloud.connectors.v1.DataType|null} [dataType] Field dataType
+ * @property {boolean|null} [key] Field key
+ * @property {boolean|null} [readonly] Field readonly
+ * @property {boolean|null} [nullable] Field nullable
+ * @property {google.protobuf.IValue|null} [defaultValue] Field defaultValue
+ * @property {google.protobuf.IStruct|null} [additionalDetails] Field additionalDetails
+ */
+
+ /**
+ * Constructs a new Field.
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema
+ * @classdesc Represents a Field.
+ * @implements IField
+ * @constructor
+ * @param {google.cloud.connectors.v1.RuntimeEntitySchema.IField=} [properties] Properties to set
+ */
+ function Field(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]];
+ }
+
+ /**
+ * Field field.
+ * @member {string} field
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.field = "";
+
+ /**
+ * Field description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.description = "";
+
+ /**
+ * Field dataType.
+ * @member {google.cloud.connectors.v1.DataType} dataType
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.dataType = 0;
+
+ /**
+ * Field key.
+ * @member {boolean} key
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.key = false;
+
+ /**
+ * Field readonly.
+ * @member {boolean} readonly
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.readonly = false;
+
+ /**
+ * Field nullable.
+ * @member {boolean} nullable
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.nullable = false;
+
+ /**
+ * Field defaultValue.
+ * @member {google.protobuf.IValue|null|undefined} defaultValue
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.defaultValue = null;
+
+ /**
+ * Field additionalDetails.
+ * @member {google.protobuf.IStruct|null|undefined} additionalDetails
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ */
+ Field.prototype.additionalDetails = null;
+
+ /**
+ * Creates a new Field instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeEntitySchema.IField=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema.Field} Field instance
+ */
+ Field.create = function create(properties) {
+ return new Field(properties);
+ };
+
+ /**
+ * Encodes the specified Field message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.Field.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeEntitySchema.IField} message Field message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Field.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.field != null && Object.hasOwnProperty.call(message, "field"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.field);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataType);
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.key);
+ if (message.readonly != null && Object.hasOwnProperty.call(message, "readonly"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.readonly);
+ if (message.nullable != null && Object.hasOwnProperty.call(message, "nullable"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.nullable);
+ if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue"))
+ $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.additionalDetails != null && Object.hasOwnProperty.call(message, "additionalDetails"))
+ $root.google.protobuf.Struct.encode(message.additionalDetails, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Field message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeEntitySchema.Field.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeEntitySchema.IField} message Field message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Field.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Field message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema.Field} Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Field.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.connectors.v1.RuntimeEntitySchema.Field();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.field = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.dataType = reader.int32();
+ break;
+ }
+ case 4: {
+ message.key = reader.bool();
+ break;
+ }
+ case 5: {
+ message.readonly = reader.bool();
+ break;
+ }
+ case 6: {
+ message.nullable = reader.bool();
+ break;
+ }
+ case 7: {
+ message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.additionalDetails = $root.google.protobuf.Struct.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Field message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema.Field} Field
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Field.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Field message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Field.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.field != null && message.hasOwnProperty("field"))
+ if (!$util.isString(message.field))
+ return "field: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.dataType != null && message.hasOwnProperty("dataType"))
+ switch (message.dataType) {
+ default:
+ return "dataType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ case 23:
+ case 24:
+ case 25:
+ case 26:
+ case 27:
+ case 28:
+ case 29:
+ case 30:
+ case 31:
+ case 32:
+ case 33:
+ case 34:
+ case 35:
+ case 36:
+ case 37:
+ case 38:
+ case 39:
+ case 40:
+ case 41:
+ case 42:
+ case 43:
+ case 44:
+ break;
+ }
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (typeof message.key !== "boolean")
+ return "key: boolean expected";
+ if (message.readonly != null && message.hasOwnProperty("readonly"))
+ if (typeof message.readonly !== "boolean")
+ return "readonly: boolean expected";
+ if (message.nullable != null && message.hasOwnProperty("nullable"))
+ if (typeof message.nullable !== "boolean")
+ return "nullable: boolean expected";
+ if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) {
+ var error = $root.google.protobuf.Value.verify(message.defaultValue);
+ if (error)
+ return "defaultValue." + error;
+ }
+ if (message.additionalDetails != null && message.hasOwnProperty("additionalDetails")) {
+ var error = $root.google.protobuf.Struct.verify(message.additionalDetails);
+ if (error)
+ return "additionalDetails." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Field message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RuntimeEntitySchema.Field} Field
+ */
+ Field.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RuntimeEntitySchema.Field)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RuntimeEntitySchema.Field();
+ if (object.field != null)
+ message.field = String(object.field);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.dataType) {
+ default:
+ if (typeof object.dataType === "number") {
+ message.dataType = object.dataType;
+ break;
+ }
+ break;
+ case "DATA_TYPE_UNSPECIFIED":
+ case 0:
+ message.dataType = 0;
+ break;
+ case "DATA_TYPE_INT":
+ case 1:
+ message.dataType = 1;
+ break;
+ case "DATA_TYPE_SMALLINT":
+ case 2:
+ message.dataType = 2;
+ break;
+ case "DATA_TYPE_DOUBLE":
+ case 3:
+ message.dataType = 3;
+ break;
+ case "DATA_TYPE_DATE":
+ case 4:
+ message.dataType = 4;
+ break;
+ case "DATA_TYPE_DATETIME":
+ case 5:
+ message.dataType = 5;
+ break;
+ case "DATA_TYPE_TIME":
+ case 6:
+ message.dataType = 6;
+ break;
+ case "DATA_TYPE_STRING":
+ case 7:
+ message.dataType = 7;
+ break;
+ case "DATA_TYPE_LONG":
+ case 8:
+ message.dataType = 8;
+ break;
+ case "DATA_TYPE_BOOLEAN":
+ case 9:
+ message.dataType = 9;
+ break;
+ case "DATA_TYPE_DECIMAL":
+ case 10:
+ message.dataType = 10;
+ break;
+ case "DATA_TYPE_UUID":
+ case 11:
+ message.dataType = 11;
+ break;
+ case "DATA_TYPE_BLOB":
+ case 12:
+ message.dataType = 12;
+ break;
+ case "DATA_TYPE_BIT":
+ case 13:
+ message.dataType = 13;
+ break;
+ case "DATA_TYPE_TINYINT":
+ case 14:
+ message.dataType = 14;
+ break;
+ case "DATA_TYPE_INTEGER":
+ case 15:
+ message.dataType = 15;
+ break;
+ case "DATA_TYPE_BIGINT":
+ case 16:
+ message.dataType = 16;
+ break;
+ case "DATA_TYPE_FLOAT":
+ case 17:
+ message.dataType = 17;
+ break;
+ case "DATA_TYPE_REAL":
+ case 18:
+ message.dataType = 18;
+ break;
+ case "DATA_TYPE_NUMERIC":
+ case 19:
+ message.dataType = 19;
+ break;
+ case "DATA_TYPE_CHAR":
+ case 20:
+ message.dataType = 20;
+ break;
+ case "DATA_TYPE_VARCHAR":
+ case 21:
+ message.dataType = 21;
+ break;
+ case "DATA_TYPE_LONGVARCHAR":
+ case 22:
+ message.dataType = 22;
+ break;
+ case "DATA_TYPE_TIMESTAMP":
+ case 23:
+ message.dataType = 23;
+ break;
+ case "DATA_TYPE_NCHAR":
+ case 24:
+ message.dataType = 24;
+ break;
+ case "DATA_TYPE_NVARCHAR":
+ case 25:
+ message.dataType = 25;
+ break;
+ case "DATA_TYPE_LONGNVARCHAR":
+ case 26:
+ message.dataType = 26;
+ break;
+ case "DATA_TYPE_NULL":
+ case 27:
+ message.dataType = 27;
+ break;
+ case "DATA_TYPE_OTHER":
+ case 28:
+ message.dataType = 28;
+ break;
+ case "DATA_TYPE_JAVA_OBJECT":
+ case 29:
+ message.dataType = 29;
+ break;
+ case "DATA_TYPE_DISTINCT":
+ case 30:
+ message.dataType = 30;
+ break;
+ case "DATA_TYPE_STRUCT":
+ case 31:
+ message.dataType = 31;
+ break;
+ case "DATA_TYPE_ARRAY":
+ case 32:
+ message.dataType = 32;
+ break;
+ case "DATA_TYPE_CLOB":
+ case 33:
+ message.dataType = 33;
+ break;
+ case "DATA_TYPE_REF":
+ case 34:
+ message.dataType = 34;
+ break;
+ case "DATA_TYPE_DATALINK":
+ case 35:
+ message.dataType = 35;
+ break;
+ case "DATA_TYPE_ROWID":
+ case 36:
+ message.dataType = 36;
+ break;
+ case "DATA_TYPE_BINARY":
+ case 37:
+ message.dataType = 37;
+ break;
+ case "DATA_TYPE_VARBINARY":
+ case 38:
+ message.dataType = 38;
+ break;
+ case "DATA_TYPE_LONGVARBINARY":
+ case 39:
+ message.dataType = 39;
+ break;
+ case "DATA_TYPE_NCLOB":
+ case 40:
+ message.dataType = 40;
+ break;
+ case "DATA_TYPE_SQLXML":
+ case 41:
+ message.dataType = 41;
+ break;
+ case "DATA_TYPE_REF_CURSOR":
+ case 42:
+ message.dataType = 42;
+ break;
+ case "DATA_TYPE_TIME_WITH_TIMEZONE":
+ case 43:
+ message.dataType = 43;
+ break;
+ case "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE":
+ case 44:
+ message.dataType = 44;
+ break;
+ }
+ if (object.key != null)
+ message.key = Boolean(object.key);
+ if (object.readonly != null)
+ message.readonly = Boolean(object.readonly);
+ if (object.nullable != null)
+ message.nullable = Boolean(object.nullable);
+ if (object.defaultValue != null) {
+ if (typeof object.defaultValue !== "object")
+ throw TypeError(".google.cloud.connectors.v1.RuntimeEntitySchema.Field.defaultValue: object expected");
+ message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue);
+ }
+ if (object.additionalDetails != null) {
+ if (typeof object.additionalDetails !== "object")
+ throw TypeError(".google.cloud.connectors.v1.RuntimeEntitySchema.Field.additionalDetails: object expected");
+ message.additionalDetails = $root.google.protobuf.Struct.fromObject(object.additionalDetails);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Field message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeEntitySchema.Field} message Field
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Field.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.field = "";
+ object.description = "";
+ object.dataType = options.enums === String ? "DATA_TYPE_UNSPECIFIED" : 0;
+ object.key = false;
+ object.readonly = false;
+ object.nullable = false;
+ object.defaultValue = null;
+ object.additionalDetails = null;
+ }
+ if (message.field != null && message.hasOwnProperty("field"))
+ object.field = message.field;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.dataType != null && message.hasOwnProperty("dataType"))
+ object.dataType = options.enums === String ? $root.google.cloud.connectors.v1.DataType[message.dataType] === undefined ? message.dataType : $root.google.cloud.connectors.v1.DataType[message.dataType] : message.dataType;
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.readonly != null && message.hasOwnProperty("readonly"))
+ object.readonly = message.readonly;
+ if (message.nullable != null && message.hasOwnProperty("nullable"))
+ object.nullable = message.nullable;
+ if (message.defaultValue != null && message.hasOwnProperty("defaultValue"))
+ object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options);
+ if (message.additionalDetails != null && message.hasOwnProperty("additionalDetails"))
+ object.additionalDetails = $root.google.protobuf.Struct.toObject(message.additionalDetails, options);
+ return object;
+ };
+
+ /**
+ * Converts this Field to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Field.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Field
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RuntimeEntitySchema.Field
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Field.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RuntimeEntitySchema.Field";
+ };
+
+ return Field;
+ })();
+
+ return RuntimeEntitySchema;
+ })();
+
+ v1.RuntimeActionSchema = (function() {
+
+ /**
+ * Properties of a RuntimeActionSchema.
+ * @memberof google.cloud.connectors.v1
+ * @interface IRuntimeActionSchema
+ * @property {string|null} [action] RuntimeActionSchema action
+ * @property {Array.|null} [inputParameters] RuntimeActionSchema inputParameters
+ * @property {Array.|null} [resultMetadata] RuntimeActionSchema resultMetadata
+ */
+
+ /**
+ * Constructs a new RuntimeActionSchema.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a RuntimeActionSchema.
+ * @implements IRuntimeActionSchema
+ * @constructor
+ * @param {google.cloud.connectors.v1.IRuntimeActionSchema=} [properties] Properties to set
+ */
+ function RuntimeActionSchema(properties) {
+ this.inputParameters = [];
+ this.resultMetadata = [];
+ 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]];
+ }
+
+ /**
+ * RuntimeActionSchema action.
+ * @member {string} action
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @instance
+ */
+ RuntimeActionSchema.prototype.action = "";
+
+ /**
+ * RuntimeActionSchema inputParameters.
+ * @member {Array.} inputParameters
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @instance
+ */
+ RuntimeActionSchema.prototype.inputParameters = $util.emptyArray;
+
+ /**
+ * RuntimeActionSchema resultMetadata.
+ * @member {Array.} resultMetadata
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @instance
+ */
+ RuntimeActionSchema.prototype.resultMetadata = $util.emptyArray;
+
+ /**
+ * Creates a new RuntimeActionSchema instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {google.cloud.connectors.v1.IRuntimeActionSchema=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema} RuntimeActionSchema instance
+ */
+ RuntimeActionSchema.create = function create(properties) {
+ return new RuntimeActionSchema(properties);
+ };
+
+ /**
+ * Encodes the specified RuntimeActionSchema message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {google.cloud.connectors.v1.IRuntimeActionSchema} message RuntimeActionSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RuntimeActionSchema.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.action != null && Object.hasOwnProperty.call(message, "action"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.action);
+ if (message.inputParameters != null && message.inputParameters.length)
+ for (var i = 0; i < message.inputParameters.length; ++i)
+ $root.google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.encode(message.inputParameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.resultMetadata != null && message.resultMetadata.length)
+ for (var i = 0; i < message.resultMetadata.length; ++i)
+ $root.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.encode(message.resultMetadata[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RuntimeActionSchema message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {google.cloud.connectors.v1.IRuntimeActionSchema} message RuntimeActionSchema message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RuntimeActionSchema.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RuntimeActionSchema message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema} RuntimeActionSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RuntimeActionSchema.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.connectors.v1.RuntimeActionSchema();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.action = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.inputParameters && message.inputParameters.length))
+ message.inputParameters = [];
+ message.inputParameters.push($root.google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ if (!(message.resultMetadata && message.resultMetadata.length))
+ message.resultMetadata = [];
+ message.resultMetadata.push($root.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RuntimeActionSchema message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema} RuntimeActionSchema
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RuntimeActionSchema.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RuntimeActionSchema message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RuntimeActionSchema.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.action != null && message.hasOwnProperty("action"))
+ if (!$util.isString(message.action))
+ return "action: string expected";
+ if (message.inputParameters != null && message.hasOwnProperty("inputParameters")) {
+ if (!Array.isArray(message.inputParameters))
+ return "inputParameters: array expected";
+ for (var i = 0; i < message.inputParameters.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.verify(message.inputParameters[i]);
+ if (error)
+ return "inputParameters." + error;
+ }
+ }
+ if (message.resultMetadata != null && message.hasOwnProperty("resultMetadata")) {
+ if (!Array.isArray(message.resultMetadata))
+ return "resultMetadata: array expected";
+ for (var i = 0; i < message.resultMetadata.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.verify(message.resultMetadata[i]);
+ if (error)
+ return "resultMetadata." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RuntimeActionSchema message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema} RuntimeActionSchema
+ */
+ RuntimeActionSchema.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RuntimeActionSchema)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RuntimeActionSchema();
+ if (object.action != null)
+ message.action = String(object.action);
+ if (object.inputParameters) {
+ if (!Array.isArray(object.inputParameters))
+ throw TypeError(".google.cloud.connectors.v1.RuntimeActionSchema.inputParameters: array expected");
+ message.inputParameters = [];
+ for (var i = 0; i < object.inputParameters.length; ++i) {
+ if (typeof object.inputParameters[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.RuntimeActionSchema.inputParameters: object expected");
+ message.inputParameters[i] = $root.google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.fromObject(object.inputParameters[i]);
+ }
+ }
+ if (object.resultMetadata) {
+ if (!Array.isArray(object.resultMetadata))
+ throw TypeError(".google.cloud.connectors.v1.RuntimeActionSchema.resultMetadata: array expected");
+ message.resultMetadata = [];
+ for (var i = 0; i < object.resultMetadata.length; ++i) {
+ if (typeof object.resultMetadata[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.RuntimeActionSchema.resultMetadata: object expected");
+ message.resultMetadata[i] = $root.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.fromObject(object.resultMetadata[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RuntimeActionSchema message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema} message RuntimeActionSchema
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RuntimeActionSchema.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.inputParameters = [];
+ object.resultMetadata = [];
+ }
+ if (options.defaults)
+ object.action = "";
+ if (message.action != null && message.hasOwnProperty("action"))
+ object.action = message.action;
+ if (message.inputParameters && message.inputParameters.length) {
+ object.inputParameters = [];
+ for (var j = 0; j < message.inputParameters.length; ++j)
+ object.inputParameters[j] = $root.google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.toObject(message.inputParameters[j], options);
+ }
+ if (message.resultMetadata && message.resultMetadata.length) {
+ object.resultMetadata = [];
+ for (var j = 0; j < message.resultMetadata.length; ++j)
+ object.resultMetadata[j] = $root.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.toObject(message.resultMetadata[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this RuntimeActionSchema to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RuntimeActionSchema.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RuntimeActionSchema
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RuntimeActionSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RuntimeActionSchema";
+ };
+
+ RuntimeActionSchema.InputParameter = (function() {
+
+ /**
+ * Properties of an InputParameter.
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @interface IInputParameter
+ * @property {string|null} [parameter] InputParameter parameter
+ * @property {string|null} [description] InputParameter description
+ * @property {google.cloud.connectors.v1.DataType|null} [dataType] InputParameter dataType
+ * @property {boolean|null} [nullable] InputParameter nullable
+ * @property {google.protobuf.IValue|null} [defaultValue] InputParameter defaultValue
+ */
+
+ /**
+ * Constructs a new InputParameter.
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @classdesc Represents an InputParameter.
+ * @implements IInputParameter
+ * @constructor
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter=} [properties] Properties to set
+ */
+ function InputParameter(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]];
+ }
+
+ /**
+ * InputParameter parameter.
+ * @member {string} parameter
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @instance
+ */
+ InputParameter.prototype.parameter = "";
+
+ /**
+ * InputParameter description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @instance
+ */
+ InputParameter.prototype.description = "";
+
+ /**
+ * InputParameter dataType.
+ * @member {google.cloud.connectors.v1.DataType} dataType
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @instance
+ */
+ InputParameter.prototype.dataType = 0;
+
+ /**
+ * InputParameter nullable.
+ * @member {boolean} nullable
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @instance
+ */
+ InputParameter.prototype.nullable = false;
+
+ /**
+ * InputParameter defaultValue.
+ * @member {google.protobuf.IValue|null|undefined} defaultValue
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @instance
+ */
+ InputParameter.prototype.defaultValue = null;
+
+ /**
+ * Creates a new InputParameter instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.InputParameter} InputParameter instance
+ */
+ InputParameter.create = function create(properties) {
+ return new InputParameter(properties);
+ };
+
+ /**
+ * Encodes the specified InputParameter message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter} message InputParameter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InputParameter.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataType);
+ if (message.nullable != null && Object.hasOwnProperty.call(message, "nullable"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.nullable);
+ if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue"))
+ $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified InputParameter message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IInputParameter} message InputParameter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InputParameter.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an InputParameter message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.InputParameter} InputParameter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InputParameter.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.connectors.v1.RuntimeActionSchema.InputParameter();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parameter = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.dataType = reader.int32();
+ break;
+ }
+ case 4: {
+ message.nullable = reader.bool();
+ break;
+ }
+ case 5: {
+ message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an InputParameter message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.InputParameter} InputParameter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InputParameter.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an InputParameter message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ InputParameter.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parameter != null && message.hasOwnProperty("parameter"))
+ if (!$util.isString(message.parameter))
+ return "parameter: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.dataType != null && message.hasOwnProperty("dataType"))
+ switch (message.dataType) {
+ default:
+ return "dataType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ case 23:
+ case 24:
+ case 25:
+ case 26:
+ case 27:
+ case 28:
+ case 29:
+ case 30:
+ case 31:
+ case 32:
+ case 33:
+ case 34:
+ case 35:
+ case 36:
+ case 37:
+ case 38:
+ case 39:
+ case 40:
+ case 41:
+ case 42:
+ case 43:
+ case 44:
+ break;
+ }
+ if (message.nullable != null && message.hasOwnProperty("nullable"))
+ if (typeof message.nullable !== "boolean")
+ return "nullable: boolean expected";
+ if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) {
+ var error = $root.google.protobuf.Value.verify(message.defaultValue);
+ if (error)
+ return "defaultValue." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an InputParameter message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.InputParameter} InputParameter
+ */
+ InputParameter.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RuntimeActionSchema.InputParameter)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RuntimeActionSchema.InputParameter();
+ if (object.parameter != null)
+ message.parameter = String(object.parameter);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.dataType) {
+ default:
+ if (typeof object.dataType === "number") {
+ message.dataType = object.dataType;
+ break;
+ }
+ break;
+ case "DATA_TYPE_UNSPECIFIED":
+ case 0:
+ message.dataType = 0;
+ break;
+ case "DATA_TYPE_INT":
+ case 1:
+ message.dataType = 1;
+ break;
+ case "DATA_TYPE_SMALLINT":
+ case 2:
+ message.dataType = 2;
+ break;
+ case "DATA_TYPE_DOUBLE":
+ case 3:
+ message.dataType = 3;
+ break;
+ case "DATA_TYPE_DATE":
+ case 4:
+ message.dataType = 4;
+ break;
+ case "DATA_TYPE_DATETIME":
+ case 5:
+ message.dataType = 5;
+ break;
+ case "DATA_TYPE_TIME":
+ case 6:
+ message.dataType = 6;
+ break;
+ case "DATA_TYPE_STRING":
+ case 7:
+ message.dataType = 7;
+ break;
+ case "DATA_TYPE_LONG":
+ case 8:
+ message.dataType = 8;
+ break;
+ case "DATA_TYPE_BOOLEAN":
+ case 9:
+ message.dataType = 9;
+ break;
+ case "DATA_TYPE_DECIMAL":
+ case 10:
+ message.dataType = 10;
+ break;
+ case "DATA_TYPE_UUID":
+ case 11:
+ message.dataType = 11;
+ break;
+ case "DATA_TYPE_BLOB":
+ case 12:
+ message.dataType = 12;
+ break;
+ case "DATA_TYPE_BIT":
+ case 13:
+ message.dataType = 13;
+ break;
+ case "DATA_TYPE_TINYINT":
+ case 14:
+ message.dataType = 14;
+ break;
+ case "DATA_TYPE_INTEGER":
+ case 15:
+ message.dataType = 15;
+ break;
+ case "DATA_TYPE_BIGINT":
+ case 16:
+ message.dataType = 16;
+ break;
+ case "DATA_TYPE_FLOAT":
+ case 17:
+ message.dataType = 17;
+ break;
+ case "DATA_TYPE_REAL":
+ case 18:
+ message.dataType = 18;
+ break;
+ case "DATA_TYPE_NUMERIC":
+ case 19:
+ message.dataType = 19;
+ break;
+ case "DATA_TYPE_CHAR":
+ case 20:
+ message.dataType = 20;
+ break;
+ case "DATA_TYPE_VARCHAR":
+ case 21:
+ message.dataType = 21;
+ break;
+ case "DATA_TYPE_LONGVARCHAR":
+ case 22:
+ message.dataType = 22;
+ break;
+ case "DATA_TYPE_TIMESTAMP":
+ case 23:
+ message.dataType = 23;
+ break;
+ case "DATA_TYPE_NCHAR":
+ case 24:
+ message.dataType = 24;
+ break;
+ case "DATA_TYPE_NVARCHAR":
+ case 25:
+ message.dataType = 25;
+ break;
+ case "DATA_TYPE_LONGNVARCHAR":
+ case 26:
+ message.dataType = 26;
+ break;
+ case "DATA_TYPE_NULL":
+ case 27:
+ message.dataType = 27;
+ break;
+ case "DATA_TYPE_OTHER":
+ case 28:
+ message.dataType = 28;
+ break;
+ case "DATA_TYPE_JAVA_OBJECT":
+ case 29:
+ message.dataType = 29;
+ break;
+ case "DATA_TYPE_DISTINCT":
+ case 30:
+ message.dataType = 30;
+ break;
+ case "DATA_TYPE_STRUCT":
+ case 31:
+ message.dataType = 31;
+ break;
+ case "DATA_TYPE_ARRAY":
+ case 32:
+ message.dataType = 32;
+ break;
+ case "DATA_TYPE_CLOB":
+ case 33:
+ message.dataType = 33;
+ break;
+ case "DATA_TYPE_REF":
+ case 34:
+ message.dataType = 34;
+ break;
+ case "DATA_TYPE_DATALINK":
+ case 35:
+ message.dataType = 35;
+ break;
+ case "DATA_TYPE_ROWID":
+ case 36:
+ message.dataType = 36;
+ break;
+ case "DATA_TYPE_BINARY":
+ case 37:
+ message.dataType = 37;
+ break;
+ case "DATA_TYPE_VARBINARY":
+ case 38:
+ message.dataType = 38;
+ break;
+ case "DATA_TYPE_LONGVARBINARY":
+ case 39:
+ message.dataType = 39;
+ break;
+ case "DATA_TYPE_NCLOB":
+ case 40:
+ message.dataType = 40;
+ break;
+ case "DATA_TYPE_SQLXML":
+ case 41:
+ message.dataType = 41;
+ break;
+ case "DATA_TYPE_REF_CURSOR":
+ case 42:
+ message.dataType = 42;
+ break;
+ case "DATA_TYPE_TIME_WITH_TIMEZONE":
+ case 43:
+ message.dataType = 43;
+ break;
+ case "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE":
+ case 44:
+ message.dataType = 44;
+ break;
+ }
+ if (object.nullable != null)
+ message.nullable = Boolean(object.nullable);
+ if (object.defaultValue != null) {
+ if (typeof object.defaultValue !== "object")
+ throw TypeError(".google.cloud.connectors.v1.RuntimeActionSchema.InputParameter.defaultValue: object expected");
+ message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an InputParameter message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.InputParameter} message InputParameter
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ InputParameter.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parameter = "";
+ object.description = "";
+ object.dataType = options.enums === String ? "DATA_TYPE_UNSPECIFIED" : 0;
+ object.nullable = false;
+ object.defaultValue = null;
+ }
+ if (message.parameter != null && message.hasOwnProperty("parameter"))
+ object.parameter = message.parameter;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.dataType != null && message.hasOwnProperty("dataType"))
+ object.dataType = options.enums === String ? $root.google.cloud.connectors.v1.DataType[message.dataType] === undefined ? message.dataType : $root.google.cloud.connectors.v1.DataType[message.dataType] : message.dataType;
+ if (message.nullable != null && message.hasOwnProperty("nullable"))
+ object.nullable = message.nullable;
+ if (message.defaultValue != null && message.hasOwnProperty("defaultValue"))
+ object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options);
+ return object;
+ };
+
+ /**
+ * Converts this InputParameter to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ InputParameter.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for InputParameter
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.InputParameter
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ InputParameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RuntimeActionSchema.InputParameter";
+ };
+
+ return InputParameter;
+ })();
+
+ RuntimeActionSchema.ResultMetadata = (function() {
+
+ /**
+ * Properties of a ResultMetadata.
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @interface IResultMetadata
+ * @property {string|null} [field] ResultMetadata field
+ * @property {string|null} [description] ResultMetadata description
+ * @property {google.cloud.connectors.v1.DataType|null} [dataType] ResultMetadata dataType
+ */
+
+ /**
+ * Constructs a new ResultMetadata.
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema
+ * @classdesc Represents a ResultMetadata.
+ * @implements IResultMetadata
+ * @constructor
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata=} [properties] Properties to set
+ */
+ function ResultMetadata(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]];
+ }
+
+ /**
+ * ResultMetadata field.
+ * @member {string} field
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @instance
+ */
+ ResultMetadata.prototype.field = "";
+
+ /**
+ * ResultMetadata description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @instance
+ */
+ ResultMetadata.prototype.description = "";
+
+ /**
+ * ResultMetadata dataType.
+ * @member {google.cloud.connectors.v1.DataType} dataType
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @instance
+ */
+ ResultMetadata.prototype.dataType = 0;
+
+ /**
+ * Creates a new ResultMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata} ResultMetadata instance
+ */
+ ResultMetadata.create = function create(properties) {
+ return new ResultMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified ResultMetadata message. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata} message ResultMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResultMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.field != null && Object.hasOwnProperty.call(message, "field"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.field);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResultMetadata message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.IResultMetadata} message ResultMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResultMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResultMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata} ResultMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResultMetadata.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.connectors.v1.RuntimeActionSchema.ResultMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.field = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.dataType = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResultMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata} ResultMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResultMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResultMetadata message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResultMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.field != null && message.hasOwnProperty("field"))
+ if (!$util.isString(message.field))
+ return "field: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.dataType != null && message.hasOwnProperty("dataType"))
+ switch (message.dataType) {
+ default:
+ return "dataType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ case 23:
+ case 24:
+ case 25:
+ case 26:
+ case 27:
+ case 28:
+ case 29:
+ case 30:
+ case 31:
+ case 32:
+ case 33:
+ case 34:
+ case 35:
+ case 36:
+ case 37:
+ case 38:
+ case 39:
+ case 40:
+ case 41:
+ case 42:
+ case 43:
+ case 44:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ResultMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata} ResultMetadata
+ */
+ ResultMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata();
+ if (object.field != null)
+ message.field = String(object.field);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.dataType) {
+ default:
+ if (typeof object.dataType === "number") {
+ message.dataType = object.dataType;
+ break;
+ }
+ break;
+ case "DATA_TYPE_UNSPECIFIED":
+ case 0:
+ message.dataType = 0;
+ break;
+ case "DATA_TYPE_INT":
+ case 1:
+ message.dataType = 1;
+ break;
+ case "DATA_TYPE_SMALLINT":
+ case 2:
+ message.dataType = 2;
+ break;
+ case "DATA_TYPE_DOUBLE":
+ case 3:
+ message.dataType = 3;
+ break;
+ case "DATA_TYPE_DATE":
+ case 4:
+ message.dataType = 4;
+ break;
+ case "DATA_TYPE_DATETIME":
+ case 5:
+ message.dataType = 5;
+ break;
+ case "DATA_TYPE_TIME":
+ case 6:
+ message.dataType = 6;
+ break;
+ case "DATA_TYPE_STRING":
+ case 7:
+ message.dataType = 7;
+ break;
+ case "DATA_TYPE_LONG":
+ case 8:
+ message.dataType = 8;
+ break;
+ case "DATA_TYPE_BOOLEAN":
+ case 9:
+ message.dataType = 9;
+ break;
+ case "DATA_TYPE_DECIMAL":
+ case 10:
+ message.dataType = 10;
+ break;
+ case "DATA_TYPE_UUID":
+ case 11:
+ message.dataType = 11;
+ break;
+ case "DATA_TYPE_BLOB":
+ case 12:
+ message.dataType = 12;
+ break;
+ case "DATA_TYPE_BIT":
+ case 13:
+ message.dataType = 13;
+ break;
+ case "DATA_TYPE_TINYINT":
+ case 14:
+ message.dataType = 14;
+ break;
+ case "DATA_TYPE_INTEGER":
+ case 15:
+ message.dataType = 15;
+ break;
+ case "DATA_TYPE_BIGINT":
+ case 16:
+ message.dataType = 16;
+ break;
+ case "DATA_TYPE_FLOAT":
+ case 17:
+ message.dataType = 17;
+ break;
+ case "DATA_TYPE_REAL":
+ case 18:
+ message.dataType = 18;
+ break;
+ case "DATA_TYPE_NUMERIC":
+ case 19:
+ message.dataType = 19;
+ break;
+ case "DATA_TYPE_CHAR":
+ case 20:
+ message.dataType = 20;
+ break;
+ case "DATA_TYPE_VARCHAR":
+ case 21:
+ message.dataType = 21;
+ break;
+ case "DATA_TYPE_LONGVARCHAR":
+ case 22:
+ message.dataType = 22;
+ break;
+ case "DATA_TYPE_TIMESTAMP":
+ case 23:
+ message.dataType = 23;
+ break;
+ case "DATA_TYPE_NCHAR":
+ case 24:
+ message.dataType = 24;
+ break;
+ case "DATA_TYPE_NVARCHAR":
+ case 25:
+ message.dataType = 25;
+ break;
+ case "DATA_TYPE_LONGNVARCHAR":
+ case 26:
+ message.dataType = 26;
+ break;
+ case "DATA_TYPE_NULL":
+ case 27:
+ message.dataType = 27;
+ break;
+ case "DATA_TYPE_OTHER":
+ case 28:
+ message.dataType = 28;
+ break;
+ case "DATA_TYPE_JAVA_OBJECT":
+ case 29:
+ message.dataType = 29;
+ break;
+ case "DATA_TYPE_DISTINCT":
+ case 30:
+ message.dataType = 30;
+ break;
+ case "DATA_TYPE_STRUCT":
+ case 31:
+ message.dataType = 31;
+ break;
+ case "DATA_TYPE_ARRAY":
+ case 32:
+ message.dataType = 32;
+ break;
+ case "DATA_TYPE_CLOB":
+ case 33:
+ message.dataType = 33;
+ break;
+ case "DATA_TYPE_REF":
+ case 34:
+ message.dataType = 34;
+ break;
+ case "DATA_TYPE_DATALINK":
+ case 35:
+ message.dataType = 35;
+ break;
+ case "DATA_TYPE_ROWID":
+ case 36:
+ message.dataType = 36;
+ break;
+ case "DATA_TYPE_BINARY":
+ case 37:
+ message.dataType = 37;
+ break;
+ case "DATA_TYPE_VARBINARY":
+ case 38:
+ message.dataType = 38;
+ break;
+ case "DATA_TYPE_LONGVARBINARY":
+ case 39:
+ message.dataType = 39;
+ break;
+ case "DATA_TYPE_NCLOB":
+ case 40:
+ message.dataType = 40;
+ break;
+ case "DATA_TYPE_SQLXML":
+ case 41:
+ message.dataType = 41;
+ break;
+ case "DATA_TYPE_REF_CURSOR":
+ case 42:
+ message.dataType = 42;
+ break;
+ case "DATA_TYPE_TIME_WITH_TIMEZONE":
+ case 43:
+ message.dataType = 43;
+ break;
+ case "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE":
+ case 44:
+ message.dataType = 44;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResultMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata} message ResultMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResultMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.field = "";
+ object.description = "";
+ object.dataType = options.enums === String ? "DATA_TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.field != null && message.hasOwnProperty("field"))
+ object.field = message.field;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.dataType != null && message.hasOwnProperty("dataType"))
+ object.dataType = options.enums === String ? $root.google.cloud.connectors.v1.DataType[message.dataType] === undefined ? message.dataType : $root.google.cloud.connectors.v1.DataType[message.dataType] : message.dataType;
+ return object;
+ };
+
+ /**
+ * Converts this ResultMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResultMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResultMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResultMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadata";
+ };
+
+ return ResultMetadata;
+ })();
+
+ return RuntimeActionSchema;
+ })();
+
+ v1.LockConfig = (function() {
+
+ /**
+ * Properties of a LockConfig.
+ * @memberof google.cloud.connectors.v1
+ * @interface ILockConfig
+ * @property {boolean|null} [locked] LockConfig locked
+ * @property {string|null} [reason] LockConfig reason
+ */
+
+ /**
+ * Constructs a new LockConfig.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a LockConfig.
+ * @implements ILockConfig
+ * @constructor
+ * @param {google.cloud.connectors.v1.ILockConfig=} [properties] Properties to set
+ */
+ function LockConfig(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]];
+ }
+
+ /**
+ * LockConfig locked.
+ * @member {boolean} locked
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @instance
+ */
+ LockConfig.prototype.locked = false;
+
+ /**
+ * LockConfig reason.
+ * @member {string} reason
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @instance
+ */
+ LockConfig.prototype.reason = "";
+
+ /**
+ * Creates a new LockConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {google.cloud.connectors.v1.ILockConfig=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.LockConfig} LockConfig instance
+ */
+ LockConfig.create = function create(properties) {
+ return new LockConfig(properties);
+ };
+
+ /**
+ * Encodes the specified LockConfig message. Does not implicitly {@link google.cloud.connectors.v1.LockConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {google.cloud.connectors.v1.ILockConfig} message LockConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LockConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.locked != null && Object.hasOwnProperty.call(message, "locked"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.locked);
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LockConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.LockConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {google.cloud.connectors.v1.ILockConfig} message LockConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LockConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LockConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.LockConfig} LockConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LockConfig.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.connectors.v1.LockConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.locked = reader.bool();
+ break;
+ }
+ case 2: {
+ message.reason = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LockConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.LockConfig} LockConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LockConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LockConfig message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LockConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.locked != null && message.hasOwnProperty("locked"))
+ if (typeof message.locked !== "boolean")
+ return "locked: boolean expected";
+ if (message.reason != null && message.hasOwnProperty("reason"))
+ if (!$util.isString(message.reason))
+ return "reason: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a LockConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.LockConfig} LockConfig
+ */
+ LockConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.LockConfig)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.LockConfig();
+ if (object.locked != null)
+ message.locked = Boolean(object.locked);
+ if (object.reason != null)
+ message.reason = String(object.reason);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LockConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {google.cloud.connectors.v1.LockConfig} message LockConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LockConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.locked = false;
+ object.reason = "";
+ }
+ if (message.locked != null && message.hasOwnProperty("locked"))
+ object.locked = message.locked;
+ if (message.reason != null && message.hasOwnProperty("reason"))
+ object.reason = message.reason;
+ return object;
+ };
+
+ /**
+ * Converts this LockConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LockConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LockConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.LockConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LockConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.LockConfig";
+ };
+
+ return LockConfig;
+ })();
+
+ v1.ListConnectionsRequest = (function() {
+
+ /**
+ * Properties of a ListConnectionsRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListConnectionsRequest
+ * @property {string|null} [parent] ListConnectionsRequest parent
+ * @property {number|null} [pageSize] ListConnectionsRequest pageSize
+ * @property {string|null} [pageToken] ListConnectionsRequest pageToken
+ * @property {string|null} [filter] ListConnectionsRequest filter
+ * @property {string|null} [orderBy] ListConnectionsRequest orderBy
+ * @property {google.cloud.connectors.v1.ConnectionView|null} [view] ListConnectionsRequest view
+ */
+
+ /**
+ * Constructs a new ListConnectionsRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListConnectionsRequest.
+ * @implements IListConnectionsRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListConnectionsRequest=} [properties] Properties to set
+ */
+ function ListConnectionsRequest(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]];
+ }
+
+ /**
+ * ListConnectionsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.parent = "";
+
+ /**
+ * ListConnectionsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListConnectionsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.pageToken = "";
+
+ /**
+ * ListConnectionsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.filter = "";
+
+ /**
+ * ListConnectionsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.orderBy = "";
+
+ /**
+ * ListConnectionsRequest view.
+ * @member {google.cloud.connectors.v1.ConnectionView} view
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.view = 0;
+
+ /**
+ * Creates a new ListConnectionsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectionsRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListConnectionsRequest} ListConnectionsRequest instance
+ */
+ ListConnectionsRequest.create = function create(properties) {
+ return new ListConnectionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListConnectionsRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectionsRequest} message ListConnectionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsRequest.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);
+ if (message.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.view);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectionsRequest} message ListConnectionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListConnectionsRequest} ListConnectionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsRequest.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.connectors.v1.ListConnectionsRequest();
+ 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;
+ }
+ case 6: {
+ message.view = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListConnectionsRequest} ListConnectionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConnectionsRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConnectionsRequest.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";
+ if (message.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListConnectionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListConnectionsRequest} ListConnectionsRequest
+ */
+ ListConnectionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListConnectionsRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListConnectionsRequest();
+ 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);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "CONNECTION_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListConnectionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.ListConnectionsRequest} message ListConnectionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListConnectionsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ object.view = options.enums === String ? "CONNECTION_VIEW_UNSPECIFIED" : 0;
+ }
+ 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;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.cloud.connectors.v1.ConnectionView[message.view] === undefined ? message.view : $root.google.cloud.connectors.v1.ConnectionView[message.view] : message.view;
+ return object;
+ };
+
+ /**
+ * Converts this ListConnectionsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListConnectionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListConnectionsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ListConnectionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListConnectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ListConnectionsRequest";
+ };
+
+ return ListConnectionsRequest;
+ })();
+
+ v1.ListConnectionsResponse = (function() {
+
+ /**
+ * Properties of a ListConnectionsResponse.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListConnectionsResponse
+ * @property {Array.|null} [connections] ListConnectionsResponse connections
+ * @property {string|null} [nextPageToken] ListConnectionsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListConnectionsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListConnectionsResponse.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListConnectionsResponse.
+ * @implements IListConnectionsResponse
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListConnectionsResponse=} [properties] Properties to set
+ */
+ function ListConnectionsResponse(properties) {
+ this.connections = [];
+ 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]];
+ }
+
+ /**
+ * ListConnectionsResponse connections.
+ * @member {Array.} connections
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @instance
+ */
+ ListConnectionsResponse.prototype.connections = $util.emptyArray;
+
+ /**
+ * ListConnectionsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @instance
+ */
+ ListConnectionsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListConnectionsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @instance
+ */
+ ListConnectionsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListConnectionsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectionsResponse=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListConnectionsResponse} ListConnectionsResponse instance
+ */
+ ListConnectionsResponse.create = function create(properties) {
+ return new ListConnectionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListConnectionsResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectionsResponse} message ListConnectionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.connections != null && message.connections.length)
+ for (var i = 0; i < message.connections.length; ++i)
+ $root.google.cloud.connectors.v1.Connection.encode(message.connections[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 ListConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectionsResponse} message ListConnectionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConnectionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListConnectionsResponse} ListConnectionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsResponse.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.connectors.v1.ListConnectionsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.connections && message.connections.length))
+ message.connections = [];
+ message.connections.push($root.google.cloud.connectors.v1.Connection.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 ListConnectionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListConnectionsResponse} ListConnectionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConnectionsResponse message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConnectionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.connections != null && message.hasOwnProperty("connections")) {
+ if (!Array.isArray(message.connections))
+ return "connections: array expected";
+ for (var i = 0; i < message.connections.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.Connection.verify(message.connections[i]);
+ if (error)
+ return "connections." + 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 ListConnectionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListConnectionsResponse} ListConnectionsResponse
+ */
+ ListConnectionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListConnectionsResponse)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListConnectionsResponse();
+ if (object.connections) {
+ if (!Array.isArray(object.connections))
+ throw TypeError(".google.cloud.connectors.v1.ListConnectionsResponse.connections: array expected");
+ message.connections = [];
+ for (var i = 0; i < object.connections.length; ++i) {
+ if (typeof object.connections[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ListConnectionsResponse.connections: object expected");
+ message.connections[i] = $root.google.cloud.connectors.v1.Connection.fromObject(object.connections[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.connectors.v1.ListConnectionsResponse.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 ListConnectionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.ListConnectionsResponse} message ListConnectionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListConnectionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.connections = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.connections && message.connections.length) {
+ object.connections = [];
+ for (var j = 0; j < message.connections.length; ++j)
+ object.connections[j] = $root.google.cloud.connectors.v1.Connection.toObject(message.connections[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 ListConnectionsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListConnectionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListConnectionsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ListConnectionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListConnectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ListConnectionsResponse";
+ };
+
+ return ListConnectionsResponse;
+ })();
+
+ v1.GetConnectionRequest = (function() {
+
+ /**
+ * Properties of a GetConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IGetConnectionRequest
+ * @property {string|null} [name] GetConnectionRequest name
+ * @property {google.cloud.connectors.v1.ConnectionView|null} [view] GetConnectionRequest view
+ */
+
+ /**
+ * Constructs a new GetConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a GetConnectionRequest.
+ * @implements IGetConnectionRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IGetConnectionRequest=} [properties] Properties to set
+ */
+ function GetConnectionRequest(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]];
+ }
+
+ /**
+ * GetConnectionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @instance
+ */
+ GetConnectionRequest.prototype.name = "";
+
+ /**
+ * GetConnectionRequest view.
+ * @member {google.cloud.connectors.v1.ConnectionView} view
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @instance
+ */
+ GetConnectionRequest.prototype.view = 0;
+
+ /**
+ * Creates a new GetConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.GetConnectionRequest} GetConnectionRequest instance
+ */
+ GetConnectionRequest.create = function create(properties) {
+ return new GetConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectionRequest} message GetConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.view);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectionRequest} message GetConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.GetConnectionRequest} GetConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectionRequest.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.connectors.v1.GetConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.view = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.GetConnectionRequest} GetConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetConnectionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GetConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.GetConnectionRequest} GetConnectionRequest
+ */
+ GetConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.GetConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.GetConnectionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "CONNECTION_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.GetConnectionRequest} message GetConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.view = options.enums === String ? "CONNECTION_VIEW_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.cloud.connectors.v1.ConnectionView[message.view] === undefined ? message.view : $root.google.cloud.connectors.v1.ConnectionView[message.view] : message.view;
+ return object;
+ };
+
+ /**
+ * Converts this GetConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.GetConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.GetConnectionRequest";
+ };
+
+ return GetConnectionRequest;
+ })();
+
+ v1.CreateConnectionRequest = (function() {
+
+ /**
+ * Properties of a CreateConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface ICreateConnectionRequest
+ * @property {string|null} [parent] CreateConnectionRequest parent
+ * @property {string|null} [connectionId] CreateConnectionRequest connectionId
+ * @property {google.cloud.connectors.v1.IConnection|null} [connection] CreateConnectionRequest connection
+ */
+
+ /**
+ * Constructs a new CreateConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a CreateConnectionRequest.
+ * @implements ICreateConnectionRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.ICreateConnectionRequest=} [properties] Properties to set
+ */
+ function CreateConnectionRequest(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]];
+ }
+
+ /**
+ * CreateConnectionRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.parent = "";
+
+ /**
+ * CreateConnectionRequest connectionId.
+ * @member {string} connectionId
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.connectionId = "";
+
+ /**
+ * CreateConnectionRequest connection.
+ * @member {google.cloud.connectors.v1.IConnection|null|undefined} connection
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.connection = null;
+
+ /**
+ * Creates a new CreateConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.ICreateConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.CreateConnectionRequest} CreateConnectionRequest instance
+ */
+ CreateConnectionRequest.create = function create(properties) {
+ return new CreateConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.CreateConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.ICreateConnectionRequest} message CreateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateConnectionRequest.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.connectionId != null && Object.hasOwnProperty.call(message, "connectionId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.connectionId);
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ $root.google.cloud.connectors.v1.Connection.encode(message.connection, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.CreateConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.ICreateConnectionRequest} message CreateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.CreateConnectionRequest} CreateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateConnectionRequest.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.connectors.v1.CreateConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.connectionId = reader.string();
+ break;
+ }
+ case 3: {
+ message.connection = $root.google.cloud.connectors.v1.Connection.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.CreateConnectionRequest} CreateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateConnectionRequest.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.connectionId != null && message.hasOwnProperty("connectionId"))
+ if (!$util.isString(message.connectionId))
+ return "connectionId: string expected";
+ if (message.connection != null && message.hasOwnProperty("connection")) {
+ var error = $root.google.cloud.connectors.v1.Connection.verify(message.connection);
+ if (error)
+ return "connection." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.CreateConnectionRequest} CreateConnectionRequest
+ */
+ CreateConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.CreateConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.CreateConnectionRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.connectionId != null)
+ message.connectionId = String(object.connectionId);
+ if (object.connection != null) {
+ if (typeof object.connection !== "object")
+ throw TypeError(".google.cloud.connectors.v1.CreateConnectionRequest.connection: object expected");
+ message.connection = $root.google.cloud.connectors.v1.Connection.fromObject(object.connection);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.CreateConnectionRequest} message CreateConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.connectionId = "";
+ object.connection = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.connectionId != null && message.hasOwnProperty("connectionId"))
+ object.connectionId = message.connectionId;
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ object.connection = $root.google.cloud.connectors.v1.Connection.toObject(message.connection, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.CreateConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.CreateConnectionRequest";
+ };
+
+ return CreateConnectionRequest;
+ })();
+
+ v1.UpdateConnectionRequest = (function() {
+
+ /**
+ * Properties of an UpdateConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IUpdateConnectionRequest
+ * @property {google.cloud.connectors.v1.IConnection|null} [connection] UpdateConnectionRequest connection
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateConnectionRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents an UpdateConnectionRequest.
+ * @implements IUpdateConnectionRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IUpdateConnectionRequest=} [properties] Properties to set
+ */
+ function UpdateConnectionRequest(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]];
+ }
+
+ /**
+ * UpdateConnectionRequest connection.
+ * @member {google.cloud.connectors.v1.IConnection|null|undefined} connection
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @instance
+ */
+ UpdateConnectionRequest.prototype.connection = null;
+
+ /**
+ * UpdateConnectionRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @instance
+ */
+ UpdateConnectionRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IUpdateConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.UpdateConnectionRequest} UpdateConnectionRequest instance
+ */
+ UpdateConnectionRequest.create = function create(properties) {
+ return new UpdateConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IUpdateConnectionRequest} message UpdateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateConnectionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ $root.google.cloud.connectors.v1.Connection.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IUpdateConnectionRequest} message UpdateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.UpdateConnectionRequest} UpdateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateConnectionRequest.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.connectors.v1.UpdateConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.connection = $root.google.cloud.connectors.v1.Connection.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.UpdateConnectionRequest} UpdateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateConnectionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.connection != null && message.hasOwnProperty("connection")) {
+ var error = $root.google.cloud.connectors.v1.Connection.verify(message.connection);
+ if (error)
+ return "connection." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.UpdateConnectionRequest} UpdateConnectionRequest
+ */
+ UpdateConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.UpdateConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.UpdateConnectionRequest();
+ if (object.connection != null) {
+ if (typeof object.connection !== "object")
+ throw TypeError(".google.cloud.connectors.v1.UpdateConnectionRequest.connection: object expected");
+ message.connection = $root.google.cloud.connectors.v1.Connection.fromObject(object.connection);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.connectors.v1.UpdateConnectionRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.UpdateConnectionRequest} message UpdateConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.connection = null;
+ object.updateMask = null;
+ }
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ object.connection = $root.google.cloud.connectors.v1.Connection.toObject(message.connection, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.UpdateConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.UpdateConnectionRequest";
+ };
+
+ return UpdateConnectionRequest;
+ })();
+
+ v1.DeleteConnectionRequest = (function() {
+
+ /**
+ * Properties of a DeleteConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IDeleteConnectionRequest
+ * @property {string|null} [name] DeleteConnectionRequest name
+ */
+
+ /**
+ * Constructs a new DeleteConnectionRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a DeleteConnectionRequest.
+ * @implements IDeleteConnectionRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IDeleteConnectionRequest=} [properties] Properties to set
+ */
+ function DeleteConnectionRequest(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]];
+ }
+
+ /**
+ * DeleteConnectionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @instance
+ */
+ DeleteConnectionRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IDeleteConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.DeleteConnectionRequest} DeleteConnectionRequest instance
+ */
+ DeleteConnectionRequest.create = function create(properties) {
+ return new DeleteConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteConnectionRequest message. Does not implicitly {@link google.cloud.connectors.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IDeleteConnectionRequest} message DeleteConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteConnectionRequest.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 DeleteConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IDeleteConnectionRequest} message DeleteConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.DeleteConnectionRequest} DeleteConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteConnectionRequest.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.connectors.v1.DeleteConnectionRequest();
+ 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 DeleteConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.DeleteConnectionRequest} DeleteConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteConnectionRequest.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 DeleteConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.DeleteConnectionRequest} DeleteConnectionRequest
+ */
+ DeleteConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.DeleteConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.DeleteConnectionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.connectors.v1.DeleteConnectionRequest} message DeleteConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteConnectionRequest.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 DeleteConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.DeleteConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.DeleteConnectionRequest";
+ };
+
+ return DeleteConnectionRequest;
+ })();
+
+ v1.GetConnectionSchemaMetadataRequest = (function() {
+
+ /**
+ * Properties of a GetConnectionSchemaMetadataRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IGetConnectionSchemaMetadataRequest
+ * @property {string|null} [name] GetConnectionSchemaMetadataRequest name
+ */
+
+ /**
+ * Constructs a new GetConnectionSchemaMetadataRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a GetConnectionSchemaMetadataRequest.
+ * @implements IGetConnectionSchemaMetadataRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest=} [properties] Properties to set
+ */
+ function GetConnectionSchemaMetadataRequest(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]];
+ }
+
+ /**
+ * GetConnectionSchemaMetadataRequest name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @instance
+ */
+ GetConnectionSchemaMetadataRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetConnectionSchemaMetadataRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest} GetConnectionSchemaMetadataRequest instance
+ */
+ GetConnectionSchemaMetadataRequest.create = function create(properties) {
+ return new GetConnectionSchemaMetadataRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetConnectionSchemaMetadataRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest} message GetConnectionSchemaMetadataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectionSchemaMetadataRequest.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 GetConnectionSchemaMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectionSchemaMetadataRequest} message GetConnectionSchemaMetadataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectionSchemaMetadataRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetConnectionSchemaMetadataRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest} GetConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectionSchemaMetadataRequest.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.connectors.v1.GetConnectionSchemaMetadataRequest();
+ 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 GetConnectionSchemaMetadataRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest} GetConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectionSchemaMetadataRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetConnectionSchemaMetadataRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetConnectionSchemaMetadataRequest.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 GetConnectionSchemaMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest} GetConnectionSchemaMetadataRequest
+ */
+ GetConnectionSchemaMetadataRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetConnectionSchemaMetadataRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest} message GetConnectionSchemaMetadataRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetConnectionSchemaMetadataRequest.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 GetConnectionSchemaMetadataRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetConnectionSchemaMetadataRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetConnectionSchemaMetadataRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetConnectionSchemaMetadataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest";
+ };
+
+ return GetConnectionSchemaMetadataRequest;
+ })();
+
+ v1.RefreshConnectionSchemaMetadataRequest = (function() {
+
+ /**
+ * Properties of a RefreshConnectionSchemaMetadataRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IRefreshConnectionSchemaMetadataRequest
+ * @property {string|null} [name] RefreshConnectionSchemaMetadataRequest name
+ */
+
+ /**
+ * Constructs a new RefreshConnectionSchemaMetadataRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a RefreshConnectionSchemaMetadataRequest.
+ * @implements IRefreshConnectionSchemaMetadataRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest=} [properties] Properties to set
+ */
+ function RefreshConnectionSchemaMetadataRequest(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]];
+ }
+
+ /**
+ * RefreshConnectionSchemaMetadataRequest name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @instance
+ */
+ RefreshConnectionSchemaMetadataRequest.prototype.name = "";
+
+ /**
+ * Creates a new RefreshConnectionSchemaMetadataRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest} RefreshConnectionSchemaMetadataRequest instance
+ */
+ RefreshConnectionSchemaMetadataRequest.create = function create(properties) {
+ return new RefreshConnectionSchemaMetadataRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RefreshConnectionSchemaMetadataRequest message. Does not implicitly {@link google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest} message RefreshConnectionSchemaMetadataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RefreshConnectionSchemaMetadataRequest.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 RefreshConnectionSchemaMetadataRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IRefreshConnectionSchemaMetadataRequest} message RefreshConnectionSchemaMetadataRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RefreshConnectionSchemaMetadataRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RefreshConnectionSchemaMetadataRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest} RefreshConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RefreshConnectionSchemaMetadataRequest.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.connectors.v1.RefreshConnectionSchemaMetadataRequest();
+ 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 RefreshConnectionSchemaMetadataRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest} RefreshConnectionSchemaMetadataRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RefreshConnectionSchemaMetadataRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RefreshConnectionSchemaMetadataRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RefreshConnectionSchemaMetadataRequest.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 RefreshConnectionSchemaMetadataRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest} RefreshConnectionSchemaMetadataRequest
+ */
+ RefreshConnectionSchemaMetadataRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RefreshConnectionSchemaMetadataRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest} message RefreshConnectionSchemaMetadataRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RefreshConnectionSchemaMetadataRequest.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 RefreshConnectionSchemaMetadataRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RefreshConnectionSchemaMetadataRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RefreshConnectionSchemaMetadataRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RefreshConnectionSchemaMetadataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest";
+ };
+
+ return RefreshConnectionSchemaMetadataRequest;
+ })();
+
+ v1.ListRuntimeEntitySchemasRequest = (function() {
+
+ /**
+ * Properties of a ListRuntimeEntitySchemasRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListRuntimeEntitySchemasRequest
+ * @property {string|null} [parent] ListRuntimeEntitySchemasRequest parent
+ * @property {number|null} [pageSize] ListRuntimeEntitySchemasRequest pageSize
+ * @property {string|null} [pageToken] ListRuntimeEntitySchemasRequest pageToken
+ * @property {string|null} [filter] ListRuntimeEntitySchemasRequest filter
+ */
+
+ /**
+ * Constructs a new ListRuntimeEntitySchemasRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListRuntimeEntitySchemasRequest.
+ * @implements IListRuntimeEntitySchemasRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest=} [properties] Properties to set
+ */
+ function ListRuntimeEntitySchemasRequest(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]];
+ }
+
+ /**
+ * ListRuntimeEntitySchemasRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @instance
+ */
+ ListRuntimeEntitySchemasRequest.prototype.parent = "";
+
+ /**
+ * ListRuntimeEntitySchemasRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @instance
+ */
+ ListRuntimeEntitySchemasRequest.prototype.pageSize = 0;
+
+ /**
+ * ListRuntimeEntitySchemasRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @instance
+ */
+ ListRuntimeEntitySchemasRequest.prototype.pageToken = "";
+
+ /**
+ * ListRuntimeEntitySchemasRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @instance
+ */
+ ListRuntimeEntitySchemasRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListRuntimeEntitySchemasRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest} ListRuntimeEntitySchemasRequest instance
+ */
+ ListRuntimeEntitySchemasRequest.create = function create(properties) {
+ return new ListRuntimeEntitySchemasRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListRuntimeEntitySchemasRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest} message ListRuntimeEntitySchemasRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeEntitySchemasRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListRuntimeEntitySchemasRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasRequest} message ListRuntimeEntitySchemasRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeEntitySchemasRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest} ListRuntimeEntitySchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeEntitySchemasRequest.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.connectors.v1.ListRuntimeEntitySchemasRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest} ListRuntimeEntitySchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeEntitySchemasRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListRuntimeEntitySchemasRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListRuntimeEntitySchemasRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListRuntimeEntitySchemasRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest} ListRuntimeEntitySchemasRequest
+ */
+ ListRuntimeEntitySchemasRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListRuntimeEntitySchemasRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest} message ListRuntimeEntitySchemasRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListRuntimeEntitySchemasRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListRuntimeEntitySchemasRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListRuntimeEntitySchemasRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListRuntimeEntitySchemasRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListRuntimeEntitySchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest";
+ };
+
+ return ListRuntimeEntitySchemasRequest;
+ })();
+
+ v1.ListRuntimeEntitySchemasResponse = (function() {
+
+ /**
+ * Properties of a ListRuntimeEntitySchemasResponse.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListRuntimeEntitySchemasResponse
+ * @property {Array.|null} [runtimeEntitySchemas] ListRuntimeEntitySchemasResponse runtimeEntitySchemas
+ * @property {string|null} [nextPageToken] ListRuntimeEntitySchemasResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListRuntimeEntitySchemasResponse.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListRuntimeEntitySchemasResponse.
+ * @implements IListRuntimeEntitySchemasResponse
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse=} [properties] Properties to set
+ */
+ function ListRuntimeEntitySchemasResponse(properties) {
+ this.runtimeEntitySchemas = [];
+ 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]];
+ }
+
+ /**
+ * ListRuntimeEntitySchemasResponse runtimeEntitySchemas.
+ * @member {Array.} runtimeEntitySchemas
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @instance
+ */
+ ListRuntimeEntitySchemasResponse.prototype.runtimeEntitySchemas = $util.emptyArray;
+
+ /**
+ * ListRuntimeEntitySchemasResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @instance
+ */
+ ListRuntimeEntitySchemasResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListRuntimeEntitySchemasResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse} ListRuntimeEntitySchemasResponse instance
+ */
+ ListRuntimeEntitySchemasResponse.create = function create(properties) {
+ return new ListRuntimeEntitySchemasResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListRuntimeEntitySchemasResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse} message ListRuntimeEntitySchemasResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeEntitySchemasResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.runtimeEntitySchemas != null && message.runtimeEntitySchemas.length)
+ for (var i = 0; i < message.runtimeEntitySchemas.length; ++i)
+ $root.google.cloud.connectors.v1.RuntimeEntitySchema.encode(message.runtimeEntitySchemas[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 ListRuntimeEntitySchemasResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeEntitySchemasResponse} message ListRuntimeEntitySchemasResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeEntitySchemasResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse} ListRuntimeEntitySchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeEntitySchemasResponse.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.connectors.v1.ListRuntimeEntitySchemasResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.runtimeEntitySchemas && message.runtimeEntitySchemas.length))
+ message.runtimeEntitySchemas = [];
+ message.runtimeEntitySchemas.push($root.google.cloud.connectors.v1.RuntimeEntitySchema.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListRuntimeEntitySchemasResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse} ListRuntimeEntitySchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeEntitySchemasResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListRuntimeEntitySchemasResponse message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListRuntimeEntitySchemasResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.runtimeEntitySchemas != null && message.hasOwnProperty("runtimeEntitySchemas")) {
+ if (!Array.isArray(message.runtimeEntitySchemas))
+ return "runtimeEntitySchemas: array expected";
+ for (var i = 0; i < message.runtimeEntitySchemas.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.RuntimeEntitySchema.verify(message.runtimeEntitySchemas[i]);
+ if (error)
+ return "runtimeEntitySchemas." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListRuntimeEntitySchemasResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse} ListRuntimeEntitySchemasResponse
+ */
+ ListRuntimeEntitySchemasResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse();
+ if (object.runtimeEntitySchemas) {
+ if (!Array.isArray(object.runtimeEntitySchemas))
+ throw TypeError(".google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse.runtimeEntitySchemas: array expected");
+ message.runtimeEntitySchemas = [];
+ for (var i = 0; i < object.runtimeEntitySchemas.length; ++i) {
+ if (typeof object.runtimeEntitySchemas[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse.runtimeEntitySchemas: object expected");
+ message.runtimeEntitySchemas[i] = $root.google.cloud.connectors.v1.RuntimeEntitySchema.fromObject(object.runtimeEntitySchemas[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListRuntimeEntitySchemasResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse} message ListRuntimeEntitySchemasResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListRuntimeEntitySchemasResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.runtimeEntitySchemas = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.runtimeEntitySchemas && message.runtimeEntitySchemas.length) {
+ object.runtimeEntitySchemas = [];
+ for (var j = 0; j < message.runtimeEntitySchemas.length; ++j)
+ object.runtimeEntitySchemas[j] = $root.google.cloud.connectors.v1.RuntimeEntitySchema.toObject(message.runtimeEntitySchemas[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListRuntimeEntitySchemasResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListRuntimeEntitySchemasResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListRuntimeEntitySchemasResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListRuntimeEntitySchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse";
+ };
+
+ return ListRuntimeEntitySchemasResponse;
+ })();
+
+ v1.ListRuntimeActionSchemasRequest = (function() {
+
+ /**
+ * Properties of a ListRuntimeActionSchemasRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListRuntimeActionSchemasRequest
+ * @property {string|null} [parent] ListRuntimeActionSchemasRequest parent
+ * @property {number|null} [pageSize] ListRuntimeActionSchemasRequest pageSize
+ * @property {string|null} [pageToken] ListRuntimeActionSchemasRequest pageToken
+ * @property {string|null} [filter] ListRuntimeActionSchemasRequest filter
+ */
+
+ /**
+ * Constructs a new ListRuntimeActionSchemasRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListRuntimeActionSchemasRequest.
+ * @implements IListRuntimeActionSchemasRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasRequest=} [properties] Properties to set
+ */
+ function ListRuntimeActionSchemasRequest(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]];
+ }
+
+ /**
+ * ListRuntimeActionSchemasRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @instance
+ */
+ ListRuntimeActionSchemasRequest.prototype.parent = "";
+
+ /**
+ * ListRuntimeActionSchemasRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @instance
+ */
+ ListRuntimeActionSchemasRequest.prototype.pageSize = 0;
+
+ /**
+ * ListRuntimeActionSchemasRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @instance
+ */
+ ListRuntimeActionSchemasRequest.prototype.pageToken = "";
+
+ /**
+ * ListRuntimeActionSchemasRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @instance
+ */
+ ListRuntimeActionSchemasRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListRuntimeActionSchemasRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasRequest} ListRuntimeActionSchemasRequest instance
+ */
+ ListRuntimeActionSchemasRequest.create = function create(properties) {
+ return new ListRuntimeActionSchemasRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListRuntimeActionSchemasRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasRequest} message ListRuntimeActionSchemasRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeActionSchemasRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListRuntimeActionSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasRequest} message ListRuntimeActionSchemasRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeActionSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListRuntimeActionSchemasRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasRequest} ListRuntimeActionSchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeActionSchemasRequest.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.connectors.v1.ListRuntimeActionSchemasRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListRuntimeActionSchemasRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasRequest} ListRuntimeActionSchemasRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeActionSchemasRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListRuntimeActionSchemasRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListRuntimeActionSchemasRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListRuntimeActionSchemasRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasRequest} ListRuntimeActionSchemasRequest
+ */
+ ListRuntimeActionSchemasRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListRuntimeActionSchemasRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListRuntimeActionSchemasRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListRuntimeActionSchemasRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {google.cloud.connectors.v1.ListRuntimeActionSchemasRequest} message ListRuntimeActionSchemasRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListRuntimeActionSchemasRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListRuntimeActionSchemasRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListRuntimeActionSchemasRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListRuntimeActionSchemasRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListRuntimeActionSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ListRuntimeActionSchemasRequest";
+ };
+
+ return ListRuntimeActionSchemasRequest;
+ })();
+
+ v1.ListRuntimeActionSchemasResponse = (function() {
+
+ /**
+ * Properties of a ListRuntimeActionSchemasResponse.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListRuntimeActionSchemasResponse
+ * @property {Array.|null} [runtimeActionSchemas] ListRuntimeActionSchemasResponse runtimeActionSchemas
+ * @property {string|null} [nextPageToken] ListRuntimeActionSchemasResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListRuntimeActionSchemasResponse.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListRuntimeActionSchemasResponse.
+ * @implements IListRuntimeActionSchemasResponse
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasResponse=} [properties] Properties to set
+ */
+ function ListRuntimeActionSchemasResponse(properties) {
+ this.runtimeActionSchemas = [];
+ 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]];
+ }
+
+ /**
+ * ListRuntimeActionSchemasResponse runtimeActionSchemas.
+ * @member {Array.} runtimeActionSchemas
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @instance
+ */
+ ListRuntimeActionSchemasResponse.prototype.runtimeActionSchemas = $util.emptyArray;
+
+ /**
+ * ListRuntimeActionSchemasResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @instance
+ */
+ ListRuntimeActionSchemasResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListRuntimeActionSchemasResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasResponse=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasResponse} ListRuntimeActionSchemasResponse instance
+ */
+ ListRuntimeActionSchemasResponse.create = function create(properties) {
+ return new ListRuntimeActionSchemasResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListRuntimeActionSchemasResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasResponse} message ListRuntimeActionSchemasResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeActionSchemasResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.runtimeActionSchemas != null && message.runtimeActionSchemas.length)
+ for (var i = 0; i < message.runtimeActionSchemas.length; ++i)
+ $root.google.cloud.connectors.v1.RuntimeActionSchema.encode(message.runtimeActionSchemas[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 ListRuntimeActionSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListRuntimeActionSchemasResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListRuntimeActionSchemasResponse} message ListRuntimeActionSchemasResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListRuntimeActionSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListRuntimeActionSchemasResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasResponse} ListRuntimeActionSchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeActionSchemasResponse.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.connectors.v1.ListRuntimeActionSchemasResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.runtimeActionSchemas && message.runtimeActionSchemas.length))
+ message.runtimeActionSchemas = [];
+ message.runtimeActionSchemas.push($root.google.cloud.connectors.v1.RuntimeActionSchema.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListRuntimeActionSchemasResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasResponse} ListRuntimeActionSchemasResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListRuntimeActionSchemasResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListRuntimeActionSchemasResponse message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListRuntimeActionSchemasResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.runtimeActionSchemas != null && message.hasOwnProperty("runtimeActionSchemas")) {
+ if (!Array.isArray(message.runtimeActionSchemas))
+ return "runtimeActionSchemas: array expected";
+ for (var i = 0; i < message.runtimeActionSchemas.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.RuntimeActionSchema.verify(message.runtimeActionSchemas[i]);
+ if (error)
+ return "runtimeActionSchemas." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListRuntimeActionSchemasResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListRuntimeActionSchemasResponse} ListRuntimeActionSchemasResponse
+ */
+ ListRuntimeActionSchemasResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListRuntimeActionSchemasResponse)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListRuntimeActionSchemasResponse();
+ if (object.runtimeActionSchemas) {
+ if (!Array.isArray(object.runtimeActionSchemas))
+ throw TypeError(".google.cloud.connectors.v1.ListRuntimeActionSchemasResponse.runtimeActionSchemas: array expected");
+ message.runtimeActionSchemas = [];
+ for (var i = 0; i < object.runtimeActionSchemas.length; ++i) {
+ if (typeof object.runtimeActionSchemas[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ListRuntimeActionSchemasResponse.runtimeActionSchemas: object expected");
+ message.runtimeActionSchemas[i] = $root.google.cloud.connectors.v1.RuntimeActionSchema.fromObject(object.runtimeActionSchemas[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListRuntimeActionSchemasResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {google.cloud.connectors.v1.ListRuntimeActionSchemasResponse} message ListRuntimeActionSchemasResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListRuntimeActionSchemasResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.runtimeActionSchemas = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.runtimeActionSchemas && message.runtimeActionSchemas.length) {
+ object.runtimeActionSchemas = [];
+ for (var j = 0; j < message.runtimeActionSchemas.length; ++j)
+ object.runtimeActionSchemas[j] = $root.google.cloud.connectors.v1.RuntimeActionSchema.toObject(message.runtimeActionSchemas[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListRuntimeActionSchemasResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListRuntimeActionSchemasResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListRuntimeActionSchemasResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ListRuntimeActionSchemasResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListRuntimeActionSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ListRuntimeActionSchemasResponse";
+ };
+
+ return ListRuntimeActionSchemasResponse;
+ })();
+
+ v1.ConnectionStatus = (function() {
+
+ /**
+ * Properties of a ConnectionStatus.
+ * @memberof google.cloud.connectors.v1
+ * @interface IConnectionStatus
+ * @property {google.cloud.connectors.v1.ConnectionStatus.State|null} [state] ConnectionStatus state
+ * @property {string|null} [description] ConnectionStatus description
+ * @property {string|null} [status] ConnectionStatus status
+ */
+
+ /**
+ * Constructs a new ConnectionStatus.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ConnectionStatus.
+ * @implements IConnectionStatus
+ * @constructor
+ * @param {google.cloud.connectors.v1.IConnectionStatus=} [properties] Properties to set
+ */
+ function ConnectionStatus(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]];
+ }
+
+ /**
+ * ConnectionStatus state.
+ * @member {google.cloud.connectors.v1.ConnectionStatus.State} state
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @instance
+ */
+ ConnectionStatus.prototype.state = 0;
+
+ /**
+ * ConnectionStatus description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @instance
+ */
+ ConnectionStatus.prototype.description = "";
+
+ /**
+ * ConnectionStatus status.
+ * @member {string} status
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @instance
+ */
+ ConnectionStatus.prototype.status = "";
+
+ /**
+ * Creates a new ConnectionStatus instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {google.cloud.connectors.v1.IConnectionStatus=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ConnectionStatus} ConnectionStatus instance
+ */
+ ConnectionStatus.create = function create(properties) {
+ return new ConnectionStatus(properties);
+ };
+
+ /**
+ * Encodes the specified ConnectionStatus message. Does not implicitly {@link google.cloud.connectors.v1.ConnectionStatus.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {google.cloud.connectors.v1.IConnectionStatus} message ConnectionStatus message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConnectionStatus.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.status);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ConnectionStatus message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ConnectionStatus.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {google.cloud.connectors.v1.IConnectionStatus} message ConnectionStatus message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ConnectionStatus.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ConnectionStatus message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ConnectionStatus} ConnectionStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConnectionStatus.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.connectors.v1.ConnectionStatus();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.state = reader.int32();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.status = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ConnectionStatus message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ConnectionStatus} ConnectionStatus
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ConnectionStatus.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ConnectionStatus message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ConnectionStatus.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.status != null && message.hasOwnProperty("status"))
+ if (!$util.isString(message.status))
+ return "status: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ConnectionStatus message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ConnectionStatus} ConnectionStatus
+ */
+ ConnectionStatus.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ConnectionStatus)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ConnectionStatus();
+ 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 "INACTIVE":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ case "UPDATING":
+ case 5:
+ message.state = 5;
+ break;
+ case "ERROR":
+ case 6:
+ message.state = 6;
+ break;
+ case "AUTHORIZATION_REQUIRED":
+ case 7:
+ message.state = 7;
+ break;
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.status != null)
+ message.status = String(object.status);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ConnectionStatus message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {google.cloud.connectors.v1.ConnectionStatus} message ConnectionStatus
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ConnectionStatus.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.description = "";
+ object.status = "";
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.connectors.v1.ConnectionStatus.State[message.state] === undefined ? message.state : $root.google.cloud.connectors.v1.ConnectionStatus.State[message.state] : message.state;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = message.status;
+ return object;
+ };
+
+ /**
+ * Converts this ConnectionStatus to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ConnectionStatus.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ConnectionStatus
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ConnectionStatus
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ConnectionStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ConnectionStatus";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.connectors.v1.ConnectionStatus.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} INACTIVE=3 INACTIVE value
+ * @property {number} DELETING=4 DELETING value
+ * @property {number} UPDATING=5 UPDATING value
+ * @property {number} ERROR=6 ERROR value
+ * @property {number} AUTHORIZATION_REQUIRED=7 AUTHORIZATION_REQUIRED value
+ */
+ ConnectionStatus.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] = "INACTIVE"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ values[valuesById[5] = "UPDATING"] = 5;
+ values[valuesById[6] = "ERROR"] = 6;
+ values[valuesById[7] = "AUTHORIZATION_REQUIRED"] = 7;
+ return values;
+ })();
+
+ return ConnectionStatus;
+ })();
+
+ /**
+ * DataType enum.
+ * @name google.cloud.connectors.v1.DataType
+ * @enum {number}
+ * @property {number} DATA_TYPE_UNSPECIFIED=0 DATA_TYPE_UNSPECIFIED value
+ * @property {number} DATA_TYPE_INT=1 DATA_TYPE_INT value
+ * @property {number} DATA_TYPE_SMALLINT=2 DATA_TYPE_SMALLINT value
+ * @property {number} DATA_TYPE_DOUBLE=3 DATA_TYPE_DOUBLE value
+ * @property {number} DATA_TYPE_DATE=4 DATA_TYPE_DATE value
+ * @property {number} DATA_TYPE_DATETIME=5 DATA_TYPE_DATETIME value
+ * @property {number} DATA_TYPE_TIME=6 DATA_TYPE_TIME value
+ * @property {number} DATA_TYPE_STRING=7 DATA_TYPE_STRING value
+ * @property {number} DATA_TYPE_LONG=8 DATA_TYPE_LONG value
+ * @property {number} DATA_TYPE_BOOLEAN=9 DATA_TYPE_BOOLEAN value
+ * @property {number} DATA_TYPE_DECIMAL=10 DATA_TYPE_DECIMAL value
+ * @property {number} DATA_TYPE_UUID=11 DATA_TYPE_UUID value
+ * @property {number} DATA_TYPE_BLOB=12 DATA_TYPE_BLOB value
+ * @property {number} DATA_TYPE_BIT=13 DATA_TYPE_BIT value
+ * @property {number} DATA_TYPE_TINYINT=14 DATA_TYPE_TINYINT value
+ * @property {number} DATA_TYPE_INTEGER=15 DATA_TYPE_INTEGER value
+ * @property {number} DATA_TYPE_BIGINT=16 DATA_TYPE_BIGINT value
+ * @property {number} DATA_TYPE_FLOAT=17 DATA_TYPE_FLOAT value
+ * @property {number} DATA_TYPE_REAL=18 DATA_TYPE_REAL value
+ * @property {number} DATA_TYPE_NUMERIC=19 DATA_TYPE_NUMERIC value
+ * @property {number} DATA_TYPE_CHAR=20 DATA_TYPE_CHAR value
+ * @property {number} DATA_TYPE_VARCHAR=21 DATA_TYPE_VARCHAR value
+ * @property {number} DATA_TYPE_LONGVARCHAR=22 DATA_TYPE_LONGVARCHAR value
+ * @property {number} DATA_TYPE_TIMESTAMP=23 DATA_TYPE_TIMESTAMP value
+ * @property {number} DATA_TYPE_NCHAR=24 DATA_TYPE_NCHAR value
+ * @property {number} DATA_TYPE_NVARCHAR=25 DATA_TYPE_NVARCHAR value
+ * @property {number} DATA_TYPE_LONGNVARCHAR=26 DATA_TYPE_LONGNVARCHAR value
+ * @property {number} DATA_TYPE_NULL=27 DATA_TYPE_NULL value
+ * @property {number} DATA_TYPE_OTHER=28 DATA_TYPE_OTHER value
+ * @property {number} DATA_TYPE_JAVA_OBJECT=29 DATA_TYPE_JAVA_OBJECT value
+ * @property {number} DATA_TYPE_DISTINCT=30 DATA_TYPE_DISTINCT value
+ * @property {number} DATA_TYPE_STRUCT=31 DATA_TYPE_STRUCT value
+ * @property {number} DATA_TYPE_ARRAY=32 DATA_TYPE_ARRAY value
+ * @property {number} DATA_TYPE_CLOB=33 DATA_TYPE_CLOB value
+ * @property {number} DATA_TYPE_REF=34 DATA_TYPE_REF value
+ * @property {number} DATA_TYPE_DATALINK=35 DATA_TYPE_DATALINK value
+ * @property {number} DATA_TYPE_ROWID=36 DATA_TYPE_ROWID value
+ * @property {number} DATA_TYPE_BINARY=37 DATA_TYPE_BINARY value
+ * @property {number} DATA_TYPE_VARBINARY=38 DATA_TYPE_VARBINARY value
+ * @property {number} DATA_TYPE_LONGVARBINARY=39 DATA_TYPE_LONGVARBINARY value
+ * @property {number} DATA_TYPE_NCLOB=40 DATA_TYPE_NCLOB value
+ * @property {number} DATA_TYPE_SQLXML=41 DATA_TYPE_SQLXML value
+ * @property {number} DATA_TYPE_REF_CURSOR=42 DATA_TYPE_REF_CURSOR value
+ * @property {number} DATA_TYPE_TIME_WITH_TIMEZONE=43 DATA_TYPE_TIME_WITH_TIMEZONE value
+ * @property {number} DATA_TYPE_TIMESTAMP_WITH_TIMEZONE=44 DATA_TYPE_TIMESTAMP_WITH_TIMEZONE value
+ */
+ v1.DataType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DATA_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DATA_TYPE_INT"] = 1;
+ values[valuesById[2] = "DATA_TYPE_SMALLINT"] = 2;
+ values[valuesById[3] = "DATA_TYPE_DOUBLE"] = 3;
+ values[valuesById[4] = "DATA_TYPE_DATE"] = 4;
+ values[valuesById[5] = "DATA_TYPE_DATETIME"] = 5;
+ values[valuesById[6] = "DATA_TYPE_TIME"] = 6;
+ values[valuesById[7] = "DATA_TYPE_STRING"] = 7;
+ values[valuesById[8] = "DATA_TYPE_LONG"] = 8;
+ values[valuesById[9] = "DATA_TYPE_BOOLEAN"] = 9;
+ values[valuesById[10] = "DATA_TYPE_DECIMAL"] = 10;
+ values[valuesById[11] = "DATA_TYPE_UUID"] = 11;
+ values[valuesById[12] = "DATA_TYPE_BLOB"] = 12;
+ values[valuesById[13] = "DATA_TYPE_BIT"] = 13;
+ values[valuesById[14] = "DATA_TYPE_TINYINT"] = 14;
+ values[valuesById[15] = "DATA_TYPE_INTEGER"] = 15;
+ values[valuesById[16] = "DATA_TYPE_BIGINT"] = 16;
+ values[valuesById[17] = "DATA_TYPE_FLOAT"] = 17;
+ values[valuesById[18] = "DATA_TYPE_REAL"] = 18;
+ values[valuesById[19] = "DATA_TYPE_NUMERIC"] = 19;
+ values[valuesById[20] = "DATA_TYPE_CHAR"] = 20;
+ values[valuesById[21] = "DATA_TYPE_VARCHAR"] = 21;
+ values[valuesById[22] = "DATA_TYPE_LONGVARCHAR"] = 22;
+ values[valuesById[23] = "DATA_TYPE_TIMESTAMP"] = 23;
+ values[valuesById[24] = "DATA_TYPE_NCHAR"] = 24;
+ values[valuesById[25] = "DATA_TYPE_NVARCHAR"] = 25;
+ values[valuesById[26] = "DATA_TYPE_LONGNVARCHAR"] = 26;
+ values[valuesById[27] = "DATA_TYPE_NULL"] = 27;
+ values[valuesById[28] = "DATA_TYPE_OTHER"] = 28;
+ values[valuesById[29] = "DATA_TYPE_JAVA_OBJECT"] = 29;
+ values[valuesById[30] = "DATA_TYPE_DISTINCT"] = 30;
+ values[valuesById[31] = "DATA_TYPE_STRUCT"] = 31;
+ values[valuesById[32] = "DATA_TYPE_ARRAY"] = 32;
+ values[valuesById[33] = "DATA_TYPE_CLOB"] = 33;
+ values[valuesById[34] = "DATA_TYPE_REF"] = 34;
+ values[valuesById[35] = "DATA_TYPE_DATALINK"] = 35;
+ values[valuesById[36] = "DATA_TYPE_ROWID"] = 36;
+ values[valuesById[37] = "DATA_TYPE_BINARY"] = 37;
+ values[valuesById[38] = "DATA_TYPE_VARBINARY"] = 38;
+ values[valuesById[39] = "DATA_TYPE_LONGVARBINARY"] = 39;
+ values[valuesById[40] = "DATA_TYPE_NCLOB"] = 40;
+ values[valuesById[41] = "DATA_TYPE_SQLXML"] = 41;
+ values[valuesById[42] = "DATA_TYPE_REF_CURSOR"] = 42;
+ values[valuesById[43] = "DATA_TYPE_TIME_WITH_TIMEZONE"] = 43;
+ values[valuesById[44] = "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE"] = 44;
+ return values;
+ })();
+
+ /**
+ * ConnectionView enum.
+ * @name google.cloud.connectors.v1.ConnectionView
+ * @enum {number}
+ * @property {number} CONNECTION_VIEW_UNSPECIFIED=0 CONNECTION_VIEW_UNSPECIFIED value
+ * @property {number} BASIC=1 BASIC value
+ * @property {number} FULL=2 FULL value
+ */
+ v1.ConnectionView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CONNECTION_VIEW_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "BASIC"] = 1;
+ values[valuesById[2] = "FULL"] = 2;
+ return values;
+ })();
+
+ v1.DestinationConfig = (function() {
+
+ /**
+ * Properties of a DestinationConfig.
+ * @memberof google.cloud.connectors.v1
+ * @interface IDestinationConfig
+ * @property {string|null} [key] DestinationConfig key
+ * @property {Array.|null} [destinations] DestinationConfig destinations
+ */
+
+ /**
+ * Constructs a new DestinationConfig.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a DestinationConfig.
+ * @implements IDestinationConfig
+ * @constructor
+ * @param {google.cloud.connectors.v1.IDestinationConfig=} [properties] Properties to set
+ */
+ function DestinationConfig(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]];
+ }
+
+ /**
+ * DestinationConfig key.
+ * @member {string} key
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @instance
+ */
+ DestinationConfig.prototype.key = "";
+
+ /**
+ * DestinationConfig destinations.
+ * @member {Array.} destinations
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @instance
+ */
+ DestinationConfig.prototype.destinations = $util.emptyArray;
+
+ /**
+ * Creates a new DestinationConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {google.cloud.connectors.v1.IDestinationConfig=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.DestinationConfig} DestinationConfig instance
+ */
+ DestinationConfig.create = function create(properties) {
+ return new DestinationConfig(properties);
+ };
+
+ /**
+ * Encodes the specified DestinationConfig message. Does not implicitly {@link google.cloud.connectors.v1.DestinationConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {google.cloud.connectors.v1.IDestinationConfig} message DestinationConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DestinationConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
+ if (message.destinations != null && message.destinations.length)
+ for (var i = 0; i < message.destinations.length; ++i)
+ $root.google.cloud.connectors.v1.Destination.encode(message.destinations[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DestinationConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.DestinationConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {google.cloud.connectors.v1.IDestinationConfig} message DestinationConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DestinationConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DestinationConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.DestinationConfig} DestinationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DestinationConfig.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.connectors.v1.DestinationConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.key = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.destinations && message.destinations.length))
+ message.destinations = [];
+ message.destinations.push($root.google.cloud.connectors.v1.Destination.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DestinationConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.DestinationConfig} DestinationConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DestinationConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DestinationConfig message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DestinationConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (!$util.isString(message.key))
+ return "key: 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) {
+ var error = $root.google.cloud.connectors.v1.Destination.verify(message.destinations[i]);
+ if (error)
+ return "destinations." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DestinationConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.DestinationConfig} DestinationConfig
+ */
+ DestinationConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.DestinationConfig)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.DestinationConfig();
+ if (object.key != null)
+ message.key = String(object.key);
+ if (object.destinations) {
+ if (!Array.isArray(object.destinations))
+ throw TypeError(".google.cloud.connectors.v1.DestinationConfig.destinations: array expected");
+ message.destinations = [];
+ for (var i = 0; i < object.destinations.length; ++i) {
+ if (typeof object.destinations[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.DestinationConfig.destinations: object expected");
+ message.destinations[i] = $root.google.cloud.connectors.v1.Destination.fromObject(object.destinations[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DestinationConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {google.cloud.connectors.v1.DestinationConfig} message DestinationConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DestinationConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.destinations = [];
+ if (options.defaults)
+ object.key = "";
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.destinations && message.destinations.length) {
+ object.destinations = [];
+ for (var j = 0; j < message.destinations.length; ++j)
+ object.destinations[j] = $root.google.cloud.connectors.v1.Destination.toObject(message.destinations[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DestinationConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DestinationConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DestinationConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.DestinationConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DestinationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.DestinationConfig";
+ };
+
+ return DestinationConfig;
+ })();
+
+ v1.Destination = (function() {
+
+ /**
+ * Properties of a Destination.
+ * @memberof google.cloud.connectors.v1
+ * @interface IDestination
+ * @property {string|null} [serviceAttachment] Destination serviceAttachment
+ * @property {string|null} [host] Destination host
+ * @property {number|null} [port] Destination port
+ */
+
+ /**
+ * Constructs a new Destination.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a Destination.
+ * @implements IDestination
+ * @constructor
+ * @param {google.cloud.connectors.v1.IDestination=} [properties] Properties to set
+ */
+ function Destination(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]];
+ }
+
+ /**
+ * Destination serviceAttachment.
+ * @member {string|null|undefined} serviceAttachment
+ * @memberof google.cloud.connectors.v1.Destination
+ * @instance
+ */
+ Destination.prototype.serviceAttachment = null;
+
+ /**
+ * Destination host.
+ * @member {string|null|undefined} host
+ * @memberof google.cloud.connectors.v1.Destination
+ * @instance
+ */
+ Destination.prototype.host = null;
+
+ /**
+ * Destination port.
+ * @member {number} port
+ * @memberof google.cloud.connectors.v1.Destination
+ * @instance
+ */
+ Destination.prototype.port = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Destination destination.
+ * @member {"serviceAttachment"|"host"|undefined} destination
+ * @memberof google.cloud.connectors.v1.Destination
+ * @instance
+ */
+ Object.defineProperty(Destination.prototype, "destination", {
+ get: $util.oneOfGetter($oneOfFields = ["serviceAttachment", "host"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Destination instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {google.cloud.connectors.v1.IDestination=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.Destination} Destination instance
+ */
+ Destination.create = function create(properties) {
+ return new Destination(properties);
+ };
+
+ /**
+ * Encodes the specified Destination message. Does not implicitly {@link google.cloud.connectors.v1.Destination.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {google.cloud.connectors.v1.IDestination} message Destination message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Destination.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceAttachment);
+ if (message.host != null && Object.hasOwnProperty.call(message, "host"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.host);
+ if (message.port != null && Object.hasOwnProperty.call(message, "port"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.port);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Destination message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Destination.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {google.cloud.connectors.v1.IDestination} message Destination message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Destination.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Destination message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.Destination} Destination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Destination.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.connectors.v1.Destination();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.serviceAttachment = reader.string();
+ break;
+ }
+ case 2: {
+ message.host = reader.string();
+ break;
+ }
+ case 3: {
+ message.port = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Destination message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.Destination} Destination
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Destination.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Destination message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Destination.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) {
+ properties.destination = 1;
+ if (!$util.isString(message.serviceAttachment))
+ return "serviceAttachment: string expected";
+ }
+ if (message.host != null && message.hasOwnProperty("host")) {
+ if (properties.destination === 1)
+ return "destination: multiple values";
+ properties.destination = 1;
+ if (!$util.isString(message.host))
+ return "host: string expected";
+ }
+ if (message.port != null && message.hasOwnProperty("port"))
+ if (!$util.isInteger(message.port))
+ return "port: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a Destination message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.Destination} Destination
+ */
+ Destination.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.Destination)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.Destination();
+ if (object.serviceAttachment != null)
+ message.serviceAttachment = String(object.serviceAttachment);
+ if (object.host != null)
+ message.host = String(object.host);
+ if (object.port != null)
+ message.port = object.port | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Destination message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {google.cloud.connectors.v1.Destination} message Destination
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Destination.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.port = 0;
+ if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) {
+ object.serviceAttachment = message.serviceAttachment;
+ if (options.oneofs)
+ object.destination = "serviceAttachment";
+ }
+ if (message.host != null && message.hasOwnProperty("host")) {
+ object.host = message.host;
+ if (options.oneofs)
+ object.destination = "host";
+ }
+ if (message.port != null && message.hasOwnProperty("port"))
+ object.port = message.port;
+ return object;
+ };
+
+ /**
+ * Converts this Destination to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.Destination
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Destination.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Destination
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.Destination
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Destination.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.Destination";
+ };
+
+ return Destination;
+ })();
+
+ v1.SslConfigTemplate = (function() {
+
+ /**
+ * Properties of a SslConfigTemplate.
+ * @memberof google.cloud.connectors.v1
+ * @interface ISslConfigTemplate
+ * @property {google.cloud.connectors.v1.SslType|null} [sslType] SslConfigTemplate sslType
+ * @property {boolean|null} [isTlsMandatory] SslConfigTemplate isTlsMandatory
+ * @property {Array.|null} [serverCertType] SslConfigTemplate serverCertType
+ * @property {Array.|null} [clientCertType] SslConfigTemplate clientCertType
+ * @property {Array.|null} [additionalVariables] SslConfigTemplate additionalVariables
+ */
+
+ /**
+ * Constructs a new SslConfigTemplate.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a SslConfigTemplate.
+ * @implements ISslConfigTemplate
+ * @constructor
+ * @param {google.cloud.connectors.v1.ISslConfigTemplate=} [properties] Properties to set
+ */
+ function SslConfigTemplate(properties) {
+ this.serverCertType = [];
+ this.clientCertType = [];
+ this.additionalVariables = [];
+ 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]];
+ }
+
+ /**
+ * SslConfigTemplate sslType.
+ * @member {google.cloud.connectors.v1.SslType} sslType
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @instance
+ */
+ SslConfigTemplate.prototype.sslType = 0;
+
+ /**
+ * SslConfigTemplate isTlsMandatory.
+ * @member {boolean} isTlsMandatory
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @instance
+ */
+ SslConfigTemplate.prototype.isTlsMandatory = false;
+
+ /**
+ * SslConfigTemplate serverCertType.
+ * @member {Array.} serverCertType
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @instance
+ */
+ SslConfigTemplate.prototype.serverCertType = $util.emptyArray;
+
+ /**
+ * SslConfigTemplate clientCertType.
+ * @member {Array.} clientCertType
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @instance
+ */
+ SslConfigTemplate.prototype.clientCertType = $util.emptyArray;
+
+ /**
+ * SslConfigTemplate additionalVariables.
+ * @member {Array.} additionalVariables
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @instance
+ */
+ SslConfigTemplate.prototype.additionalVariables = $util.emptyArray;
+
+ /**
+ * Creates a new SslConfigTemplate instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.ISslConfigTemplate=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.SslConfigTemplate} SslConfigTemplate instance
+ */
+ SslConfigTemplate.create = function create(properties) {
+ return new SslConfigTemplate(properties);
+ };
+
+ /**
+ * Encodes the specified SslConfigTemplate message. Does not implicitly {@link google.cloud.connectors.v1.SslConfigTemplate.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.ISslConfigTemplate} message SslConfigTemplate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SslConfigTemplate.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.sslType != null && Object.hasOwnProperty.call(message, "sslType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sslType);
+ if (message.isTlsMandatory != null && Object.hasOwnProperty.call(message, "isTlsMandatory"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isTlsMandatory);
+ if (message.serverCertType != null && message.serverCertType.length) {
+ writer.uint32(/* id 3, wireType 2 =*/26).fork();
+ for (var i = 0; i < message.serverCertType.length; ++i)
+ writer.int32(message.serverCertType[i]);
+ writer.ldelim();
+ }
+ if (message.clientCertType != null && message.clientCertType.length) {
+ writer.uint32(/* id 4, wireType 2 =*/34).fork();
+ for (var i = 0; i < message.clientCertType.length; ++i)
+ writer.int32(message.clientCertType[i]);
+ writer.ldelim();
+ }
+ if (message.additionalVariables != null && message.additionalVariables.length)
+ for (var i = 0; i < message.additionalVariables.length; ++i)
+ $root.google.cloud.connectors.v1.ConfigVariableTemplate.encode(message.additionalVariables[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SslConfigTemplate message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.SslConfigTemplate.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.ISslConfigTemplate} message SslConfigTemplate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SslConfigTemplate.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SslConfigTemplate message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.SslConfigTemplate} SslConfigTemplate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SslConfigTemplate.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.connectors.v1.SslConfigTemplate();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.sslType = reader.int32();
+ break;
+ }
+ case 2: {
+ message.isTlsMandatory = reader.bool();
+ break;
+ }
+ case 3: {
+ if (!(message.serverCertType && message.serverCertType.length))
+ message.serverCertType = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.serverCertType.push(reader.int32());
+ } else
+ message.serverCertType.push(reader.int32());
+ break;
+ }
+ case 4: {
+ if (!(message.clientCertType && message.clientCertType.length))
+ message.clientCertType = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.clientCertType.push(reader.int32());
+ } else
+ message.clientCertType.push(reader.int32());
+ break;
+ }
+ case 5: {
+ if (!(message.additionalVariables && message.additionalVariables.length))
+ message.additionalVariables = [];
+ message.additionalVariables.push($root.google.cloud.connectors.v1.ConfigVariableTemplate.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SslConfigTemplate message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.SslConfigTemplate} SslConfigTemplate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SslConfigTemplate.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SslConfigTemplate message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SslConfigTemplate.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.sslType != null && message.hasOwnProperty("sslType"))
+ switch (message.sslType) {
+ default:
+ return "sslType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.isTlsMandatory != null && message.hasOwnProperty("isTlsMandatory"))
+ if (typeof message.isTlsMandatory !== "boolean")
+ return "isTlsMandatory: boolean expected";
+ if (message.serverCertType != null && message.hasOwnProperty("serverCertType")) {
+ if (!Array.isArray(message.serverCertType))
+ return "serverCertType: array expected";
+ for (var i = 0; i < message.serverCertType.length; ++i)
+ switch (message.serverCertType[i]) {
+ default:
+ return "serverCertType: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ if (message.clientCertType != null && message.hasOwnProperty("clientCertType")) {
+ if (!Array.isArray(message.clientCertType))
+ return "clientCertType: array expected";
+ for (var i = 0; i < message.clientCertType.length; ++i)
+ switch (message.clientCertType[i]) {
+ default:
+ return "clientCertType: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ if (message.additionalVariables != null && message.hasOwnProperty("additionalVariables")) {
+ if (!Array.isArray(message.additionalVariables))
+ return "additionalVariables: array expected";
+ for (var i = 0; i < message.additionalVariables.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.ConfigVariableTemplate.verify(message.additionalVariables[i]);
+ if (error)
+ return "additionalVariables." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SslConfigTemplate message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.SslConfigTemplate} SslConfigTemplate
+ */
+ SslConfigTemplate.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.SslConfigTemplate)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.SslConfigTemplate();
+ switch (object.sslType) {
+ default:
+ if (typeof object.sslType === "number") {
+ message.sslType = object.sslType;
+ break;
+ }
+ break;
+ case "SSL_TYPE_UNSPECIFIED":
+ case 0:
+ message.sslType = 0;
+ break;
+ case "TLS":
+ case 1:
+ message.sslType = 1;
+ break;
+ case "MTLS":
+ case 2:
+ message.sslType = 2;
+ break;
+ }
+ if (object.isTlsMandatory != null)
+ message.isTlsMandatory = Boolean(object.isTlsMandatory);
+ if (object.serverCertType) {
+ if (!Array.isArray(object.serverCertType))
+ throw TypeError(".google.cloud.connectors.v1.SslConfigTemplate.serverCertType: array expected");
+ message.serverCertType = [];
+ for (var i = 0; i < object.serverCertType.length; ++i)
+ switch (object.serverCertType[i]) {
+ default:
+ if (typeof object.serverCertType[i] === "number") {
+ message.serverCertType[i] = object.serverCertType[i];
+ break;
+ }
+ case "CERT_TYPE_UNSPECIFIED":
+ case 0:
+ message.serverCertType[i] = 0;
+ break;
+ case "PEM":
+ case 1:
+ message.serverCertType[i] = 1;
+ break;
+ }
+ }
+ if (object.clientCertType) {
+ if (!Array.isArray(object.clientCertType))
+ throw TypeError(".google.cloud.connectors.v1.SslConfigTemplate.clientCertType: array expected");
+ message.clientCertType = [];
+ for (var i = 0; i < object.clientCertType.length; ++i)
+ switch (object.clientCertType[i]) {
+ default:
+ if (typeof object.clientCertType[i] === "number") {
+ message.clientCertType[i] = object.clientCertType[i];
+ break;
+ }
+ case "CERT_TYPE_UNSPECIFIED":
+ case 0:
+ message.clientCertType[i] = 0;
+ break;
+ case "PEM":
+ case 1:
+ message.clientCertType[i] = 1;
+ break;
+ }
+ }
+ if (object.additionalVariables) {
+ if (!Array.isArray(object.additionalVariables))
+ throw TypeError(".google.cloud.connectors.v1.SslConfigTemplate.additionalVariables: array expected");
+ message.additionalVariables = [];
+ for (var i = 0; i < object.additionalVariables.length; ++i) {
+ if (typeof object.additionalVariables[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.SslConfigTemplate.additionalVariables: object expected");
+ message.additionalVariables[i] = $root.google.cloud.connectors.v1.ConfigVariableTemplate.fromObject(object.additionalVariables[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SslConfigTemplate message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {google.cloud.connectors.v1.SslConfigTemplate} message SslConfigTemplate
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SslConfigTemplate.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.serverCertType = [];
+ object.clientCertType = [];
+ object.additionalVariables = [];
+ }
+ if (options.defaults) {
+ object.sslType = options.enums === String ? "SSL_TYPE_UNSPECIFIED" : 0;
+ object.isTlsMandatory = false;
+ }
+ if (message.sslType != null && message.hasOwnProperty("sslType"))
+ object.sslType = options.enums === String ? $root.google.cloud.connectors.v1.SslType[message.sslType] === undefined ? message.sslType : $root.google.cloud.connectors.v1.SslType[message.sslType] : message.sslType;
+ if (message.isTlsMandatory != null && message.hasOwnProperty("isTlsMandatory"))
+ object.isTlsMandatory = message.isTlsMandatory;
+ if (message.serverCertType && message.serverCertType.length) {
+ object.serverCertType = [];
+ for (var j = 0; j < message.serverCertType.length; ++j)
+ object.serverCertType[j] = options.enums === String ? $root.google.cloud.connectors.v1.CertType[message.serverCertType[j]] === undefined ? message.serverCertType[j] : $root.google.cloud.connectors.v1.CertType[message.serverCertType[j]] : message.serverCertType[j];
+ }
+ if (message.clientCertType && message.clientCertType.length) {
+ object.clientCertType = [];
+ for (var j = 0; j < message.clientCertType.length; ++j)
+ object.clientCertType[j] = options.enums === String ? $root.google.cloud.connectors.v1.CertType[message.clientCertType[j]] === undefined ? message.clientCertType[j] : $root.google.cloud.connectors.v1.CertType[message.clientCertType[j]] : message.clientCertType[j];
+ }
+ if (message.additionalVariables && message.additionalVariables.length) {
+ object.additionalVariables = [];
+ for (var j = 0; j < message.additionalVariables.length; ++j)
+ object.additionalVariables[j] = $root.google.cloud.connectors.v1.ConfigVariableTemplate.toObject(message.additionalVariables[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this SslConfigTemplate to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SslConfigTemplate.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SslConfigTemplate
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.SslConfigTemplate
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SslConfigTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.SslConfigTemplate";
+ };
+
+ return SslConfigTemplate;
+ })();
+
+ v1.SslConfig = (function() {
+
+ /**
+ * Properties of a SslConfig.
+ * @memberof google.cloud.connectors.v1
+ * @interface ISslConfig
+ * @property {google.cloud.connectors.v1.SslType|null} [type] SslConfig type
+ * @property {google.cloud.connectors.v1.SslConfig.TrustModel|null} [trustModel] SslConfig trustModel
+ * @property {google.cloud.connectors.v1.ISecret|null} [privateServerCertificate] SslConfig privateServerCertificate
+ * @property {google.cloud.connectors.v1.ISecret|null} [clientCertificate] SslConfig clientCertificate
+ * @property {google.cloud.connectors.v1.ISecret|null} [clientPrivateKey] SslConfig clientPrivateKey
+ * @property {google.cloud.connectors.v1.ISecret|null} [clientPrivateKeyPass] SslConfig clientPrivateKeyPass
+ * @property {google.cloud.connectors.v1.CertType|null} [serverCertType] SslConfig serverCertType
+ * @property {google.cloud.connectors.v1.CertType|null} [clientCertType] SslConfig clientCertType
+ * @property {boolean|null} [useSsl] SslConfig useSsl
+ * @property {Array.|null} [additionalVariables] SslConfig additionalVariables
+ */
+
+ /**
+ * Constructs a new SslConfig.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a SslConfig.
+ * @implements ISslConfig
+ * @constructor
+ * @param {google.cloud.connectors.v1.ISslConfig=} [properties] Properties to set
+ */
+ function SslConfig(properties) {
+ this.additionalVariables = [];
+ 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]];
+ }
+
+ /**
+ * SslConfig type.
+ * @member {google.cloud.connectors.v1.SslType} type
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.type = 0;
+
+ /**
+ * SslConfig trustModel.
+ * @member {google.cloud.connectors.v1.SslConfig.TrustModel} trustModel
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.trustModel = 0;
+
+ /**
+ * SslConfig privateServerCertificate.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} privateServerCertificate
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.privateServerCertificate = null;
+
+ /**
+ * SslConfig clientCertificate.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} clientCertificate
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.clientCertificate = null;
+
+ /**
+ * SslConfig clientPrivateKey.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} clientPrivateKey
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.clientPrivateKey = null;
+
+ /**
+ * SslConfig clientPrivateKeyPass.
+ * @member {google.cloud.connectors.v1.ISecret|null|undefined} clientPrivateKeyPass
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.clientPrivateKeyPass = null;
+
+ /**
+ * SslConfig serverCertType.
+ * @member {google.cloud.connectors.v1.CertType} serverCertType
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.serverCertType = 0;
+
+ /**
+ * SslConfig clientCertType.
+ * @member {google.cloud.connectors.v1.CertType} clientCertType
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.clientCertType = 0;
+
+ /**
+ * SslConfig useSsl.
+ * @member {boolean} useSsl
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.useSsl = false;
+
+ /**
+ * SslConfig additionalVariables.
+ * @member {Array.} additionalVariables
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ */
+ SslConfig.prototype.additionalVariables = $util.emptyArray;
+
+ /**
+ * Creates a new SslConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {google.cloud.connectors.v1.ISslConfig=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.SslConfig} SslConfig instance
+ */
+ SslConfig.create = function create(properties) {
+ return new SslConfig(properties);
+ };
+
+ /**
+ * Encodes the specified SslConfig message. Does not implicitly {@link google.cloud.connectors.v1.SslConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {google.cloud.connectors.v1.ISslConfig} message SslConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SslConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
+ if (message.trustModel != null && Object.hasOwnProperty.call(message, "trustModel"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trustModel);
+ if (message.privateServerCertificate != null && Object.hasOwnProperty.call(message, "privateServerCertificate"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.privateServerCertificate, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.clientCertificate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.clientPrivateKey != null && Object.hasOwnProperty.call(message, "clientPrivateKey"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.clientPrivateKey, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.clientPrivateKeyPass != null && Object.hasOwnProperty.call(message, "clientPrivateKeyPass"))
+ $root.google.cloud.connectors.v1.Secret.encode(message.clientPrivateKeyPass, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.serverCertType != null && Object.hasOwnProperty.call(message, "serverCertType"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.serverCertType);
+ if (message.clientCertType != null && Object.hasOwnProperty.call(message, "clientCertType"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.clientCertType);
+ if (message.useSsl != null && Object.hasOwnProperty.call(message, "useSsl"))
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.useSsl);
+ if (message.additionalVariables != null && message.additionalVariables.length)
+ for (var i = 0; i < message.additionalVariables.length; ++i)
+ $root.google.cloud.connectors.v1.ConfigVariable.encode(message.additionalVariables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SslConfig message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.SslConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {google.cloud.connectors.v1.ISslConfig} message SslConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SslConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SslConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.SslConfig} SslConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SslConfig.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.connectors.v1.SslConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.int32();
+ break;
+ }
+ case 2: {
+ message.trustModel = reader.int32();
+ break;
+ }
+ case 3: {
+ message.privateServerCertificate = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.clientCertificate = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.clientPrivateKey = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.clientPrivateKeyPass = $root.google.cloud.connectors.v1.Secret.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.serverCertType = reader.int32();
+ break;
+ }
+ case 8: {
+ message.clientCertType = reader.int32();
+ break;
+ }
+ case 9: {
+ message.useSsl = reader.bool();
+ break;
+ }
+ case 10: {
+ if (!(message.additionalVariables && message.additionalVariables.length))
+ message.additionalVariables = [];
+ message.additionalVariables.push($root.google.cloud.connectors.v1.ConfigVariable.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SslConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.SslConfig} SslConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SslConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SslConfig message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SslConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.trustModel != null && message.hasOwnProperty("trustModel"))
+ switch (message.trustModel) {
+ default:
+ return "trustModel: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.privateServerCertificate != null && message.hasOwnProperty("privateServerCertificate")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.privateServerCertificate);
+ if (error)
+ return "privateServerCertificate." + error;
+ }
+ if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.clientCertificate);
+ if (error)
+ return "clientCertificate." + error;
+ }
+ if (message.clientPrivateKey != null && message.hasOwnProperty("clientPrivateKey")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.clientPrivateKey);
+ if (error)
+ return "clientPrivateKey." + error;
+ }
+ if (message.clientPrivateKeyPass != null && message.hasOwnProperty("clientPrivateKeyPass")) {
+ var error = $root.google.cloud.connectors.v1.Secret.verify(message.clientPrivateKeyPass);
+ if (error)
+ return "clientPrivateKeyPass." + error;
+ }
+ if (message.serverCertType != null && message.hasOwnProperty("serverCertType"))
+ switch (message.serverCertType) {
+ default:
+ return "serverCertType: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.clientCertType != null && message.hasOwnProperty("clientCertType"))
+ switch (message.clientCertType) {
+ default:
+ return "clientCertType: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.useSsl != null && message.hasOwnProperty("useSsl"))
+ if (typeof message.useSsl !== "boolean")
+ return "useSsl: boolean expected";
+ if (message.additionalVariables != null && message.hasOwnProperty("additionalVariables")) {
+ if (!Array.isArray(message.additionalVariables))
+ return "additionalVariables: array expected";
+ for (var i = 0; i < message.additionalVariables.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.ConfigVariable.verify(message.additionalVariables[i]);
+ if (error)
+ return "additionalVariables." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SslConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.SslConfig} SslConfig
+ */
+ SslConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.SslConfig)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.SslConfig();
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "SSL_TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "TLS":
+ case 1:
+ message.type = 1;
+ break;
+ case "MTLS":
+ case 2:
+ message.type = 2;
+ break;
+ }
+ switch (object.trustModel) {
+ default:
+ if (typeof object.trustModel === "number") {
+ message.trustModel = object.trustModel;
+ break;
+ }
+ break;
+ case "PUBLIC":
+ case 0:
+ message.trustModel = 0;
+ break;
+ case "PRIVATE":
+ case 1:
+ message.trustModel = 1;
+ break;
+ case "INSECURE":
+ case 2:
+ message.trustModel = 2;
+ break;
+ }
+ if (object.privateServerCertificate != null) {
+ if (typeof object.privateServerCertificate !== "object")
+ throw TypeError(".google.cloud.connectors.v1.SslConfig.privateServerCertificate: object expected");
+ message.privateServerCertificate = $root.google.cloud.connectors.v1.Secret.fromObject(object.privateServerCertificate);
+ }
+ if (object.clientCertificate != null) {
+ if (typeof object.clientCertificate !== "object")
+ throw TypeError(".google.cloud.connectors.v1.SslConfig.clientCertificate: object expected");
+ message.clientCertificate = $root.google.cloud.connectors.v1.Secret.fromObject(object.clientCertificate);
+ }
+ if (object.clientPrivateKey != null) {
+ if (typeof object.clientPrivateKey !== "object")
+ throw TypeError(".google.cloud.connectors.v1.SslConfig.clientPrivateKey: object expected");
+ message.clientPrivateKey = $root.google.cloud.connectors.v1.Secret.fromObject(object.clientPrivateKey);
+ }
+ if (object.clientPrivateKeyPass != null) {
+ if (typeof object.clientPrivateKeyPass !== "object")
+ throw TypeError(".google.cloud.connectors.v1.SslConfig.clientPrivateKeyPass: object expected");
+ message.clientPrivateKeyPass = $root.google.cloud.connectors.v1.Secret.fromObject(object.clientPrivateKeyPass);
+ }
+ switch (object.serverCertType) {
+ default:
+ if (typeof object.serverCertType === "number") {
+ message.serverCertType = object.serverCertType;
+ break;
+ }
+ break;
+ case "CERT_TYPE_UNSPECIFIED":
+ case 0:
+ message.serverCertType = 0;
+ break;
+ case "PEM":
+ case 1:
+ message.serverCertType = 1;
+ break;
+ }
+ switch (object.clientCertType) {
+ default:
+ if (typeof object.clientCertType === "number") {
+ message.clientCertType = object.clientCertType;
+ break;
+ }
+ break;
+ case "CERT_TYPE_UNSPECIFIED":
+ case 0:
+ message.clientCertType = 0;
+ break;
+ case "PEM":
+ case 1:
+ message.clientCertType = 1;
+ break;
+ }
+ if (object.useSsl != null)
+ message.useSsl = Boolean(object.useSsl);
+ if (object.additionalVariables) {
+ if (!Array.isArray(object.additionalVariables))
+ throw TypeError(".google.cloud.connectors.v1.SslConfig.additionalVariables: array expected");
+ message.additionalVariables = [];
+ for (var i = 0; i < object.additionalVariables.length; ++i) {
+ if (typeof object.additionalVariables[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.SslConfig.additionalVariables: object expected");
+ message.additionalVariables[i] = $root.google.cloud.connectors.v1.ConfigVariable.fromObject(object.additionalVariables[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SslConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {google.cloud.connectors.v1.SslConfig} message SslConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SslConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalVariables = [];
+ if (options.defaults) {
+ object.type = options.enums === String ? "SSL_TYPE_UNSPECIFIED" : 0;
+ object.trustModel = options.enums === String ? "PUBLIC" : 0;
+ object.privateServerCertificate = null;
+ object.clientCertificate = null;
+ object.clientPrivateKey = null;
+ object.clientPrivateKeyPass = null;
+ object.serverCertType = options.enums === String ? "CERT_TYPE_UNSPECIFIED" : 0;
+ object.clientCertType = options.enums === String ? "CERT_TYPE_UNSPECIFIED" : 0;
+ object.useSsl = false;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.cloud.connectors.v1.SslType[message.type] === undefined ? message.type : $root.google.cloud.connectors.v1.SslType[message.type] : message.type;
+ if (message.trustModel != null && message.hasOwnProperty("trustModel"))
+ object.trustModel = options.enums === String ? $root.google.cloud.connectors.v1.SslConfig.TrustModel[message.trustModel] === undefined ? message.trustModel : $root.google.cloud.connectors.v1.SslConfig.TrustModel[message.trustModel] : message.trustModel;
+ if (message.privateServerCertificate != null && message.hasOwnProperty("privateServerCertificate"))
+ object.privateServerCertificate = $root.google.cloud.connectors.v1.Secret.toObject(message.privateServerCertificate, options);
+ if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate"))
+ object.clientCertificate = $root.google.cloud.connectors.v1.Secret.toObject(message.clientCertificate, options);
+ if (message.clientPrivateKey != null && message.hasOwnProperty("clientPrivateKey"))
+ object.clientPrivateKey = $root.google.cloud.connectors.v1.Secret.toObject(message.clientPrivateKey, options);
+ if (message.clientPrivateKeyPass != null && message.hasOwnProperty("clientPrivateKeyPass"))
+ object.clientPrivateKeyPass = $root.google.cloud.connectors.v1.Secret.toObject(message.clientPrivateKeyPass, options);
+ if (message.serverCertType != null && message.hasOwnProperty("serverCertType"))
+ object.serverCertType = options.enums === String ? $root.google.cloud.connectors.v1.CertType[message.serverCertType] === undefined ? message.serverCertType : $root.google.cloud.connectors.v1.CertType[message.serverCertType] : message.serverCertType;
+ if (message.clientCertType != null && message.hasOwnProperty("clientCertType"))
+ object.clientCertType = options.enums === String ? $root.google.cloud.connectors.v1.CertType[message.clientCertType] === undefined ? message.clientCertType : $root.google.cloud.connectors.v1.CertType[message.clientCertType] : message.clientCertType;
+ if (message.useSsl != null && message.hasOwnProperty("useSsl"))
+ object.useSsl = message.useSsl;
+ if (message.additionalVariables && message.additionalVariables.length) {
+ object.additionalVariables = [];
+ for (var j = 0; j < message.additionalVariables.length; ++j)
+ object.additionalVariables[j] = $root.google.cloud.connectors.v1.ConfigVariable.toObject(message.additionalVariables[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this SslConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SslConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SslConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.SslConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SslConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.SslConfig";
+ };
+
+ /**
+ * TrustModel enum.
+ * @name google.cloud.connectors.v1.SslConfig.TrustModel
+ * @enum {number}
+ * @property {number} PUBLIC=0 PUBLIC value
+ * @property {number} PRIVATE=1 PRIVATE value
+ * @property {number} INSECURE=2 INSECURE value
+ */
+ SslConfig.TrustModel = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "PUBLIC"] = 0;
+ values[valuesById[1] = "PRIVATE"] = 1;
+ values[valuesById[2] = "INSECURE"] = 2;
+ return values;
+ })();
+
+ return SslConfig;
+ })();
+
+ /**
+ * SslType enum.
+ * @name google.cloud.connectors.v1.SslType
+ * @enum {number}
+ * @property {number} SSL_TYPE_UNSPECIFIED=0 SSL_TYPE_UNSPECIFIED value
+ * @property {number} TLS=1 TLS value
+ * @property {number} MTLS=2 MTLS value
+ */
+ v1.SslType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SSL_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "TLS"] = 1;
+ values[valuesById[2] = "MTLS"] = 2;
+ return values;
+ })();
+
+ /**
+ * CertType enum.
+ * @name google.cloud.connectors.v1.CertType
+ * @enum {number}
+ * @property {number} CERT_TYPE_UNSPECIFIED=0 CERT_TYPE_UNSPECIFIED value
+ * @property {number} PEM=1 PEM value
+ */
+ v1.CertType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CERT_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PEM"] = 1;
+ return values;
+ })();
+
+ v1.Connector = (function() {
+
+ /**
+ * Properties of a Connector.
+ * @memberof google.cloud.connectors.v1
+ * @interface IConnector
+ * @property {string|null} [name] Connector name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Connector createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Connector updateTime
+ * @property {Object.|null} [labels] Connector labels
+ * @property {string|null} [documentationUri] Connector documentationUri
+ * @property {string|null} [externalUri] Connector externalUri
+ * @property {string|null} [description] Connector description
+ * @property {string|null} [webAssetsLocation] Connector webAssetsLocation
+ * @property {string|null} [displayName] Connector displayName
+ * @property {google.cloud.connectors.v1.LaunchStage|null} [launchStage] Connector launchStage
+ */
+
+ /**
+ * Constructs a new Connector.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a Connector.
+ * @implements IConnector
+ * @constructor
+ * @param {google.cloud.connectors.v1.IConnector=} [properties] Properties to set
+ */
+ function Connector(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]];
+ }
+
+ /**
+ * Connector name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.name = "";
+
+ /**
+ * Connector createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.createTime = null;
+
+ /**
+ * Connector updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.updateTime = null;
+
+ /**
+ * Connector labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.labels = $util.emptyObject;
+
+ /**
+ * Connector documentationUri.
+ * @member {string} documentationUri
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.documentationUri = "";
+
+ /**
+ * Connector externalUri.
+ * @member {string} externalUri
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.externalUri = "";
+
+ /**
+ * Connector description.
+ * @member {string} description
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.description = "";
+
+ /**
+ * Connector webAssetsLocation.
+ * @member {string} webAssetsLocation
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.webAssetsLocation = "";
+
+ /**
+ * Connector displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.displayName = "";
+
+ /**
+ * Connector launchStage.
+ * @member {google.cloud.connectors.v1.LaunchStage} launchStage
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ */
+ Connector.prototype.launchStage = 0;
+
+ /**
+ * Creates a new Connector instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {google.cloud.connectors.v1.IConnector=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.Connector} Connector instance
+ */
+ Connector.create = function create(properties) {
+ return new Connector(properties);
+ };
+
+ /**
+ * Encodes the specified Connector message. Does not implicitly {@link google.cloud.connectors.v1.Connector.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {google.cloud.connectors.v1.IConnector} message Connector message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Connector.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.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.documentationUri);
+ if (message.externalUri != null && Object.hasOwnProperty.call(message, "externalUri"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.externalUri);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.description);
+ if (message.webAssetsLocation != null && Object.hasOwnProperty.call(message, "webAssetsLocation"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.webAssetsLocation);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.displayName);
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.launchStage);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Connector message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.Connector.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {google.cloud.connectors.v1.IConnector} message Connector message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Connector.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Connector message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.Connector} Connector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Connector.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.connectors.v1.Connector(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 6: {
+ message.documentationUri = reader.string();
+ break;
+ }
+ case 7: {
+ message.externalUri = reader.string();
+ break;
+ }
+ case 8: {
+ message.description = reader.string();
+ break;
+ }
+ case 9: {
+ message.webAssetsLocation = reader.string();
+ break;
+ }
+ case 10: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 11: {
+ message.launchStage = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Connector message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.Connector} Connector
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Connector.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Connector message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Connector.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.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.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ if (!$util.isString(message.documentationUri))
+ return "documentationUri: string expected";
+ if (message.externalUri != null && message.hasOwnProperty("externalUri"))
+ if (!$util.isString(message.externalUri))
+ return "externalUri: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.webAssetsLocation != null && message.hasOwnProperty("webAssetsLocation"))
+ if (!$util.isString(message.webAssetsLocation))
+ return "webAssetsLocation: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
+ switch (message.launchStage) {
+ default:
+ return "launchStage: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 5:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Connector message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.Connector} Connector
+ */
+ Connector.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.Connector)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.Connector();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connector.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.connectors.v1.Connector.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.connectors.v1.Connector.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.documentationUri != null)
+ message.documentationUri = String(object.documentationUri);
+ if (object.externalUri != null)
+ message.externalUri = String(object.externalUri);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.webAssetsLocation != null)
+ message.webAssetsLocation = String(object.webAssetsLocation);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ 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 "PREVIEW":
+ case 1:
+ message.launchStage = 1;
+ break;
+ case "GA":
+ case 2:
+ message.launchStage = 2;
+ break;
+ case "DEPRECATED":
+ case 3:
+ message.launchStage = 3;
+ break;
+ case "PRIVATE_PREVIEW":
+ case 5:
+ message.launchStage = 5;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Connector message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {google.cloud.connectors.v1.Connector} message Connector
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Connector.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.documentationUri = "";
+ object.externalUri = "";
+ object.description = "";
+ object.webAssetsLocation = "";
+ object.displayName = "";
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_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.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ object.documentationUri = message.documentationUri;
+ if (message.externalUri != null && message.hasOwnProperty("externalUri"))
+ object.externalUri = message.externalUri;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.webAssetsLocation != null && message.hasOwnProperty("webAssetsLocation"))
+ object.webAssetsLocation = message.webAssetsLocation;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
+ object.launchStage = options.enums === String ? $root.google.cloud.connectors.v1.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.cloud.connectors.v1.LaunchStage[message.launchStage] : message.launchStage;
+ return object;
+ };
+
+ /**
+ * Converts this Connector to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.Connector
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Connector.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Connector
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.Connector
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Connector.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.Connector";
+ };
+
+ return Connector;
+ })();
+
+ v1.GetConnectorRequest = (function() {
+
+ /**
+ * Properties of a GetConnectorRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IGetConnectorRequest
+ * @property {string|null} [name] GetConnectorRequest name
+ */
+
+ /**
+ * Constructs a new GetConnectorRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a GetConnectorRequest.
+ * @implements IGetConnectorRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IGetConnectorRequest=} [properties] Properties to set
+ */
+ function GetConnectorRequest(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]];
+ }
+
+ /**
+ * GetConnectorRequest name.
+ * @member {string} name
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @instance
+ */
+ GetConnectorRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetConnectorRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectorRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.GetConnectorRequest} GetConnectorRequest instance
+ */
+ GetConnectorRequest.create = function create(properties) {
+ return new GetConnectorRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetConnectorRequest message. Does not implicitly {@link google.cloud.connectors.v1.GetConnectorRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectorRequest} message GetConnectorRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectorRequest.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 GetConnectorRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.GetConnectorRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IGetConnectorRequest} message GetConnectorRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectorRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetConnectorRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.GetConnectorRequest} GetConnectorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectorRequest.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.connectors.v1.GetConnectorRequest();
+ 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 GetConnectorRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.GetConnectorRequest} GetConnectorRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectorRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetConnectorRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetConnectorRequest.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 GetConnectorRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.GetConnectorRequest} GetConnectorRequest
+ */
+ GetConnectorRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.GetConnectorRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.GetConnectorRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetConnectorRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {google.cloud.connectors.v1.GetConnectorRequest} message GetConnectorRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetConnectorRequest.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 GetConnectorRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetConnectorRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetConnectorRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.GetConnectorRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetConnectorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.GetConnectorRequest";
+ };
+
+ return GetConnectorRequest;
+ })();
+
+ v1.ListConnectorsRequest = (function() {
+
+ /**
+ * Properties of a ListConnectorsRequest.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListConnectorsRequest
+ * @property {string|null} [parent] ListConnectorsRequest parent
+ * @property {number|null} [pageSize] ListConnectorsRequest pageSize
+ * @property {string|null} [pageToken] ListConnectorsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListConnectorsRequest.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListConnectorsRequest.
+ * @implements IListConnectorsRequest
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListConnectorsRequest=} [properties] Properties to set
+ */
+ function ListConnectorsRequest(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]];
+ }
+
+ /**
+ * ListConnectorsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @instance
+ */
+ ListConnectorsRequest.prototype.parent = "";
+
+ /**
+ * ListConnectorsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @instance
+ */
+ ListConnectorsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListConnectorsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @instance
+ */
+ ListConnectorsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListConnectorsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectorsRequest=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListConnectorsRequest} ListConnectorsRequest instance
+ */
+ ListConnectorsRequest.create = function create(properties) {
+ return new ListConnectorsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListConnectorsRequest message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectorsRequest} message ListConnectorsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectorsRequest.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 ListConnectorsRequest message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectorsRequest} message ListConnectorsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectorsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConnectorsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListConnectorsRequest} ListConnectorsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectorsRequest.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.connectors.v1.ListConnectorsRequest();
+ 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 ListConnectorsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListConnectorsRequest} ListConnectorsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectorsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConnectorsRequest message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConnectorsRequest.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 ListConnectorsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListConnectorsRequest} ListConnectorsRequest
+ */
+ ListConnectorsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListConnectorsRequest)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListConnectorsRequest();
+ 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 ListConnectorsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {google.cloud.connectors.v1.ListConnectorsRequest} message ListConnectorsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListConnectorsRequest.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 ListConnectorsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListConnectorsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListConnectorsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.connectors.v1.ListConnectorsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListConnectorsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.connectors.v1.ListConnectorsRequest";
+ };
+
+ return ListConnectorsRequest;
+ })();
+
+ v1.ListConnectorsResponse = (function() {
+
+ /**
+ * Properties of a ListConnectorsResponse.
+ * @memberof google.cloud.connectors.v1
+ * @interface IListConnectorsResponse
+ * @property {Array.|null} [connectors] ListConnectorsResponse connectors
+ * @property {string|null} [nextPageToken] ListConnectorsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListConnectorsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListConnectorsResponse.
+ * @memberof google.cloud.connectors.v1
+ * @classdesc Represents a ListConnectorsResponse.
+ * @implements IListConnectorsResponse
+ * @constructor
+ * @param {google.cloud.connectors.v1.IListConnectorsResponse=} [properties] Properties to set
+ */
+ function ListConnectorsResponse(properties) {
+ this.connectors = [];
+ 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]];
+ }
+
+ /**
+ * ListConnectorsResponse connectors.
+ * @member {Array.} connectors
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @instance
+ */
+ ListConnectorsResponse.prototype.connectors = $util.emptyArray;
+
+ /**
+ * ListConnectorsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @instance
+ */
+ ListConnectorsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListConnectorsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @instance
+ */
+ ListConnectorsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListConnectorsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectorsResponse=} [properties] Properties to set
+ * @returns {google.cloud.connectors.v1.ListConnectorsResponse} ListConnectorsResponse instance
+ */
+ ListConnectorsResponse.create = function create(properties) {
+ return new ListConnectorsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListConnectorsResponse message. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectorsResponse} message ListConnectorsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectorsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.connectors != null && message.connectors.length)
+ for (var i = 0; i < message.connectors.length; ++i)
+ $root.google.cloud.connectors.v1.Connector.encode(message.connectors[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 ListConnectorsResponse message, length delimited. Does not implicitly {@link google.cloud.connectors.v1.ListConnectorsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.IListConnectorsResponse} message ListConnectorsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectorsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConnectorsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.connectors.v1.ListConnectorsResponse} ListConnectorsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectorsResponse.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.connectors.v1.ListConnectorsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.connectors && message.connectors.length))
+ message.connectors = [];
+ message.connectors.push($root.google.cloud.connectors.v1.Connector.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 ListConnectorsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.connectors.v1.ListConnectorsResponse} ListConnectorsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectorsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConnectorsResponse message.
+ * @function verify
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConnectorsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.connectors != null && message.hasOwnProperty("connectors")) {
+ if (!Array.isArray(message.connectors))
+ return "connectors: array expected";
+ for (var i = 0; i < message.connectors.length; ++i) {
+ var error = $root.google.cloud.connectors.v1.Connector.verify(message.connectors[i]);
+ if (error)
+ return "connectors." + 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 ListConnectorsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.connectors.v1.ListConnectorsResponse} ListConnectorsResponse
+ */
+ ListConnectorsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.connectors.v1.ListConnectorsResponse)
+ return object;
+ var message = new $root.google.cloud.connectors.v1.ListConnectorsResponse();
+ if (object.connectors) {
+ if (!Array.isArray(object.connectors))
+ throw TypeError(".google.cloud.connectors.v1.ListConnectorsResponse.connectors: array expected");
+ message.connectors = [];
+ for (var i = 0; i < object.connectors.length; ++i) {
+ if (typeof object.connectors[i] !== "object")
+ throw TypeError(".google.cloud.connectors.v1.ListConnectorsResponse.connectors: object expected");
+ message.connectors[i] = $root.google.cloud.connectors.v1.Connector.fromObject(object.connectors[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.connectors.v1.ListConnectorsResponse.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 ListConnectorsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.connectors.v1.ListConnectorsResponse
+ * @static
+ * @param {google.cloud.connectors.v1.ListConnectorsResponse} message ListConnectorsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.