diff --git a/packages/google-cloud-eventarc/.eslintignore b/packages/google-cloud-eventarc/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-eventarc/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-eventarc/.eslintrc.json b/packages/google-cloud-eventarc/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-eventarc/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-eventarc/.gitattributes b/packages/google-cloud-eventarc/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-eventarc/.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-eventarc/.github/.OwlBot.yaml b/packages/google-cloud-eventarc/.github/.OwlBot.yaml
new file mode 100644
index 00000000000..584d8e09d6f
--- /dev/null
+++ b/packages/google-cloud-eventarc/.github/.OwlBot.yaml
@@ -0,0 +1,22 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+docker:
+ image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/eventarc/(v.*)/.*-nodejs/(.*)
+ dest: /owl-bot-staging/$1/$2
diff --git a/packages/google-cloud-eventarc/.gitignore b/packages/google-cloud-eventarc/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-eventarc/.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-eventarc/.jsdoc.js b/packages/google-cloud-eventarc/.jsdoc.js
new file mode 100644
index 00000000000..be8e69e2578
--- /dev/null
+++ b/packages/google-cloud-eventarc/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2022 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/eventarc',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-eventarc/.mocharc.js b/packages/google-cloud-eventarc/.mocharc.js
new file mode 100644
index 00000000000..0b600509bed
--- /dev/null
+++ b/packages/google-cloud-eventarc/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-eventarc/.nycrc b/packages/google-cloud-eventarc/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-eventarc/.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-eventarc/.prettierignore b/packages/google-cloud-eventarc/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-eventarc/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-eventarc/.prettierrc.js b/packages/google-cloud-eventarc/.prettierrc.js
new file mode 100644
index 00000000000..d1b95106f4c
--- /dev/null
+++ b/packages/google-cloud-eventarc/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-eventarc/.repo-metadata.json b/packages/google-cloud-eventarc/.repo-metadata.json
new file mode 100644
index 00000000000..9a4fba27db4
--- /dev/null
+++ b/packages/google-cloud-eventarc/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "eventarc",
+ "name_pretty": "Eventarc",
+ "product_documentation": "https://cloud.google.com/eventarc/",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/eventarc/latest",
+ "issue_tracker": "https://github.com/googleapis/nodejs-eventarc/issues",
+ "release_level": "stable",
+ "language": "nodejs",
+ "repo": "googleapis/nodejs-eventarc",
+ "distribution_name": "@google-cloud/eventarc",
+ "api_id": "eventarc.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "api_shortname": "eventarc",
+ "library_type": "GAPIC_AUTO",
+ "codeowner_team": "@googleapis/aap-dpes"
+}
diff --git a/packages/google-cloud-eventarc/CHANGELOG.md b/packages/google-cloud-eventarc/CHANGELOG.md
new file mode 100644
index 00000000000..3648e019d0e
--- /dev/null
+++ b/packages/google-cloud-eventarc/CHANGELOG.md
@@ -0,0 +1,110 @@
+# Changelog
+
+## [2.2.0](https://github.com/googleapis/nodejs-eventarc/compare/v2.1.1...v2.2.0) (2022-11-11)
+
+
+### Features
+
+* Add CMEK support to Eventarc client library ([#108](https://github.com/googleapis/nodejs-eventarc/issues/108)) ([dc3435d](https://github.com/googleapis/nodejs-eventarc/commit/dc3435d0aa624ad5e72acf84e82d38c056a1227f))
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#104](https://github.com/googleapis/nodejs-eventarc/issues/104)) ([29fc837](https://github.com/googleapis/nodejs-eventarc/commit/29fc83738cf6e9a5e55baedd89b2ed03dc49f4b0))
+* Preserve default values in x-goog-request-params header ([#97](https://github.com/googleapis/nodejs-eventarc/issues/97)) ([1a91d8e](https://github.com/googleapis/nodejs-eventarc/commit/1a91d8e7442d5336a862cb131b672d248a371aec))
+* Regenerated protos JS and TS definitions ([#107](https://github.com/googleapis/nodejs-eventarc/issues/107)) ([00fb085](https://github.com/googleapis/nodejs-eventarc/commit/00fb0854e7ba4c477437d9221086dccb88756a5c))
+
+## [2.1.1](https://github.com/googleapis/nodejs-eventarc/compare/v2.1.0...v2.1.1) (2022-09-01)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#94](https://github.com/googleapis/nodejs-eventarc/issues/94)) ([4510e6a](https://github.com/googleapis/nodejs-eventarc/commit/4510e6ae4129e391391a7dcf8a1d1ffdb32e5562))
+* Better support for fallback mode ([#87](https://github.com/googleapis/nodejs-eventarc/issues/87)) ([b3d5dc0](https://github.com/googleapis/nodejs-eventarc/commit/b3d5dc00e6b3543c962a6ec105fce70472d0ed3c))
+* Change import long to require ([#89](https://github.com/googleapis/nodejs-eventarc/issues/89)) ([6804ddf](https://github.com/googleapis/nodejs-eventarc/commit/6804ddf83e3df1d74a83db2a56ef23e934ef0cc7))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-eventarc/issues/1553)) ([#93](https://github.com/googleapis/nodejs-eventarc/issues/93)) ([3b133cd](https://github.com/googleapis/nodejs-eventarc/commit/3b133cdab07b4c302a1b9b48c897e8c4f8c6b3d9))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-eventarc/issues/1546)) ([#92](https://github.com/googleapis/nodejs-eventarc/issues/92)) ([4fccc50](https://github.com/googleapis/nodejs-eventarc/commit/4fccc5011cd9c4b22f16de3942eeba2313b08e46))
+
+## [2.1.0](https://github.com/googleapis/nodejs-eventarc/compare/v2.0.0...v2.1.0) (2022-06-30)
+
+
+### Features
+
+* support regapic LRO ([#79](https://github.com/googleapis/nodejs-eventarc/issues/79)) ([dcdcd8a](https://github.com/googleapis/nodejs-eventarc/commit/dcdcd8ac2f282f4bbf373e803da88487c7a81f1d))
+
+## [2.0.0](https://github.com/googleapis/nodejs-eventarc/compare/v1.2.0...v2.0.0) (2022-05-20)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#73)
+
+### Features
+
+* Add Provider resources ([#75](https://github.com/googleapis/nodejs-eventarc/issues/75)) ([ccda3a7](https://github.com/googleapis/nodejs-eventarc/commit/ccda3a7d2981b79cc692f8103c4f096ecc9fcf08))
+
+
+### Build System
+
+* update library to use Node 12 ([#73](https://github.com/googleapis/nodejs-eventarc/issues/73)) ([bd5c2a1](https://github.com/googleapis/nodejs-eventarc/commit/bd5c2a15758e5b387df663fcfa7cb2df1c416ebc))
+
+## [1.2.0](https://github.com/googleapis/nodejs-eventarc/compare/v1.1.2...v1.2.0) (2022-02-14)
+
+
+### Features
+
+* Add Channel and ChannelConnection resources ([#51](https://github.com/googleapis/nodejs-eventarc/issues/51)) ([bfae8c3](https://github.com/googleapis/nodejs-eventarc/commit/bfae8c32b6a3d3dec9bab906777d0cfae962dab6))
+
+### [1.1.2](https://www.github.com/googleapis/nodejs-eventarc/compare/v1.1.1...v1.1.2) (2021-09-27)
+
+
+### Bug Fixes
+
+* flag module as GA ([#25](https://www.github.com/googleapis/nodejs-eventarc/issues/25)) ([d918ba1](https://www.github.com/googleapis/nodejs-eventarc/commit/d918ba13ae87dbfca799b6136a0c31bc4c24cb71))
+
+### [1.1.1](https://www.github.com/googleapis/nodejs-eventarc/compare/v1.1.0...v1.1.1) (2021-09-07)
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#17](https://www.github.com/googleapis/nodejs-eventarc/issues/17)) ([f84f6ee](https://www.github.com/googleapis/nodejs-eventarc/commit/f84f6ee1aa8a86f8b78f0281c09ea3db388acfc1))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-eventarc/compare/v1.0.3...v1.1.0) (2021-08-23)
+
+
+### Features
+
+* turns on self-signed JWT feature flag ([#20](https://www.github.com/googleapis/nodejs-eventarc/issues/20)) ([32e7d47](https://www.github.com/googleapis/nodejs-eventarc/commit/32e7d47e695f6ea181ad40dd241c94ac218af6e0))
+
+### [1.0.3](https://www.github.com/googleapis/nodejs-eventarc/compare/v1.0.2...v1.0.3) (2021-08-17)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.24.1 ([#18](https://www.github.com/googleapis/nodejs-eventarc/issues/18)) ([b79618b](https://www.github.com/googleapis/nodejs-eventarc/commit/b79618b20957262678fa00c85203b045c6e34b63))
+
+### [1.0.2](https://www.github.com/googleapis/nodejs-eventarc/compare/v1.0.1...v1.0.2) (2021-07-21)
+
+
+### Bug Fixes
+
+* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#9](https://www.github.com/googleapis/nodejs-eventarc/issues/9)) ([8b5a101](https://www.github.com/googleapis/nodejs-eventarc/commit/8b5a101bc9c00aecdc387a93051e0b27b4dee121))
+
+### [1.0.1](https://www.github.com/googleapis/nodejs-eventarc/compare/v1.0.0...v1.0.1) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.1 ([#7](https://www.github.com/googleapis/nodejs-eventarc/issues/7)) ([462a712](https://www.github.com/googleapis/nodejs-eventarc/commit/462a712952481c1763908f094d493f3485ffc093))
+
+## 1.0.0 (2021-07-09)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial generation of library (#1)
+
+### Features
+
+* initial generation of library ([#1](https://www.github.com/googleapis/nodejs-eventarc/issues/1)) ([087c84e](https://www.github.com/googleapis/nodejs-eventarc/commit/087c84ebec0ee6f5e0ad277b0c488bfabbc73ffd))
+* initial stub of library ([bda50f0](https://www.github.com/googleapis/nodejs-eventarc/commit/bda50f0b9ebe8d347f1e99b321dd4185e92ee982))
diff --git a/packages/google-cloud-eventarc/CODE_OF_CONDUCT.md b/packages/google-cloud-eventarc/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-eventarc/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-eventarc/CONTRIBUTING.md b/packages/google-cloud-eventarc/CONTRIBUTING.md
new file mode 100644
index 00000000000..6c311259d88
--- /dev/null
+++ b/packages/google-cloud-eventarc/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 Eventarc 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=eventarc.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-eventarc/LICENSE b/packages/google-cloud-eventarc/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-eventarc/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-eventarc/README.md b/packages/google-cloud-eventarc/README.md
new file mode 100644
index 00000000000..82077787ccf
--- /dev/null
+++ b/packages/google-cloud-eventarc/README.md
@@ -0,0 +1,160 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Eventarc: Node.js Client](https://github.com/googleapis/nodejs-eventarc)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/eventarc)
+
+
+
+
+eventarc client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/nodejs-eventarc/blob/main/CHANGELOG.md).
+
+* [Eventarc Node.js Client API Reference][client-docs]
+* [Eventarc Documentation][product-docs]
+* [github.com/googleapis/nodejs-eventarc](https://github.com/googleapis/nodejs-eventarc)
+
+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 Eventarc 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/eventarc
+```
+
+
+### Using the client library
+
+```javascript
+// Imports the Google Cloud client library
+
+// remove this line after package is released
+const {EventarcClient} = require('@google-cloud/eventarc');
+
+// TODO: replace with your prefered project ID.
+// const projectId = 'my-project'
+
+// Creates a client
+const client = new EventarcClient();
+
+async function doSomething() {
+ for await (const trigger of await client.listTriggersAsync({
+ parent: client.locationPath(projectId, 'us-central1'),
+ })) {
+ console.info(trigger.name);
+ }
+}
+doSomething();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/nodejs-eventarc/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Quickstart | [source code](https://github.com/googleapis/nodejs-eventarc/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-eventarc&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+
+
+
+The [Eventarc Node.js Client API Reference][client-docs] documentation
+also contains samples.
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/eventarc@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
+unless absolutely necessary (e.g. because of critical security issues) or with
+an extensive deprecation period. Issues and requests against **stable** libraries
+are addressed with the highest priority.
+
+
+
+
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-eventarc/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/nodejs-eventarc/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/eventarc/latest
+[product-docs]: https://cloud.google.com/eventarc/
+[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=eventarc.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-eventarc/linkinator.config.json b/packages/google-cloud-eventarc/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-eventarc/linkinator.config.json
@@ -0,0 +1,16 @@
+{
+ "recurse": true,
+ "skip": [
+ "https://codecov.io/gh/googleapis/",
+ "www.googleapis.com",
+ "img.shields.io",
+ "https://console.cloud.google.com/cloudshell",
+ "https://support.google.com"
+ ],
+ "silent": true,
+ "concurrency": 5,
+ "retry": true,
+ "retryErrors": true,
+ "retryErrorsCount": 5,
+ "retryErrorsJitter": 3000
+}
diff --git a/packages/google-cloud-eventarc/package.json b/packages/google-cloud-eventarc/package.json
new file mode 100644
index 00000000000..466126c44b5
--- /dev/null
+++ b/packages/google-cloud-eventarc/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@google-cloud/eventarc",
+ "version": "2.2.0",
+ "description": "eventarc client for Node.js",
+ "repository": "googleapis/nodejs-eventarc",
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google eventarc",
+ "eventarc",
+ "eventarc service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.7.2",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.1.2",
+ "typescript": "^4.6.4",
+ "webpack": "^5.36.2",
+ "webpack-cli": "^4.7.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel.proto
new file mode 100644
index 00000000000..9c5395580b1
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel.proto
@@ -0,0 +1,120 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.eventarc.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Eventarc.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
+option java_multiple_files = true;
+option java_outer_classname = "ChannelProto";
+option java_package = "com.google.cloud.eventarc.v1";
+option php_namespace = "Google\\Cloud\\Eventarc\\V1";
+option ruby_package = "Google::Cloud::Eventarc::V1";
+
+// A representation of the Channel resource.
+// A Channel is a resource on which event providers publish their events.
+// The published events are delivered through the transport associated with the
+// channel. Note that a channel is associated with exactly one event provider.
+message Channel {
+ option (google.api.resource) = {
+ type: "eventarc.googleapis.com/Channel"
+ pattern: "projects/{project}/locations/{location}/channels/{channel}"
+ plural: "channels"
+ singular: "channel"
+ };
+
+ // State lists all the possible states of a Channel
+ enum State {
+ // Default value. This value is unused.
+ STATE_UNSPECIFIED = 0;
+
+ // The PENDING state indicates that a Channel has been created successfully
+ // and there is a new activation token available for the subscriber to use
+ // to convey the Channel to the provider in order to create a Connection.
+ PENDING = 1;
+
+ // The ACTIVE state indicates that a Channel has been successfully
+ // connected with the event provider.
+ // An ACTIVE Channel is ready to receive and route events from the
+ // event provider.
+ ACTIVE = 2;
+
+ // The INACTIVE state indicates that the Channel cannot receive events
+ // permanently. There are two possible cases this state can happen:
+ //
+ // 1. The SaaS provider disconnected from this Channel.
+ // 2. The Channel activation token has expired but the SaaS provider
+ // wasn't connected.
+ //
+ // To re-establish a Connection with a provider, the subscriber
+ // should create a new Channel and give it to the provider.
+ INACTIVE = 3;
+ }
+
+ // Required. The resource name of the channel. Must be unique within the
+ // location on the project and must be in
+ // `projects/{project}/locations/{location}/channels/{channel_id}` format.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Server assigned unique identifier for the channel. The value
+ // is a UUID4 string and guaranteed to remain unchanged until the resource is
+ // deleted.
+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The creation time.
+ google.protobuf.Timestamp create_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last-modified time.
+ google.protobuf.Timestamp update_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The name of the event provider (e.g. Eventarc SaaS partner) associated
+ // with the channel. This provider will be granted permissions to publish
+ // events to the channel. Format:
+ // `projects/{project}/locations/{location}/providers/{provider_id}`.
+ string provider = 7;
+
+ oneof transport {
+ // Output only. The name of the Pub/Sub topic created and managed by
+ // Eventarc system as a transport for the event delivery. Format:
+ // `projects/{project}/topics/{topic_id}`.
+ string pubsub_topic = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. The state of a Channel.
+ State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The activation token for the channel. The token must be used
+ // by the provider to register the channel for publishing.
+ string activation_token = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Resource name of a KMS crypto key (managed by the user) used to
+ // encrypt/decrypt their event data.
+ //
+ // It must match the pattern
+ // `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+ string crypto_key_name = 11 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+}
diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel_connection.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel_connection.proto
new file mode 100644
index 00000000000..576b5cc59f0
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/channel_connection.proto
@@ -0,0 +1,71 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.eventarc.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Eventarc.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
+option java_multiple_files = true;
+option java_outer_classname = "ChannelConnectionProto";
+option java_package = "com.google.cloud.eventarc.v1";
+option php_namespace = "Google\\Cloud\\Eventarc\\V1";
+option ruby_package = "Google::Cloud::Eventarc::V1";
+
+// A representation of the ChannelConnection resource.
+// A ChannelConnection is a resource which event providers create during the
+// activation process to establish a connection between the provider and the
+// subscriber channel.
+message ChannelConnection {
+ option (google.api.resource) = {
+ type: "eventarc.googleapis.com/ChannelConnection"
+ pattern: "projects/{project}/locations/{location}/channelConnections/{channel_connection}"
+ plural: "channelConnections"
+ singular: "channelConnection"
+ };
+
+ // Required. The name of the connection.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Server assigned ID of the resource.
+ // The server guarantees uniqueness and immutability until deleted.
+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. The name of the connected subscriber Channel.
+ // This is a weak reference to avoid cross project and cross accounts
+ // references. This must be in
+ // `projects/{project}/location/{location}/channels/{channel_id}` format.
+ string channel = 5 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+
+ // Output only. The creation time.
+ google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last-modified time.
+ google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Input only. Activation token for the channel. The token will be used
+ // during the creation of ChannelConnection to bind the channel with the
+ // provider project. This field will not be stored in the provider resource.
+ string activation_token = 8 [(google.api.field_behavior) = INPUT_ONLY];
+}
diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/discovery.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/discovery.proto
new file mode 100644
index 00000000000..44633de81a3
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/discovery.proto
@@ -0,0 +1,86 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.eventarc.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
+option java_multiple_files = true;
+option java_outer_classname = "DiscoveryProto";
+option java_package = "com.google.cloud.eventarc.v1";
+
+// A representation of the Provider resource.
+message Provider {
+ option (google.api.resource) = {
+ type: "eventarc.googleapis.com/Provider"
+ pattern: "projects/{project}/locations/{location}/providers/{provider}"
+ plural: "providers"
+ singular: "provider"
+ };
+
+ // Output only. In `projects/{project}/locations/{location}/providers/{provider_id}`
+ // format.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human friendly name for the Provider. For example "Cloud Storage".
+ string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Event types for this provider.
+ repeated EventType event_types = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A representation of the event type resource.
+message EventType {
+ // Output only. The full name of the event type (for example,
+ // "google.cloud.storage.object.v1.finalized"). In the form of
+ // {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
+ // versioned and event schemas are guaranteed to remain backward compatible
+ // within one version. Note that event type versions and API versions do not
+ // need to match.
+ string type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human friendly description of what the event type is about.
+ // For example "Bucket created in Cloud Storage".
+ string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Filtering attributes for the event type.
+ repeated FilteringAttribute filtering_attributes = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. URI for the event schema.
+ // For example
+ // "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
+ string event_schema_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A representation of the FilteringAttribute resource.
+// Filtering attributes are per event type.
+message FilteringAttribute {
+ // Output only. Attribute used for filtering the event type.
+ string attribute = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Description of the purpose of the attribute.
+ string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If true, the triggers for this provider should always specify a filter
+ // on these attributes. Trigger creation will fail otherwise.
+ bool required = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If true, the attribute accepts matching expressions in the Eventarc
+ // PathPattern format.
+ bool path_pattern_supported = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/eventarc.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/eventarc.proto
new file mode 100644
index 00000000000..44d46fce3b8
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/eventarc.proto
@@ -0,0 +1,632 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.eventarc.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/eventarc/v1/channel.proto";
+import "google/cloud/eventarc/v1/channel_connection.proto";
+import "google/cloud/eventarc/v1/discovery.proto";
+import "google/cloud/eventarc/v1/google_channel_config.proto";
+import "google/cloud/eventarc/v1/trigger.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Eventarc.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
+option java_multiple_files = true;
+option java_outer_classname = "EventarcProto";
+option java_package = "com.google.cloud.eventarc.v1";
+option php_namespace = "Google\\Cloud\\Eventarc\\V1";
+option ruby_package = "Google::Cloud::Eventarc::V1";
+
+// Eventarc allows users to subscribe to various events that are provided by
+// Google Cloud services and forward them to supported destinations.
+service Eventarc {
+ option (google.api.default_host) = "eventarc.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Get a single trigger.
+ rpc GetTrigger(GetTriggerRequest) returns (Trigger) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/triggers/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List triggers.
+ rpc ListTriggers(ListTriggersRequest) returns (ListTriggersResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/triggers"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Create a new trigger in a particular project and location.
+ rpc CreateTrigger(CreateTriggerRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/triggers"
+ body: "trigger"
+ };
+ option (google.api.method_signature) = "parent,trigger,trigger_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Trigger"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Update a single trigger.
+ rpc UpdateTrigger(UpdateTriggerRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{trigger.name=projects/*/locations/*/triggers/*}"
+ body: "trigger"
+ };
+ option (google.api.method_signature) = "trigger,update_mask,allow_missing";
+ option (google.longrunning.operation_info) = {
+ response_type: "Trigger"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Delete a single trigger.
+ rpc DeleteTrigger(DeleteTriggerRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/triggers/*}"
+ };
+ option (google.api.method_signature) = "name,allow_missing";
+ option (google.longrunning.operation_info) = {
+ response_type: "Trigger"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Get a single Channel.
+ rpc GetChannel(GetChannelRequest) returns (Channel) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/channels/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List channels.
+ rpc ListChannels(ListChannelsRequest) returns (ListChannelsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/channels"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Create a new channel in a particular project and location.
+ rpc CreateChannel(CreateChannelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/channels"
+ body: "channel"
+ };
+ option (google.api.method_signature) = "parent,channel,channel_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Channel"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Update a single channel.
+ rpc UpdateChannel(UpdateChannelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{channel.name=projects/*/locations/*/channels/*}"
+ body: "channel"
+ };
+ option (google.api.method_signature) = "channel,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Channel"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Delete a single channel.
+ rpc DeleteChannel(DeleteChannelRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/channels/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "Channel"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Get a single Provider.
+ rpc GetProvider(GetProviderRequest) returns (Provider) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/providers/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List providers.
+ rpc ListProviders(ListProvidersRequest) returns (ListProvidersResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/providers"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Get a single ChannelConnection.
+ rpc GetChannelConnection(GetChannelConnectionRequest) returns (ChannelConnection) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/channelConnections/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List channel connections.
+ rpc ListChannelConnections(ListChannelConnectionsRequest) returns (ListChannelConnectionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/channelConnections"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Create a new ChannelConnection in a particular project and location.
+ rpc CreateChannelConnection(CreateChannelConnectionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/channelConnections"
+ body: "channel_connection"
+ };
+ option (google.api.method_signature) = "parent,channel_connection,channel_connection_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "ChannelConnection"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Delete a single ChannelConnection.
+ rpc DeleteChannelConnection(DeleteChannelConnectionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/channelConnections/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "ChannelConnection"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Get a GoogleChannelConfig
+ rpc GetGoogleChannelConfig(GetGoogleChannelConfigRequest) returns (GoogleChannelConfig) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/googleChannelConfig}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Update a single GoogleChannelConfig
+ rpc UpdateGoogleChannelConfig(UpdateGoogleChannelConfigRequest) returns (GoogleChannelConfig) {
+ option (google.api.http) = {
+ patch: "/v1/{google_channel_config.name=projects/*/locations/*/googleChannelConfig}"
+ body: "google_channel_config"
+ };
+ option (google.api.method_signature) = "google_channel_config,update_mask";
+ }
+}
+
+// The request message for the GetTrigger method.
+message GetTriggerRequest {
+ // Required. The name of the trigger to get.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Trigger"
+ }
+ ];
+}
+
+// The request message for the ListTriggers method.
+message ListTriggersRequest {
+ // Required. The parent collection to list triggers on.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "eventarc.googleapis.com/Trigger"
+ }
+ ];
+
+ // The maximum number of triggers to return on each page.
+ //
+ // Note: The service may send fewer.
+ int32 page_size = 2;
+
+ // The page token; provide the value from the `next_page_token` field in a
+ // previous `ListTriggers` call to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListTriggers` must match
+ // the call that provided the page token.
+ string page_token = 3;
+
+ // The sorting order of the resources returned. Value should be a
+ // comma-separated list of fields. The default sorting order is ascending. To
+ // specify descending order for a field, append a `desc` suffix; for example:
+ // `name desc, trigger_id`.
+ string order_by = 4;
+
+ // Filter field. Used to filter the Triggers to be listed. Possible filters
+ // are described in https://google.aip.dev/160. For example, using
+ // "?filter=destination:gke" would list only Triggers with a gke destination.
+ string filter = 5;
+}
+
+// The response message for the `ListTriggers` method.
+message ListTriggersResponse {
+ // The requested triggers, up to the number specified in `page_size`.
+ repeated Trigger triggers = 1;
+
+ // A page token that can be sent to `ListTriggers` to request the next page.
+ // If this is empty, then there are no more pages.
+ string next_page_token = 2;
+
+ // Unreachable resources, if any.
+ repeated string unreachable = 3;
+}
+
+// The request message for the CreateTrigger method.
+message CreateTriggerRequest {
+ // Required. The parent collection in which to add this trigger.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "eventarc.googleapis.com/Trigger"
+ }
+ ];
+
+ // Required. The trigger to create.
+ Trigger trigger = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The user-provided ID to be assigned to the trigger.
+ string trigger_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. If set, validate the request and preview the review, but do not
+ // post it.
+ bool validate_only = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request message for the UpdateTrigger method.
+message UpdateTriggerRequest {
+ // The trigger to be updated.
+ Trigger trigger = 1;
+
+ // The fields to be updated; only fields explicitly provided are updated.
+ // If no field mask is provided, all provided fields in the request are
+ // updated. To update all fields, provide a field mask of "*".
+ google.protobuf.FieldMask update_mask = 2;
+
+ // If set to true, and the trigger is not found, a new trigger will be
+ // created. In this situation, `update_mask` is ignored.
+ bool allow_missing = 3;
+
+ // Required. If set, validate the request and preview the review, but do not
+ // post it.
+ bool validate_only = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request message for the DeleteTrigger method.
+message DeleteTriggerRequest {
+ // Required. The name of the trigger to be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Trigger"
+ }
+ ];
+
+ // If provided, the trigger will only be deleted if the etag matches the
+ // current etag on the resource.
+ string etag = 2;
+
+ // If set to true, and the trigger is not found, the request will succeed
+ // but no action will be taken on the server.
+ bool allow_missing = 3;
+
+ // Required. If set, validate the request and preview the review, but do not
+ // post it.
+ bool validate_only = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request message for the GetChannel method.
+message GetChannelRequest {
+ // Required. The name of the channel to get.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+}
+
+// The request message for the ListChannels method.
+message ListChannelsRequest {
+ // Required. The parent collection to list channels on.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+
+ // The maximum number of channels to return on each page.
+ //
+ // Note: The service may send fewer.
+ int32 page_size = 2;
+
+ // The page token; provide the value from the `next_page_token` field in a
+ // previous `ListChannels` call to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListChannels` must
+ // match the call that provided the page token.
+ string page_token = 3;
+
+ // The sorting order of the resources returned. Value should be a
+ // comma-separated list of fields. The default sorting order is ascending. To
+ // specify descending order for a field, append a `desc` suffix; for example:
+ // `name desc, channel_id`.
+ string order_by = 4;
+}
+
+// The response message for the `ListChannels` method.
+message ListChannelsResponse {
+ // The requested channels, up to the number specified in `page_size`.
+ repeated Channel channels = 1;
+
+ // A page token that can be sent to `ListChannels` to request the next page.
+ // If this is empty, then there are no more pages.
+ string next_page_token = 2;
+
+ // Unreachable resources, if any.
+ repeated string unreachable = 3;
+}
+
+// The request message for the CreateChannel method.
+message CreateChannelRequest {
+ // Required. The parent collection in which to add this channel.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+
+ // Required. The channel to create.
+ Channel channel = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The user-provided ID to be assigned to the channel.
+ string channel_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. If set, validate the request and preview the review, but do not
+ // post it.
+ bool validate_only = 4 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request message for the UpdateChannel method.
+message UpdateChannelRequest {
+ // The channel to be updated.
+ Channel channel = 1;
+
+ // The fields to be updated; only fields explicitly provided are updated.
+ // If no field mask is provided, all provided fields in the request are
+ // updated. To update all fields, provide a field mask of "*".
+ google.protobuf.FieldMask update_mask = 2;
+
+ // Required. If set, validate the request and preview the review, but do not
+ // post it.
+ bool validate_only = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request message for the DeleteChannel method.
+message DeleteChannelRequest {
+ // Required. The name of the channel to be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+
+ // Required. If set, validate the request and preview the review, but do not
+ // post it.
+ bool validate_only = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request message for the GetProvider method.
+message GetProviderRequest {
+ // Required. The name of the provider to get.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Provider"
+ }
+ ];
+}
+
+// The request message for the ListProviders method.
+message ListProvidersRequest {
+ // Required. The parent of the provider to get.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "eventarc.googleapis.com/Provider"
+ }
+ ];
+
+ // The maximum number of providers to return on each page.
+ int32 page_size = 2;
+
+ // The page token; provide the value from the `next_page_token` field in a
+ // previous `ListProviders` call to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListProviders` must
+ // match the call that provided the page token.
+ string page_token = 3;
+
+ // The sorting order of the resources returned. Value should be a
+ // comma-separated list of fields. The default sorting oder is ascending. To
+ // specify descending order for a field, append a `desc` suffix; for example:
+ // `name desc, _id`.
+ string order_by = 4;
+
+ // The filter field that the list request will filter on.
+ string filter = 5;
+}
+
+// The response message for the `ListProviders` method.
+message ListProvidersResponse {
+ // The requested providers, up to the number specified in `page_size`.
+ repeated Provider providers = 1;
+
+ // A page token that can be sent to `ListProviders` to request the next page.
+ // If this is empty, then there are no more pages.
+ string next_page_token = 2;
+
+ // Unreachable resources, if any.
+ repeated string unreachable = 3;
+}
+
+// The request message for the GetChannelConnection method.
+message GetChannelConnectionRequest {
+ // Required. The name of the channel connection to get.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/ChannelConnection"
+ }
+ ];
+}
+
+// The request message for the ListChannelConnections method.
+message ListChannelConnectionsRequest {
+ // Required. The parent collection from which to list channel connections.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "eventarc.googleapis.com/ChannelConnection"
+ }
+ ];
+
+ // The maximum number of channel connections to return on each page.
+ //
+ // Note: The service may send fewer responses.
+ int32 page_size = 2;
+
+ // The page token; provide the value from the `next_page_token` field in a
+ // previous `ListChannelConnections` call to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListChannelConnetions`
+ // match the call that provided the page token.
+ string page_token = 3;
+}
+
+// The response message for the `ListChannelConnections` method.
+message ListChannelConnectionsResponse {
+ // The requested channel connections, up to the number specified in
+ // `page_size`.
+ repeated ChannelConnection channel_connections = 1;
+
+ // A page token that can be sent to `ListChannelConnections` to request the
+ // next page.
+ // If this is empty, then there are no more pages.
+ string next_page_token = 2;
+
+ // Unreachable resources, if any.
+ repeated string unreachable = 3;
+}
+
+// The request message for the CreateChannelConnection method.
+message CreateChannelConnectionRequest {
+ // Required. The parent collection in which to add this channel connection.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "eventarc.googleapis.com/ChannelConnection"
+ }
+ ];
+
+ // Required. Channel connection to create.
+ ChannelConnection channel_connection = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The user-provided ID to be assigned to the channel connection.
+ string channel_connection_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The request message for the DeleteChannelConnection method.
+message DeleteChannelConnectionRequest {
+ // Required. The name of the channel connection to delete.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/ChannelConnection"
+ }
+ ];
+}
+
+// The request message for the UpdateGoogleChannelConfig method.
+message UpdateGoogleChannelConfigRequest {
+ // Required. The config to be updated.
+ GoogleChannelConfig google_channel_config = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The fields to be updated; only fields explicitly provided are updated.
+ // If no field mask is provided, all provided fields in the request are
+ // updated. To update all fields, provide a field mask of "*".
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// The request message for the GetGoogleChannelConfig method.
+message GetGoogleChannelConfigRequest {
+ // Required. The name of the config to get.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/GoogleChannelConfig"
+ }
+ ];
+}
+
+// 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];
+}
diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/google_channel_config.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/google_channel_config.proto
new file mode 100644
index 00000000000..2b440b57dc4
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/google_channel_config.proto
@@ -0,0 +1,65 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.eventarc.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Eventarc.V1";
+option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
+option java_multiple_files = true;
+option java_outer_classname = "GoogleChannelConfigProto";
+option java_package = "com.google.cloud.eventarc.v1";
+option php_namespace = "Google\\Cloud\\Eventarc\\V1";
+option ruby_package = "Google::Cloud::Eventarc::V1";
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
+};
+
+// A GoogleChannelConfig is a resource that stores the custom settings
+// respected by Eventarc first-party triggers in the matching region.
+// Once configured, first-party event data will be protected
+// using the specified custom managed encryption key instead of Google-managed
+// encryption keys.
+message GoogleChannelConfig {
+ option (google.api.resource) = {
+ type: "eventarc.googleapis.com/GoogleChannelConfig"
+ pattern: "projects/{project}/locations/{location}/googleChannelConfig"
+ singular: "googleChannelConfig"
+ };
+
+ // Required. The resource name of the config. Must be in the format of,
+ // `projects/{project}/locations/{location}/googleChannelConfig`.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The last-modified time.
+ google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Resource name of a KMS crypto key (managed by the user) used to
+ // encrypt/decrypt their event data.
+ //
+ // It must match the pattern
+ // `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
+ string crypto_key_name = 7 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+}
diff --git a/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/trigger.proto b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/trigger.proto
new file mode 100644
index 00000000000..c4ede775f0a
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/google/cloud/eventarc/v1/trigger.proto
@@ -0,0 +1,251 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.eventarc.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/code.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
+option java_multiple_files = true;
+option java_outer_classname = "TriggerProto";
+option java_package = "com.google.cloud.eventarc.v1";
+option (google.api.resource_definition) = {
+ type: "cloudfunctions.googleapis.com/CloudFunction"
+ pattern: "projects/{project}/locations/{location}/functions/{function}"
+};
+option (google.api.resource_definition) = {
+ type: "iam.googleapis.com/ServiceAccount"
+ pattern: "projects/{project}/serviceAccounts/{service_account}"
+};
+option (google.api.resource_definition) = {
+ type: "run.googleapis.com/Service"
+ pattern: "*"
+};
+option (google.api.resource_definition) = {
+ type: "workflows.googleapis.com/Workflow"
+ pattern: "projects/{project}/locations/{location}/workflows/{workflow}"
+};
+
+
+// A representation of the trigger resource.
+message Trigger {
+ option (google.api.resource) = {
+ type: "eventarc.googleapis.com/Trigger"
+ pattern: "projects/{project}/locations/{location}/triggers/{trigger}"
+ plural: "triggers"
+ singular: "trigger"
+ };
+
+ // Required. The resource name of the trigger. Must be unique within the location of the
+ // project and must be in
+ // `projects/{project}/locations/{location}/triggers/{trigger}` format.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Server-assigned unique identifier for the trigger. The value is a UUID4
+ // string and guaranteed to remain unchanged until the resource is deleted.
+ string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The creation time.
+ google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last-modified time.
+ google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Unordered list. The list of filters that applies to event attributes. Only events that
+ // match all the provided filters are sent to the destination.
+ repeated EventFilter event_filters = 8 [
+ (google.api.field_behavior) = UNORDERED_LIST,
+ (google.api.field_behavior) = REQUIRED
+ ];
+
+ // Optional. The IAM service account email associated with the trigger. The
+ // service account represents the identity of the trigger.
+ //
+ // The principal who calls this API must have the `iam.serviceAccounts.actAs`
+ // permission in the service account. See
+ // https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common
+ // for more information.
+ //
+ // For Cloud Run destinations, this service account is used to generate
+ // identity tokens when invoking the service. See
+ // https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account
+ // for information on how to invoke authenticated Cloud Run services.
+ // To create Audit Log triggers, the service account should also
+ // have the `roles/eventarc.eventReceiver` IAM role.
+ string service_account = 9 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "iam.googleapis.com/ServiceAccount"
+ }
+ ];
+
+ // Required. Destination specifies where the events should be sent to.
+ Destination destination = 10 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. To deliver messages, Eventarc might use other GCP
+ // products as a transport intermediary. This field contains a reference to
+ // that transport intermediary. This information can be used for debugging
+ // purposes.
+ Transport transport = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. User labels attached to the triggers that can be used to group resources.
+ map labels = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The name of the channel associated with the trigger in
+ // `projects/{project}/locations/{location}/channels/{channel}` format.
+ // You must provide a channel to receive events from Eventarc SaaS partners.
+ string channel = 13 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The reason(s) why a trigger is in FAILED state.
+ map conditions = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. This checksum is computed by the server based on the value of other
+ // fields, and might be sent only on create requests to ensure that the
+ // client has an up-to-date value before proceeding.
+ string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Filters events based on exact matches on the CloudEvents attributes.
+message EventFilter {
+ // Required. The name of a CloudEvents attribute. Currently, only a subset of attributes
+ // are supported for filtering.
+ //
+ // All triggers MUST provide a filter for the 'type' attribute.
+ string attribute = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The value for the attribute.
+ string value = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The operator used for matching the events with the value of the
+ // filter. If not specified, only events that have an exact key-value pair
+ // specified in the filter are matched. The only allowed value is
+ // `match-path-pattern`.
+ string operator = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A condition that is part of the trigger state computation.
+message StateCondition {
+ // The canonical code of the condition.
+ google.rpc.Code code = 1;
+
+ // Human-readable message.
+ string message = 2;
+}
+
+// Represents a target of an invocation over HTTP.
+message Destination {
+ oneof descriptor {
+ // Cloud Run fully-managed resource that receives the events. The resource
+ // should be in the same project as the trigger.
+ CloudRun cloud_run = 1;
+
+ // The Cloud Function resource name. Only Cloud Functions V2 is supported.
+ // Format: `projects/{project}/locations/{location}/functions/{function}`
+ string cloud_function = 2 [(google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/CloudFunction"
+ }];
+
+ // A GKE service capable of receiving events. The service should be running
+ // in the same project as the trigger.
+ GKE gke = 3;
+
+ // The resource name of the Workflow whose Executions are triggered by
+ // the events. The Workflow resource should be deployed in the same project
+ // as the trigger.
+ // Format: `projects/{project}/locations/{location}/workflows/{workflow}`
+ string workflow = 4 [(google.api.resource_reference) = {
+ type: "workflows.googleapis.com/Workflow"
+ }];
+ }
+}
+
+// Represents the transport intermediaries created for the trigger to
+// deliver events.
+message Transport {
+ oneof intermediary {
+ // The Pub/Sub topic and subscription used by Eventarc as a transport
+ // intermediary.
+ Pubsub pubsub = 1;
+ }
+}
+
+// Represents a Cloud Run destination.
+message CloudRun {
+ // Required. The name of the Cloud Run service being addressed. See
+ // https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.
+ //
+ // Only services located in the same project as the trigger object
+ // can be addressed.
+ string service = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "run.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. The relative path on the Cloud Run service the events should be sent to.
+ //
+ // The value must conform to the definition of a URI path segment (section 3.3
+ // of RFC2396). Examples: "/route", "route", "route/subroute".
+ string path = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The region the Cloud Run service is deployed in.
+ string region = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Represents a GKE destination.
+message GKE {
+ // Required. The name of the cluster the GKE service is running in. The cluster must be
+ // running in the same project as the trigger being created.
+ string cluster = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The name of the Google Compute Engine in which the cluster resides, which
+ // can either be compute zone (for example, us-central1-a) for the zonal
+ // clusters or region (for example, us-central1) for regional clusters.
+ string location = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The namespace the GKE service is running in.
+ string namespace = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Name of the GKE service.
+ string service = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The relative path on the GKE service the events should be sent to.
+ //
+ // The value must conform to the definition of a URI path segment (section 3.3
+ // of RFC2396). Examples: "/route", "route", "route/subroute".
+ string path = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents a Pub/Sub transport.
+message Pubsub {
+ // Optional. The name of the Pub/Sub topic created and managed by Eventarc as
+ // a transport for the event delivery. Format:
+ // `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
+ //
+ // You can set an existing topic for triggers of the type
+ // `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
+ // here is not deleted by Eventarc at trigger deletion.
+ string topic = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The name of the Pub/Sub subscription created and managed by Eventarc
+ // as a transport for the event delivery. Format:
+ // `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
+ string subscription = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-eventarc/protos/protos.d.ts b/packages/google-cloud-eventarc/protos/protos.d.ts
new file mode 100644
index 00000000000..64fd72ddff8
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/protos.d.ts
@@ -0,0 +1,10175 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace eventarc. */
+ namespace eventarc {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of a Channel. */
+ interface IChannel {
+
+ /** Channel name */
+ name?: (string|null);
+
+ /** Channel uid */
+ uid?: (string|null);
+
+ /** Channel createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Channel updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Channel provider */
+ provider?: (string|null);
+
+ /** Channel pubsubTopic */
+ pubsubTopic?: (string|null);
+
+ /** Channel state */
+ state?: (google.cloud.eventarc.v1.Channel.State|keyof typeof google.cloud.eventarc.v1.Channel.State|null);
+
+ /** Channel activationToken */
+ activationToken?: (string|null);
+
+ /** Channel cryptoKeyName */
+ cryptoKeyName?: (string|null);
+ }
+
+ /** Represents a Channel. */
+ class Channel implements IChannel {
+
+ /**
+ * Constructs a new Channel.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IChannel);
+
+ /** Channel name. */
+ public name: string;
+
+ /** Channel uid. */
+ public uid: string;
+
+ /** Channel createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Channel updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Channel provider. */
+ public provider: string;
+
+ /** Channel pubsubTopic. */
+ public pubsubTopic?: (string|null);
+
+ /** Channel state. */
+ public state: (google.cloud.eventarc.v1.Channel.State|keyof typeof google.cloud.eventarc.v1.Channel.State);
+
+ /** Channel activationToken. */
+ public activationToken: string;
+
+ /** Channel cryptoKeyName. */
+ public cryptoKeyName: string;
+
+ /** Channel transport. */
+ public transport?: "pubsubTopic";
+
+ /**
+ * Creates a new Channel instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Channel instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IChannel): google.cloud.eventarc.v1.Channel;
+
+ /**
+ * Encodes the specified Channel message. Does not implicitly {@link google.cloud.eventarc.v1.Channel.verify|verify} messages.
+ * @param message Channel message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IChannel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Channel message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Channel.verify|verify} messages.
+ * @param message Channel message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IChannel, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Channel message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Channel
+ * @throws {Error} If the payload is not 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.eventarc.v1.Channel;
+
+ /**
+ * Decodes a Channel message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Channel
+ * @throws {Error} If the payload 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.eventarc.v1.Channel;
+
+ /**
+ * Verifies a Channel message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Channel message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Channel
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.Channel;
+
+ /**
+ * Creates a plain object from a Channel message. Also converts values to other types if specified.
+ * @param message Channel
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.Channel, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Channel to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Channel
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Channel {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ ACTIVE = 2,
+ INACTIVE = 3
+ }
+ }
+
+ /** Properties of a ChannelConnection. */
+ interface IChannelConnection {
+
+ /** ChannelConnection name */
+ name?: (string|null);
+
+ /** ChannelConnection uid */
+ uid?: (string|null);
+
+ /** ChannelConnection channel */
+ channel?: (string|null);
+
+ /** ChannelConnection createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ChannelConnection updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ChannelConnection activationToken */
+ activationToken?: (string|null);
+ }
+
+ /** Represents a ChannelConnection. */
+ class ChannelConnection implements IChannelConnection {
+
+ /**
+ * Constructs a new ChannelConnection.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IChannelConnection);
+
+ /** ChannelConnection name. */
+ public name: string;
+
+ /** ChannelConnection uid. */
+ public uid: string;
+
+ /** ChannelConnection channel. */
+ public channel: string;
+
+ /** ChannelConnection createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ChannelConnection updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ChannelConnection activationToken. */
+ public activationToken: string;
+
+ /**
+ * Creates a new ChannelConnection instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ChannelConnection instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IChannelConnection): google.cloud.eventarc.v1.ChannelConnection;
+
+ /**
+ * Encodes the specified ChannelConnection message. Does not implicitly {@link google.cloud.eventarc.v1.ChannelConnection.verify|verify} messages.
+ * @param message ChannelConnection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IChannelConnection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ChannelConnection message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ChannelConnection.verify|verify} messages.
+ * @param message ChannelConnection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IChannelConnection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ChannelConnection message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ChannelConnection
+ * @throws {Error} If the payload is not 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.eventarc.v1.ChannelConnection;
+
+ /**
+ * Decodes a ChannelConnection message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ChannelConnection
+ * @throws {Error} If the payload 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.eventarc.v1.ChannelConnection;
+
+ /**
+ * Verifies a ChannelConnection message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ChannelConnection message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ChannelConnection
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.ChannelConnection;
+
+ /**
+ * Creates a plain object from a ChannelConnection message. Also converts values to other types if specified.
+ * @param message ChannelConnection
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.ChannelConnection, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ChannelConnection to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ChannelConnection
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Provider. */
+ interface IProvider {
+
+ /** Provider name */
+ name?: (string|null);
+
+ /** Provider displayName */
+ displayName?: (string|null);
+
+ /** Provider eventTypes */
+ eventTypes?: (google.cloud.eventarc.v1.IEventType[]|null);
+ }
+
+ /** Represents a Provider. */
+ class Provider implements IProvider {
+
+ /**
+ * Constructs a new Provider.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IProvider);
+
+ /** Provider name. */
+ public name: string;
+
+ /** Provider displayName. */
+ public displayName: string;
+
+ /** Provider eventTypes. */
+ public eventTypes: google.cloud.eventarc.v1.IEventType[];
+
+ /**
+ * Creates a new Provider instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Provider instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IProvider): google.cloud.eventarc.v1.Provider;
+
+ /**
+ * Encodes the specified Provider message. Does not implicitly {@link google.cloud.eventarc.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.eventarc.v1.IProvider, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Provider message, length delimited. Does not implicitly {@link google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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 an EventType. */
+ interface IEventType {
+
+ /** EventType type */
+ type?: (string|null);
+
+ /** EventType description */
+ description?: (string|null);
+
+ /** EventType filteringAttributes */
+ filteringAttributes?: (google.cloud.eventarc.v1.IFilteringAttribute[]|null);
+
+ /** EventType eventSchemaUri */
+ eventSchemaUri?: (string|null);
+ }
+
+ /** Represents an EventType. */
+ class EventType implements IEventType {
+
+ /**
+ * Constructs a new EventType.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IEventType);
+
+ /** EventType type. */
+ public type: string;
+
+ /** EventType description. */
+ public description: string;
+
+ /** EventType filteringAttributes. */
+ public filteringAttributes: google.cloud.eventarc.v1.IFilteringAttribute[];
+
+ /** EventType eventSchemaUri. */
+ public eventSchemaUri: string;
+
+ /**
+ * Creates a new EventType instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventType instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IEventType): google.cloud.eventarc.v1.EventType;
+
+ /**
+ * Encodes the specified EventType message. Does not implicitly {@link google.cloud.eventarc.v1.EventType.verify|verify} messages.
+ * @param message EventType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IEventType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventType message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.EventType.verify|verify} messages.
+ * @param message EventType message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IEventType, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventType message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventType
+ * @throws {Error} If the payload is not 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.eventarc.v1.EventType;
+
+ /**
+ * Decodes an EventType message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventType
+ * @throws {Error} If the payload 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.eventarc.v1.EventType;
+
+ /**
+ * Verifies an EventType message.
+ * @param message Plain 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 EventType message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventType
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.EventType;
+
+ /**
+ * Creates a plain object from an EventType message. Also converts values to other types if specified.
+ * @param message EventType
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.EventType, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventType to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventType
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FilteringAttribute. */
+ interface IFilteringAttribute {
+
+ /** FilteringAttribute attribute */
+ attribute?: (string|null);
+
+ /** FilteringAttribute description */
+ description?: (string|null);
+
+ /** FilteringAttribute required */
+ required?: (boolean|null);
+
+ /** FilteringAttribute pathPatternSupported */
+ pathPatternSupported?: (boolean|null);
+ }
+
+ /** Represents a FilteringAttribute. */
+ class FilteringAttribute implements IFilteringAttribute {
+
+ /**
+ * Constructs a new FilteringAttribute.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IFilteringAttribute);
+
+ /** FilteringAttribute attribute. */
+ public attribute: string;
+
+ /** FilteringAttribute description. */
+ public description: string;
+
+ /** FilteringAttribute required. */
+ public required: boolean;
+
+ /** FilteringAttribute pathPatternSupported. */
+ public pathPatternSupported: boolean;
+
+ /**
+ * Creates a new FilteringAttribute instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FilteringAttribute instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IFilteringAttribute): google.cloud.eventarc.v1.FilteringAttribute;
+
+ /**
+ * Encodes the specified FilteringAttribute message. Does not implicitly {@link google.cloud.eventarc.v1.FilteringAttribute.verify|verify} messages.
+ * @param message FilteringAttribute message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IFilteringAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FilteringAttribute message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.FilteringAttribute.verify|verify} messages.
+ * @param message FilteringAttribute message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IFilteringAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FilteringAttribute message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FilteringAttribute
+ * @throws {Error} If the payload is not 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.eventarc.v1.FilteringAttribute;
+
+ /**
+ * Decodes a FilteringAttribute message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FilteringAttribute
+ * @throws {Error} If the payload 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.eventarc.v1.FilteringAttribute;
+
+ /**
+ * Verifies a FilteringAttribute message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FilteringAttribute message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FilteringAttribute
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.FilteringAttribute;
+
+ /**
+ * Creates a plain object from a FilteringAttribute message. Also converts values to other types if specified.
+ * @param message FilteringAttribute
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.FilteringAttribute, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FilteringAttribute to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FilteringAttribute
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an Eventarc */
+ class Eventarc extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Eventarc 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 Eventarc 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): Eventarc;
+
+ /**
+ * Calls GetTrigger.
+ * @param request GetTriggerRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Trigger
+ */
+ public getTrigger(request: google.cloud.eventarc.v1.IGetTriggerRequest, callback: google.cloud.eventarc.v1.Eventarc.GetTriggerCallback): void;
+
+ /**
+ * Calls GetTrigger.
+ * @param request GetTriggerRequest message or plain object
+ * @returns Promise
+ */
+ public getTrigger(request: google.cloud.eventarc.v1.IGetTriggerRequest): Promise;
+
+ /**
+ * Calls ListTriggers.
+ * @param request ListTriggersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListTriggersResponse
+ */
+ public listTriggers(request: google.cloud.eventarc.v1.IListTriggersRequest, callback: google.cloud.eventarc.v1.Eventarc.ListTriggersCallback): void;
+
+ /**
+ * Calls ListTriggers.
+ * @param request ListTriggersRequest message or plain object
+ * @returns Promise
+ */
+ public listTriggers(request: google.cloud.eventarc.v1.IListTriggersRequest): Promise;
+
+ /**
+ * Calls CreateTrigger.
+ * @param request CreateTriggerRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createTrigger(request: google.cloud.eventarc.v1.ICreateTriggerRequest, callback: google.cloud.eventarc.v1.Eventarc.CreateTriggerCallback): void;
+
+ /**
+ * Calls CreateTrigger.
+ * @param request CreateTriggerRequest message or plain object
+ * @returns Promise
+ */
+ public createTrigger(request: google.cloud.eventarc.v1.ICreateTriggerRequest): Promise;
+
+ /**
+ * Calls UpdateTrigger.
+ * @param request UpdateTriggerRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateTrigger(request: google.cloud.eventarc.v1.IUpdateTriggerRequest, callback: google.cloud.eventarc.v1.Eventarc.UpdateTriggerCallback): void;
+
+ /**
+ * Calls UpdateTrigger.
+ * @param request UpdateTriggerRequest message or plain object
+ * @returns Promise
+ */
+ public updateTrigger(request: google.cloud.eventarc.v1.IUpdateTriggerRequest): Promise;
+
+ /**
+ * Calls DeleteTrigger.
+ * @param request DeleteTriggerRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteTrigger(request: google.cloud.eventarc.v1.IDeleteTriggerRequest, callback: google.cloud.eventarc.v1.Eventarc.DeleteTriggerCallback): void;
+
+ /**
+ * Calls DeleteTrigger.
+ * @param request DeleteTriggerRequest message or plain object
+ * @returns Promise
+ */
+ public deleteTrigger(request: google.cloud.eventarc.v1.IDeleteTriggerRequest): Promise;
+
+ /**
+ * Calls GetChannel.
+ * @param request GetChannelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Channel
+ */
+ public getChannel(request: google.cloud.eventarc.v1.IGetChannelRequest, callback: google.cloud.eventarc.v1.Eventarc.GetChannelCallback): void;
+
+ /**
+ * Calls GetChannel.
+ * @param request GetChannelRequest message or plain object
+ * @returns Promise
+ */
+ public getChannel(request: google.cloud.eventarc.v1.IGetChannelRequest): Promise;
+
+ /**
+ * Calls ListChannels.
+ * @param request ListChannelsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListChannelsResponse
+ */
+ public listChannels(request: google.cloud.eventarc.v1.IListChannelsRequest, callback: google.cloud.eventarc.v1.Eventarc.ListChannelsCallback): void;
+
+ /**
+ * Calls ListChannels.
+ * @param request ListChannelsRequest message or plain object
+ * @returns Promise
+ */
+ public listChannels(request: google.cloud.eventarc.v1.IListChannelsRequest): Promise;
+
+ /**
+ * Calls CreateChannel.
+ * @param request CreateChannelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createChannel(request: google.cloud.eventarc.v1.ICreateChannelRequest, callback: google.cloud.eventarc.v1.Eventarc.CreateChannelCallback): void;
+
+ /**
+ * Calls CreateChannel.
+ * @param request CreateChannelRequest message or plain object
+ * @returns Promise
+ */
+ public createChannel(request: google.cloud.eventarc.v1.ICreateChannelRequest): Promise;
+
+ /**
+ * Calls UpdateChannel.
+ * @param request UpdateChannelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateChannel(request: google.cloud.eventarc.v1.IUpdateChannelRequest, callback: google.cloud.eventarc.v1.Eventarc.UpdateChannelCallback): void;
+
+ /**
+ * Calls UpdateChannel.
+ * @param request UpdateChannelRequest message or plain object
+ * @returns Promise
+ */
+ public updateChannel(request: google.cloud.eventarc.v1.IUpdateChannelRequest): Promise;
+
+ /**
+ * Calls DeleteChannel.
+ * @param request DeleteChannelRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteChannel(request: google.cloud.eventarc.v1.IDeleteChannelRequest, callback: google.cloud.eventarc.v1.Eventarc.DeleteChannelCallback): void;
+
+ /**
+ * Calls DeleteChannel.
+ * @param request DeleteChannelRequest message or plain object
+ * @returns Promise
+ */
+ public deleteChannel(request: google.cloud.eventarc.v1.IDeleteChannelRequest): 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.eventarc.v1.IGetProviderRequest, callback: google.cloud.eventarc.v1.Eventarc.GetProviderCallback): void;
+
+ /**
+ * Calls GetProvider.
+ * @param request GetProviderRequest message or plain object
+ * @returns Promise
+ */
+ public getProvider(request: google.cloud.eventarc.v1.IGetProviderRequest): 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.eventarc.v1.IListProvidersRequest, callback: google.cloud.eventarc.v1.Eventarc.ListProvidersCallback): void;
+
+ /**
+ * Calls ListProviders.
+ * @param request ListProvidersRequest message or plain object
+ * @returns Promise
+ */
+ public listProviders(request: google.cloud.eventarc.v1.IListProvidersRequest): Promise;
+
+ /**
+ * Calls GetChannelConnection.
+ * @param request GetChannelConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ChannelConnection
+ */
+ public getChannelConnection(request: google.cloud.eventarc.v1.IGetChannelConnectionRequest, callback: google.cloud.eventarc.v1.Eventarc.GetChannelConnectionCallback): void;
+
+ /**
+ * Calls GetChannelConnection.
+ * @param request GetChannelConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public getChannelConnection(request: google.cloud.eventarc.v1.IGetChannelConnectionRequest): Promise;
+
+ /**
+ * Calls ListChannelConnections.
+ * @param request ListChannelConnectionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListChannelConnectionsResponse
+ */
+ public listChannelConnections(request: google.cloud.eventarc.v1.IListChannelConnectionsRequest, callback: google.cloud.eventarc.v1.Eventarc.ListChannelConnectionsCallback): void;
+
+ /**
+ * Calls ListChannelConnections.
+ * @param request ListChannelConnectionsRequest message or plain object
+ * @returns Promise
+ */
+ public listChannelConnections(request: google.cloud.eventarc.v1.IListChannelConnectionsRequest): Promise;
+
+ /**
+ * Calls CreateChannelConnection.
+ * @param request CreateChannelConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createChannelConnection(request: google.cloud.eventarc.v1.ICreateChannelConnectionRequest, callback: google.cloud.eventarc.v1.Eventarc.CreateChannelConnectionCallback): void;
+
+ /**
+ * Calls CreateChannelConnection.
+ * @param request CreateChannelConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public createChannelConnection(request: google.cloud.eventarc.v1.ICreateChannelConnectionRequest): Promise;
+
+ /**
+ * Calls DeleteChannelConnection.
+ * @param request DeleteChannelConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteChannelConnection(request: google.cloud.eventarc.v1.IDeleteChannelConnectionRequest, callback: google.cloud.eventarc.v1.Eventarc.DeleteChannelConnectionCallback): void;
+
+ /**
+ * Calls DeleteChannelConnection.
+ * @param request DeleteChannelConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteChannelConnection(request: google.cloud.eventarc.v1.IDeleteChannelConnectionRequest): Promise;
+
+ /**
+ * Calls GetGoogleChannelConfig.
+ * @param request GetGoogleChannelConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GoogleChannelConfig
+ */
+ public getGoogleChannelConfig(request: google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest, callback: google.cloud.eventarc.v1.Eventarc.GetGoogleChannelConfigCallback): void;
+
+ /**
+ * Calls GetGoogleChannelConfig.
+ * @param request GetGoogleChannelConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getGoogleChannelConfig(request: google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest): Promise;
+
+ /**
+ * Calls UpdateGoogleChannelConfig.
+ * @param request UpdateGoogleChannelConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GoogleChannelConfig
+ */
+ public updateGoogleChannelConfig(request: google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest, callback: google.cloud.eventarc.v1.Eventarc.UpdateGoogleChannelConfigCallback): void;
+
+ /**
+ * Calls UpdateGoogleChannelConfig.
+ * @param request UpdateGoogleChannelConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateGoogleChannelConfig(request: google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest): Promise;
+ }
+
+ namespace Eventarc {
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getTrigger}.
+ * @param error Error, if any
+ * @param [response] Trigger
+ */
+ type GetTriggerCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.Trigger) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listTriggers}.
+ * @param error Error, if any
+ * @param [response] ListTriggersResponse
+ */
+ type ListTriggersCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.ListTriggersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|createTrigger}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateTriggerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|updateTrigger}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateTriggerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|deleteTrigger}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteTriggerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getChannel}.
+ * @param error Error, if any
+ * @param [response] Channel
+ */
+ type GetChannelCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.Channel) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listChannels}.
+ * @param error Error, if any
+ * @param [response] ListChannelsResponse
+ */
+ type ListChannelsCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.ListChannelsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|createChannel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateChannelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|updateChannel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateChannelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|deleteChannel}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteChannelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getProvider}.
+ * @param error Error, if any
+ * @param [response] Provider
+ */
+ type GetProviderCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.Provider) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listProviders}.
+ * @param error Error, if any
+ * @param [response] ListProvidersResponse
+ */
+ type ListProvidersCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.ListProvidersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getChannelConnection}.
+ * @param error Error, if any
+ * @param [response] ChannelConnection
+ */
+ type GetChannelConnectionCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.ChannelConnection) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listChannelConnections}.
+ * @param error Error, if any
+ * @param [response] ListChannelConnectionsResponse
+ */
+ type ListChannelConnectionsCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.ListChannelConnectionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|createChannelConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateChannelConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|deleteChannelConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteChannelConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getGoogleChannelConfig}.
+ * @param error Error, if any
+ * @param [response] GoogleChannelConfig
+ */
+ type GetGoogleChannelConfigCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.GoogleChannelConfig) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|updateGoogleChannelConfig}.
+ * @param error Error, if any
+ * @param [response] GoogleChannelConfig
+ */
+ type UpdateGoogleChannelConfigCallback = (error: (Error|null), response?: google.cloud.eventarc.v1.GoogleChannelConfig) => void;
+ }
+
+ /** Properties of a GetTriggerRequest. */
+ interface IGetTriggerRequest {
+
+ /** GetTriggerRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetTriggerRequest. */
+ class GetTriggerRequest implements IGetTriggerRequest {
+
+ /**
+ * Constructs a new GetTriggerRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IGetTriggerRequest);
+
+ /** GetTriggerRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetTriggerRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetTriggerRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IGetTriggerRequest): google.cloud.eventarc.v1.GetTriggerRequest;
+
+ /**
+ * Encodes the specified GetTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetTriggerRequest.verify|verify} messages.
+ * @param message GetTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IGetTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetTriggerRequest.verify|verify} messages.
+ * @param message GetTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IGetTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetTriggerRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetTriggerRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.GetTriggerRequest;
+
+ /**
+ * Decodes a GetTriggerRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetTriggerRequest
+ * @throws {Error} If the payload 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.eventarc.v1.GetTriggerRequest;
+
+ /**
+ * Verifies a GetTriggerRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetTriggerRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.GetTriggerRequest;
+
+ /**
+ * Creates a plain object from a GetTriggerRequest message. Also converts values to other types if specified.
+ * @param message GetTriggerRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.GetTriggerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetTriggerRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetTriggerRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTriggersRequest. */
+ interface IListTriggersRequest {
+
+ /** ListTriggersRequest parent */
+ parent?: (string|null);
+
+ /** ListTriggersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListTriggersRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListTriggersRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListTriggersRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListTriggersRequest. */
+ class ListTriggersRequest implements IListTriggersRequest {
+
+ /**
+ * Constructs a new ListTriggersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IListTriggersRequest);
+
+ /** ListTriggersRequest parent. */
+ public parent: string;
+
+ /** ListTriggersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListTriggersRequest pageToken. */
+ public pageToken: string;
+
+ /** ListTriggersRequest orderBy. */
+ public orderBy: string;
+
+ /** ListTriggersRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListTriggersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTriggersRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IListTriggersRequest): google.cloud.eventarc.v1.ListTriggersRequest;
+
+ /**
+ * Encodes the specified ListTriggersRequest message. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersRequest.verify|verify} messages.
+ * @param message ListTriggersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IListTriggersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTriggersRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersRequest.verify|verify} messages.
+ * @param message ListTriggersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IListTriggersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTriggersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTriggersRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.ListTriggersRequest;
+
+ /**
+ * Decodes a ListTriggersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTriggersRequest
+ * @throws {Error} If the payload 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.eventarc.v1.ListTriggersRequest;
+
+ /**
+ * Verifies a ListTriggersRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListTriggersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTriggersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.ListTriggersRequest;
+
+ /**
+ * Creates a plain object from a ListTriggersRequest message. Also converts values to other types if specified.
+ * @param message ListTriggersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.ListTriggersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTriggersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTriggersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListTriggersResponse. */
+ interface IListTriggersResponse {
+
+ /** ListTriggersResponse triggers */
+ triggers?: (google.cloud.eventarc.v1.ITrigger[]|null);
+
+ /** ListTriggersResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListTriggersResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListTriggersResponse. */
+ class ListTriggersResponse implements IListTriggersResponse {
+
+ /**
+ * Constructs a new ListTriggersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IListTriggersResponse);
+
+ /** ListTriggersResponse triggers. */
+ public triggers: google.cloud.eventarc.v1.ITrigger[];
+
+ /** ListTriggersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListTriggersResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListTriggersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListTriggersResponse instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IListTriggersResponse): google.cloud.eventarc.v1.ListTriggersResponse;
+
+ /**
+ * Encodes the specified ListTriggersResponse message. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersResponse.verify|verify} messages.
+ * @param message ListTriggersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IListTriggersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListTriggersResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersResponse.verify|verify} messages.
+ * @param message ListTriggersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IListTriggersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListTriggersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListTriggersResponse
+ * @throws {Error} If the payload is not 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.eventarc.v1.ListTriggersResponse;
+
+ /**
+ * Decodes a ListTriggersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListTriggersResponse
+ * @throws {Error} If the payload 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.eventarc.v1.ListTriggersResponse;
+
+ /**
+ * Verifies a ListTriggersResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListTriggersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListTriggersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.ListTriggersResponse;
+
+ /**
+ * Creates a plain object from a ListTriggersResponse message. Also converts values to other types if specified.
+ * @param message ListTriggersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.ListTriggersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListTriggersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListTriggersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateTriggerRequest. */
+ interface ICreateTriggerRequest {
+
+ /** CreateTriggerRequest parent */
+ parent?: (string|null);
+
+ /** CreateTriggerRequest trigger */
+ trigger?: (google.cloud.eventarc.v1.ITrigger|null);
+
+ /** CreateTriggerRequest triggerId */
+ triggerId?: (string|null);
+
+ /** CreateTriggerRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a CreateTriggerRequest. */
+ class CreateTriggerRequest implements ICreateTriggerRequest {
+
+ /**
+ * Constructs a new CreateTriggerRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.ICreateTriggerRequest);
+
+ /** CreateTriggerRequest parent. */
+ public parent: string;
+
+ /** CreateTriggerRequest trigger. */
+ public trigger?: (google.cloud.eventarc.v1.ITrigger|null);
+
+ /** CreateTriggerRequest triggerId. */
+ public triggerId: string;
+
+ /** CreateTriggerRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new CreateTriggerRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateTriggerRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.ICreateTriggerRequest): google.cloud.eventarc.v1.CreateTriggerRequest;
+
+ /**
+ * Encodes the specified CreateTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.CreateTriggerRequest.verify|verify} messages.
+ * @param message CreateTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.ICreateTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CreateTriggerRequest.verify|verify} messages.
+ * @param message CreateTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.ICreateTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateTriggerRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateTriggerRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.CreateTriggerRequest;
+
+ /**
+ * Decodes a CreateTriggerRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateTriggerRequest
+ * @throws {Error} If the payload 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.eventarc.v1.CreateTriggerRequest;
+
+ /**
+ * Verifies a CreateTriggerRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateTriggerRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.CreateTriggerRequest;
+
+ /**
+ * Creates a plain object from a CreateTriggerRequest message. Also converts values to other types if specified.
+ * @param message CreateTriggerRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.CreateTriggerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateTriggerRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateTriggerRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateTriggerRequest. */
+ interface IUpdateTriggerRequest {
+
+ /** UpdateTriggerRequest trigger */
+ trigger?: (google.cloud.eventarc.v1.ITrigger|null);
+
+ /** UpdateTriggerRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateTriggerRequest allowMissing */
+ allowMissing?: (boolean|null);
+
+ /** UpdateTriggerRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents an UpdateTriggerRequest. */
+ class UpdateTriggerRequest implements IUpdateTriggerRequest {
+
+ /**
+ * Constructs a new UpdateTriggerRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IUpdateTriggerRequest);
+
+ /** UpdateTriggerRequest trigger. */
+ public trigger?: (google.cloud.eventarc.v1.ITrigger|null);
+
+ /** UpdateTriggerRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateTriggerRequest allowMissing. */
+ public allowMissing: boolean;
+
+ /** UpdateTriggerRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new UpdateTriggerRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateTriggerRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IUpdateTriggerRequest): google.cloud.eventarc.v1.UpdateTriggerRequest;
+
+ /**
+ * Encodes the specified UpdateTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.UpdateTriggerRequest.verify|verify} messages.
+ * @param message UpdateTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IUpdateTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.UpdateTriggerRequest.verify|verify} messages.
+ * @param message UpdateTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IUpdateTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateTriggerRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateTriggerRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.UpdateTriggerRequest;
+
+ /**
+ * Decodes an UpdateTriggerRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateTriggerRequest
+ * @throws {Error} If the payload 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.eventarc.v1.UpdateTriggerRequest;
+
+ /**
+ * Verifies an UpdateTriggerRequest message.
+ * @param message Plain 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 UpdateTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateTriggerRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.UpdateTriggerRequest;
+
+ /**
+ * Creates a plain object from an UpdateTriggerRequest message. Also converts values to other types if specified.
+ * @param message UpdateTriggerRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.UpdateTriggerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateTriggerRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateTriggerRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteTriggerRequest. */
+ interface IDeleteTriggerRequest {
+
+ /** DeleteTriggerRequest name */
+ name?: (string|null);
+
+ /** DeleteTriggerRequest etag */
+ etag?: (string|null);
+
+ /** DeleteTriggerRequest allowMissing */
+ allowMissing?: (boolean|null);
+
+ /** DeleteTriggerRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a DeleteTriggerRequest. */
+ class DeleteTriggerRequest implements IDeleteTriggerRequest {
+
+ /**
+ * Constructs a new DeleteTriggerRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IDeleteTriggerRequest);
+
+ /** DeleteTriggerRequest name. */
+ public name: string;
+
+ /** DeleteTriggerRequest etag. */
+ public etag: string;
+
+ /** DeleteTriggerRequest allowMissing. */
+ public allowMissing: boolean;
+
+ /** DeleteTriggerRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new DeleteTriggerRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteTriggerRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IDeleteTriggerRequest): google.cloud.eventarc.v1.DeleteTriggerRequest;
+
+ /**
+ * Encodes the specified DeleteTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.DeleteTriggerRequest.verify|verify} messages.
+ * @param message DeleteTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IDeleteTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.DeleteTriggerRequest.verify|verify} messages.
+ * @param message DeleteTriggerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IDeleteTriggerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteTriggerRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteTriggerRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.DeleteTriggerRequest;
+
+ /**
+ * Decodes a DeleteTriggerRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteTriggerRequest
+ * @throws {Error} If the payload 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.eventarc.v1.DeleteTriggerRequest;
+
+ /**
+ * Verifies a DeleteTriggerRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteTriggerRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.DeleteTriggerRequest;
+
+ /**
+ * Creates a plain object from a DeleteTriggerRequest message. Also converts values to other types if specified.
+ * @param message DeleteTriggerRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.DeleteTriggerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteTriggerRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteTriggerRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetChannelRequest. */
+ interface IGetChannelRequest {
+
+ /** GetChannelRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetChannelRequest. */
+ class GetChannelRequest implements IGetChannelRequest {
+
+ /**
+ * Constructs a new GetChannelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IGetChannelRequest);
+
+ /** GetChannelRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetChannelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetChannelRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IGetChannelRequest): google.cloud.eventarc.v1.GetChannelRequest;
+
+ /**
+ * Encodes the specified GetChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelRequest.verify|verify} messages.
+ * @param message GetChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IGetChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelRequest.verify|verify} messages.
+ * @param message GetChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IGetChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetChannelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetChannelRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.GetChannelRequest;
+
+ /**
+ * Decodes a GetChannelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetChannelRequest
+ * @throws {Error} If the payload 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.eventarc.v1.GetChannelRequest;
+
+ /**
+ * Verifies a GetChannelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetChannelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.GetChannelRequest;
+
+ /**
+ * Creates a plain object from a GetChannelRequest message. Also converts values to other types if specified.
+ * @param message GetChannelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.GetChannelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetChannelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetChannelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListChannelsRequest. */
+ interface IListChannelsRequest {
+
+ /** ListChannelsRequest parent */
+ parent?: (string|null);
+
+ /** ListChannelsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListChannelsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListChannelsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListChannelsRequest. */
+ class ListChannelsRequest implements IListChannelsRequest {
+
+ /**
+ * Constructs a new ListChannelsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IListChannelsRequest);
+
+ /** ListChannelsRequest parent. */
+ public parent: string;
+
+ /** ListChannelsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListChannelsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListChannelsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListChannelsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListChannelsRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IListChannelsRequest): google.cloud.eventarc.v1.ListChannelsRequest;
+
+ /**
+ * Encodes the specified ListChannelsRequest message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsRequest.verify|verify} messages.
+ * @param message ListChannelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IListChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListChannelsRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsRequest.verify|verify} messages.
+ * @param message ListChannelsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IListChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListChannelsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListChannelsRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.ListChannelsRequest;
+
+ /**
+ * Decodes a ListChannelsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListChannelsRequest
+ * @throws {Error} If the payload 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.eventarc.v1.ListChannelsRequest;
+
+ /**
+ * Verifies a ListChannelsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListChannelsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListChannelsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.ListChannelsRequest;
+
+ /**
+ * Creates a plain object from a ListChannelsRequest message. Also converts values to other types if specified.
+ * @param message ListChannelsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.ListChannelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListChannelsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListChannelsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListChannelsResponse. */
+ interface IListChannelsResponse {
+
+ /** ListChannelsResponse channels */
+ channels?: (google.cloud.eventarc.v1.IChannel[]|null);
+
+ /** ListChannelsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListChannelsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListChannelsResponse. */
+ class ListChannelsResponse implements IListChannelsResponse {
+
+ /**
+ * Constructs a new ListChannelsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IListChannelsResponse);
+
+ /** ListChannelsResponse channels. */
+ public channels: google.cloud.eventarc.v1.IChannel[];
+
+ /** ListChannelsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListChannelsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListChannelsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListChannelsResponse instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IListChannelsResponse): google.cloud.eventarc.v1.ListChannelsResponse;
+
+ /**
+ * Encodes the specified ListChannelsResponse message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsResponse.verify|verify} messages.
+ * @param message ListChannelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IListChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListChannelsResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsResponse.verify|verify} messages.
+ * @param message ListChannelsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IListChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListChannelsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListChannelsResponse
+ * @throws {Error} If the payload is not 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.eventarc.v1.ListChannelsResponse;
+
+ /**
+ * Decodes a ListChannelsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListChannelsResponse
+ * @throws {Error} If the payload 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.eventarc.v1.ListChannelsResponse;
+
+ /**
+ * Verifies a ListChannelsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListChannelsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListChannelsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.ListChannelsResponse;
+
+ /**
+ * Creates a plain object from a ListChannelsResponse message. Also converts values to other types if specified.
+ * @param message ListChannelsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.ListChannelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListChannelsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListChannelsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateChannelRequest. */
+ interface ICreateChannelRequest {
+
+ /** CreateChannelRequest parent */
+ parent?: (string|null);
+
+ /** CreateChannelRequest channel */
+ channel?: (google.cloud.eventarc.v1.IChannel|null);
+
+ /** CreateChannelRequest channelId */
+ channelId?: (string|null);
+
+ /** CreateChannelRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a CreateChannelRequest. */
+ class CreateChannelRequest implements ICreateChannelRequest {
+
+ /**
+ * Constructs a new CreateChannelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.ICreateChannelRequest);
+
+ /** CreateChannelRequest parent. */
+ public parent: string;
+
+ /** CreateChannelRequest channel. */
+ public channel?: (google.cloud.eventarc.v1.IChannel|null);
+
+ /** CreateChannelRequest channelId. */
+ public channelId: string;
+
+ /** CreateChannelRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new CreateChannelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateChannelRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.ICreateChannelRequest): google.cloud.eventarc.v1.CreateChannelRequest;
+
+ /**
+ * Encodes the specified CreateChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelRequest.verify|verify} messages.
+ * @param message CreateChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.ICreateChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelRequest.verify|verify} messages.
+ * @param message CreateChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.ICreateChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateChannelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateChannelRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.CreateChannelRequest;
+
+ /**
+ * Decodes a CreateChannelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateChannelRequest
+ * @throws {Error} If the payload 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.eventarc.v1.CreateChannelRequest;
+
+ /**
+ * Verifies a CreateChannelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateChannelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.CreateChannelRequest;
+
+ /**
+ * Creates a plain object from a CreateChannelRequest message. Also converts values to other types if specified.
+ * @param message CreateChannelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.CreateChannelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateChannelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateChannelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateChannelRequest. */
+ interface IUpdateChannelRequest {
+
+ /** UpdateChannelRequest channel */
+ channel?: (google.cloud.eventarc.v1.IChannel|null);
+
+ /** UpdateChannelRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateChannelRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents an UpdateChannelRequest. */
+ class UpdateChannelRequest implements IUpdateChannelRequest {
+
+ /**
+ * Constructs a new UpdateChannelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IUpdateChannelRequest);
+
+ /** UpdateChannelRequest channel. */
+ public channel?: (google.cloud.eventarc.v1.IChannel|null);
+
+ /** UpdateChannelRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateChannelRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new UpdateChannelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateChannelRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IUpdateChannelRequest): google.cloud.eventarc.v1.UpdateChannelRequest;
+
+ /**
+ * Encodes the specified UpdateChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.UpdateChannelRequest.verify|verify} messages.
+ * @param message UpdateChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IUpdateChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.UpdateChannelRequest.verify|verify} messages.
+ * @param message UpdateChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IUpdateChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateChannelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateChannelRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.UpdateChannelRequest;
+
+ /**
+ * Decodes an UpdateChannelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateChannelRequest
+ * @throws {Error} If the payload 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.eventarc.v1.UpdateChannelRequest;
+
+ /**
+ * Verifies an UpdateChannelRequest message.
+ * @param message Plain 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 UpdateChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateChannelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.UpdateChannelRequest;
+
+ /**
+ * Creates a plain object from an UpdateChannelRequest message. Also converts values to other types if specified.
+ * @param message UpdateChannelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.UpdateChannelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateChannelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateChannelRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteChannelRequest. */
+ interface IDeleteChannelRequest {
+
+ /** DeleteChannelRequest name */
+ name?: (string|null);
+
+ /** DeleteChannelRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a DeleteChannelRequest. */
+ class DeleteChannelRequest implements IDeleteChannelRequest {
+
+ /**
+ * Constructs a new DeleteChannelRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IDeleteChannelRequest);
+
+ /** DeleteChannelRequest name. */
+ public name: string;
+
+ /** DeleteChannelRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new DeleteChannelRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteChannelRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IDeleteChannelRequest): google.cloud.eventarc.v1.DeleteChannelRequest;
+
+ /**
+ * Encodes the specified DeleteChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelRequest.verify|verify} messages.
+ * @param message DeleteChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IDeleteChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelRequest.verify|verify} messages.
+ * @param message DeleteChannelRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IDeleteChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteChannelRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteChannelRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.DeleteChannelRequest;
+
+ /**
+ * Decodes a DeleteChannelRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteChannelRequest
+ * @throws {Error} If the payload 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.eventarc.v1.DeleteChannelRequest;
+
+ /**
+ * Verifies a DeleteChannelRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteChannelRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.DeleteChannelRequest;
+
+ /**
+ * Creates a plain object from a DeleteChannelRequest message. Also converts values to other types if specified.
+ * @param message DeleteChannelRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.DeleteChannelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteChannelRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteChannelRequest
+ * @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.eventarc.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.eventarc.v1.IGetProviderRequest): google.cloud.eventarc.v1.GetProviderRequest;
+
+ /**
+ * Encodes the specified GetProviderRequest message. Does not implicitly {@link google.cloud.eventarc.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.eventarc.v1.IGetProviderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProviderRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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);
+
+ /** ListProvidersRequest orderBy */
+ orderBy?: (string|null);
+
+ /** ListProvidersRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListProvidersRequest. */
+ class ListProvidersRequest implements IListProvidersRequest {
+
+ /**
+ * Constructs a new ListProvidersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IListProvidersRequest);
+
+ /** ListProvidersRequest parent. */
+ public parent: string;
+
+ /** ListProvidersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListProvidersRequest pageToken. */
+ public pageToken: string;
+
+ /** ListProvidersRequest orderBy. */
+ public orderBy: string;
+
+ /** ListProvidersRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListProvidersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListProvidersRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IListProvidersRequest): google.cloud.eventarc.v1.ListProvidersRequest;
+
+ /**
+ * Encodes the specified ListProvidersRequest message. Does not implicitly {@link google.cloud.eventarc.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.eventarc.v1.IListProvidersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProvidersRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.v1.IListProvidersResponse);
+
+ /** ListProvidersResponse providers. */
+ public providers: google.cloud.eventarc.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.eventarc.v1.IListProvidersResponse): google.cloud.eventarc.v1.ListProvidersResponse;
+
+ /**
+ * Encodes the specified ListProvidersResponse message. Does not implicitly {@link google.cloud.eventarc.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.eventarc.v1.IListProvidersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListProvidersResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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 GetChannelConnectionRequest. */
+ interface IGetChannelConnectionRequest {
+
+ /** GetChannelConnectionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetChannelConnectionRequest. */
+ class GetChannelConnectionRequest implements IGetChannelConnectionRequest {
+
+ /**
+ * Constructs a new GetChannelConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IGetChannelConnectionRequest);
+
+ /** GetChannelConnectionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetChannelConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetChannelConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IGetChannelConnectionRequest): google.cloud.eventarc.v1.GetChannelConnectionRequest;
+
+ /**
+ * Encodes the specified GetChannelConnectionRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelConnectionRequest.verify|verify} messages.
+ * @param message GetChannelConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IGetChannelConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetChannelConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelConnectionRequest.verify|verify} messages.
+ * @param message GetChannelConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IGetChannelConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetChannelConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetChannelConnectionRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.GetChannelConnectionRequest;
+
+ /**
+ * Decodes a GetChannelConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetChannelConnectionRequest
+ * @throws {Error} If the payload 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.eventarc.v1.GetChannelConnectionRequest;
+
+ /**
+ * Verifies a GetChannelConnectionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetChannelConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetChannelConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.GetChannelConnectionRequest;
+
+ /**
+ * Creates a plain object from a GetChannelConnectionRequest message. Also converts values to other types if specified.
+ * @param message GetChannelConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.GetChannelConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetChannelConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetChannelConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListChannelConnectionsRequest. */
+ interface IListChannelConnectionsRequest {
+
+ /** ListChannelConnectionsRequest parent */
+ parent?: (string|null);
+
+ /** ListChannelConnectionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListChannelConnectionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListChannelConnectionsRequest. */
+ class ListChannelConnectionsRequest implements IListChannelConnectionsRequest {
+
+ /**
+ * Constructs a new ListChannelConnectionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IListChannelConnectionsRequest);
+
+ /** ListChannelConnectionsRequest parent. */
+ public parent: string;
+
+ /** ListChannelConnectionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListChannelConnectionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListChannelConnectionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListChannelConnectionsRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IListChannelConnectionsRequest): google.cloud.eventarc.v1.ListChannelConnectionsRequest;
+
+ /**
+ * Encodes the specified ListChannelConnectionsRequest message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsRequest.verify|verify} messages.
+ * @param message ListChannelConnectionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IListChannelConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListChannelConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsRequest.verify|verify} messages.
+ * @param message ListChannelConnectionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IListChannelConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListChannelConnectionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListChannelConnectionsRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.ListChannelConnectionsRequest;
+
+ /**
+ * Decodes a ListChannelConnectionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListChannelConnectionsRequest
+ * @throws {Error} If the payload 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.eventarc.v1.ListChannelConnectionsRequest;
+
+ /**
+ * Verifies a ListChannelConnectionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListChannelConnectionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListChannelConnectionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.ListChannelConnectionsRequest;
+
+ /**
+ * Creates a plain object from a ListChannelConnectionsRequest message. Also converts values to other types if specified.
+ * @param message ListChannelConnectionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.ListChannelConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListChannelConnectionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListChannelConnectionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListChannelConnectionsResponse. */
+ interface IListChannelConnectionsResponse {
+
+ /** ListChannelConnectionsResponse channelConnections */
+ channelConnections?: (google.cloud.eventarc.v1.IChannelConnection[]|null);
+
+ /** ListChannelConnectionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListChannelConnectionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListChannelConnectionsResponse. */
+ class ListChannelConnectionsResponse implements IListChannelConnectionsResponse {
+
+ /**
+ * Constructs a new ListChannelConnectionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IListChannelConnectionsResponse);
+
+ /** ListChannelConnectionsResponse channelConnections. */
+ public channelConnections: google.cloud.eventarc.v1.IChannelConnection[];
+
+ /** ListChannelConnectionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListChannelConnectionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListChannelConnectionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListChannelConnectionsResponse instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IListChannelConnectionsResponse): google.cloud.eventarc.v1.ListChannelConnectionsResponse;
+
+ /**
+ * Encodes the specified ListChannelConnectionsResponse message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsResponse.verify|verify} messages.
+ * @param message ListChannelConnectionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IListChannelConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListChannelConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsResponse.verify|verify} messages.
+ * @param message ListChannelConnectionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IListChannelConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListChannelConnectionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListChannelConnectionsResponse
+ * @throws {Error} If the payload is not 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.eventarc.v1.ListChannelConnectionsResponse;
+
+ /**
+ * Decodes a ListChannelConnectionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListChannelConnectionsResponse
+ * @throws {Error} If the payload 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.eventarc.v1.ListChannelConnectionsResponse;
+
+ /**
+ * Verifies a ListChannelConnectionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListChannelConnectionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListChannelConnectionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.ListChannelConnectionsResponse;
+
+ /**
+ * Creates a plain object from a ListChannelConnectionsResponse message. Also converts values to other types if specified.
+ * @param message ListChannelConnectionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.ListChannelConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListChannelConnectionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListChannelConnectionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateChannelConnectionRequest. */
+ interface ICreateChannelConnectionRequest {
+
+ /** CreateChannelConnectionRequest parent */
+ parent?: (string|null);
+
+ /** CreateChannelConnectionRequest channelConnection */
+ channelConnection?: (google.cloud.eventarc.v1.IChannelConnection|null);
+
+ /** CreateChannelConnectionRequest channelConnectionId */
+ channelConnectionId?: (string|null);
+ }
+
+ /** Represents a CreateChannelConnectionRequest. */
+ class CreateChannelConnectionRequest implements ICreateChannelConnectionRequest {
+
+ /**
+ * Constructs a new CreateChannelConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.ICreateChannelConnectionRequest);
+
+ /** CreateChannelConnectionRequest parent. */
+ public parent: string;
+
+ /** CreateChannelConnectionRequest channelConnection. */
+ public channelConnection?: (google.cloud.eventarc.v1.IChannelConnection|null);
+
+ /** CreateChannelConnectionRequest channelConnectionId. */
+ public channelConnectionId: string;
+
+ /**
+ * Creates a new CreateChannelConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateChannelConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.ICreateChannelConnectionRequest): google.cloud.eventarc.v1.CreateChannelConnectionRequest;
+
+ /**
+ * Encodes the specified CreateChannelConnectionRequest message. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelConnectionRequest.verify|verify} messages.
+ * @param message CreateChannelConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.ICreateChannelConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateChannelConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelConnectionRequest.verify|verify} messages.
+ * @param message CreateChannelConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.ICreateChannelConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateChannelConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateChannelConnectionRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.CreateChannelConnectionRequest;
+
+ /**
+ * Decodes a CreateChannelConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateChannelConnectionRequest
+ * @throws {Error} If the payload 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.eventarc.v1.CreateChannelConnectionRequest;
+
+ /**
+ * Verifies a CreateChannelConnectionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateChannelConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateChannelConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.CreateChannelConnectionRequest;
+
+ /**
+ * Creates a plain object from a CreateChannelConnectionRequest message. Also converts values to other types if specified.
+ * @param message CreateChannelConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.CreateChannelConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateChannelConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateChannelConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteChannelConnectionRequest. */
+ interface IDeleteChannelConnectionRequest {
+
+ /** DeleteChannelConnectionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteChannelConnectionRequest. */
+ class DeleteChannelConnectionRequest implements IDeleteChannelConnectionRequest {
+
+ /**
+ * Constructs a new DeleteChannelConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IDeleteChannelConnectionRequest);
+
+ /** DeleteChannelConnectionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteChannelConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteChannelConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IDeleteChannelConnectionRequest): google.cloud.eventarc.v1.DeleteChannelConnectionRequest;
+
+ /**
+ * Encodes the specified DeleteChannelConnectionRequest message. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelConnectionRequest.verify|verify} messages.
+ * @param message DeleteChannelConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IDeleteChannelConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteChannelConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelConnectionRequest.verify|verify} messages.
+ * @param message DeleteChannelConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IDeleteChannelConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteChannelConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteChannelConnectionRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.DeleteChannelConnectionRequest;
+
+ /**
+ * Decodes a DeleteChannelConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteChannelConnectionRequest
+ * @throws {Error} If the payload 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.eventarc.v1.DeleteChannelConnectionRequest;
+
+ /**
+ * Verifies a DeleteChannelConnectionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteChannelConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteChannelConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.DeleteChannelConnectionRequest;
+
+ /**
+ * Creates a plain object from a DeleteChannelConnectionRequest message. Also converts values to other types if specified.
+ * @param message DeleteChannelConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.DeleteChannelConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteChannelConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteChannelConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateGoogleChannelConfigRequest. */
+ interface IUpdateGoogleChannelConfigRequest {
+
+ /** UpdateGoogleChannelConfigRequest googleChannelConfig */
+ googleChannelConfig?: (google.cloud.eventarc.v1.IGoogleChannelConfig|null);
+
+ /** UpdateGoogleChannelConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateGoogleChannelConfigRequest. */
+ class UpdateGoogleChannelConfigRequest implements IUpdateGoogleChannelConfigRequest {
+
+ /**
+ * Constructs a new UpdateGoogleChannelConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest);
+
+ /** UpdateGoogleChannelConfigRequest googleChannelConfig. */
+ public googleChannelConfig?: (google.cloud.eventarc.v1.IGoogleChannelConfig|null);
+
+ /** UpdateGoogleChannelConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateGoogleChannelConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateGoogleChannelConfigRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest): google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest;
+
+ /**
+ * Encodes the specified UpdateGoogleChannelConfigRequest message. Does not implicitly {@link google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest.verify|verify} messages.
+ * @param message UpdateGoogleChannelConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateGoogleChannelConfigRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest.verify|verify} messages.
+ * @param message UpdateGoogleChannelConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateGoogleChannelConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateGoogleChannelConfigRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.UpdateGoogleChannelConfigRequest;
+
+ /**
+ * Decodes an UpdateGoogleChannelConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateGoogleChannelConfigRequest
+ * @throws {Error} If the payload 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.eventarc.v1.UpdateGoogleChannelConfigRequest;
+
+ /**
+ * Verifies an UpdateGoogleChannelConfigRequest message.
+ * @param message Plain 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 UpdateGoogleChannelConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateGoogleChannelConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateGoogleChannelConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateGoogleChannelConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateGoogleChannelConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateGoogleChannelConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetGoogleChannelConfigRequest. */
+ interface IGetGoogleChannelConfigRequest {
+
+ /** GetGoogleChannelConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetGoogleChannelConfigRequest. */
+ class GetGoogleChannelConfigRequest implements IGetGoogleChannelConfigRequest {
+
+ /**
+ * Constructs a new GetGoogleChannelConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest);
+
+ /** GetGoogleChannelConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetGoogleChannelConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetGoogleChannelConfigRequest instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest): google.cloud.eventarc.v1.GetGoogleChannelConfigRequest;
+
+ /**
+ * Encodes the specified GetGoogleChannelConfigRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetGoogleChannelConfigRequest.verify|verify} messages.
+ * @param message GetGoogleChannelConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetGoogleChannelConfigRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetGoogleChannelConfigRequest.verify|verify} messages.
+ * @param message GetGoogleChannelConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetGoogleChannelConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetGoogleChannelConfigRequest
+ * @throws {Error} If the payload is not 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.eventarc.v1.GetGoogleChannelConfigRequest;
+
+ /**
+ * Decodes a GetGoogleChannelConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetGoogleChannelConfigRequest
+ * @throws {Error} If the payload 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.eventarc.v1.GetGoogleChannelConfigRequest;
+
+ /**
+ * Verifies a GetGoogleChannelConfigRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetGoogleChannelConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetGoogleChannelConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.GetGoogleChannelConfigRequest;
+
+ /**
+ * Creates a plain object from a GetGoogleChannelConfigRequest message. Also converts values to other types if specified.
+ * @param message GetGoogleChannelConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.GetGoogleChannelConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetGoogleChannelConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetGoogleChannelConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.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.eventarc.v1.IOperationMetadata): google.cloud.eventarc.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.eventarc.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.eventarc.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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 GoogleChannelConfig. */
+ interface IGoogleChannelConfig {
+
+ /** GoogleChannelConfig name */
+ name?: (string|null);
+
+ /** GoogleChannelConfig updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** GoogleChannelConfig cryptoKeyName */
+ cryptoKeyName?: (string|null);
+ }
+
+ /** Represents a GoogleChannelConfig. */
+ class GoogleChannelConfig implements IGoogleChannelConfig {
+
+ /**
+ * Constructs a new GoogleChannelConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IGoogleChannelConfig);
+
+ /** GoogleChannelConfig name. */
+ public name: string;
+
+ /** GoogleChannelConfig updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** GoogleChannelConfig cryptoKeyName. */
+ public cryptoKeyName: string;
+
+ /**
+ * Creates a new GoogleChannelConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoogleChannelConfig instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IGoogleChannelConfig): google.cloud.eventarc.v1.GoogleChannelConfig;
+
+ /**
+ * Encodes the specified GoogleChannelConfig message. Does not implicitly {@link google.cloud.eventarc.v1.GoogleChannelConfig.verify|verify} messages.
+ * @param message GoogleChannelConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IGoogleChannelConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoogleChannelConfig message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GoogleChannelConfig.verify|verify} messages.
+ * @param message GoogleChannelConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IGoogleChannelConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoogleChannelConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoogleChannelConfig
+ * @throws {Error} If the payload is not 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.eventarc.v1.GoogleChannelConfig;
+
+ /**
+ * Decodes a GoogleChannelConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoogleChannelConfig
+ * @throws {Error} If the payload 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.eventarc.v1.GoogleChannelConfig;
+
+ /**
+ * Verifies a GoogleChannelConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoogleChannelConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoogleChannelConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.GoogleChannelConfig;
+
+ /**
+ * Creates a plain object from a GoogleChannelConfig message. Also converts values to other types if specified.
+ * @param message GoogleChannelConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.GoogleChannelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoogleChannelConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoogleChannelConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Trigger. */
+ interface ITrigger {
+
+ /** Trigger name */
+ name?: (string|null);
+
+ /** Trigger uid */
+ uid?: (string|null);
+
+ /** Trigger createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Trigger updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Trigger eventFilters */
+ eventFilters?: (google.cloud.eventarc.v1.IEventFilter[]|null);
+
+ /** Trigger serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** Trigger destination */
+ destination?: (google.cloud.eventarc.v1.IDestination|null);
+
+ /** Trigger transport */
+ transport?: (google.cloud.eventarc.v1.ITransport|null);
+
+ /** Trigger labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Trigger channel */
+ channel?: (string|null);
+
+ /** Trigger conditions */
+ conditions?: ({ [k: string]: google.cloud.eventarc.v1.IStateCondition }|null);
+
+ /** Trigger etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a Trigger. */
+ class Trigger implements ITrigger {
+
+ /**
+ * Constructs a new Trigger.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.ITrigger);
+
+ /** Trigger name. */
+ public name: string;
+
+ /** Trigger uid. */
+ public uid: string;
+
+ /** Trigger createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Trigger updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Trigger eventFilters. */
+ public eventFilters: google.cloud.eventarc.v1.IEventFilter[];
+
+ /** Trigger serviceAccount. */
+ public serviceAccount: string;
+
+ /** Trigger destination. */
+ public destination?: (google.cloud.eventarc.v1.IDestination|null);
+
+ /** Trigger transport. */
+ public transport?: (google.cloud.eventarc.v1.ITransport|null);
+
+ /** Trigger labels. */
+ public labels: { [k: string]: string };
+
+ /** Trigger channel. */
+ public channel: string;
+
+ /** Trigger conditions. */
+ public conditions: { [k: string]: google.cloud.eventarc.v1.IStateCondition };
+
+ /** Trigger etag. */
+ public etag: string;
+
+ /**
+ * Creates a new Trigger instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Trigger instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.ITrigger): google.cloud.eventarc.v1.Trigger;
+
+ /**
+ * Encodes the specified Trigger message. Does not implicitly {@link google.cloud.eventarc.v1.Trigger.verify|verify} messages.
+ * @param message Trigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.ITrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Trigger message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Trigger.verify|verify} messages.
+ * @param message Trigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.ITrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Trigger message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Trigger
+ * @throws {Error} If the payload is not 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.eventarc.v1.Trigger;
+
+ /**
+ * Decodes a Trigger message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Trigger
+ * @throws {Error} If the payload 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.eventarc.v1.Trigger;
+
+ /**
+ * Verifies a Trigger message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Trigger message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Trigger
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.Trigger;
+
+ /**
+ * Creates a plain object from a Trigger message. Also converts values to other types if specified.
+ * @param message Trigger
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.Trigger, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Trigger to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Trigger
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EventFilter. */
+ interface IEventFilter {
+
+ /** EventFilter attribute */
+ attribute?: (string|null);
+
+ /** EventFilter value */
+ value?: (string|null);
+
+ /** EventFilter operator */
+ operator?: (string|null);
+ }
+
+ /** Represents an EventFilter. */
+ class EventFilter implements IEventFilter {
+
+ /**
+ * Constructs a new EventFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IEventFilter);
+
+ /** EventFilter attribute. */
+ public attribute: string;
+
+ /** EventFilter value. */
+ public value: string;
+
+ /** EventFilter operator. */
+ public operator: string;
+
+ /**
+ * Creates a new EventFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventFilter instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IEventFilter): google.cloud.eventarc.v1.EventFilter;
+
+ /**
+ * Encodes the specified EventFilter message. Does not implicitly {@link google.cloud.eventarc.v1.EventFilter.verify|verify} messages.
+ * @param message EventFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IEventFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventFilter message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.EventFilter.verify|verify} messages.
+ * @param message EventFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IEventFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventFilter
+ * @throws {Error} If the payload is not 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.eventarc.v1.EventFilter;
+
+ /**
+ * Decodes an EventFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventFilter
+ * @throws {Error} If the payload 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.eventarc.v1.EventFilter;
+
+ /**
+ * Verifies an EventFilter message.
+ * @param message Plain 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 EventFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.EventFilter;
+
+ /**
+ * Creates a plain object from an EventFilter message. Also converts values to other types if specified.
+ * @param message EventFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.EventFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StateCondition. */
+ interface IStateCondition {
+
+ /** StateCondition code */
+ code?: (google.rpc.Code|keyof typeof google.rpc.Code|null);
+
+ /** StateCondition message */
+ message?: (string|null);
+ }
+
+ /** Represents a StateCondition. */
+ class StateCondition implements IStateCondition {
+
+ /**
+ * Constructs a new StateCondition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IStateCondition);
+
+ /** StateCondition code. */
+ public code: (google.rpc.Code|keyof typeof google.rpc.Code);
+
+ /** StateCondition message. */
+ public message: string;
+
+ /**
+ * Creates a new StateCondition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StateCondition instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IStateCondition): google.cloud.eventarc.v1.StateCondition;
+
+ /**
+ * Encodes the specified StateCondition message. Does not implicitly {@link google.cloud.eventarc.v1.StateCondition.verify|verify} messages.
+ * @param message StateCondition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IStateCondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StateCondition message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.StateCondition.verify|verify} messages.
+ * @param message StateCondition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IStateCondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StateCondition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StateCondition
+ * @throws {Error} If the payload is not 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.eventarc.v1.StateCondition;
+
+ /**
+ * Decodes a StateCondition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StateCondition
+ * @throws {Error} If the payload 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.eventarc.v1.StateCondition;
+
+ /**
+ * Verifies a StateCondition message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StateCondition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StateCondition
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.StateCondition;
+
+ /**
+ * Creates a plain object from a StateCondition message. Also converts values to other types if specified.
+ * @param message StateCondition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.StateCondition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StateCondition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StateCondition
+ * @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 cloudRun */
+ cloudRun?: (google.cloud.eventarc.v1.ICloudRun|null);
+
+ /** Destination cloudFunction */
+ cloudFunction?: (string|null);
+
+ /** Destination gke */
+ gke?: (google.cloud.eventarc.v1.IGKE|null);
+
+ /** Destination workflow */
+ workflow?: (string|null);
+ }
+
+ /** Represents a Destination. */
+ class Destination implements IDestination {
+
+ /**
+ * Constructs a new Destination.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IDestination);
+
+ /** Destination cloudRun. */
+ public cloudRun?: (google.cloud.eventarc.v1.ICloudRun|null);
+
+ /** Destination cloudFunction. */
+ public cloudFunction?: (string|null);
+
+ /** Destination gke. */
+ public gke?: (google.cloud.eventarc.v1.IGKE|null);
+
+ /** Destination workflow. */
+ public workflow?: (string|null);
+
+ /** Destination descriptor. */
+ public descriptor?: ("cloudRun"|"cloudFunction"|"gke"|"workflow");
+
+ /**
+ * Creates a new Destination instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Destination instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IDestination): google.cloud.eventarc.v1.Destination;
+
+ /**
+ * Encodes the specified Destination message. Does not implicitly {@link google.cloud.eventarc.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.eventarc.v1.IDestination, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Destination message, length delimited. Does not implicitly {@link google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.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 Transport. */
+ interface ITransport {
+
+ /** Transport pubsub */
+ pubsub?: (google.cloud.eventarc.v1.IPubsub|null);
+ }
+
+ /** Represents a Transport. */
+ class Transport implements ITransport {
+
+ /**
+ * Constructs a new Transport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.ITransport);
+
+ /** Transport pubsub. */
+ public pubsub?: (google.cloud.eventarc.v1.IPubsub|null);
+
+ /** Transport intermediary. */
+ public intermediary?: "pubsub";
+
+ /**
+ * Creates a new Transport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Transport instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.ITransport): google.cloud.eventarc.v1.Transport;
+
+ /**
+ * Encodes the specified Transport message. Does not implicitly {@link google.cloud.eventarc.v1.Transport.verify|verify} messages.
+ * @param message Transport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.ITransport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Transport message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Transport.verify|verify} messages.
+ * @param message Transport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.ITransport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Transport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Transport
+ * @throws {Error} If the payload is not 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.eventarc.v1.Transport;
+
+ /**
+ * Decodes a Transport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Transport
+ * @throws {Error} If the payload 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.eventarc.v1.Transport;
+
+ /**
+ * Verifies a Transport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Transport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Transport
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.Transport;
+
+ /**
+ * Creates a plain object from a Transport message. Also converts values to other types if specified.
+ * @param message Transport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.Transport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Transport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Transport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CloudRun. */
+ interface ICloudRun {
+
+ /** CloudRun service */
+ service?: (string|null);
+
+ /** CloudRun path */
+ path?: (string|null);
+
+ /** CloudRun region */
+ region?: (string|null);
+ }
+
+ /** Represents a CloudRun. */
+ class CloudRun implements ICloudRun {
+
+ /**
+ * Constructs a new CloudRun.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.ICloudRun);
+
+ /** CloudRun service. */
+ public service: string;
+
+ /** CloudRun path. */
+ public path: string;
+
+ /** CloudRun region. */
+ public region: string;
+
+ /**
+ * Creates a new CloudRun instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloudRun instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.ICloudRun): google.cloud.eventarc.v1.CloudRun;
+
+ /**
+ * Encodes the specified CloudRun message. Does not implicitly {@link google.cloud.eventarc.v1.CloudRun.verify|verify} messages.
+ * @param message CloudRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.ICloudRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloudRun message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CloudRun.verify|verify} messages.
+ * @param message CloudRun message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.ICloudRun, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloudRun message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloudRun
+ * @throws {Error} If the payload is not 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.eventarc.v1.CloudRun;
+
+ /**
+ * Decodes a CloudRun message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloudRun
+ * @throws {Error} If the payload 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.eventarc.v1.CloudRun;
+
+ /**
+ * Verifies a CloudRun message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CloudRun message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloudRun
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.CloudRun;
+
+ /**
+ * Creates a plain object from a CloudRun message. Also converts values to other types if specified.
+ * @param message CloudRun
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.CloudRun, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloudRun to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloudRun
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GKE. */
+ interface IGKE {
+
+ /** GKE cluster */
+ cluster?: (string|null);
+
+ /** GKE location */
+ location?: (string|null);
+
+ /** GKE namespace */
+ namespace?: (string|null);
+
+ /** GKE service */
+ service?: (string|null);
+
+ /** GKE path */
+ path?: (string|null);
+ }
+
+ /** Represents a GKE. */
+ class GKE implements IGKE {
+
+ /**
+ * Constructs a new GKE.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IGKE);
+
+ /** GKE cluster. */
+ public cluster: string;
+
+ /** GKE location. */
+ public location: string;
+
+ /** GKE namespace. */
+ public namespace: string;
+
+ /** GKE service. */
+ public service: string;
+
+ /** GKE path. */
+ public path: string;
+
+ /**
+ * Creates a new GKE instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GKE instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IGKE): google.cloud.eventarc.v1.GKE;
+
+ /**
+ * Encodes the specified GKE message. Does not implicitly {@link google.cloud.eventarc.v1.GKE.verify|verify} messages.
+ * @param message GKE message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IGKE, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GKE message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GKE.verify|verify} messages.
+ * @param message GKE message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IGKE, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GKE message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GKE
+ * @throws {Error} If the payload is not 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.eventarc.v1.GKE;
+
+ /**
+ * Decodes a GKE message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GKE
+ * @throws {Error} If the payload 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.eventarc.v1.GKE;
+
+ /**
+ * Verifies a GKE message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GKE message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GKE
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.GKE;
+
+ /**
+ * Creates a plain object from a GKE message. Also converts values to other types if specified.
+ * @param message GKE
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.GKE, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GKE to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GKE
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Pubsub. */
+ interface IPubsub {
+
+ /** Pubsub topic */
+ topic?: (string|null);
+
+ /** Pubsub subscription */
+ subscription?: (string|null);
+ }
+
+ /** Represents a Pubsub. */
+ class Pubsub implements IPubsub {
+
+ /**
+ * Constructs a new Pubsub.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.eventarc.v1.IPubsub);
+
+ /** Pubsub topic. */
+ public topic: string;
+
+ /** Pubsub subscription. */
+ public subscription: string;
+
+ /**
+ * Creates a new Pubsub instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Pubsub instance
+ */
+ public static create(properties?: google.cloud.eventarc.v1.IPubsub): google.cloud.eventarc.v1.Pubsub;
+
+ /**
+ * Encodes the specified Pubsub message. Does not implicitly {@link google.cloud.eventarc.v1.Pubsub.verify|verify} messages.
+ * @param message Pubsub message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.eventarc.v1.IPubsub, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Pubsub message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Pubsub.verify|verify} messages.
+ * @param message Pubsub message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.eventarc.v1.IPubsub, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Pubsub message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Pubsub
+ * @throws {Error} If the payload is not 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.eventarc.v1.Pubsub;
+
+ /**
+ * Decodes a Pubsub message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Pubsub
+ * @throws {Error} If the payload 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.eventarc.v1.Pubsub;
+
+ /**
+ * Verifies a Pubsub message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Pubsub message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Pubsub
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.v1.Pubsub;
+
+ /**
+ * Creates a plain object from a Pubsub message. Also converts values to other types if specified.
+ * @param message Pubsub
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.eventarc.v1.Pubsub, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Pubsub to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Pubsub
+ * @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;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Code enum. */
+ enum Code {
+ OK = 0,
+ CANCELLED = 1,
+ UNKNOWN = 2,
+ INVALID_ARGUMENT = 3,
+ DEADLINE_EXCEEDED = 4,
+ NOT_FOUND = 5,
+ ALREADY_EXISTS = 6,
+ PERMISSION_DENIED = 7,
+ UNAUTHENTICATED = 16,
+ RESOURCE_EXHAUSTED = 8,
+ FAILED_PRECONDITION = 9,
+ ABORTED = 10,
+ OUT_OF_RANGE = 11,
+ UNIMPLEMENTED = 12,
+ INTERNAL = 13,
+ UNAVAILABLE = 14,
+ DATA_LOSS = 15
+ }
+
+ /** 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;
+ }
+ }
+
+ /** 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;
+ }
+ }
+}
diff --git a/packages/google-cloud-eventarc/protos/protos.js b/packages/google-cloud-eventarc/protos/protos.js
new file mode 100644
index 00000000000..755fe656201
--- /dev/null
+++ b/packages/google-cloud-eventarc/protos/protos.js
@@ -0,0 +1,25671 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_cloud_eventarc_protos || ($protobuf.roots._google_cloud_eventarc_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.eventarc = (function() {
+
+ /**
+ * Namespace eventarc.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var eventarc = {};
+
+ eventarc.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.eventarc
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Channel = (function() {
+
+ /**
+ * Properties of a Channel.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IChannel
+ * @property {string|null} [name] Channel name
+ * @property {string|null} [uid] Channel uid
+ * @property {google.protobuf.ITimestamp|null} [createTime] Channel createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Channel updateTime
+ * @property {string|null} [provider] Channel provider
+ * @property {string|null} [pubsubTopic] Channel pubsubTopic
+ * @property {google.cloud.eventarc.v1.Channel.State|null} [state] Channel state
+ * @property {string|null} [activationToken] Channel activationToken
+ * @property {string|null} [cryptoKeyName] Channel cryptoKeyName
+ */
+
+ /**
+ * Constructs a new Channel.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a Channel.
+ * @implements IChannel
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IChannel=} [properties] Properties to set
+ */
+ function Channel(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]];
+ }
+
+ /**
+ * Channel name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.name = "";
+
+ /**
+ * Channel uid.
+ * @member {string} uid
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.uid = "";
+
+ /**
+ * Channel createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.createTime = null;
+
+ /**
+ * Channel updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.updateTime = null;
+
+ /**
+ * Channel provider.
+ * @member {string} provider
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.provider = "";
+
+ /**
+ * Channel pubsubTopic.
+ * @member {string|null|undefined} pubsubTopic
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.pubsubTopic = null;
+
+ /**
+ * Channel state.
+ * @member {google.cloud.eventarc.v1.Channel.State} state
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.state = 0;
+
+ /**
+ * Channel activationToken.
+ * @member {string} activationToken
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.activationToken = "";
+
+ /**
+ * Channel cryptoKeyName.
+ * @member {string} cryptoKeyName
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Channel.prototype.cryptoKeyName = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Channel transport.
+ * @member {"pubsubTopic"|undefined} transport
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ */
+ Object.defineProperty(Channel.prototype, "transport", {
+ get: $util.oneOfGetter($oneOfFields = ["pubsubTopic"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Channel instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {google.cloud.eventarc.v1.IChannel=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.Channel} Channel instance
+ */
+ Channel.create = function create(properties) {
+ return new Channel(properties);
+ };
+
+ /**
+ * Encodes the specified Channel message. Does not implicitly {@link google.cloud.eventarc.v1.Channel.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {google.cloud.eventarc.v1.IChannel} message Channel message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Channel.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.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.uid);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.provider);
+ if (message.pubsubTopic != null && Object.hasOwnProperty.call(message, "pubsubTopic"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.pubsubTopic);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state);
+ if (message.activationToken != null && Object.hasOwnProperty.call(message, "activationToken"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.activationToken);
+ if (message.cryptoKeyName != null && Object.hasOwnProperty.call(message, "cryptoKeyName"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.cryptoKeyName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Channel message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Channel.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {google.cloud.eventarc.v1.IChannel} message Channel message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Channel.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Channel message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.Channel} Channel
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Channel.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.eventarc.v1.Channel();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.uid = reader.string();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.provider = reader.string();
+ break;
+ }
+ case 8: {
+ message.pubsubTopic = reader.string();
+ break;
+ }
+ case 9: {
+ message.state = reader.int32();
+ break;
+ }
+ case 10: {
+ message.activationToken = reader.string();
+ break;
+ }
+ case 11: {
+ message.cryptoKeyName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Channel message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.Channel} Channel
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Channel.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Channel message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Channel.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: 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.provider != null && message.hasOwnProperty("provider"))
+ if (!$util.isString(message.provider))
+ return "provider: string expected";
+ if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) {
+ properties.transport = 1;
+ if (!$util.isString(message.pubsubTopic))
+ return "pubsubTopic: string expected";
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.activationToken != null && message.hasOwnProperty("activationToken"))
+ if (!$util.isString(message.activationToken))
+ return "activationToken: string expected";
+ if (message.cryptoKeyName != null && message.hasOwnProperty("cryptoKeyName"))
+ if (!$util.isString(message.cryptoKeyName))
+ return "cryptoKeyName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Channel message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.Channel} Channel
+ */
+ Channel.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.Channel)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.Channel();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Channel.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.eventarc.v1.Channel.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.provider != null)
+ message.provider = String(object.provider);
+ if (object.pubsubTopic != null)
+ message.pubsubTopic = String(object.pubsubTopic);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "ACTIVE":
+ case 2:
+ message.state = 2;
+ break;
+ case "INACTIVE":
+ case 3:
+ message.state = 3;
+ break;
+ }
+ if (object.activationToken != null)
+ message.activationToken = String(object.activationToken);
+ if (object.cryptoKeyName != null)
+ message.cryptoKeyName = String(object.cryptoKeyName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Channel message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {google.cloud.eventarc.v1.Channel} message Channel
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Channel.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.uid = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.provider = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.activationToken = "";
+ object.cryptoKeyName = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.provider != null && message.hasOwnProperty("provider"))
+ object.provider = message.provider;
+ if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic")) {
+ object.pubsubTopic = message.pubsubTopic;
+ if (options.oneofs)
+ object.transport = "pubsubTopic";
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.eventarc.v1.Channel.State[message.state] === undefined ? message.state : $root.google.cloud.eventarc.v1.Channel.State[message.state] : message.state;
+ if (message.activationToken != null && message.hasOwnProperty("activationToken"))
+ object.activationToken = message.activationToken;
+ if (message.cryptoKeyName != null && message.hasOwnProperty("cryptoKeyName"))
+ object.cryptoKeyName = message.cryptoKeyName;
+ return object;
+ };
+
+ /**
+ * Converts this Channel to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Channel.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Channel
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.Channel
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Channel.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.Channel";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.eventarc.v1.Channel.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} ACTIVE=2 ACTIVE value
+ * @property {number} INACTIVE=3 INACTIVE value
+ */
+ Channel.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "ACTIVE"] = 2;
+ values[valuesById[3] = "INACTIVE"] = 3;
+ return values;
+ })();
+
+ return Channel;
+ })();
+
+ v1.ChannelConnection = (function() {
+
+ /**
+ * Properties of a ChannelConnection.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IChannelConnection
+ * @property {string|null} [name] ChannelConnection name
+ * @property {string|null} [uid] ChannelConnection uid
+ * @property {string|null} [channel] ChannelConnection channel
+ * @property {google.protobuf.ITimestamp|null} [createTime] ChannelConnection createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] ChannelConnection updateTime
+ * @property {string|null} [activationToken] ChannelConnection activationToken
+ */
+
+ /**
+ * Constructs a new ChannelConnection.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ChannelConnection.
+ * @implements IChannelConnection
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IChannelConnection=} [properties] Properties to set
+ */
+ function ChannelConnection(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]];
+ }
+
+ /**
+ * ChannelConnection name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @instance
+ */
+ ChannelConnection.prototype.name = "";
+
+ /**
+ * ChannelConnection uid.
+ * @member {string} uid
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @instance
+ */
+ ChannelConnection.prototype.uid = "";
+
+ /**
+ * ChannelConnection channel.
+ * @member {string} channel
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @instance
+ */
+ ChannelConnection.prototype.channel = "";
+
+ /**
+ * ChannelConnection createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @instance
+ */
+ ChannelConnection.prototype.createTime = null;
+
+ /**
+ * ChannelConnection updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @instance
+ */
+ ChannelConnection.prototype.updateTime = null;
+
+ /**
+ * ChannelConnection activationToken.
+ * @member {string} activationToken
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @instance
+ */
+ ChannelConnection.prototype.activationToken = "";
+
+ /**
+ * Creates a new ChannelConnection instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {google.cloud.eventarc.v1.IChannelConnection=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ChannelConnection} ChannelConnection instance
+ */
+ ChannelConnection.create = function create(properties) {
+ return new ChannelConnection(properties);
+ };
+
+ /**
+ * Encodes the specified ChannelConnection message. Does not implicitly {@link google.cloud.eventarc.v1.ChannelConnection.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {google.cloud.eventarc.v1.IChannelConnection} message ChannelConnection message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ChannelConnection.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.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.uid);
+ if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.channel);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.activationToken != null && Object.hasOwnProperty.call(message, "activationToken"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.activationToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ChannelConnection message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ChannelConnection.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {google.cloud.eventarc.v1.IChannelConnection} message ChannelConnection message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ChannelConnection.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ChannelConnection message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ChannelConnection} ChannelConnection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ChannelConnection.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.eventarc.v1.ChannelConnection();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.uid = reader.string();
+ break;
+ }
+ case 5: {
+ message.channel = reader.string();
+ break;
+ }
+ case 6: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.activationToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ChannelConnection message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ChannelConnection} ChannelConnection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ChannelConnection.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ChannelConnection message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ChannelConnection.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.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ if (message.channel != null && message.hasOwnProperty("channel"))
+ if (!$util.isString(message.channel))
+ return "channel: 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.activationToken != null && message.hasOwnProperty("activationToken"))
+ if (!$util.isString(message.activationToken))
+ return "activationToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ChannelConnection message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ChannelConnection} ChannelConnection
+ */
+ ChannelConnection.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ChannelConnection)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ChannelConnection();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.channel != null)
+ message.channel = String(object.channel);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.ChannelConnection.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.eventarc.v1.ChannelConnection.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.activationToken != null)
+ message.activationToken = String(object.activationToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ChannelConnection message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {google.cloud.eventarc.v1.ChannelConnection} message ChannelConnection
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ChannelConnection.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.uid = "";
+ object.channel = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.activationToken = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ if (message.channel != null && message.hasOwnProperty("channel"))
+ object.channel = message.channel;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.activationToken != null && message.hasOwnProperty("activationToken"))
+ object.activationToken = message.activationToken;
+ return object;
+ };
+
+ /**
+ * Converts this ChannelConnection to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ChannelConnection.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ChannelConnection
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ChannelConnection
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ChannelConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ChannelConnection";
+ };
+
+ return ChannelConnection;
+ })();
+
+ v1.Provider = (function() {
+
+ /**
+ * Properties of a Provider.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IProvider
+ * @property {string|null} [name] Provider name
+ * @property {string|null} [displayName] Provider displayName
+ * @property {Array.|null} [eventTypes] Provider eventTypes
+ */
+
+ /**
+ * Constructs a new Provider.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a Provider.
+ * @implements IProvider
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IProvider=} [properties] Properties to set
+ */
+ function Provider(properties) {
+ this.eventTypes = [];
+ 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]];
+ }
+
+ /**
+ * Provider name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @instance
+ */
+ Provider.prototype.name = "";
+
+ /**
+ * Provider displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @instance
+ */
+ Provider.prototype.displayName = "";
+
+ /**
+ * Provider eventTypes.
+ * @member {Array.} eventTypes
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @instance
+ */
+ Provider.prototype.eventTypes = $util.emptyArray;
+
+ /**
+ * Creates a new Provider instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {google.cloud.eventarc.v1.IProvider=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.Provider} Provider instance
+ */
+ Provider.create = function create(properties) {
+ return new Provider(properties);
+ };
+
+ /**
+ * Encodes the specified Provider message. Does not implicitly {@link google.cloud.eventarc.v1.Provider.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {google.cloud.eventarc.v1.IProvider} message Provider message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Provider.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.eventTypes != null && message.eventTypes.length)
+ for (var i = 0; i < message.eventTypes.length; ++i)
+ $root.google.cloud.eventarc.v1.EventType.encode(message.eventTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Provider message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Provider.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {google.cloud.eventarc.v1.IProvider} message Provider message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Provider.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Provider message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.Provider} Provider
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Provider.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.eventarc.v1.Provider();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.eventTypes && message.eventTypes.length))
+ message.eventTypes = [];
+ message.eventTypes.push($root.google.cloud.eventarc.v1.EventType.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Provider message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.Provider} Provider
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Provider.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Provider message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Provider.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.eventTypes != null && message.hasOwnProperty("eventTypes")) {
+ if (!Array.isArray(message.eventTypes))
+ return "eventTypes: array expected";
+ for (var i = 0; i < message.eventTypes.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.EventType.verify(message.eventTypes[i]);
+ if (error)
+ return "eventTypes." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Provider message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.Provider} Provider
+ */
+ Provider.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.Provider)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.Provider();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.eventTypes) {
+ if (!Array.isArray(object.eventTypes))
+ throw TypeError(".google.cloud.eventarc.v1.Provider.eventTypes: array expected");
+ message.eventTypes = [];
+ for (var i = 0; i < object.eventTypes.length; ++i) {
+ if (typeof object.eventTypes[i] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Provider.eventTypes: object expected");
+ message.eventTypes[i] = $root.google.cloud.eventarc.v1.EventType.fromObject(object.eventTypes[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Provider message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {google.cloud.eventarc.v1.Provider} message Provider
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Provider.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.eventTypes = [];
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.eventTypes && message.eventTypes.length) {
+ object.eventTypes = [];
+ for (var j = 0; j < message.eventTypes.length; ++j)
+ object.eventTypes[j] = $root.google.cloud.eventarc.v1.EventType.toObject(message.eventTypes[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Provider to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Provider.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Provider
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.Provider
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Provider.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.Provider";
+ };
+
+ return Provider;
+ })();
+
+ v1.EventType = (function() {
+
+ /**
+ * Properties of an EventType.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IEventType
+ * @property {string|null} [type] EventType type
+ * @property {string|null} [description] EventType description
+ * @property {Array.|null} [filteringAttributes] EventType filteringAttributes
+ * @property {string|null} [eventSchemaUri] EventType eventSchemaUri
+ */
+
+ /**
+ * Constructs a new EventType.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents an EventType.
+ * @implements IEventType
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IEventType=} [properties] Properties to set
+ */
+ function EventType(properties) {
+ this.filteringAttributes = [];
+ 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]];
+ }
+
+ /**
+ * EventType type.
+ * @member {string} type
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @instance
+ */
+ EventType.prototype.type = "";
+
+ /**
+ * EventType description.
+ * @member {string} description
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @instance
+ */
+ EventType.prototype.description = "";
+
+ /**
+ * EventType filteringAttributes.
+ * @member {Array.} filteringAttributes
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @instance
+ */
+ EventType.prototype.filteringAttributes = $util.emptyArray;
+
+ /**
+ * EventType eventSchemaUri.
+ * @member {string} eventSchemaUri
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @instance
+ */
+ EventType.prototype.eventSchemaUri = "";
+
+ /**
+ * Creates a new EventType instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {google.cloud.eventarc.v1.IEventType=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.EventType} EventType instance
+ */
+ EventType.create = function create(properties) {
+ return new EventType(properties);
+ };
+
+ /**
+ * Encodes the specified EventType message. Does not implicitly {@link google.cloud.eventarc.v1.EventType.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {google.cloud.eventarc.v1.IEventType} message EventType message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventType.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.filteringAttributes != null && message.filteringAttributes.length)
+ for (var i = 0; i < message.filteringAttributes.length; ++i)
+ $root.google.cloud.eventarc.v1.FilteringAttribute.encode(message.filteringAttributes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.eventSchemaUri != null && Object.hasOwnProperty.call(message, "eventSchemaUri"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.eventSchemaUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EventType message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.EventType.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {google.cloud.eventarc.v1.IEventType} message EventType message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventType.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EventType message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.EventType} EventType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventType.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.eventarc.v1.EventType();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.filteringAttributes && message.filteringAttributes.length))
+ message.filteringAttributes = [];
+ message.filteringAttributes.push($root.google.cloud.eventarc.v1.FilteringAttribute.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ message.eventSchemaUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EventType message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.EventType} EventType
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventType.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EventType message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EventType.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.filteringAttributes != null && message.hasOwnProperty("filteringAttributes")) {
+ if (!Array.isArray(message.filteringAttributes))
+ return "filteringAttributes: array expected";
+ for (var i = 0; i < message.filteringAttributes.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.FilteringAttribute.verify(message.filteringAttributes[i]);
+ if (error)
+ return "filteringAttributes." + error;
+ }
+ }
+ if (message.eventSchemaUri != null && message.hasOwnProperty("eventSchemaUri"))
+ if (!$util.isString(message.eventSchemaUri))
+ return "eventSchemaUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EventType message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.EventType} EventType
+ */
+ EventType.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.EventType)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.EventType();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.filteringAttributes) {
+ if (!Array.isArray(object.filteringAttributes))
+ throw TypeError(".google.cloud.eventarc.v1.EventType.filteringAttributes: array expected");
+ message.filteringAttributes = [];
+ for (var i = 0; i < object.filteringAttributes.length; ++i) {
+ if (typeof object.filteringAttributes[i] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.EventType.filteringAttributes: object expected");
+ message.filteringAttributes[i] = $root.google.cloud.eventarc.v1.FilteringAttribute.fromObject(object.filteringAttributes[i]);
+ }
+ }
+ if (object.eventSchemaUri != null)
+ message.eventSchemaUri = String(object.eventSchemaUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EventType message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {google.cloud.eventarc.v1.EventType} message EventType
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EventType.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.filteringAttributes = [];
+ if (options.defaults) {
+ object.type = "";
+ object.description = "";
+ object.eventSchemaUri = "";
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.filteringAttributes && message.filteringAttributes.length) {
+ object.filteringAttributes = [];
+ for (var j = 0; j < message.filteringAttributes.length; ++j)
+ object.filteringAttributes[j] = $root.google.cloud.eventarc.v1.FilteringAttribute.toObject(message.filteringAttributes[j], options);
+ }
+ if (message.eventSchemaUri != null && message.hasOwnProperty("eventSchemaUri"))
+ object.eventSchemaUri = message.eventSchemaUri;
+ return object;
+ };
+
+ /**
+ * Converts this EventType to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EventType.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EventType
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.EventType
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EventType.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.EventType";
+ };
+
+ return EventType;
+ })();
+
+ v1.FilteringAttribute = (function() {
+
+ /**
+ * Properties of a FilteringAttribute.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IFilteringAttribute
+ * @property {string|null} [attribute] FilteringAttribute attribute
+ * @property {string|null} [description] FilteringAttribute description
+ * @property {boolean|null} [required] FilteringAttribute required
+ * @property {boolean|null} [pathPatternSupported] FilteringAttribute pathPatternSupported
+ */
+
+ /**
+ * Constructs a new FilteringAttribute.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a FilteringAttribute.
+ * @implements IFilteringAttribute
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IFilteringAttribute=} [properties] Properties to set
+ */
+ function FilteringAttribute(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]];
+ }
+
+ /**
+ * FilteringAttribute attribute.
+ * @member {string} attribute
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @instance
+ */
+ FilteringAttribute.prototype.attribute = "";
+
+ /**
+ * FilteringAttribute description.
+ * @member {string} description
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @instance
+ */
+ FilteringAttribute.prototype.description = "";
+
+ /**
+ * FilteringAttribute required.
+ * @member {boolean} required
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @instance
+ */
+ FilteringAttribute.prototype.required = false;
+
+ /**
+ * FilteringAttribute pathPatternSupported.
+ * @member {boolean} pathPatternSupported
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @instance
+ */
+ FilteringAttribute.prototype.pathPatternSupported = false;
+
+ /**
+ * Creates a new FilteringAttribute instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {google.cloud.eventarc.v1.IFilteringAttribute=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.FilteringAttribute} FilteringAttribute instance
+ */
+ FilteringAttribute.create = function create(properties) {
+ return new FilteringAttribute(properties);
+ };
+
+ /**
+ * Encodes the specified FilteringAttribute message. Does not implicitly {@link google.cloud.eventarc.v1.FilteringAttribute.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {google.cloud.eventarc.v1.IFilteringAttribute} message FilteringAttribute message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FilteringAttribute.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.attribute != null && Object.hasOwnProperty.call(message, "attribute"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.attribute);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.required != null && Object.hasOwnProperty.call(message, "required"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required);
+ if (message.pathPatternSupported != null && Object.hasOwnProperty.call(message, "pathPatternSupported"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.pathPatternSupported);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FilteringAttribute message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.FilteringAttribute.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {google.cloud.eventarc.v1.IFilteringAttribute} message FilteringAttribute message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FilteringAttribute.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FilteringAttribute message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.FilteringAttribute} FilteringAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FilteringAttribute.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.eventarc.v1.FilteringAttribute();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.attribute = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.required = reader.bool();
+ break;
+ }
+ case 4: {
+ message.pathPatternSupported = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FilteringAttribute message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.FilteringAttribute} FilteringAttribute
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FilteringAttribute.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FilteringAttribute message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FilteringAttribute.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.attribute != null && message.hasOwnProperty("attribute"))
+ if (!$util.isString(message.attribute))
+ return "attribute: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.required != null && message.hasOwnProperty("required"))
+ if (typeof message.required !== "boolean")
+ return "required: boolean expected";
+ if (message.pathPatternSupported != null && message.hasOwnProperty("pathPatternSupported"))
+ if (typeof message.pathPatternSupported !== "boolean")
+ return "pathPatternSupported: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a FilteringAttribute message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.FilteringAttribute} FilteringAttribute
+ */
+ FilteringAttribute.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.FilteringAttribute)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.FilteringAttribute();
+ if (object.attribute != null)
+ message.attribute = String(object.attribute);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.required != null)
+ message.required = Boolean(object.required);
+ if (object.pathPatternSupported != null)
+ message.pathPatternSupported = Boolean(object.pathPatternSupported);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FilteringAttribute message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {google.cloud.eventarc.v1.FilteringAttribute} message FilteringAttribute
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FilteringAttribute.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.attribute = "";
+ object.description = "";
+ object.required = false;
+ object.pathPatternSupported = false;
+ }
+ if (message.attribute != null && message.hasOwnProperty("attribute"))
+ object.attribute = message.attribute;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.required != null && message.hasOwnProperty("required"))
+ object.required = message.required;
+ if (message.pathPatternSupported != null && message.hasOwnProperty("pathPatternSupported"))
+ object.pathPatternSupported = message.pathPatternSupported;
+ return object;
+ };
+
+ /**
+ * Converts this FilteringAttribute to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FilteringAttribute.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FilteringAttribute
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.FilteringAttribute
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FilteringAttribute.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.FilteringAttribute";
+ };
+
+ return FilteringAttribute;
+ })();
+
+ v1.Eventarc = (function() {
+
+ /**
+ * Constructs a new Eventarc service.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents an Eventarc
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function Eventarc(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (Eventarc.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Eventarc;
+
+ /**
+ * Creates new Eventarc service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {Eventarc} RPC service. Useful where requests and/or responses are streamed.
+ */
+ Eventarc.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getTrigger}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef GetTriggerCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.Trigger} [response] Trigger
+ */
+
+ /**
+ * Calls GetTrigger.
+ * @function getTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetTriggerRequest} request GetTriggerRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.GetTriggerCallback} callback Node-style callback called with the error, if any, and Trigger
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.getTrigger = function getTrigger(request, callback) {
+ return this.rpcCall(getTrigger, $root.google.cloud.eventarc.v1.GetTriggerRequest, $root.google.cloud.eventarc.v1.Trigger, request, callback);
+ }, "name", { value: "GetTrigger" });
+
+ /**
+ * Calls GetTrigger.
+ * @function getTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetTriggerRequest} request GetTriggerRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listTriggers}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef ListTriggersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.ListTriggersResponse} [response] ListTriggersResponse
+ */
+
+ /**
+ * Calls ListTriggers.
+ * @function listTriggers
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListTriggersRequest} request ListTriggersRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.ListTriggersCallback} callback Node-style callback called with the error, if any, and ListTriggersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.listTriggers = function listTriggers(request, callback) {
+ return this.rpcCall(listTriggers, $root.google.cloud.eventarc.v1.ListTriggersRequest, $root.google.cloud.eventarc.v1.ListTriggersResponse, request, callback);
+ }, "name", { value: "ListTriggers" });
+
+ /**
+ * Calls ListTriggers.
+ * @function listTriggers
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListTriggersRequest} request ListTriggersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|createTrigger}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef CreateTriggerCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateTrigger.
+ * @function createTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.ICreateTriggerRequest} request CreateTriggerRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.CreateTriggerCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.createTrigger = function createTrigger(request, callback) {
+ return this.rpcCall(createTrigger, $root.google.cloud.eventarc.v1.CreateTriggerRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateTrigger" });
+
+ /**
+ * Calls CreateTrigger.
+ * @function createTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.ICreateTriggerRequest} request CreateTriggerRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|updateTrigger}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef UpdateTriggerCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateTrigger.
+ * @function updateTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IUpdateTriggerRequest} request UpdateTriggerRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.UpdateTriggerCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.updateTrigger = function updateTrigger(request, callback) {
+ return this.rpcCall(updateTrigger, $root.google.cloud.eventarc.v1.UpdateTriggerRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateTrigger" });
+
+ /**
+ * Calls UpdateTrigger.
+ * @function updateTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IUpdateTriggerRequest} request UpdateTriggerRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|deleteTrigger}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef DeleteTriggerCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteTrigger.
+ * @function deleteTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IDeleteTriggerRequest} request DeleteTriggerRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.DeleteTriggerCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.deleteTrigger = function deleteTrigger(request, callback) {
+ return this.rpcCall(deleteTrigger, $root.google.cloud.eventarc.v1.DeleteTriggerRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteTrigger" });
+
+ /**
+ * Calls DeleteTrigger.
+ * @function deleteTrigger
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IDeleteTriggerRequest} request DeleteTriggerRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getChannel}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef GetChannelCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.Channel} [response] Channel
+ */
+
+ /**
+ * Calls GetChannel.
+ * @function getChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetChannelRequest} request GetChannelRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.GetChannelCallback} callback Node-style callback called with the error, if any, and Channel
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.getChannel = function getChannel(request, callback) {
+ return this.rpcCall(getChannel, $root.google.cloud.eventarc.v1.GetChannelRequest, $root.google.cloud.eventarc.v1.Channel, request, callback);
+ }, "name", { value: "GetChannel" });
+
+ /**
+ * Calls GetChannel.
+ * @function getChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetChannelRequest} request GetChannelRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listChannels}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef ListChannelsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.ListChannelsResponse} [response] ListChannelsResponse
+ */
+
+ /**
+ * Calls ListChannels.
+ * @function listChannels
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListChannelsRequest} request ListChannelsRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.ListChannelsCallback} callback Node-style callback called with the error, if any, and ListChannelsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.listChannels = function listChannels(request, callback) {
+ return this.rpcCall(listChannels, $root.google.cloud.eventarc.v1.ListChannelsRequest, $root.google.cloud.eventarc.v1.ListChannelsResponse, request, callback);
+ }, "name", { value: "ListChannels" });
+
+ /**
+ * Calls ListChannels.
+ * @function listChannels
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListChannelsRequest} request ListChannelsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|createChannel}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef CreateChannelCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateChannel.
+ * @function createChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.ICreateChannelRequest} request CreateChannelRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.CreateChannelCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.createChannel = function createChannel(request, callback) {
+ return this.rpcCall(createChannel, $root.google.cloud.eventarc.v1.CreateChannelRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateChannel" });
+
+ /**
+ * Calls CreateChannel.
+ * @function createChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.ICreateChannelRequest} request CreateChannelRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|updateChannel}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef UpdateChannelCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateChannel.
+ * @function updateChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IUpdateChannelRequest} request UpdateChannelRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.UpdateChannelCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.updateChannel = function updateChannel(request, callback) {
+ return this.rpcCall(updateChannel, $root.google.cloud.eventarc.v1.UpdateChannelRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateChannel" });
+
+ /**
+ * Calls UpdateChannel.
+ * @function updateChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IUpdateChannelRequest} request UpdateChannelRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|deleteChannel}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef DeleteChannelCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteChannel.
+ * @function deleteChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IDeleteChannelRequest} request DeleteChannelRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.DeleteChannelCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.deleteChannel = function deleteChannel(request, callback) {
+ return this.rpcCall(deleteChannel, $root.google.cloud.eventarc.v1.DeleteChannelRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteChannel" });
+
+ /**
+ * Calls DeleteChannel.
+ * @function deleteChannel
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IDeleteChannelRequest} request DeleteChannelRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getProvider}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef GetProviderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.Provider} [response] Provider
+ */
+
+ /**
+ * Calls GetProvider.
+ * @function getProvider
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetProviderRequest} request GetProviderRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.GetProviderCallback} callback Node-style callback called with the error, if any, and Provider
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.getProvider = function getProvider(request, callback) {
+ return this.rpcCall(getProvider, $root.google.cloud.eventarc.v1.GetProviderRequest, $root.google.cloud.eventarc.v1.Provider, request, callback);
+ }, "name", { value: "GetProvider" });
+
+ /**
+ * Calls GetProvider.
+ * @function getProvider
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetProviderRequest} request GetProviderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listProviders}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef ListProvidersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.ListProvidersResponse} [response] ListProvidersResponse
+ */
+
+ /**
+ * Calls ListProviders.
+ * @function listProviders
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListProvidersRequest} request ListProvidersRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.ListProvidersCallback} callback Node-style callback called with the error, if any, and ListProvidersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.listProviders = function listProviders(request, callback) {
+ return this.rpcCall(listProviders, $root.google.cloud.eventarc.v1.ListProvidersRequest, $root.google.cloud.eventarc.v1.ListProvidersResponse, request, callback);
+ }, "name", { value: "ListProviders" });
+
+ /**
+ * Calls ListProviders.
+ * @function listProviders
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListProvidersRequest} request ListProvidersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getChannelConnection}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef GetChannelConnectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.ChannelConnection} [response] ChannelConnection
+ */
+
+ /**
+ * Calls GetChannelConnection.
+ * @function getChannelConnection
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetChannelConnectionRequest} request GetChannelConnectionRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.GetChannelConnectionCallback} callback Node-style callback called with the error, if any, and ChannelConnection
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.getChannelConnection = function getChannelConnection(request, callback) {
+ return this.rpcCall(getChannelConnection, $root.google.cloud.eventarc.v1.GetChannelConnectionRequest, $root.google.cloud.eventarc.v1.ChannelConnection, request, callback);
+ }, "name", { value: "GetChannelConnection" });
+
+ /**
+ * Calls GetChannelConnection.
+ * @function getChannelConnection
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetChannelConnectionRequest} request GetChannelConnectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|listChannelConnections}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef ListChannelConnectionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.ListChannelConnectionsResponse} [response] ListChannelConnectionsResponse
+ */
+
+ /**
+ * Calls ListChannelConnections.
+ * @function listChannelConnections
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsRequest} request ListChannelConnectionsRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.ListChannelConnectionsCallback} callback Node-style callback called with the error, if any, and ListChannelConnectionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.listChannelConnections = function listChannelConnections(request, callback) {
+ return this.rpcCall(listChannelConnections, $root.google.cloud.eventarc.v1.ListChannelConnectionsRequest, $root.google.cloud.eventarc.v1.ListChannelConnectionsResponse, request, callback);
+ }, "name", { value: "ListChannelConnections" });
+
+ /**
+ * Calls ListChannelConnections.
+ * @function listChannelConnections
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsRequest} request ListChannelConnectionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|createChannelConnection}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef CreateChannelConnectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateChannelConnection.
+ * @function createChannelConnection
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.ICreateChannelConnectionRequest} request CreateChannelConnectionRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.CreateChannelConnectionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.createChannelConnection = function createChannelConnection(request, callback) {
+ return this.rpcCall(createChannelConnection, $root.google.cloud.eventarc.v1.CreateChannelConnectionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateChannelConnection" });
+
+ /**
+ * Calls CreateChannelConnection.
+ * @function createChannelConnection
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.ICreateChannelConnectionRequest} request CreateChannelConnectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|deleteChannelConnection}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef DeleteChannelConnectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteChannelConnection.
+ * @function deleteChannelConnection
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IDeleteChannelConnectionRequest} request DeleteChannelConnectionRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.DeleteChannelConnectionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.deleteChannelConnection = function deleteChannelConnection(request, callback) {
+ return this.rpcCall(deleteChannelConnection, $root.google.cloud.eventarc.v1.DeleteChannelConnectionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteChannelConnection" });
+
+ /**
+ * Calls DeleteChannelConnection.
+ * @function deleteChannelConnection
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IDeleteChannelConnectionRequest} request DeleteChannelConnectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|getGoogleChannelConfig}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef GetGoogleChannelConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.GoogleChannelConfig} [response] GoogleChannelConfig
+ */
+
+ /**
+ * Calls GetGoogleChannelConfig.
+ * @function getGoogleChannelConfig
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest} request GetGoogleChannelConfigRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.GetGoogleChannelConfigCallback} callback Node-style callback called with the error, if any, and GoogleChannelConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.getGoogleChannelConfig = function getGoogleChannelConfig(request, callback) {
+ return this.rpcCall(getGoogleChannelConfig, $root.google.cloud.eventarc.v1.GetGoogleChannelConfigRequest, $root.google.cloud.eventarc.v1.GoogleChannelConfig, request, callback);
+ }, "name", { value: "GetGoogleChannelConfig" });
+
+ /**
+ * Calls GetGoogleChannelConfig.
+ * @function getGoogleChannelConfig
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest} request GetGoogleChannelConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.eventarc.v1.Eventarc|updateGoogleChannelConfig}.
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @typedef UpdateGoogleChannelConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.eventarc.v1.GoogleChannelConfig} [response] GoogleChannelConfig
+ */
+
+ /**
+ * Calls UpdateGoogleChannelConfig.
+ * @function updateGoogleChannelConfig
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest} request UpdateGoogleChannelConfigRequest message or plain object
+ * @param {google.cloud.eventarc.v1.Eventarc.UpdateGoogleChannelConfigCallback} callback Node-style callback called with the error, if any, and GoogleChannelConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Eventarc.prototype.updateGoogleChannelConfig = function updateGoogleChannelConfig(request, callback) {
+ return this.rpcCall(updateGoogleChannelConfig, $root.google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest, $root.google.cloud.eventarc.v1.GoogleChannelConfig, request, callback);
+ }, "name", { value: "UpdateGoogleChannelConfig" });
+
+ /**
+ * Calls UpdateGoogleChannelConfig.
+ * @function updateGoogleChannelConfig
+ * @memberof google.cloud.eventarc.v1.Eventarc
+ * @instance
+ * @param {google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest} request UpdateGoogleChannelConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return Eventarc;
+ })();
+
+ v1.GetTriggerRequest = (function() {
+
+ /**
+ * Properties of a GetTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IGetTriggerRequest
+ * @property {string|null} [name] GetTriggerRequest name
+ */
+
+ /**
+ * Constructs a new GetTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a GetTriggerRequest.
+ * @implements IGetTriggerRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IGetTriggerRequest=} [properties] Properties to set
+ */
+ function GetTriggerRequest(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]];
+ }
+
+ /**
+ * GetTriggerRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @instance
+ */
+ GetTriggerRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetTriggerRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetTriggerRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.GetTriggerRequest} GetTriggerRequest instance
+ */
+ GetTriggerRequest.create = function create(properties) {
+ return new GetTriggerRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetTriggerRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetTriggerRequest} message GetTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetTriggerRequest.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 GetTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetTriggerRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetTriggerRequest} message GetTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetTriggerRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetTriggerRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.GetTriggerRequest} GetTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetTriggerRequest.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.eventarc.v1.GetTriggerRequest();
+ 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 GetTriggerRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.GetTriggerRequest} GetTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetTriggerRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetTriggerRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetTriggerRequest.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 GetTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.GetTriggerRequest} GetTriggerRequest
+ */
+ GetTriggerRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.GetTriggerRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.GetTriggerRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetTriggerRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.GetTriggerRequest} message GetTriggerRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetTriggerRequest.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 GetTriggerRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetTriggerRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetTriggerRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.GetTriggerRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetTriggerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.GetTriggerRequest";
+ };
+
+ return GetTriggerRequest;
+ })();
+
+ v1.ListTriggersRequest = (function() {
+
+ /**
+ * Properties of a ListTriggersRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListTriggersRequest
+ * @property {string|null} [parent] ListTriggersRequest parent
+ * @property {number|null} [pageSize] ListTriggersRequest pageSize
+ * @property {string|null} [pageToken] ListTriggersRequest pageToken
+ * @property {string|null} [orderBy] ListTriggersRequest orderBy
+ * @property {string|null} [filter] ListTriggersRequest filter
+ */
+
+ /**
+ * Constructs a new ListTriggersRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListTriggersRequest.
+ * @implements IListTriggersRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListTriggersRequest=} [properties] Properties to set
+ */
+ function ListTriggersRequest(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]];
+ }
+
+ /**
+ * ListTriggersRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @instance
+ */
+ ListTriggersRequest.prototype.parent = "";
+
+ /**
+ * ListTriggersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @instance
+ */
+ ListTriggersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListTriggersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @instance
+ */
+ ListTriggersRequest.prototype.pageToken = "";
+
+ /**
+ * ListTriggersRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @instance
+ */
+ ListTriggersRequest.prototype.orderBy = "";
+
+ /**
+ * ListTriggersRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @instance
+ */
+ ListTriggersRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListTriggersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListTriggersRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListTriggersRequest} ListTriggersRequest instance
+ */
+ ListTriggersRequest.create = function create(properties) {
+ return new ListTriggersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListTriggersRequest message. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListTriggersRequest} message ListTriggersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTriggersRequest.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.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListTriggersRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListTriggersRequest} message ListTriggersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTriggersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListTriggersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListTriggersRequest} ListTriggersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTriggersRequest.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.eventarc.v1.ListTriggersRequest();
+ 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.orderBy = reader.string();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListTriggersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListTriggersRequest} ListTriggersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTriggersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListTriggersRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListTriggersRequest.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.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListTriggersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListTriggersRequest} ListTriggersRequest
+ */
+ ListTriggersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListTriggersRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListTriggersRequest();
+ 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.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListTriggersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ListTriggersRequest} message ListTriggersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListTriggersRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.orderBy = "";
+ 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.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListTriggersRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListTriggersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListTriggersRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListTriggersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListTriggersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListTriggersRequest";
+ };
+
+ return ListTriggersRequest;
+ })();
+
+ v1.ListTriggersResponse = (function() {
+
+ /**
+ * Properties of a ListTriggersResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListTriggersResponse
+ * @property {Array.|null} [triggers] ListTriggersResponse triggers
+ * @property {string|null} [nextPageToken] ListTriggersResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListTriggersResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListTriggersResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListTriggersResponse.
+ * @implements IListTriggersResponse
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListTriggersResponse=} [properties] Properties to set
+ */
+ function ListTriggersResponse(properties) {
+ this.triggers = [];
+ 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]];
+ }
+
+ /**
+ * ListTriggersResponse triggers.
+ * @member {Array.} triggers
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @instance
+ */
+ ListTriggersResponse.prototype.triggers = $util.emptyArray;
+
+ /**
+ * ListTriggersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @instance
+ */
+ ListTriggersResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListTriggersResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @instance
+ */
+ ListTriggersResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListTriggersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListTriggersResponse=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListTriggersResponse} ListTriggersResponse instance
+ */
+ ListTriggersResponse.create = function create(properties) {
+ return new ListTriggersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListTriggersResponse message. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListTriggersResponse} message ListTriggersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTriggersResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.triggers != null && message.triggers.length)
+ for (var i = 0; i < message.triggers.length; ++i)
+ $root.google.cloud.eventarc.v1.Trigger.encode(message.triggers[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 ListTriggersResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListTriggersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListTriggersResponse} message ListTriggersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListTriggersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListTriggersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListTriggersResponse} ListTriggersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTriggersResponse.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.eventarc.v1.ListTriggersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.triggers && message.triggers.length))
+ message.triggers = [];
+ message.triggers.push($root.google.cloud.eventarc.v1.Trigger.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 ListTriggersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListTriggersResponse} ListTriggersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListTriggersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListTriggersResponse message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListTriggersResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.triggers != null && message.hasOwnProperty("triggers")) {
+ if (!Array.isArray(message.triggers))
+ return "triggers: array expected";
+ for (var i = 0; i < message.triggers.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.Trigger.verify(message.triggers[i]);
+ if (error)
+ return "triggers." + 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 ListTriggersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListTriggersResponse} ListTriggersResponse
+ */
+ ListTriggersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListTriggersResponse)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListTriggersResponse();
+ if (object.triggers) {
+ if (!Array.isArray(object.triggers))
+ throw TypeError(".google.cloud.eventarc.v1.ListTriggersResponse.triggers: array expected");
+ message.triggers = [];
+ for (var i = 0; i < object.triggers.length; ++i) {
+ if (typeof object.triggers[i] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.ListTriggersResponse.triggers: object expected");
+ message.triggers[i] = $root.google.cloud.eventarc.v1.Trigger.fromObject(object.triggers[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.eventarc.v1.ListTriggersResponse.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 ListTriggersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.ListTriggersResponse} message ListTriggersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListTriggersResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.triggers = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.triggers && message.triggers.length) {
+ object.triggers = [];
+ for (var j = 0; j < message.triggers.length; ++j)
+ object.triggers[j] = $root.google.cloud.eventarc.v1.Trigger.toObject(message.triggers[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 ListTriggersResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListTriggersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListTriggersResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListTriggersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListTriggersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListTriggersResponse";
+ };
+
+ return ListTriggersResponse;
+ })();
+
+ v1.CreateTriggerRequest = (function() {
+
+ /**
+ * Properties of a CreateTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface ICreateTriggerRequest
+ * @property {string|null} [parent] CreateTriggerRequest parent
+ * @property {google.cloud.eventarc.v1.ITrigger|null} [trigger] CreateTriggerRequest trigger
+ * @property {string|null} [triggerId] CreateTriggerRequest triggerId
+ * @property {boolean|null} [validateOnly] CreateTriggerRequest validateOnly
+ */
+
+ /**
+ * Constructs a new CreateTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a CreateTriggerRequest.
+ * @implements ICreateTriggerRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.ICreateTriggerRequest=} [properties] Properties to set
+ */
+ function CreateTriggerRequest(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]];
+ }
+
+ /**
+ * CreateTriggerRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @instance
+ */
+ CreateTriggerRequest.prototype.parent = "";
+
+ /**
+ * CreateTriggerRequest trigger.
+ * @member {google.cloud.eventarc.v1.ITrigger|null|undefined} trigger
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @instance
+ */
+ CreateTriggerRequest.prototype.trigger = null;
+
+ /**
+ * CreateTriggerRequest triggerId.
+ * @member {string} triggerId
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @instance
+ */
+ CreateTriggerRequest.prototype.triggerId = "";
+
+ /**
+ * CreateTriggerRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @instance
+ */
+ CreateTriggerRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new CreateTriggerRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateTriggerRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.CreateTriggerRequest} CreateTriggerRequest instance
+ */
+ CreateTriggerRequest.create = function create(properties) {
+ return new CreateTriggerRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.CreateTriggerRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateTriggerRequest} message CreateTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateTriggerRequest.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.trigger != null && Object.hasOwnProperty.call(message, "trigger"))
+ $root.google.cloud.eventarc.v1.Trigger.encode(message.trigger, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.triggerId != null && Object.hasOwnProperty.call(message, "triggerId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.triggerId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CreateTriggerRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateTriggerRequest} message CreateTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateTriggerRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateTriggerRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.CreateTriggerRequest} CreateTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateTriggerRequest.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.eventarc.v1.CreateTriggerRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.trigger = $root.google.cloud.eventarc.v1.Trigger.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.triggerId = reader.string();
+ break;
+ }
+ case 4: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateTriggerRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.CreateTriggerRequest} CreateTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateTriggerRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateTriggerRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateTriggerRequest.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.trigger != null && message.hasOwnProperty("trigger")) {
+ var error = $root.google.cloud.eventarc.v1.Trigger.verify(message.trigger);
+ if (error)
+ return "trigger." + error;
+ }
+ if (message.triggerId != null && message.hasOwnProperty("triggerId"))
+ if (!$util.isString(message.triggerId))
+ return "triggerId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.CreateTriggerRequest} CreateTriggerRequest
+ */
+ CreateTriggerRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.CreateTriggerRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.CreateTriggerRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.trigger != null) {
+ if (typeof object.trigger !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.CreateTriggerRequest.trigger: object expected");
+ message.trigger = $root.google.cloud.eventarc.v1.Trigger.fromObject(object.trigger);
+ }
+ if (object.triggerId != null)
+ message.triggerId = String(object.triggerId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateTriggerRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.CreateTriggerRequest} message CreateTriggerRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateTriggerRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.trigger = null;
+ object.triggerId = "";
+ object.validateOnly = false;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.trigger != null && message.hasOwnProperty("trigger"))
+ object.trigger = $root.google.cloud.eventarc.v1.Trigger.toObject(message.trigger, options);
+ if (message.triggerId != null && message.hasOwnProperty("triggerId"))
+ object.triggerId = message.triggerId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this CreateTriggerRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateTriggerRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateTriggerRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.CreateTriggerRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateTriggerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.CreateTriggerRequest";
+ };
+
+ return CreateTriggerRequest;
+ })();
+
+ v1.UpdateTriggerRequest = (function() {
+
+ /**
+ * Properties of an UpdateTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IUpdateTriggerRequest
+ * @property {google.cloud.eventarc.v1.ITrigger|null} [trigger] UpdateTriggerRequest trigger
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTriggerRequest updateMask
+ * @property {boolean|null} [allowMissing] UpdateTriggerRequest allowMissing
+ * @property {boolean|null} [validateOnly] UpdateTriggerRequest validateOnly
+ */
+
+ /**
+ * Constructs a new UpdateTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents an UpdateTriggerRequest.
+ * @implements IUpdateTriggerRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IUpdateTriggerRequest=} [properties] Properties to set
+ */
+ function UpdateTriggerRequest(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]];
+ }
+
+ /**
+ * UpdateTriggerRequest trigger.
+ * @member {google.cloud.eventarc.v1.ITrigger|null|undefined} trigger
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @instance
+ */
+ UpdateTriggerRequest.prototype.trigger = null;
+
+ /**
+ * UpdateTriggerRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @instance
+ */
+ UpdateTriggerRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateTriggerRequest allowMissing.
+ * @member {boolean} allowMissing
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @instance
+ */
+ UpdateTriggerRequest.prototype.allowMissing = false;
+
+ /**
+ * UpdateTriggerRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @instance
+ */
+ UpdateTriggerRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new UpdateTriggerRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateTriggerRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.UpdateTriggerRequest} UpdateTriggerRequest instance
+ */
+ UpdateTriggerRequest.create = function create(properties) {
+ return new UpdateTriggerRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.UpdateTriggerRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateTriggerRequest} message UpdateTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateTriggerRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.trigger != null && Object.hasOwnProperty.call(message, "trigger"))
+ $root.google.cloud.eventarc.v1.Trigger.encode(message.trigger, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.UpdateTriggerRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateTriggerRequest} message UpdateTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateTriggerRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateTriggerRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.UpdateTriggerRequest} UpdateTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateTriggerRequest.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.eventarc.v1.UpdateTriggerRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.trigger = $root.google.cloud.eventarc.v1.Trigger.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.allowMissing = reader.bool();
+ break;
+ }
+ case 4: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateTriggerRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.UpdateTriggerRequest} UpdateTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateTriggerRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateTriggerRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateTriggerRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.trigger != null && message.hasOwnProperty("trigger")) {
+ var error = $root.google.cloud.eventarc.v1.Trigger.verify(message.trigger);
+ if (error)
+ return "trigger." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ if (typeof message.allowMissing !== "boolean")
+ return "allowMissing: boolean expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.UpdateTriggerRequest} UpdateTriggerRequest
+ */
+ UpdateTriggerRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.UpdateTriggerRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.UpdateTriggerRequest();
+ if (object.trigger != null) {
+ if (typeof object.trigger !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.UpdateTriggerRequest.trigger: object expected");
+ message.trigger = $root.google.cloud.eventarc.v1.Trigger.fromObject(object.trigger);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.UpdateTriggerRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.allowMissing != null)
+ message.allowMissing = Boolean(object.allowMissing);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateTriggerRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.UpdateTriggerRequest} message UpdateTriggerRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateTriggerRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.trigger = null;
+ object.updateMask = null;
+ object.allowMissing = false;
+ object.validateOnly = false;
+ }
+ if (message.trigger != null && message.hasOwnProperty("trigger"))
+ object.trigger = $root.google.cloud.eventarc.v1.Trigger.toObject(message.trigger, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ object.allowMissing = message.allowMissing;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateTriggerRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateTriggerRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateTriggerRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.UpdateTriggerRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateTriggerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.UpdateTriggerRequest";
+ };
+
+ return UpdateTriggerRequest;
+ })();
+
+ v1.DeleteTriggerRequest = (function() {
+
+ /**
+ * Properties of a DeleteTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IDeleteTriggerRequest
+ * @property {string|null} [name] DeleteTriggerRequest name
+ * @property {string|null} [etag] DeleteTriggerRequest etag
+ * @property {boolean|null} [allowMissing] DeleteTriggerRequest allowMissing
+ * @property {boolean|null} [validateOnly] DeleteTriggerRequest validateOnly
+ */
+
+ /**
+ * Constructs a new DeleteTriggerRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a DeleteTriggerRequest.
+ * @implements IDeleteTriggerRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IDeleteTriggerRequest=} [properties] Properties to set
+ */
+ function DeleteTriggerRequest(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]];
+ }
+
+ /**
+ * DeleteTriggerRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @instance
+ */
+ DeleteTriggerRequest.prototype.name = "";
+
+ /**
+ * DeleteTriggerRequest etag.
+ * @member {string} etag
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @instance
+ */
+ DeleteTriggerRequest.prototype.etag = "";
+
+ /**
+ * DeleteTriggerRequest allowMissing.
+ * @member {boolean} allowMissing
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @instance
+ */
+ DeleteTriggerRequest.prototype.allowMissing = false;
+
+ /**
+ * DeleteTriggerRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @instance
+ */
+ DeleteTriggerRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new DeleteTriggerRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteTriggerRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.DeleteTriggerRequest} DeleteTriggerRequest instance
+ */
+ DeleteTriggerRequest.create = function create(properties) {
+ return new DeleteTriggerRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteTriggerRequest message. Does not implicitly {@link google.cloud.eventarc.v1.DeleteTriggerRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteTriggerRequest} message DeleteTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteTriggerRequest.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.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag);
+ if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteTriggerRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.DeleteTriggerRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteTriggerRequest} message DeleteTriggerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteTriggerRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteTriggerRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.DeleteTriggerRequest} DeleteTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteTriggerRequest.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.eventarc.v1.DeleteTriggerRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.etag = reader.string();
+ break;
+ }
+ case 3: {
+ message.allowMissing = reader.bool();
+ break;
+ }
+ case 4: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteTriggerRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.DeleteTriggerRequest} DeleteTriggerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteTriggerRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteTriggerRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteTriggerRequest.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.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ if (typeof message.allowMissing !== "boolean")
+ return "allowMissing: boolean expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteTriggerRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.DeleteTriggerRequest} DeleteTriggerRequest
+ */
+ DeleteTriggerRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.DeleteTriggerRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.DeleteTriggerRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ if (object.allowMissing != null)
+ message.allowMissing = Boolean(object.allowMissing);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteTriggerRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.DeleteTriggerRequest} message DeleteTriggerRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteTriggerRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.etag = "";
+ object.allowMissing = false;
+ object.validateOnly = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ object.allowMissing = message.allowMissing;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteTriggerRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteTriggerRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteTriggerRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.DeleteTriggerRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteTriggerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.DeleteTriggerRequest";
+ };
+
+ return DeleteTriggerRequest;
+ })();
+
+ v1.GetChannelRequest = (function() {
+
+ /**
+ * Properties of a GetChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IGetChannelRequest
+ * @property {string|null} [name] GetChannelRequest name
+ */
+
+ /**
+ * Constructs a new GetChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a GetChannelRequest.
+ * @implements IGetChannelRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IGetChannelRequest=} [properties] Properties to set
+ */
+ function GetChannelRequest(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]];
+ }
+
+ /**
+ * GetChannelRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @instance
+ */
+ GetChannelRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetChannelRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetChannelRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.GetChannelRequest} GetChannelRequest instance
+ */
+ GetChannelRequest.create = function create(properties) {
+ return new GetChannelRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetChannelRequest} message GetChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetChannelRequest.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 GetChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetChannelRequest} message GetChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetChannelRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetChannelRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.GetChannelRequest} GetChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetChannelRequest.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.eventarc.v1.GetChannelRequest();
+ 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 GetChannelRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.GetChannelRequest} GetChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetChannelRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetChannelRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetChannelRequest.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 GetChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.GetChannelRequest} GetChannelRequest
+ */
+ GetChannelRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.GetChannelRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.GetChannelRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetChannelRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.GetChannelRequest} message GetChannelRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetChannelRequest.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 GetChannelRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetChannelRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetChannelRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.GetChannelRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetChannelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.GetChannelRequest";
+ };
+
+ return GetChannelRequest;
+ })();
+
+ v1.ListChannelsRequest = (function() {
+
+ /**
+ * Properties of a ListChannelsRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListChannelsRequest
+ * @property {string|null} [parent] ListChannelsRequest parent
+ * @property {number|null} [pageSize] ListChannelsRequest pageSize
+ * @property {string|null} [pageToken] ListChannelsRequest pageToken
+ * @property {string|null} [orderBy] ListChannelsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListChannelsRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListChannelsRequest.
+ * @implements IListChannelsRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListChannelsRequest=} [properties] Properties to set
+ */
+ function ListChannelsRequest(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]];
+ }
+
+ /**
+ * ListChannelsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @instance
+ */
+ ListChannelsRequest.prototype.parent = "";
+
+ /**
+ * ListChannelsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @instance
+ */
+ ListChannelsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListChannelsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @instance
+ */
+ ListChannelsRequest.prototype.pageToken = "";
+
+ /**
+ * ListChannelsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @instance
+ */
+ ListChannelsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListChannelsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelsRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListChannelsRequest} ListChannelsRequest instance
+ */
+ ListChannelsRequest.create = function create(properties) {
+ return new ListChannelsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListChannelsRequest message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelsRequest} message ListChannelsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelsRequest.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.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListChannelsRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelsRequest} message ListChannelsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListChannelsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListChannelsRequest} ListChannelsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelsRequest.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.eventarc.v1.ListChannelsRequest();
+ 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.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListChannelsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListChannelsRequest} ListChannelsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListChannelsRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListChannelsRequest.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.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListChannelsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListChannelsRequest} ListChannelsRequest
+ */
+ ListChannelsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListChannelsRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListChannelsRequest();
+ 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.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListChannelsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ListChannelsRequest} message ListChannelsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListChannelsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListChannelsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListChannelsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListChannelsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListChannelsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListChannelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListChannelsRequest";
+ };
+
+ return ListChannelsRequest;
+ })();
+
+ v1.ListChannelsResponse = (function() {
+
+ /**
+ * Properties of a ListChannelsResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListChannelsResponse
+ * @property {Array.|null} [channels] ListChannelsResponse channels
+ * @property {string|null} [nextPageToken] ListChannelsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListChannelsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListChannelsResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListChannelsResponse.
+ * @implements IListChannelsResponse
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListChannelsResponse=} [properties] Properties to set
+ */
+ function ListChannelsResponse(properties) {
+ this.channels = [];
+ 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]];
+ }
+
+ /**
+ * ListChannelsResponse channels.
+ * @member {Array.} channels
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @instance
+ */
+ ListChannelsResponse.prototype.channels = $util.emptyArray;
+
+ /**
+ * ListChannelsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @instance
+ */
+ ListChannelsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListChannelsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @instance
+ */
+ ListChannelsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListChannelsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelsResponse=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListChannelsResponse} ListChannelsResponse instance
+ */
+ ListChannelsResponse.create = function create(properties) {
+ return new ListChannelsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListChannelsResponse message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelsResponse} message ListChannelsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.channels != null && message.channels.length)
+ for (var i = 0; i < message.channels.length; ++i)
+ $root.google.cloud.eventarc.v1.Channel.encode(message.channels[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 ListChannelsResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelsResponse} message ListChannelsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListChannelsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListChannelsResponse} ListChannelsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelsResponse.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.eventarc.v1.ListChannelsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.channels && message.channels.length))
+ message.channels = [];
+ message.channels.push($root.google.cloud.eventarc.v1.Channel.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 ListChannelsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListChannelsResponse} ListChannelsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListChannelsResponse message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListChannelsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.channels != null && message.hasOwnProperty("channels")) {
+ if (!Array.isArray(message.channels))
+ return "channels: array expected";
+ for (var i = 0; i < message.channels.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.Channel.verify(message.channels[i]);
+ if (error)
+ return "channels." + 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 ListChannelsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListChannelsResponse} ListChannelsResponse
+ */
+ ListChannelsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListChannelsResponse)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListChannelsResponse();
+ if (object.channels) {
+ if (!Array.isArray(object.channels))
+ throw TypeError(".google.cloud.eventarc.v1.ListChannelsResponse.channels: array expected");
+ message.channels = [];
+ for (var i = 0; i < object.channels.length; ++i) {
+ if (typeof object.channels[i] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.ListChannelsResponse.channels: object expected");
+ message.channels[i] = $root.google.cloud.eventarc.v1.Channel.fromObject(object.channels[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.eventarc.v1.ListChannelsResponse.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 ListChannelsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.ListChannelsResponse} message ListChannelsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListChannelsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.channels = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.channels && message.channels.length) {
+ object.channels = [];
+ for (var j = 0; j < message.channels.length; ++j)
+ object.channels[j] = $root.google.cloud.eventarc.v1.Channel.toObject(message.channels[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 ListChannelsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListChannelsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListChannelsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListChannelsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListChannelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListChannelsResponse";
+ };
+
+ return ListChannelsResponse;
+ })();
+
+ v1.CreateChannelRequest = (function() {
+
+ /**
+ * Properties of a CreateChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface ICreateChannelRequest
+ * @property {string|null} [parent] CreateChannelRequest parent
+ * @property {google.cloud.eventarc.v1.IChannel|null} [channel] CreateChannelRequest channel
+ * @property {string|null} [channelId] CreateChannelRequest channelId
+ * @property {boolean|null} [validateOnly] CreateChannelRequest validateOnly
+ */
+
+ /**
+ * Constructs a new CreateChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a CreateChannelRequest.
+ * @implements ICreateChannelRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.ICreateChannelRequest=} [properties] Properties to set
+ */
+ function CreateChannelRequest(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]];
+ }
+
+ /**
+ * CreateChannelRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @instance
+ */
+ CreateChannelRequest.prototype.parent = "";
+
+ /**
+ * CreateChannelRequest channel.
+ * @member {google.cloud.eventarc.v1.IChannel|null|undefined} channel
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @instance
+ */
+ CreateChannelRequest.prototype.channel = null;
+
+ /**
+ * CreateChannelRequest channelId.
+ * @member {string} channelId
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @instance
+ */
+ CreateChannelRequest.prototype.channelId = "";
+
+ /**
+ * CreateChannelRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @instance
+ */
+ CreateChannelRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new CreateChannelRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateChannelRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.CreateChannelRequest} CreateChannelRequest instance
+ */
+ CreateChannelRequest.create = function create(properties) {
+ return new CreateChannelRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateChannelRequest} message CreateChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateChannelRequest.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.channel != null && Object.hasOwnProperty.call(message, "channel"))
+ $root.google.cloud.eventarc.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.channelId != null && Object.hasOwnProperty.call(message, "channelId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.channelId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateChannelRequest} message CreateChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateChannelRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateChannelRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.CreateChannelRequest} CreateChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateChannelRequest.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.eventarc.v1.CreateChannelRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.channel = $root.google.cloud.eventarc.v1.Channel.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.channelId = reader.string();
+ break;
+ }
+ case 4: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateChannelRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.CreateChannelRequest} CreateChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateChannelRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateChannelRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateChannelRequest.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.channel != null && message.hasOwnProperty("channel")) {
+ var error = $root.google.cloud.eventarc.v1.Channel.verify(message.channel);
+ if (error)
+ return "channel." + error;
+ }
+ if (message.channelId != null && message.hasOwnProperty("channelId"))
+ if (!$util.isString(message.channelId))
+ return "channelId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.CreateChannelRequest} CreateChannelRequest
+ */
+ CreateChannelRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.CreateChannelRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.CreateChannelRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.channel != null) {
+ if (typeof object.channel !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.CreateChannelRequest.channel: object expected");
+ message.channel = $root.google.cloud.eventarc.v1.Channel.fromObject(object.channel);
+ }
+ if (object.channelId != null)
+ message.channelId = String(object.channelId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateChannelRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.CreateChannelRequest} message CreateChannelRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateChannelRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.channel = null;
+ object.channelId = "";
+ object.validateOnly = false;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.channel != null && message.hasOwnProperty("channel"))
+ object.channel = $root.google.cloud.eventarc.v1.Channel.toObject(message.channel, options);
+ if (message.channelId != null && message.hasOwnProperty("channelId"))
+ object.channelId = message.channelId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this CreateChannelRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateChannelRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateChannelRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.CreateChannelRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateChannelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.CreateChannelRequest";
+ };
+
+ return CreateChannelRequest;
+ })();
+
+ v1.UpdateChannelRequest = (function() {
+
+ /**
+ * Properties of an UpdateChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IUpdateChannelRequest
+ * @property {google.cloud.eventarc.v1.IChannel|null} [channel] UpdateChannelRequest channel
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateChannelRequest updateMask
+ * @property {boolean|null} [validateOnly] UpdateChannelRequest validateOnly
+ */
+
+ /**
+ * Constructs a new UpdateChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents an UpdateChannelRequest.
+ * @implements IUpdateChannelRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IUpdateChannelRequest=} [properties] Properties to set
+ */
+ function UpdateChannelRequest(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]];
+ }
+
+ /**
+ * UpdateChannelRequest channel.
+ * @member {google.cloud.eventarc.v1.IChannel|null|undefined} channel
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @instance
+ */
+ UpdateChannelRequest.prototype.channel = null;
+
+ /**
+ * UpdateChannelRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @instance
+ */
+ UpdateChannelRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateChannelRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @instance
+ */
+ UpdateChannelRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new UpdateChannelRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateChannelRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.UpdateChannelRequest} UpdateChannelRequest instance
+ */
+ UpdateChannelRequest.create = function create(properties) {
+ return new UpdateChannelRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.UpdateChannelRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateChannelRequest} message UpdateChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateChannelRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
+ $root.google.cloud.eventarc.v1.Channel.encode(message.channel, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.UpdateChannelRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateChannelRequest} message UpdateChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateChannelRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateChannelRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.UpdateChannelRequest} UpdateChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateChannelRequest.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.eventarc.v1.UpdateChannelRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.channel = $root.google.cloud.eventarc.v1.Channel.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateChannelRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.UpdateChannelRequest} UpdateChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateChannelRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateChannelRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateChannelRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.channel != null && message.hasOwnProperty("channel")) {
+ var error = $root.google.cloud.eventarc.v1.Channel.verify(message.channel);
+ if (error)
+ return "channel." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.UpdateChannelRequest} UpdateChannelRequest
+ */
+ UpdateChannelRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.UpdateChannelRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.UpdateChannelRequest();
+ if (object.channel != null) {
+ if (typeof object.channel !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.UpdateChannelRequest.channel: object expected");
+ message.channel = $root.google.cloud.eventarc.v1.Channel.fromObject(object.channel);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.UpdateChannelRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateChannelRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.UpdateChannelRequest} message UpdateChannelRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateChannelRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.channel = null;
+ object.updateMask = null;
+ object.validateOnly = false;
+ }
+ if (message.channel != null && message.hasOwnProperty("channel"))
+ object.channel = $root.google.cloud.eventarc.v1.Channel.toObject(message.channel, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateChannelRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateChannelRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateChannelRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.UpdateChannelRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateChannelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.UpdateChannelRequest";
+ };
+
+ return UpdateChannelRequest;
+ })();
+
+ v1.DeleteChannelRequest = (function() {
+
+ /**
+ * Properties of a DeleteChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IDeleteChannelRequest
+ * @property {string|null} [name] DeleteChannelRequest name
+ * @property {boolean|null} [validateOnly] DeleteChannelRequest validateOnly
+ */
+
+ /**
+ * Constructs a new DeleteChannelRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a DeleteChannelRequest.
+ * @implements IDeleteChannelRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IDeleteChannelRequest=} [properties] Properties to set
+ */
+ function DeleteChannelRequest(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]];
+ }
+
+ /**
+ * DeleteChannelRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @instance
+ */
+ DeleteChannelRequest.prototype.name = "";
+
+ /**
+ * DeleteChannelRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @instance
+ */
+ DeleteChannelRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new DeleteChannelRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteChannelRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.DeleteChannelRequest} DeleteChannelRequest instance
+ */
+ DeleteChannelRequest.create = function create(properties) {
+ return new DeleteChannelRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteChannelRequest message. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteChannelRequest} message DeleteChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteChannelRequest.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.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteChannelRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteChannelRequest} message DeleteChannelRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteChannelRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteChannelRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.DeleteChannelRequest} DeleteChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteChannelRequest.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.eventarc.v1.DeleteChannelRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteChannelRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.DeleteChannelRequest} DeleteChannelRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteChannelRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteChannelRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteChannelRequest.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.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteChannelRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.DeleteChannelRequest} DeleteChannelRequest
+ */
+ DeleteChannelRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.DeleteChannelRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.DeleteChannelRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteChannelRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.DeleteChannelRequest} message DeleteChannelRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteChannelRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.validateOnly = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteChannelRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteChannelRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteChannelRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.DeleteChannelRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteChannelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.DeleteChannelRequest";
+ };
+
+ return DeleteChannelRequest;
+ })();
+
+ v1.GetProviderRequest = (function() {
+
+ /**
+ * Properties of a GetProviderRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IGetProviderRequest
+ * @property {string|null} [name] GetProviderRequest name
+ */
+
+ /**
+ * Constructs a new GetProviderRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a GetProviderRequest.
+ * @implements IGetProviderRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IGetProviderRequest=} [properties] Properties to set
+ */
+ function GetProviderRequest(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]];
+ }
+
+ /**
+ * GetProviderRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @instance
+ */
+ GetProviderRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetProviderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetProviderRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.GetProviderRequest} GetProviderRequest instance
+ */
+ GetProviderRequest.create = function create(properties) {
+ return new GetProviderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetProviderRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetProviderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetProviderRequest} message GetProviderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetProviderRequest.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 GetProviderRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetProviderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetProviderRequest} message GetProviderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetProviderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetProviderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.GetProviderRequest} GetProviderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetProviderRequest.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.eventarc.v1.GetProviderRequest();
+ 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 GetProviderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.GetProviderRequest} GetProviderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetProviderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetProviderRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetProviderRequest.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 GetProviderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.GetProviderRequest} GetProviderRequest
+ */
+ GetProviderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.GetProviderRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.GetProviderRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetProviderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.GetProviderRequest} message GetProviderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetProviderRequest.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 GetProviderRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetProviderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetProviderRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.GetProviderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetProviderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.GetProviderRequest";
+ };
+
+ return GetProviderRequest;
+ })();
+
+ v1.ListProvidersRequest = (function() {
+
+ /**
+ * Properties of a ListProvidersRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListProvidersRequest
+ * @property {string|null} [parent] ListProvidersRequest parent
+ * @property {number|null} [pageSize] ListProvidersRequest pageSize
+ * @property {string|null} [pageToken] ListProvidersRequest pageToken
+ * @property {string|null} [orderBy] ListProvidersRequest orderBy
+ * @property {string|null} [filter] ListProvidersRequest filter
+ */
+
+ /**
+ * Constructs a new ListProvidersRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListProvidersRequest.
+ * @implements IListProvidersRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListProvidersRequest=} [properties] Properties to set
+ */
+ function ListProvidersRequest(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]];
+ }
+
+ /**
+ * ListProvidersRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @instance
+ */
+ ListProvidersRequest.prototype.parent = "";
+
+ /**
+ * ListProvidersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @instance
+ */
+ ListProvidersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListProvidersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @instance
+ */
+ ListProvidersRequest.prototype.pageToken = "";
+
+ /**
+ * ListProvidersRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @instance
+ */
+ ListProvidersRequest.prototype.orderBy = "";
+
+ /**
+ * ListProvidersRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @instance
+ */
+ ListProvidersRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListProvidersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListProvidersRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListProvidersRequest} ListProvidersRequest instance
+ */
+ ListProvidersRequest.create = function create(properties) {
+ return new ListProvidersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListProvidersRequest message. Does not implicitly {@link google.cloud.eventarc.v1.ListProvidersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListProvidersRequest} message ListProvidersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListProvidersRequest.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.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListProvidersRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListProvidersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListProvidersRequest} message ListProvidersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListProvidersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListProvidersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListProvidersRequest} ListProvidersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListProvidersRequest.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.eventarc.v1.ListProvidersRequest();
+ 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.orderBy = reader.string();
+ break;
+ }
+ case 5: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListProvidersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListProvidersRequest} ListProvidersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListProvidersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListProvidersRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListProvidersRequest.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.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListProvidersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListProvidersRequest} ListProvidersRequest
+ */
+ ListProvidersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListProvidersRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListProvidersRequest();
+ 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.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListProvidersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ListProvidersRequest} message ListProvidersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListProvidersRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.orderBy = "";
+ 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.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListProvidersRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListProvidersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListProvidersRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListProvidersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListProvidersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListProvidersRequest";
+ };
+
+ return ListProvidersRequest;
+ })();
+
+ v1.ListProvidersResponse = (function() {
+
+ /**
+ * Properties of a ListProvidersResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListProvidersResponse
+ * @property {Array.|null} [providers] ListProvidersResponse providers
+ * @property {string|null} [nextPageToken] ListProvidersResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListProvidersResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListProvidersResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListProvidersResponse.
+ * @implements IListProvidersResponse
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListProvidersResponse=} [properties] Properties to set
+ */
+ function ListProvidersResponse(properties) {
+ this.providers = [];
+ 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]];
+ }
+
+ /**
+ * ListProvidersResponse providers.
+ * @member {Array.} providers
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @instance
+ */
+ ListProvidersResponse.prototype.providers = $util.emptyArray;
+
+ /**
+ * ListProvidersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @instance
+ */
+ ListProvidersResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListProvidersResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @instance
+ */
+ ListProvidersResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListProvidersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListProvidersResponse=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListProvidersResponse} ListProvidersResponse instance
+ */
+ ListProvidersResponse.create = function create(properties) {
+ return new ListProvidersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListProvidersResponse message. Does not implicitly {@link google.cloud.eventarc.v1.ListProvidersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListProvidersResponse} message ListProvidersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListProvidersResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.providers != null && message.providers.length)
+ for (var i = 0; i < message.providers.length; ++i)
+ $root.google.cloud.eventarc.v1.Provider.encode(message.providers[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 ListProvidersResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListProvidersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListProvidersResponse} message ListProvidersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListProvidersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListProvidersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListProvidersResponse} ListProvidersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListProvidersResponse.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.eventarc.v1.ListProvidersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.providers && message.providers.length))
+ message.providers = [];
+ message.providers.push($root.google.cloud.eventarc.v1.Provider.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 ListProvidersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListProvidersResponse} ListProvidersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListProvidersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListProvidersResponse message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListProvidersResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.providers != null && message.hasOwnProperty("providers")) {
+ if (!Array.isArray(message.providers))
+ return "providers: array expected";
+ for (var i = 0; i < message.providers.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.Provider.verify(message.providers[i]);
+ if (error)
+ return "providers." + 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 ListProvidersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListProvidersResponse} ListProvidersResponse
+ */
+ ListProvidersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListProvidersResponse)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListProvidersResponse();
+ if (object.providers) {
+ if (!Array.isArray(object.providers))
+ throw TypeError(".google.cloud.eventarc.v1.ListProvidersResponse.providers: array expected");
+ message.providers = [];
+ for (var i = 0; i < object.providers.length; ++i) {
+ if (typeof object.providers[i] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.ListProvidersResponse.providers: object expected");
+ message.providers[i] = $root.google.cloud.eventarc.v1.Provider.fromObject(object.providers[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.eventarc.v1.ListProvidersResponse.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 ListProvidersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.ListProvidersResponse} message ListProvidersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListProvidersResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.providers = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.providers && message.providers.length) {
+ object.providers = [];
+ for (var j = 0; j < message.providers.length; ++j)
+ object.providers[j] = $root.google.cloud.eventarc.v1.Provider.toObject(message.providers[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 ListProvidersResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListProvidersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListProvidersResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListProvidersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListProvidersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListProvidersResponse";
+ };
+
+ return ListProvidersResponse;
+ })();
+
+ v1.GetChannelConnectionRequest = (function() {
+
+ /**
+ * Properties of a GetChannelConnectionRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IGetChannelConnectionRequest
+ * @property {string|null} [name] GetChannelConnectionRequest name
+ */
+
+ /**
+ * Constructs a new GetChannelConnectionRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a GetChannelConnectionRequest.
+ * @implements IGetChannelConnectionRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IGetChannelConnectionRequest=} [properties] Properties to set
+ */
+ function GetChannelConnectionRequest(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]];
+ }
+
+ /**
+ * GetChannelConnectionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @instance
+ */
+ GetChannelConnectionRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetChannelConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetChannelConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.GetChannelConnectionRequest} GetChannelConnectionRequest instance
+ */
+ GetChannelConnectionRequest.create = function create(properties) {
+ return new GetChannelConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetChannelConnectionRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetChannelConnectionRequest} message GetChannelConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetChannelConnectionRequest.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 GetChannelConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetChannelConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetChannelConnectionRequest} message GetChannelConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetChannelConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetChannelConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.GetChannelConnectionRequest} GetChannelConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetChannelConnectionRequest.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.eventarc.v1.GetChannelConnectionRequest();
+ 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 GetChannelConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.GetChannelConnectionRequest} GetChannelConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetChannelConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetChannelConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetChannelConnectionRequest.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 GetChannelConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.GetChannelConnectionRequest} GetChannelConnectionRequest
+ */
+ GetChannelConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.GetChannelConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.GetChannelConnectionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetChannelConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.GetChannelConnectionRequest} message GetChannelConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetChannelConnectionRequest.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 GetChannelConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetChannelConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetChannelConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.GetChannelConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetChannelConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.GetChannelConnectionRequest";
+ };
+
+ return GetChannelConnectionRequest;
+ })();
+
+ v1.ListChannelConnectionsRequest = (function() {
+
+ /**
+ * Properties of a ListChannelConnectionsRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListChannelConnectionsRequest
+ * @property {string|null} [parent] ListChannelConnectionsRequest parent
+ * @property {number|null} [pageSize] ListChannelConnectionsRequest pageSize
+ * @property {string|null} [pageToken] ListChannelConnectionsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListChannelConnectionsRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListChannelConnectionsRequest.
+ * @implements IListChannelConnectionsRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsRequest=} [properties] Properties to set
+ */
+ function ListChannelConnectionsRequest(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]];
+ }
+
+ /**
+ * ListChannelConnectionsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @instance
+ */
+ ListChannelConnectionsRequest.prototype.parent = "";
+
+ /**
+ * ListChannelConnectionsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @instance
+ */
+ ListChannelConnectionsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListChannelConnectionsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @instance
+ */
+ ListChannelConnectionsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListChannelConnectionsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsRequest} ListChannelConnectionsRequest instance
+ */
+ ListChannelConnectionsRequest.create = function create(properties) {
+ return new ListChannelConnectionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListChannelConnectionsRequest message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsRequest} message ListChannelConnectionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelConnectionsRequest.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 ListChannelConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsRequest} message ListChannelConnectionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListChannelConnectionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsRequest} ListChannelConnectionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelConnectionsRequest.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.eventarc.v1.ListChannelConnectionsRequest();
+ 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 ListChannelConnectionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsRequest} ListChannelConnectionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelConnectionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListChannelConnectionsRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListChannelConnectionsRequest.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 ListChannelConnectionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsRequest} ListChannelConnectionsRequest
+ */
+ ListChannelConnectionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListChannelConnectionsRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListChannelConnectionsRequest();
+ 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 ListChannelConnectionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ListChannelConnectionsRequest} message ListChannelConnectionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListChannelConnectionsRequest.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 ListChannelConnectionsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListChannelConnectionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListChannelConnectionsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListChannelConnectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListChannelConnectionsRequest";
+ };
+
+ return ListChannelConnectionsRequest;
+ })();
+
+ v1.ListChannelConnectionsResponse = (function() {
+
+ /**
+ * Properties of a ListChannelConnectionsResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IListChannelConnectionsResponse
+ * @property {Array.|null} [channelConnections] ListChannelConnectionsResponse channelConnections
+ * @property {string|null} [nextPageToken] ListChannelConnectionsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListChannelConnectionsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListChannelConnectionsResponse.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a ListChannelConnectionsResponse.
+ * @implements IListChannelConnectionsResponse
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsResponse=} [properties] Properties to set
+ */
+ function ListChannelConnectionsResponse(properties) {
+ this.channelConnections = [];
+ 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]];
+ }
+
+ /**
+ * ListChannelConnectionsResponse channelConnections.
+ * @member {Array.} channelConnections
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @instance
+ */
+ ListChannelConnectionsResponse.prototype.channelConnections = $util.emptyArray;
+
+ /**
+ * ListChannelConnectionsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @instance
+ */
+ ListChannelConnectionsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListChannelConnectionsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @instance
+ */
+ ListChannelConnectionsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListChannelConnectionsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsResponse=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsResponse} ListChannelConnectionsResponse instance
+ */
+ ListChannelConnectionsResponse.create = function create(properties) {
+ return new ListChannelConnectionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListChannelConnectionsResponse message. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsResponse} message ListChannelConnectionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelConnectionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.channelConnections != null && message.channelConnections.length)
+ for (var i = 0; i < message.channelConnections.length; ++i)
+ $root.google.cloud.eventarc.v1.ChannelConnection.encode(message.channelConnections[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 ListChannelConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.ListChannelConnectionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.IListChannelConnectionsResponse} message ListChannelConnectionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListChannelConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListChannelConnectionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsResponse} ListChannelConnectionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelConnectionsResponse.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.eventarc.v1.ListChannelConnectionsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.channelConnections && message.channelConnections.length))
+ message.channelConnections = [];
+ message.channelConnections.push($root.google.cloud.eventarc.v1.ChannelConnection.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 ListChannelConnectionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsResponse} ListChannelConnectionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListChannelConnectionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListChannelConnectionsResponse message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListChannelConnectionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.channelConnections != null && message.hasOwnProperty("channelConnections")) {
+ if (!Array.isArray(message.channelConnections))
+ return "channelConnections: array expected";
+ for (var i = 0; i < message.channelConnections.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.ChannelConnection.verify(message.channelConnections[i]);
+ if (error)
+ return "channelConnections." + 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 ListChannelConnectionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.ListChannelConnectionsResponse} ListChannelConnectionsResponse
+ */
+ ListChannelConnectionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.ListChannelConnectionsResponse)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.ListChannelConnectionsResponse();
+ if (object.channelConnections) {
+ if (!Array.isArray(object.channelConnections))
+ throw TypeError(".google.cloud.eventarc.v1.ListChannelConnectionsResponse.channelConnections: array expected");
+ message.channelConnections = [];
+ for (var i = 0; i < object.channelConnections.length; ++i) {
+ if (typeof object.channelConnections[i] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.ListChannelConnectionsResponse.channelConnections: object expected");
+ message.channelConnections[i] = $root.google.cloud.eventarc.v1.ChannelConnection.fromObject(object.channelConnections[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.eventarc.v1.ListChannelConnectionsResponse.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 ListChannelConnectionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {google.cloud.eventarc.v1.ListChannelConnectionsResponse} message ListChannelConnectionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListChannelConnectionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.channelConnections = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.channelConnections && message.channelConnections.length) {
+ object.channelConnections = [];
+ for (var j = 0; j < message.channelConnections.length; ++j)
+ object.channelConnections[j] = $root.google.cloud.eventarc.v1.ChannelConnection.toObject(message.channelConnections[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 ListChannelConnectionsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListChannelConnectionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListChannelConnectionsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.ListChannelConnectionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListChannelConnectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.ListChannelConnectionsResponse";
+ };
+
+ return ListChannelConnectionsResponse;
+ })();
+
+ v1.CreateChannelConnectionRequest = (function() {
+
+ /**
+ * Properties of a CreateChannelConnectionRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface ICreateChannelConnectionRequest
+ * @property {string|null} [parent] CreateChannelConnectionRequest parent
+ * @property {google.cloud.eventarc.v1.IChannelConnection|null} [channelConnection] CreateChannelConnectionRequest channelConnection
+ * @property {string|null} [channelConnectionId] CreateChannelConnectionRequest channelConnectionId
+ */
+
+ /**
+ * Constructs a new CreateChannelConnectionRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a CreateChannelConnectionRequest.
+ * @implements ICreateChannelConnectionRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.ICreateChannelConnectionRequest=} [properties] Properties to set
+ */
+ function CreateChannelConnectionRequest(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]];
+ }
+
+ /**
+ * CreateChannelConnectionRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @instance
+ */
+ CreateChannelConnectionRequest.prototype.parent = "";
+
+ /**
+ * CreateChannelConnectionRequest channelConnection.
+ * @member {google.cloud.eventarc.v1.IChannelConnection|null|undefined} channelConnection
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @instance
+ */
+ CreateChannelConnectionRequest.prototype.channelConnection = null;
+
+ /**
+ * CreateChannelConnectionRequest channelConnectionId.
+ * @member {string} channelConnectionId
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @instance
+ */
+ CreateChannelConnectionRequest.prototype.channelConnectionId = "";
+
+ /**
+ * Creates a new CreateChannelConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateChannelConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.CreateChannelConnectionRequest} CreateChannelConnectionRequest instance
+ */
+ CreateChannelConnectionRequest.create = function create(properties) {
+ return new CreateChannelConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateChannelConnectionRequest message. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateChannelConnectionRequest} message CreateChannelConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateChannelConnectionRequest.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.channelConnection != null && Object.hasOwnProperty.call(message, "channelConnection"))
+ $root.google.cloud.eventarc.v1.ChannelConnection.encode(message.channelConnection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.channelConnectionId != null && Object.hasOwnProperty.call(message, "channelConnectionId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.channelConnectionId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateChannelConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CreateChannelConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.ICreateChannelConnectionRequest} message CreateChannelConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateChannelConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateChannelConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.CreateChannelConnectionRequest} CreateChannelConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateChannelConnectionRequest.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.eventarc.v1.CreateChannelConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.channelConnection = $root.google.cloud.eventarc.v1.ChannelConnection.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.channelConnectionId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateChannelConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.CreateChannelConnectionRequest} CreateChannelConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateChannelConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateChannelConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateChannelConnectionRequest.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.channelConnection != null && message.hasOwnProperty("channelConnection")) {
+ var error = $root.google.cloud.eventarc.v1.ChannelConnection.verify(message.channelConnection);
+ if (error)
+ return "channelConnection." + error;
+ }
+ if (message.channelConnectionId != null && message.hasOwnProperty("channelConnectionId"))
+ if (!$util.isString(message.channelConnectionId))
+ return "channelConnectionId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateChannelConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.CreateChannelConnectionRequest} CreateChannelConnectionRequest
+ */
+ CreateChannelConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.CreateChannelConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.CreateChannelConnectionRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.channelConnection != null) {
+ if (typeof object.channelConnection !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.CreateChannelConnectionRequest.channelConnection: object expected");
+ message.channelConnection = $root.google.cloud.eventarc.v1.ChannelConnection.fromObject(object.channelConnection);
+ }
+ if (object.channelConnectionId != null)
+ message.channelConnectionId = String(object.channelConnectionId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateChannelConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.CreateChannelConnectionRequest} message CreateChannelConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateChannelConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.channelConnection = null;
+ object.channelConnectionId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.channelConnection != null && message.hasOwnProperty("channelConnection"))
+ object.channelConnection = $root.google.cloud.eventarc.v1.ChannelConnection.toObject(message.channelConnection, options);
+ if (message.channelConnectionId != null && message.hasOwnProperty("channelConnectionId"))
+ object.channelConnectionId = message.channelConnectionId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateChannelConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateChannelConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateChannelConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.CreateChannelConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateChannelConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.CreateChannelConnectionRequest";
+ };
+
+ return CreateChannelConnectionRequest;
+ })();
+
+ v1.DeleteChannelConnectionRequest = (function() {
+
+ /**
+ * Properties of a DeleteChannelConnectionRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IDeleteChannelConnectionRequest
+ * @property {string|null} [name] DeleteChannelConnectionRequest name
+ */
+
+ /**
+ * Constructs a new DeleteChannelConnectionRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a DeleteChannelConnectionRequest.
+ * @implements IDeleteChannelConnectionRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IDeleteChannelConnectionRequest=} [properties] Properties to set
+ */
+ function DeleteChannelConnectionRequest(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]];
+ }
+
+ /**
+ * DeleteChannelConnectionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @instance
+ */
+ DeleteChannelConnectionRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteChannelConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteChannelConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.DeleteChannelConnectionRequest} DeleteChannelConnectionRequest instance
+ */
+ DeleteChannelConnectionRequest.create = function create(properties) {
+ return new DeleteChannelConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteChannelConnectionRequest message. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteChannelConnectionRequest} message DeleteChannelConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteChannelConnectionRequest.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 DeleteChannelConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.DeleteChannelConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IDeleteChannelConnectionRequest} message DeleteChannelConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteChannelConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteChannelConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.DeleteChannelConnectionRequest} DeleteChannelConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteChannelConnectionRequest.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.eventarc.v1.DeleteChannelConnectionRequest();
+ 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 DeleteChannelConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.DeleteChannelConnectionRequest} DeleteChannelConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteChannelConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteChannelConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteChannelConnectionRequest.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 DeleteChannelConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.DeleteChannelConnectionRequest} DeleteChannelConnectionRequest
+ */
+ DeleteChannelConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.DeleteChannelConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.DeleteChannelConnectionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteChannelConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.DeleteChannelConnectionRequest} message DeleteChannelConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteChannelConnectionRequest.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 DeleteChannelConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteChannelConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteChannelConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.DeleteChannelConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteChannelConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.DeleteChannelConnectionRequest";
+ };
+
+ return DeleteChannelConnectionRequest;
+ })();
+
+ v1.UpdateGoogleChannelConfigRequest = (function() {
+
+ /**
+ * Properties of an UpdateGoogleChannelConfigRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IUpdateGoogleChannelConfigRequest
+ * @property {google.cloud.eventarc.v1.IGoogleChannelConfig|null} [googleChannelConfig] UpdateGoogleChannelConfigRequest googleChannelConfig
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGoogleChannelConfigRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateGoogleChannelConfigRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents an UpdateGoogleChannelConfigRequest.
+ * @implements IUpdateGoogleChannelConfigRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest=} [properties] Properties to set
+ */
+ function UpdateGoogleChannelConfigRequest(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]];
+ }
+
+ /**
+ * UpdateGoogleChannelConfigRequest googleChannelConfig.
+ * @member {google.cloud.eventarc.v1.IGoogleChannelConfig|null|undefined} googleChannelConfig
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @instance
+ */
+ UpdateGoogleChannelConfigRequest.prototype.googleChannelConfig = null;
+
+ /**
+ * UpdateGoogleChannelConfigRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @instance
+ */
+ UpdateGoogleChannelConfigRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateGoogleChannelConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest} UpdateGoogleChannelConfigRequest instance
+ */
+ UpdateGoogleChannelConfigRequest.create = function create(properties) {
+ return new UpdateGoogleChannelConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateGoogleChannelConfigRequest message. Does not implicitly {@link google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest} message UpdateGoogleChannelConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateGoogleChannelConfigRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.googleChannelConfig != null && Object.hasOwnProperty.call(message, "googleChannelConfig"))
+ $root.google.cloud.eventarc.v1.GoogleChannelConfig.encode(message.googleChannelConfig, 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 UpdateGoogleChannelConfigRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IUpdateGoogleChannelConfigRequest} message UpdateGoogleChannelConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateGoogleChannelConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateGoogleChannelConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest} UpdateGoogleChannelConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateGoogleChannelConfigRequest.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.eventarc.v1.UpdateGoogleChannelConfigRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.googleChannelConfig = $root.google.cloud.eventarc.v1.GoogleChannelConfig.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 UpdateGoogleChannelConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest} UpdateGoogleChannelConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateGoogleChannelConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateGoogleChannelConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateGoogleChannelConfigRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.googleChannelConfig != null && message.hasOwnProperty("googleChannelConfig")) {
+ var error = $root.google.cloud.eventarc.v1.GoogleChannelConfig.verify(message.googleChannelConfig);
+ if (error)
+ return "googleChannelConfig." + 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 UpdateGoogleChannelConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest} UpdateGoogleChannelConfigRequest
+ */
+ UpdateGoogleChannelConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest();
+ if (object.googleChannelConfig != null) {
+ if (typeof object.googleChannelConfig !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest.googleChannelConfig: object expected");
+ message.googleChannelConfig = $root.google.cloud.eventarc.v1.GoogleChannelConfig.fromObject(object.googleChannelConfig);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateGoogleChannelConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest} message UpdateGoogleChannelConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateGoogleChannelConfigRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.googleChannelConfig = null;
+ object.updateMask = null;
+ }
+ if (message.googleChannelConfig != null && message.hasOwnProperty("googleChannelConfig"))
+ object.googleChannelConfig = $root.google.cloud.eventarc.v1.GoogleChannelConfig.toObject(message.googleChannelConfig, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateGoogleChannelConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateGoogleChannelConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateGoogleChannelConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateGoogleChannelConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest";
+ };
+
+ return UpdateGoogleChannelConfigRequest;
+ })();
+
+ v1.GetGoogleChannelConfigRequest = (function() {
+
+ /**
+ * Properties of a GetGoogleChannelConfigRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IGetGoogleChannelConfigRequest
+ * @property {string|null} [name] GetGoogleChannelConfigRequest name
+ */
+
+ /**
+ * Constructs a new GetGoogleChannelConfigRequest.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a GetGoogleChannelConfigRequest.
+ * @implements IGetGoogleChannelConfigRequest
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest=} [properties] Properties to set
+ */
+ function GetGoogleChannelConfigRequest(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]];
+ }
+
+ /**
+ * GetGoogleChannelConfigRequest name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @instance
+ */
+ GetGoogleChannelConfigRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetGoogleChannelConfigRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.GetGoogleChannelConfigRequest} GetGoogleChannelConfigRequest instance
+ */
+ GetGoogleChannelConfigRequest.create = function create(properties) {
+ return new GetGoogleChannelConfigRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetGoogleChannelConfigRequest message. Does not implicitly {@link google.cloud.eventarc.v1.GetGoogleChannelConfigRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest} message GetGoogleChannelConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetGoogleChannelConfigRequest.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 GetGoogleChannelConfigRequest message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GetGoogleChannelConfigRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.IGetGoogleChannelConfigRequest} message GetGoogleChannelConfigRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetGoogleChannelConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetGoogleChannelConfigRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.GetGoogleChannelConfigRequest} GetGoogleChannelConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetGoogleChannelConfigRequest.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.eventarc.v1.GetGoogleChannelConfigRequest();
+ 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 GetGoogleChannelConfigRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.GetGoogleChannelConfigRequest} GetGoogleChannelConfigRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetGoogleChannelConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetGoogleChannelConfigRequest message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetGoogleChannelConfigRequest.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 GetGoogleChannelConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.GetGoogleChannelConfigRequest} GetGoogleChannelConfigRequest
+ */
+ GetGoogleChannelConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.GetGoogleChannelConfigRequest)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.GetGoogleChannelConfigRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetGoogleChannelConfigRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {google.cloud.eventarc.v1.GetGoogleChannelConfigRequest} message GetGoogleChannelConfigRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetGoogleChannelConfigRequest.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 GetGoogleChannelConfigRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetGoogleChannelConfigRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetGoogleChannelConfigRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.GetGoogleChannelConfigRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetGoogleChannelConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.GetGoogleChannelConfigRequest";
+ };
+
+ return GetGoogleChannelConfigRequest;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.eventarc.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.eventarc.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.eventarc.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.eventarc.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.eventarc.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.eventarc.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.eventarc.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.eventarc.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.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.eventarc.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.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.eventarc.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.eventarc.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.eventarc.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.eventarc.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.eventarc.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.GoogleChannelConfig = (function() {
+
+ /**
+ * Properties of a GoogleChannelConfig.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IGoogleChannelConfig
+ * @property {string|null} [name] GoogleChannelConfig name
+ * @property {google.protobuf.ITimestamp|null} [updateTime] GoogleChannelConfig updateTime
+ * @property {string|null} [cryptoKeyName] GoogleChannelConfig cryptoKeyName
+ */
+
+ /**
+ * Constructs a new GoogleChannelConfig.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a GoogleChannelConfig.
+ * @implements IGoogleChannelConfig
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IGoogleChannelConfig=} [properties] Properties to set
+ */
+ function GoogleChannelConfig(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]];
+ }
+
+ /**
+ * GoogleChannelConfig name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @instance
+ */
+ GoogleChannelConfig.prototype.name = "";
+
+ /**
+ * GoogleChannelConfig updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @instance
+ */
+ GoogleChannelConfig.prototype.updateTime = null;
+
+ /**
+ * GoogleChannelConfig cryptoKeyName.
+ * @member {string} cryptoKeyName
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @instance
+ */
+ GoogleChannelConfig.prototype.cryptoKeyName = "";
+
+ /**
+ * Creates a new GoogleChannelConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {google.cloud.eventarc.v1.IGoogleChannelConfig=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.GoogleChannelConfig} GoogleChannelConfig instance
+ */
+ GoogleChannelConfig.create = function create(properties) {
+ return new GoogleChannelConfig(properties);
+ };
+
+ /**
+ * Encodes the specified GoogleChannelConfig message. Does not implicitly {@link google.cloud.eventarc.v1.GoogleChannelConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {google.cloud.eventarc.v1.IGoogleChannelConfig} message GoogleChannelConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoogleChannelConfig.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.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.cryptoKeyName != null && Object.hasOwnProperty.call(message, "cryptoKeyName"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.cryptoKeyName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GoogleChannelConfig message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GoogleChannelConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {google.cloud.eventarc.v1.IGoogleChannelConfig} message GoogleChannelConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoogleChannelConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GoogleChannelConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.GoogleChannelConfig} GoogleChannelConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoogleChannelConfig.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.eventarc.v1.GoogleChannelConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 6: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.cryptoKeyName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GoogleChannelConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.GoogleChannelConfig} GoogleChannelConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoogleChannelConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GoogleChannelConfig message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GoogleChannelConfig.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.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.cryptoKeyName != null && message.hasOwnProperty("cryptoKeyName"))
+ if (!$util.isString(message.cryptoKeyName))
+ return "cryptoKeyName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GoogleChannelConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.GoogleChannelConfig} GoogleChannelConfig
+ */
+ GoogleChannelConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.GoogleChannelConfig)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.GoogleChannelConfig();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.GoogleChannelConfig.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.cryptoKeyName != null)
+ message.cryptoKeyName = String(object.cryptoKeyName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GoogleChannelConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {google.cloud.eventarc.v1.GoogleChannelConfig} message GoogleChannelConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GoogleChannelConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.updateTime = null;
+ object.cryptoKeyName = "";
+ }
+ 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.cryptoKeyName != null && message.hasOwnProperty("cryptoKeyName"))
+ object.cryptoKeyName = message.cryptoKeyName;
+ return object;
+ };
+
+ /**
+ * Converts this GoogleChannelConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GoogleChannelConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GoogleChannelConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.GoogleChannelConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GoogleChannelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.GoogleChannelConfig";
+ };
+
+ return GoogleChannelConfig;
+ })();
+
+ v1.Trigger = (function() {
+
+ /**
+ * Properties of a Trigger.
+ * @memberof google.cloud.eventarc.v1
+ * @interface ITrigger
+ * @property {string|null} [name] Trigger name
+ * @property {string|null} [uid] Trigger uid
+ * @property {google.protobuf.ITimestamp|null} [createTime] Trigger createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Trigger updateTime
+ * @property {Array.|null} [eventFilters] Trigger eventFilters
+ * @property {string|null} [serviceAccount] Trigger serviceAccount
+ * @property {google.cloud.eventarc.v1.IDestination|null} [destination] Trigger destination
+ * @property {google.cloud.eventarc.v1.ITransport|null} [transport] Trigger transport
+ * @property {Object.|null} [labels] Trigger labels
+ * @property {string|null} [channel] Trigger channel
+ * @property {Object.|null} [conditions] Trigger conditions
+ * @property {string|null} [etag] Trigger etag
+ */
+
+ /**
+ * Constructs a new Trigger.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a Trigger.
+ * @implements ITrigger
+ * @constructor
+ * @param {google.cloud.eventarc.v1.ITrigger=} [properties] Properties to set
+ */
+ function Trigger(properties) {
+ this.eventFilters = [];
+ this.labels = {};
+ this.conditions = {};
+ 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]];
+ }
+
+ /**
+ * Trigger name.
+ * @member {string} name
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.name = "";
+
+ /**
+ * Trigger uid.
+ * @member {string} uid
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.uid = "";
+
+ /**
+ * Trigger createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.createTime = null;
+
+ /**
+ * Trigger updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.updateTime = null;
+
+ /**
+ * Trigger eventFilters.
+ * @member {Array.} eventFilters
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.eventFilters = $util.emptyArray;
+
+ /**
+ * Trigger serviceAccount.
+ * @member {string} serviceAccount
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.serviceAccount = "";
+
+ /**
+ * Trigger destination.
+ * @member {google.cloud.eventarc.v1.IDestination|null|undefined} destination
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.destination = null;
+
+ /**
+ * Trigger transport.
+ * @member {google.cloud.eventarc.v1.ITransport|null|undefined} transport
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.transport = null;
+
+ /**
+ * Trigger labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.labels = $util.emptyObject;
+
+ /**
+ * Trigger channel.
+ * @member {string} channel
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.channel = "";
+
+ /**
+ * Trigger conditions.
+ * @member {Object.} conditions
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.conditions = $util.emptyObject;
+
+ /**
+ * Trigger etag.
+ * @member {string} etag
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ */
+ Trigger.prototype.etag = "";
+
+ /**
+ * Creates a new Trigger instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {google.cloud.eventarc.v1.ITrigger=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.Trigger} Trigger instance
+ */
+ Trigger.create = function create(properties) {
+ return new Trigger(properties);
+ };
+
+ /**
+ * Encodes the specified Trigger message. Does not implicitly {@link google.cloud.eventarc.v1.Trigger.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {google.cloud.eventarc.v1.ITrigger} message Trigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Trigger.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.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.uid);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.eventFilters != null && message.eventFilters.length)
+ for (var i = 0; i < message.eventFilters.length; ++i)
+ $root.google.cloud.eventarc.v1.EventFilter.encode(message.eventFilters[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.serviceAccount);
+ if (message.destination != null && Object.hasOwnProperty.call(message, "destination"))
+ $root.google.cloud.eventarc.v1.Destination.encode(message.destination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.transport != null && Object.hasOwnProperty.call(message, "transport"))
+ $root.google.cloud.eventarc.v1.Transport.encode(message.transport, writer.uint32(/* id 11, wireType 2 =*/90).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 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.channel);
+ if (message.conditions != null && Object.hasOwnProperty.call(message, "conditions"))
+ for (var keys = Object.keys(message.conditions), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.cloud.eventarc.v1.StateCondition.encode(message.conditions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
+ }
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 99, wireType 2 =*/794).string(message.etag);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Trigger message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Trigger.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {google.cloud.eventarc.v1.ITrigger} message Trigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Trigger.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Trigger message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.Trigger} Trigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Trigger.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.eventarc.v1.Trigger(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.uid = reader.string();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ if (!(message.eventFilters && message.eventFilters.length))
+ message.eventFilters = [];
+ message.eventFilters.push($root.google.cloud.eventarc.v1.EventFilter.decode(reader, reader.uint32()));
+ break;
+ }
+ case 9: {
+ message.serviceAccount = reader.string();
+ break;
+ }
+ case 10: {
+ message.destination = $root.google.cloud.eventarc.v1.Destination.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.transport = $root.google.cloud.eventarc.v1.Transport.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ 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 13: {
+ message.channel = reader.string();
+ break;
+ }
+ case 15: {
+ if (message.conditions === $util.emptyObject)
+ message.conditions = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.cloud.eventarc.v1.StateCondition.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.conditions[key] = value;
+ break;
+ }
+ case 99: {
+ message.etag = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Trigger message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.Trigger} Trigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Trigger.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Trigger message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Trigger.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.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: 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.eventFilters != null && message.hasOwnProperty("eventFilters")) {
+ if (!Array.isArray(message.eventFilters))
+ return "eventFilters: array expected";
+ for (var i = 0; i < message.eventFilters.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.EventFilter.verify(message.eventFilters[i]);
+ if (error)
+ return "eventFilters." + error;
+ }
+ }
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ if (!$util.isString(message.serviceAccount))
+ return "serviceAccount: string expected";
+ if (message.destination != null && message.hasOwnProperty("destination")) {
+ var error = $root.google.cloud.eventarc.v1.Destination.verify(message.destination);
+ if (error)
+ return "destination." + error;
+ }
+ if (message.transport != null && message.hasOwnProperty("transport")) {
+ var error = $root.google.cloud.eventarc.v1.Transport.verify(message.transport);
+ if (error)
+ return "transport." + 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.channel != null && message.hasOwnProperty("channel"))
+ if (!$util.isString(message.channel))
+ return "channel: string expected";
+ if (message.conditions != null && message.hasOwnProperty("conditions")) {
+ if (!$util.isObject(message.conditions))
+ return "conditions: object expected";
+ var key = Object.keys(message.conditions);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.cloud.eventarc.v1.StateCondition.verify(message.conditions[key[i]]);
+ if (error)
+ return "conditions." + error;
+ }
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Trigger message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.Trigger} Trigger
+ */
+ Trigger.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.Trigger)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.Trigger();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.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.eventarc.v1.Trigger.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.eventFilters) {
+ if (!Array.isArray(object.eventFilters))
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.eventFilters: array expected");
+ message.eventFilters = [];
+ for (var i = 0; i < object.eventFilters.length; ++i) {
+ if (typeof object.eventFilters[i] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.eventFilters: object expected");
+ message.eventFilters[i] = $root.google.cloud.eventarc.v1.EventFilter.fromObject(object.eventFilters[i]);
+ }
+ }
+ if (object.serviceAccount != null)
+ message.serviceAccount = String(object.serviceAccount);
+ if (object.destination != null) {
+ if (typeof object.destination !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.destination: object expected");
+ message.destination = $root.google.cloud.eventarc.v1.Destination.fromObject(object.destination);
+ }
+ if (object.transport != null) {
+ if (typeof object.transport !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.transport: object expected");
+ message.transport = $root.google.cloud.eventarc.v1.Transport.fromObject(object.transport);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.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.channel != null)
+ message.channel = String(object.channel);
+ if (object.conditions) {
+ if (typeof object.conditions !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.conditions: object expected");
+ message.conditions = {};
+ for (var keys = Object.keys(object.conditions), i = 0; i < keys.length; ++i) {
+ if (typeof object.conditions[keys[i]] !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Trigger.conditions: object expected");
+ message.conditions[keys[i]] = $root.google.cloud.eventarc.v1.StateCondition.fromObject(object.conditions[keys[i]]);
+ }
+ }
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Trigger message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {google.cloud.eventarc.v1.Trigger} message Trigger
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Trigger.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.eventFilters = [];
+ if (options.objects || options.defaults) {
+ object.labels = {};
+ object.conditions = {};
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.uid = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.serviceAccount = "";
+ object.destination = null;
+ object.transport = null;
+ object.channel = "";
+ object.etag = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.eventFilters && message.eventFilters.length) {
+ object.eventFilters = [];
+ for (var j = 0; j < message.eventFilters.length; ++j)
+ object.eventFilters[j] = $root.google.cloud.eventarc.v1.EventFilter.toObject(message.eventFilters[j], options);
+ }
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ object.serviceAccount = message.serviceAccount;
+ if (message.destination != null && message.hasOwnProperty("destination"))
+ object.destination = $root.google.cloud.eventarc.v1.Destination.toObject(message.destination, options);
+ if (message.transport != null && message.hasOwnProperty("transport"))
+ object.transport = $root.google.cloud.eventarc.v1.Transport.toObject(message.transport, 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.channel != null && message.hasOwnProperty("channel"))
+ object.channel = message.channel;
+ if (message.conditions && (keys2 = Object.keys(message.conditions)).length) {
+ object.conditions = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.conditions[keys2[j]] = $root.google.cloud.eventarc.v1.StateCondition.toObject(message.conditions[keys2[j]], options);
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ return object;
+ };
+
+ /**
+ * Converts this Trigger to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Trigger.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Trigger
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.Trigger
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Trigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.Trigger";
+ };
+
+ return Trigger;
+ })();
+
+ v1.EventFilter = (function() {
+
+ /**
+ * Properties of an EventFilter.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IEventFilter
+ * @property {string|null} [attribute] EventFilter attribute
+ * @property {string|null} [value] EventFilter value
+ * @property {string|null} [operator] EventFilter operator
+ */
+
+ /**
+ * Constructs a new EventFilter.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents an EventFilter.
+ * @implements IEventFilter
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IEventFilter=} [properties] Properties to set
+ */
+ function EventFilter(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]];
+ }
+
+ /**
+ * EventFilter attribute.
+ * @member {string} attribute
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @instance
+ */
+ EventFilter.prototype.attribute = "";
+
+ /**
+ * EventFilter value.
+ * @member {string} value
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @instance
+ */
+ EventFilter.prototype.value = "";
+
+ /**
+ * EventFilter operator.
+ * @member {string} operator
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @instance
+ */
+ EventFilter.prototype.operator = "";
+
+ /**
+ * Creates a new EventFilter instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {google.cloud.eventarc.v1.IEventFilter=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.EventFilter} EventFilter instance
+ */
+ EventFilter.create = function create(properties) {
+ return new EventFilter(properties);
+ };
+
+ /**
+ * Encodes the specified EventFilter message. Does not implicitly {@link google.cloud.eventarc.v1.EventFilter.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {google.cloud.eventarc.v1.IEventFilter} message EventFilter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventFilter.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.attribute != null && Object.hasOwnProperty.call(message, "attribute"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.attribute);
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
+ if (message.operator != null && Object.hasOwnProperty.call(message, "operator"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.operator);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EventFilter message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.EventFilter.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {google.cloud.eventarc.v1.IEventFilter} message EventFilter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventFilter.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EventFilter message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.EventFilter} EventFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventFilter.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.eventarc.v1.EventFilter();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.attribute = reader.string();
+ break;
+ }
+ case 2: {
+ message.value = reader.string();
+ break;
+ }
+ case 3: {
+ message.operator = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EventFilter message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.EventFilter} EventFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventFilter.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EventFilter message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EventFilter.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.attribute != null && message.hasOwnProperty("attribute"))
+ if (!$util.isString(message.attribute))
+ return "attribute: string expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isString(message.value))
+ return "value: string expected";
+ if (message.operator != null && message.hasOwnProperty("operator"))
+ if (!$util.isString(message.operator))
+ return "operator: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EventFilter message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.EventFilter} EventFilter
+ */
+ EventFilter.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.EventFilter)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.EventFilter();
+ if (object.attribute != null)
+ message.attribute = String(object.attribute);
+ if (object.value != null)
+ message.value = String(object.value);
+ if (object.operator != null)
+ message.operator = String(object.operator);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EventFilter message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {google.cloud.eventarc.v1.EventFilter} message EventFilter
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EventFilter.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.attribute = "";
+ object.value = "";
+ object.operator = "";
+ }
+ if (message.attribute != null && message.hasOwnProperty("attribute"))
+ object.attribute = message.attribute;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ if (message.operator != null && message.hasOwnProperty("operator"))
+ object.operator = message.operator;
+ return object;
+ };
+
+ /**
+ * Converts this EventFilter to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EventFilter.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EventFilter
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.EventFilter
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EventFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.EventFilter";
+ };
+
+ return EventFilter;
+ })();
+
+ v1.StateCondition = (function() {
+
+ /**
+ * Properties of a StateCondition.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IStateCondition
+ * @property {google.rpc.Code|null} [code] StateCondition code
+ * @property {string|null} [message] StateCondition message
+ */
+
+ /**
+ * Constructs a new StateCondition.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a StateCondition.
+ * @implements IStateCondition
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IStateCondition=} [properties] Properties to set
+ */
+ function StateCondition(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]];
+ }
+
+ /**
+ * StateCondition code.
+ * @member {google.rpc.Code} code
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @instance
+ */
+ StateCondition.prototype.code = 0;
+
+ /**
+ * StateCondition message.
+ * @member {string} message
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @instance
+ */
+ StateCondition.prototype.message = "";
+
+ /**
+ * Creates a new StateCondition instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {google.cloud.eventarc.v1.IStateCondition=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.StateCondition} StateCondition instance
+ */
+ StateCondition.create = function create(properties) {
+ return new StateCondition(properties);
+ };
+
+ /**
+ * Encodes the specified StateCondition message. Does not implicitly {@link google.cloud.eventarc.v1.StateCondition.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {google.cloud.eventarc.v1.IStateCondition} message StateCondition message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StateCondition.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.code != null && Object.hasOwnProperty.call(message, "code"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified StateCondition message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.StateCondition.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {google.cloud.eventarc.v1.IStateCondition} message StateCondition message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StateCondition.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StateCondition message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.StateCondition} StateCondition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StateCondition.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.eventarc.v1.StateCondition();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.code = reader.int32();
+ break;
+ }
+ case 2: {
+ message.message = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a StateCondition message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.StateCondition} StateCondition
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StateCondition.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StateCondition message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StateCondition.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.code != null && message.hasOwnProperty("code"))
+ switch (message.code) {
+ default:
+ return "code: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 16:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ break;
+ }
+ if (message.message != null && message.hasOwnProperty("message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a StateCondition message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.StateCondition} StateCondition
+ */
+ StateCondition.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.StateCondition)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.StateCondition();
+ switch (object.code) {
+ default:
+ if (typeof object.code === "number") {
+ message.code = object.code;
+ break;
+ }
+ break;
+ case "OK":
+ case 0:
+ message.code = 0;
+ break;
+ case "CANCELLED":
+ case 1:
+ message.code = 1;
+ break;
+ case "UNKNOWN":
+ case 2:
+ message.code = 2;
+ break;
+ case "INVALID_ARGUMENT":
+ case 3:
+ message.code = 3;
+ break;
+ case "DEADLINE_EXCEEDED":
+ case 4:
+ message.code = 4;
+ break;
+ case "NOT_FOUND":
+ case 5:
+ message.code = 5;
+ break;
+ case "ALREADY_EXISTS":
+ case 6:
+ message.code = 6;
+ break;
+ case "PERMISSION_DENIED":
+ case 7:
+ message.code = 7;
+ break;
+ case "UNAUTHENTICATED":
+ case 16:
+ message.code = 16;
+ break;
+ case "RESOURCE_EXHAUSTED":
+ case 8:
+ message.code = 8;
+ break;
+ case "FAILED_PRECONDITION":
+ case 9:
+ message.code = 9;
+ break;
+ case "ABORTED":
+ case 10:
+ message.code = 10;
+ break;
+ case "OUT_OF_RANGE":
+ case 11:
+ message.code = 11;
+ break;
+ case "UNIMPLEMENTED":
+ case 12:
+ message.code = 12;
+ break;
+ case "INTERNAL":
+ case 13:
+ message.code = 13;
+ break;
+ case "UNAVAILABLE":
+ case 14:
+ message.code = 14;
+ break;
+ case "DATA_LOSS":
+ case 15:
+ message.code = 15;
+ break;
+ }
+ if (object.message != null)
+ message.message = String(object.message);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a StateCondition message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {google.cloud.eventarc.v1.StateCondition} message StateCondition
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StateCondition.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.code = options.enums === String ? "OK" : 0;
+ object.message = "";
+ }
+ if (message.code != null && message.hasOwnProperty("code"))
+ object.code = options.enums === String ? $root.google.rpc.Code[message.code] === undefined ? message.code : $root.google.rpc.Code[message.code] : message.code;
+ if (message.message != null && message.hasOwnProperty("message"))
+ object.message = message.message;
+ return object;
+ };
+
+ /**
+ * Converts this StateCondition to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StateCondition.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for StateCondition
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.StateCondition
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ StateCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.StateCondition";
+ };
+
+ return StateCondition;
+ })();
+
+ v1.Destination = (function() {
+
+ /**
+ * Properties of a Destination.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IDestination
+ * @property {google.cloud.eventarc.v1.ICloudRun|null} [cloudRun] Destination cloudRun
+ * @property {string|null} [cloudFunction] Destination cloudFunction
+ * @property {google.cloud.eventarc.v1.IGKE|null} [gke] Destination gke
+ * @property {string|null} [workflow] Destination workflow
+ */
+
+ /**
+ * Constructs a new Destination.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a Destination.
+ * @implements IDestination
+ * @constructor
+ * @param {google.cloud.eventarc.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 cloudRun.
+ * @member {google.cloud.eventarc.v1.ICloudRun|null|undefined} cloudRun
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @instance
+ */
+ Destination.prototype.cloudRun = null;
+
+ /**
+ * Destination cloudFunction.
+ * @member {string|null|undefined} cloudFunction
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @instance
+ */
+ Destination.prototype.cloudFunction = null;
+
+ /**
+ * Destination gke.
+ * @member {google.cloud.eventarc.v1.IGKE|null|undefined} gke
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @instance
+ */
+ Destination.prototype.gke = null;
+
+ /**
+ * Destination workflow.
+ * @member {string|null|undefined} workflow
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @instance
+ */
+ Destination.prototype.workflow = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Destination descriptor.
+ * @member {"cloudRun"|"cloudFunction"|"gke"|"workflow"|undefined} descriptor
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @instance
+ */
+ Object.defineProperty(Destination.prototype, "descriptor", {
+ get: $util.oneOfGetter($oneOfFields = ["cloudRun", "cloudFunction", "gke", "workflow"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Destination instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @static
+ * @param {google.cloud.eventarc.v1.IDestination=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.Destination} Destination instance
+ */
+ Destination.create = function create(properties) {
+ return new Destination(properties);
+ };
+
+ /**
+ * Encodes the specified Destination message. Does not implicitly {@link google.cloud.eventarc.v1.Destination.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @static
+ * @param {google.cloud.eventarc.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.cloudRun != null && Object.hasOwnProperty.call(message, "cloudRun"))
+ $root.google.cloud.eventarc.v1.CloudRun.encode(message.cloudRun, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.cloudFunction != null && Object.hasOwnProperty.call(message, "cloudFunction"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.cloudFunction);
+ if (message.gke != null && Object.hasOwnProperty.call(message, "gke"))
+ $root.google.cloud.eventarc.v1.GKE.encode(message.gke, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Destination message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Destination.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @static
+ * @param {google.cloud.eventarc.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.eventarc.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.eventarc.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.eventarc.v1.Destination();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.cloudRun = $root.google.cloud.eventarc.v1.CloudRun.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.cloudFunction = reader.string();
+ break;
+ }
+ case 3: {
+ message.gke = $root.google.cloud.eventarc.v1.GKE.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.workflow = reader.string();
+ 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.eventarc.v1.Destination
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.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.eventarc.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.cloudRun != null && message.hasOwnProperty("cloudRun")) {
+ properties.descriptor = 1;
+ {
+ var error = $root.google.cloud.eventarc.v1.CloudRun.verify(message.cloudRun);
+ if (error)
+ return "cloudRun." + error;
+ }
+ }
+ if (message.cloudFunction != null && message.hasOwnProperty("cloudFunction")) {
+ if (properties.descriptor === 1)
+ return "descriptor: multiple values";
+ properties.descriptor = 1;
+ if (!$util.isString(message.cloudFunction))
+ return "cloudFunction: string expected";
+ }
+ if (message.gke != null && message.hasOwnProperty("gke")) {
+ if (properties.descriptor === 1)
+ return "descriptor: multiple values";
+ properties.descriptor = 1;
+ {
+ var error = $root.google.cloud.eventarc.v1.GKE.verify(message.gke);
+ if (error)
+ return "gke." + error;
+ }
+ }
+ if (message.workflow != null && message.hasOwnProperty("workflow")) {
+ if (properties.descriptor === 1)
+ return "descriptor: multiple values";
+ properties.descriptor = 1;
+ if (!$util.isString(message.workflow))
+ return "workflow: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Destination message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.Destination} Destination
+ */
+ Destination.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.Destination)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.Destination();
+ if (object.cloudRun != null) {
+ if (typeof object.cloudRun !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Destination.cloudRun: object expected");
+ message.cloudRun = $root.google.cloud.eventarc.v1.CloudRun.fromObject(object.cloudRun);
+ }
+ if (object.cloudFunction != null)
+ message.cloudFunction = String(object.cloudFunction);
+ if (object.gke != null) {
+ if (typeof object.gke !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Destination.gke: object expected");
+ message.gke = $root.google.cloud.eventarc.v1.GKE.fromObject(object.gke);
+ }
+ if (object.workflow != null)
+ message.workflow = String(object.workflow);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Destination message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.Destination
+ * @static
+ * @param {google.cloud.eventarc.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 (message.cloudRun != null && message.hasOwnProperty("cloudRun")) {
+ object.cloudRun = $root.google.cloud.eventarc.v1.CloudRun.toObject(message.cloudRun, options);
+ if (options.oneofs)
+ object.descriptor = "cloudRun";
+ }
+ if (message.cloudFunction != null && message.hasOwnProperty("cloudFunction")) {
+ object.cloudFunction = message.cloudFunction;
+ if (options.oneofs)
+ object.descriptor = "cloudFunction";
+ }
+ if (message.gke != null && message.hasOwnProperty("gke")) {
+ object.gke = $root.google.cloud.eventarc.v1.GKE.toObject(message.gke, options);
+ if (options.oneofs)
+ object.descriptor = "gke";
+ }
+ if (message.workflow != null && message.hasOwnProperty("workflow")) {
+ object.workflow = message.workflow;
+ if (options.oneofs)
+ object.descriptor = "workflow";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Destination to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.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.eventarc.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.eventarc.v1.Destination";
+ };
+
+ return Destination;
+ })();
+
+ v1.Transport = (function() {
+
+ /**
+ * Properties of a Transport.
+ * @memberof google.cloud.eventarc.v1
+ * @interface ITransport
+ * @property {google.cloud.eventarc.v1.IPubsub|null} [pubsub] Transport pubsub
+ */
+
+ /**
+ * Constructs a new Transport.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a Transport.
+ * @implements ITransport
+ * @constructor
+ * @param {google.cloud.eventarc.v1.ITransport=} [properties] Properties to set
+ */
+ function Transport(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]];
+ }
+
+ /**
+ * Transport pubsub.
+ * @member {google.cloud.eventarc.v1.IPubsub|null|undefined} pubsub
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @instance
+ */
+ Transport.prototype.pubsub = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Transport intermediary.
+ * @member {"pubsub"|undefined} intermediary
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @instance
+ */
+ Object.defineProperty(Transport.prototype, "intermediary", {
+ get: $util.oneOfGetter($oneOfFields = ["pubsub"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Transport instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {google.cloud.eventarc.v1.ITransport=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.Transport} Transport instance
+ */
+ Transport.create = function create(properties) {
+ return new Transport(properties);
+ };
+
+ /**
+ * Encodes the specified Transport message. Does not implicitly {@link google.cloud.eventarc.v1.Transport.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {google.cloud.eventarc.v1.ITransport} message Transport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Transport.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.pubsub != null && Object.hasOwnProperty.call(message, "pubsub"))
+ $root.google.cloud.eventarc.v1.Pubsub.encode(message.pubsub, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Transport message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Transport.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {google.cloud.eventarc.v1.ITransport} message Transport message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Transport.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Transport message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.Transport} Transport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Transport.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.eventarc.v1.Transport();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.pubsub = $root.google.cloud.eventarc.v1.Pubsub.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Transport message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.Transport} Transport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Transport.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Transport message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Transport.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.pubsub != null && message.hasOwnProperty("pubsub")) {
+ properties.intermediary = 1;
+ {
+ var error = $root.google.cloud.eventarc.v1.Pubsub.verify(message.pubsub);
+ if (error)
+ return "pubsub." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Transport message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.Transport} Transport
+ */
+ Transport.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.Transport)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.Transport();
+ if (object.pubsub != null) {
+ if (typeof object.pubsub !== "object")
+ throw TypeError(".google.cloud.eventarc.v1.Transport.pubsub: object expected");
+ message.pubsub = $root.google.cloud.eventarc.v1.Pubsub.fromObject(object.pubsub);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Transport message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {google.cloud.eventarc.v1.Transport} message Transport
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Transport.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.pubsub != null && message.hasOwnProperty("pubsub")) {
+ object.pubsub = $root.google.cloud.eventarc.v1.Pubsub.toObject(message.pubsub, options);
+ if (options.oneofs)
+ object.intermediary = "pubsub";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Transport to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Transport.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Transport
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.Transport
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Transport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.Transport";
+ };
+
+ return Transport;
+ })();
+
+ v1.CloudRun = (function() {
+
+ /**
+ * Properties of a CloudRun.
+ * @memberof google.cloud.eventarc.v1
+ * @interface ICloudRun
+ * @property {string|null} [service] CloudRun service
+ * @property {string|null} [path] CloudRun path
+ * @property {string|null} [region] CloudRun region
+ */
+
+ /**
+ * Constructs a new CloudRun.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a CloudRun.
+ * @implements ICloudRun
+ * @constructor
+ * @param {google.cloud.eventarc.v1.ICloudRun=} [properties] Properties to set
+ */
+ function CloudRun(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]];
+ }
+
+ /**
+ * CloudRun service.
+ * @member {string} service
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @instance
+ */
+ CloudRun.prototype.service = "";
+
+ /**
+ * CloudRun path.
+ * @member {string} path
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @instance
+ */
+ CloudRun.prototype.path = "";
+
+ /**
+ * CloudRun region.
+ * @member {string} region
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @instance
+ */
+ CloudRun.prototype.region = "";
+
+ /**
+ * Creates a new CloudRun instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {google.cloud.eventarc.v1.ICloudRun=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.CloudRun} CloudRun instance
+ */
+ CloudRun.create = function create(properties) {
+ return new CloudRun(properties);
+ };
+
+ /**
+ * Encodes the specified CloudRun message. Does not implicitly {@link google.cloud.eventarc.v1.CloudRun.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {google.cloud.eventarc.v1.ICloudRun} message CloudRun message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudRun.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.service);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ if (message.region != null && Object.hasOwnProperty.call(message, "region"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.region);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CloudRun message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.CloudRun.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {google.cloud.eventarc.v1.ICloudRun} message CloudRun message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudRun.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CloudRun message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.CloudRun} CloudRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudRun.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.eventarc.v1.CloudRun();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.service = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ case 3: {
+ message.region = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CloudRun message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.CloudRun} CloudRun
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudRun.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CloudRun message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CloudRun.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.service != null && message.hasOwnProperty("service"))
+ if (!$util.isString(message.service))
+ return "service: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ if (message.region != null && message.hasOwnProperty("region"))
+ if (!$util.isString(message.region))
+ return "region: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CloudRun message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.CloudRun} CloudRun
+ */
+ CloudRun.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.CloudRun)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.CloudRun();
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.path != null)
+ message.path = String(object.path);
+ if (object.region != null)
+ message.region = String(object.region);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CloudRun message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {google.cloud.eventarc.v1.CloudRun} message CloudRun
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CloudRun.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.service = "";
+ object.path = "";
+ object.region = "";
+ }
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = message.service;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ if (message.region != null && message.hasOwnProperty("region"))
+ object.region = message.region;
+ return object;
+ };
+
+ /**
+ * Converts this CloudRun to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CloudRun.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CloudRun
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.CloudRun
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CloudRun.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.CloudRun";
+ };
+
+ return CloudRun;
+ })();
+
+ v1.GKE = (function() {
+
+ /**
+ * Properties of a GKE.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IGKE
+ * @property {string|null} [cluster] GKE cluster
+ * @property {string|null} [location] GKE location
+ * @property {string|null} [namespace] GKE namespace
+ * @property {string|null} [service] GKE service
+ * @property {string|null} [path] GKE path
+ */
+
+ /**
+ * Constructs a new GKE.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a GKE.
+ * @implements IGKE
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IGKE=} [properties] Properties to set
+ */
+ function GKE(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]];
+ }
+
+ /**
+ * GKE cluster.
+ * @member {string} cluster
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @instance
+ */
+ GKE.prototype.cluster = "";
+
+ /**
+ * GKE location.
+ * @member {string} location
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @instance
+ */
+ GKE.prototype.location = "";
+
+ /**
+ * GKE namespace.
+ * @member {string} namespace
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @instance
+ */
+ GKE.prototype.namespace = "";
+
+ /**
+ * GKE service.
+ * @member {string} service
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @instance
+ */
+ GKE.prototype.service = "";
+
+ /**
+ * GKE path.
+ * @member {string} path
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @instance
+ */
+ GKE.prototype.path = "";
+
+ /**
+ * Creates a new GKE instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {google.cloud.eventarc.v1.IGKE=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.GKE} GKE instance
+ */
+ GKE.create = function create(properties) {
+ return new GKE(properties);
+ };
+
+ /**
+ * Encodes the specified GKE message. Does not implicitly {@link google.cloud.eventarc.v1.GKE.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {google.cloud.eventarc.v1.IGKE} message GKE message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GKE.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster);
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.location);
+ if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.namespace);
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.service);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GKE message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.GKE.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {google.cloud.eventarc.v1.IGKE} message GKE message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GKE.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GKE message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.GKE} GKE
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GKE.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.eventarc.v1.GKE();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.cluster = reader.string();
+ break;
+ }
+ case 2: {
+ message.location = reader.string();
+ break;
+ }
+ case 3: {
+ message.namespace = reader.string();
+ break;
+ }
+ case 4: {
+ message.service = reader.string();
+ break;
+ }
+ case 5: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GKE message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.GKE} GKE
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GKE.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GKE message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GKE.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
+ if (!$util.isString(message.cluster))
+ return "cluster: string expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.namespace != null && message.hasOwnProperty("namespace"))
+ if (!$util.isString(message.namespace))
+ return "namespace: string expected";
+ if (message.service != null && message.hasOwnProperty("service"))
+ if (!$util.isString(message.service))
+ return "service: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GKE message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.GKE} GKE
+ */
+ GKE.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.GKE)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.GKE();
+ if (object.cluster != null)
+ message.cluster = String(object.cluster);
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.namespace != null)
+ message.namespace = String(object.namespace);
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GKE message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {google.cloud.eventarc.v1.GKE} message GKE
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GKE.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.cluster = "";
+ object.location = "";
+ object.namespace = "";
+ object.service = "";
+ object.path = "";
+ }
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
+ object.cluster = message.cluster;
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.namespace != null && message.hasOwnProperty("namespace"))
+ object.namespace = message.namespace;
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = message.service;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this GKE to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GKE.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GKE
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.GKE
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GKE.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.GKE";
+ };
+
+ return GKE;
+ })();
+
+ v1.Pubsub = (function() {
+
+ /**
+ * Properties of a Pubsub.
+ * @memberof google.cloud.eventarc.v1
+ * @interface IPubsub
+ * @property {string|null} [topic] Pubsub topic
+ * @property {string|null} [subscription] Pubsub subscription
+ */
+
+ /**
+ * Constructs a new Pubsub.
+ * @memberof google.cloud.eventarc.v1
+ * @classdesc Represents a Pubsub.
+ * @implements IPubsub
+ * @constructor
+ * @param {google.cloud.eventarc.v1.IPubsub=} [properties] Properties to set
+ */
+ function Pubsub(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]];
+ }
+
+ /**
+ * Pubsub topic.
+ * @member {string} topic
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @instance
+ */
+ Pubsub.prototype.topic = "";
+
+ /**
+ * Pubsub subscription.
+ * @member {string} subscription
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @instance
+ */
+ Pubsub.prototype.subscription = "";
+
+ /**
+ * Creates a new Pubsub instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {google.cloud.eventarc.v1.IPubsub=} [properties] Properties to set
+ * @returns {google.cloud.eventarc.v1.Pubsub} Pubsub instance
+ */
+ Pubsub.create = function create(properties) {
+ return new Pubsub(properties);
+ };
+
+ /**
+ * Encodes the specified Pubsub message. Does not implicitly {@link google.cloud.eventarc.v1.Pubsub.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {google.cloud.eventarc.v1.IPubsub} message Pubsub message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Pubsub.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.topic != null && Object.hasOwnProperty.call(message, "topic"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic);
+ if (message.subscription != null && Object.hasOwnProperty.call(message, "subscription"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.subscription);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Pubsub message, length delimited. Does not implicitly {@link google.cloud.eventarc.v1.Pubsub.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {google.cloud.eventarc.v1.IPubsub} message Pubsub message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Pubsub.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Pubsub message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.eventarc.v1.Pubsub} Pubsub
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Pubsub.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.eventarc.v1.Pubsub();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.topic = reader.string();
+ break;
+ }
+ case 2: {
+ message.subscription = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Pubsub message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.eventarc.v1.Pubsub} Pubsub
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Pubsub.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Pubsub message.
+ * @function verify
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Pubsub.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.topic != null && message.hasOwnProperty("topic"))
+ if (!$util.isString(message.topic))
+ return "topic: string expected";
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
+ if (!$util.isString(message.subscription))
+ return "subscription: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Pubsub message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.eventarc.v1.Pubsub} Pubsub
+ */
+ Pubsub.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.eventarc.v1.Pubsub)
+ return object;
+ var message = new $root.google.cloud.eventarc.v1.Pubsub();
+ if (object.topic != null)
+ message.topic = String(object.topic);
+ if (object.subscription != null)
+ message.subscription = String(object.subscription);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Pubsub message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {google.cloud.eventarc.v1.Pubsub} message Pubsub
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Pubsub.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.topic = "";
+ object.subscription = "";
+ }
+ if (message.topic != null && message.hasOwnProperty("topic"))
+ object.topic = message.topic;
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
+ object.subscription = message.subscription;
+ return object;
+ };
+
+ /**
+ * Converts this Pubsub to JSON.
+ * @function toJSON
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Pubsub.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Pubsub
+ * @function getTypeUrl
+ * @memberof google.cloud.eventarc.v1.Pubsub
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Pubsub.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.eventarc.v1.Pubsub";
+ };
+
+ return Pubsub;
+ })();
+
+ return v1;
+ })();
+
+ return eventarc;
+ })();
+
+ return cloud;
+ })();
+
+ google.api = (function() {
+
+ /**
+ * Namespace api.
+ * @memberof google
+ * @namespace
+ */
+ var api = {};
+
+ /**
+ * FieldBehavior enum.
+ * @name google.api.FieldBehavior
+ * @enum {number}
+ * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
+ * @property {number} OPTIONAL=1 OPTIONAL value
+ * @property {number} REQUIRED=2 REQUIRED value
+ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
+ * @property {number} INPUT_ONLY=4 INPUT_ONLY value
+ * @property {number} IMMUTABLE=5 IMMUTABLE value
+ * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
+ * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
+ */
+ api.FieldBehavior = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "OPTIONAL"] = 1;
+ values[valuesById[2] = "REQUIRED"] = 2;
+ values[valuesById[3] = "OUTPUT_ONLY"] = 3;
+ values[valuesById[4] = "INPUT_ONLY"] = 4;
+ values[valuesById[5] = "IMMUTABLE"] = 5;
+ values[valuesById[6] = "UNORDERED_LIST"] = 6;
+ values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
+ return values;
+ })();
+
+ api.ResourceDescriptor = (function() {
+
+ /**
+ * Properties of a ResourceDescriptor.
+ * @memberof google.api
+ * @interface IResourceDescriptor
+ * @property {string|null} [type] ResourceDescriptor type
+ * @property {Array.|null} [pattern] ResourceDescriptor pattern
+ * @property {string|null} [nameField] ResourceDescriptor nameField
+ * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
+ * @property {string|null} [plural] ResourceDescriptor plural
+ * @property {string|null} [singular] ResourceDescriptor singular
+ * @property {Array.|null} [style] ResourceDescriptor style
+ */
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @memberof google.api
+ * @classdesc Represents a ResourceDescriptor.
+ * @implements IResourceDescriptor
+ * @constructor
+ * @param {google.api.IResourceDescriptor=} [properties] Properties to set
+ */
+ function ResourceDescriptor(properties) {
+ this.pattern = [];
+ this.style = [];
+ 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]];
+ }
+
+ /**
+ * ResourceDescriptor type.
+ * @member {string} type
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.type = "";
+
+ /**
+ * ResourceDescriptor pattern.
+ * @member {Array.} pattern
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.pattern = $util.emptyArray;
+
+ /**
+ * ResourceDescriptor nameField.
+ * @member {string} nameField
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.nameField = "";
+
+ /**
+ * ResourceDescriptor history.
+ * @member {google.api.ResourceDescriptor.History} history
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.history = 0;
+
+ /**
+ * ResourceDescriptor plural.
+ * @member {string} plural
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.plural = "";
+
+ /**
+ * ResourceDescriptor singular.
+ * @member {string} singular
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.singular = "";
+
+ /**
+ * ResourceDescriptor style.
+ * @member {Array.} style
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ */
+ ResourceDescriptor.prototype.style = $util.emptyArray;
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @function create
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.IResourceDescriptor=} [properties] Properties to set
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
+ */
+ ResourceDescriptor.create = function create(properties) {
+ return new ResourceDescriptor(properties);
+ };
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceDescriptor.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.pattern != null && message.pattern.length)
+ for (var i = 0; i < message.pattern.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]);
+ if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
+ if (message.history != null && Object.hasOwnProperty.call(message, "history"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
+ if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
+ if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
+ if (message.style != null && message.style.length) {
+ writer.uint32(/* id 10, wireType 2 =*/82).fork();
+ for (var i = 0; i < message.style.length; ++i)
+ writer.int32(message.style[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceDescriptor.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.pattern && message.pattern.length))
+ message.pattern = [];
+ message.pattern.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.nameField = reader.string();
+ break;
+ }
+ case 4: {
+ message.history = reader.int32();
+ break;
+ }
+ case 5: {
+ message.plural = reader.string();
+ break;
+ }
+ case 6: {
+ message.singular = reader.string();
+ break;
+ }
+ case 10: {
+ if (!(message.style && message.style.length))
+ message.style = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.style.push(reader.int32());
+ } else
+ message.style.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @function verify
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResourceDescriptor.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.pattern != null && message.hasOwnProperty("pattern")) {
+ if (!Array.isArray(message.pattern))
+ return "pattern: array expected";
+ for (var i = 0; i < message.pattern.length; ++i)
+ if (!$util.isString(message.pattern[i]))
+ return "pattern: string[] expected";
+ }
+ if (message.nameField != null && message.hasOwnProperty("nameField"))
+ if (!$util.isString(message.nameField))
+ return "nameField: string expected";
+ if (message.history != null && message.hasOwnProperty("history"))
+ switch (message.history) {
+ default:
+ return "history: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.plural != null && message.hasOwnProperty("plural"))
+ if (!$util.isString(message.plural))
+ return "plural: string expected";
+ if (message.singular != null && message.hasOwnProperty("singular"))
+ if (!$util.isString(message.singular))
+ return "singular: string expected";
+ if (message.style != null && message.hasOwnProperty("style")) {
+ if (!Array.isArray(message.style))
+ return "style: array expected";
+ for (var i = 0; i < message.style.length; ++i)
+ switch (message.style[i]) {
+ default:
+ return "style: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ */
+ ResourceDescriptor.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ResourceDescriptor)
+ return object;
+ var message = new $root.google.api.ResourceDescriptor();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.pattern) {
+ if (!Array.isArray(object.pattern))
+ throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");
+ message.pattern = [];
+ for (var i = 0; i < object.pattern.length; ++i)
+ message.pattern[i] = String(object.pattern[i]);
+ }
+ if (object.nameField != null)
+ message.nameField = String(object.nameField);
+ switch (object.history) {
+ default:
+ if (typeof object.history === "number") {
+ message.history = object.history;
+ break;
+ }
+ break;
+ case "HISTORY_UNSPECIFIED":
+ case 0:
+ message.history = 0;
+ break;
+ case "ORIGINALLY_SINGLE_PATTERN":
+ case 1:
+ message.history = 1;
+ break;
+ case "FUTURE_MULTI_PATTERN":
+ case 2:
+ message.history = 2;
+ break;
+ }
+ if (object.plural != null)
+ message.plural = String(object.plural);
+ if (object.singular != null)
+ message.singular = String(object.singular);
+ if (object.style) {
+ if (!Array.isArray(object.style))
+ throw TypeError(".google.api.ResourceDescriptor.style: array expected");
+ message.style = [];
+ for (var i = 0; i < object.style.length; ++i)
+ switch (object.style[i]) {
+ default:
+ if (typeof object.style[i] === "number") {
+ message.style[i] = object.style[i];
+ break;
+ }
+ case "STYLE_UNSPECIFIED":
+ case 0:
+ message.style[i] = 0;
+ break;
+ case "DECLARATIVE_FRIENDLY":
+ case 1:
+ message.style[i] = 1;
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {google.api.ResourceDescriptor} message ResourceDescriptor
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResourceDescriptor.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.pattern = [];
+ object.style = [];
+ }
+ if (options.defaults) {
+ object.type = "";
+ object.nameField = "";
+ object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0;
+ object.plural = "";
+ object.singular = "";
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.pattern && message.pattern.length) {
+ object.pattern = [];
+ for (var j = 0; j < message.pattern.length; ++j)
+ object.pattern[j] = message.pattern[j];
+ }
+ if (message.nameField != null && message.hasOwnProperty("nameField"))
+ object.nameField = message.nameField;
+ if (message.history != null && message.hasOwnProperty("history"))
+ object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history;
+ if (message.plural != null && message.hasOwnProperty("plural"))
+ object.plural = message.plural;
+ if (message.singular != null && message.hasOwnProperty("singular"))
+ object.singular = message.singular;
+ if (message.style && message.style.length) {
+ object.style = [];
+ for (var j = 0; j < message.style.length; ++j)
+ object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @function toJSON
+ * @memberof google.api.ResourceDescriptor
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResourceDescriptor.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @function getTypeUrl
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ResourceDescriptor";
+ };
+
+ /**
+ * History enum.
+ * @name google.api.ResourceDescriptor.History
+ * @enum {number}
+ * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value
+ * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value
+ * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value
+ */
+ ResourceDescriptor.History = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1;
+ values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2;
+ return values;
+ })();
+
+ /**
+ * Style enum.
+ * @name google.api.ResourceDescriptor.Style
+ * @enum {number}
+ * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value
+ * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value
+ */
+ ResourceDescriptor.Style = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1;
+ return values;
+ })();
+
+ return ResourceDescriptor;
+ })();
+
+ api.ResourceReference = (function() {
+
+ /**
+ * Properties of a ResourceReference.
+ * @memberof google.api
+ * @interface IResourceReference
+ * @property {string|null} [type] ResourceReference type
+ * @property {string|null} [childType] ResourceReference childType
+ */
+
+ /**
+ * Constructs a new ResourceReference.
+ * @memberof google.api
+ * @classdesc Represents a ResourceReference.
+ * @implements IResourceReference
+ * @constructor
+ * @param {google.api.IResourceReference=} [properties] Properties to set
+ */
+ function ResourceReference(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]];
+ }
+
+ /**
+ * ResourceReference type.
+ * @member {string} type
+ * @memberof google.api.ResourceReference
+ * @instance
+ */
+ ResourceReference.prototype.type = "";
+
+ /**
+ * ResourceReference childType.
+ * @member {string} childType
+ * @memberof google.api.ResourceReference
+ * @instance
+ */
+ ResourceReference.prototype.childType = "";
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @function create
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference=} [properties] Properties to set
+ * @returns {google.api.ResourceReference} ResourceReference instance
+ */
+ ResourceReference.create = function create(properties) {
+ return new ResourceReference(properties);
+ };
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceReference.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.childType != null && Object.hasOwnProperty.call(message, "childType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ResourceReference} ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceReference.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ message.childType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ResourceReference} ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResourceReference message.
+ * @function verify
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResourceReference.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.childType != null && message.hasOwnProperty("childType"))
+ if (!$util.isString(message.childType))
+ return "childType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ResourceReference} ResourceReference
+ */
+ ResourceReference.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ResourceReference)
+ return object;
+ var message = new $root.google.api.ResourceReference();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.childType != null)
+ message.childType = String(object.childType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.ResourceReference} message ResourceReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResourceReference.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.type = "";
+ object.childType = "";
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.childType != null && message.hasOwnProperty("childType"))
+ object.childType = message.childType;
+ return object;
+ };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @function toJSON
+ * @memberof google.api.ResourceReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResourceReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @function getTypeUrl
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ResourceReference";
+ };
+
+ return ResourceReference;
+ })();
+
+ api.Http = (function() {
+
+ /**
+ * Properties of a Http.
+ * @memberof google.api
+ * @interface IHttp
+ * @property {Array.|null} [rules] Http rules
+ * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion
+ */
+
+ /**
+ * Constructs a new Http.
+ * @memberof google.api
+ * @classdesc Represents a Http.
+ * @implements IHttp
+ * @constructor
+ * @param {google.api.IHttp=} [properties] Properties to set
+ */
+ function Http(properties) {
+ this.rules = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Http rules.
+ * @member {Array.} rules
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.rules = $util.emptyArray;
+
+ /**
+ * Http fullyDecodeReservedExpansion.
+ * @member {boolean} fullyDecodeReservedExpansion
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.fullyDecodeReservedExpansion = false;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @function create
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp=} [properties] Properties to set
+ * @returns {google.api.Http} Http instance
+ */
+ Http.create = function create(properties) {
+ return new Http(properties);
+ };
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rules != null && message.rules.length)
+ for (var i = 0; i < message.rules.length; ++i)
+ $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.fullyDecodeReservedExpansion = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Http message.
+ * @function verify
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Http.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rules != null && message.hasOwnProperty("rules")) {
+ if (!Array.isArray(message.rules))
+ return "rules: array expected";
+ for (var i = 0; i < message.rules.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.rules[i]);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ if (typeof message.fullyDecodeReservedExpansion !== "boolean")
+ return "fullyDecodeReservedExpansion: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Http} Http
+ */
+ Http.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Http)
+ return object;
+ var message = new $root.google.api.Http();
+ if (object.rules) {
+ if (!Array.isArray(object.rules))
+ throw TypeError(".google.api.Http.rules: array expected");
+ message.rules = [];
+ for (var i = 0; i < object.rules.length; ++i) {
+ if (typeof object.rules[i] !== "object")
+ throw TypeError(".google.api.Http.rules: object expected");
+ message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
+ }
+ }
+ if (object.fullyDecodeReservedExpansion != null)
+ message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.Http} message Http
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Http.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.rules = [];
+ if (options.defaults)
+ object.fullyDecodeReservedExpansion = false;
+ if (message.rules && message.rules.length) {
+ object.rules = [];
+ for (var j = 0; j < message.rules.length; ++j)
+ object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
+ return object;
+ };
+
+ /**
+ * Converts this Http to JSON.
+ * @function toJSON
+ * @memberof google.api.Http
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Http.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Http
+ * @function getTypeUrl
+ * @memberof google.api.Http
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Http";
+ };
+
+ return Http;
+ })();
+
+ api.HttpRule = (function() {
+
+ /**
+ * Properties of a HttpRule.
+ * @memberof google.api
+ * @interface IHttpRule
+ * @property {string|null} [selector] HttpRule selector
+ * @property {string|null} [get] HttpRule get
+ * @property {string|null} [put] HttpRule put
+ * @property {string|null} [post] HttpRule post
+ * @property {string|null} ["delete"] HttpRule delete
+ * @property {string|null} [patch] HttpRule patch
+ * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom
+ * @property {string|null} [body] HttpRule body
+ * @property {string|null} [responseBody] HttpRule responseBody
+ * @property {Array.|null} [additionalBindings] HttpRule additionalBindings
+ */
+
+ /**
+ * Constructs a new HttpRule.
+ * @memberof google.api
+ * @classdesc Represents a HttpRule.
+ * @implements IHttpRule
+ * @constructor
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ */
+ function HttpRule(properties) {
+ this.additionalBindings = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * HttpRule selector.
+ * @member {string} selector
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.selector = "";
+
+ /**
+ * HttpRule get.
+ * @member {string|null|undefined} get
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.get = null;
+
+ /**
+ * HttpRule put.
+ * @member {string|null|undefined} put
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.put = null;
+
+ /**
+ * HttpRule post.
+ * @member {string|null|undefined} post
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.post = null;
+
+ /**
+ * HttpRule delete.
+ * @member {string|null|undefined} delete
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype["delete"] = null;
+
+ /**
+ * HttpRule patch.
+ * @member {string|null|undefined} patch
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.patch = null;
+
+ /**
+ * HttpRule custom.
+ * @member {google.api.ICustomHttpPattern|null|undefined} custom
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.custom = null;
+
+ /**
+ * HttpRule body.
+ * @member {string} body
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.body = "";
+
+ /**
+ * HttpRule responseBody.
+ * @member {string} responseBody
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.responseBody = "";
+
+ /**
+ * HttpRule additionalBindings.
+ * @member {Array.} additionalBindings
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.additionalBindings = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * HttpRule pattern.
+ * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ Object.defineProperty(HttpRule.prototype, "pattern", {
+ get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @function create
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ * @returns {google.api.HttpRule} HttpRule instance
+ */
+ HttpRule.create = function create(properties) {
+ return new HttpRule(properties);
+ };
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.get != null && Object.hasOwnProperty.call(message, "get"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.get);
+ if (message.put != null && Object.hasOwnProperty.call(message, "put"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.put);
+ if (message.post != null && Object.hasOwnProperty.call(message, "post"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.post);
+ if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]);
+ if (message.patch != null && Object.hasOwnProperty.call(message, "patch"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.body);
+ if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
+ $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.additionalBindings != null && message.additionalBindings.length)
+ for (var i = 0; i < message.additionalBindings.length; ++i)
+ $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.get = reader.string();
+ break;
+ }
+ case 3: {
+ message.put = reader.string();
+ break;
+ }
+ case 4: {
+ message.post = reader.string();
+ break;
+ }
+ case 5: {
+ message["delete"] = reader.string();
+ break;
+ }
+ case 6: {
+ message.patch = reader.string();
+ break;
+ }
+ case 8: {
+ message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.body = reader.string();
+ break;
+ }
+ case 12: {
+ message.responseBody = reader.string();
+ break;
+ }
+ case 11: {
+ if (!(message.additionalBindings && message.additionalBindings.length))
+ message.additionalBindings = [];
+ message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HttpRule message.
+ * @function verify
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HttpRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.get != null && message.hasOwnProperty("get")) {
+ properties.pattern = 1;
+ if (!$util.isString(message.get))
+ return "get: string expected";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.put))
+ return "put: string expected";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.post))
+ return "post: string expected";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message["delete"]))
+ return "delete: string expected";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.patch))
+ return "patch: string expected";
+ }
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ {
+ var error = $root.google.api.CustomHttpPattern.verify(message.custom);
+ if (error)
+ return "custom." + error;
+ }
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ if (!$util.isString(message.responseBody))
+ return "responseBody: string expected";
+ if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) {
+ if (!Array.isArray(message.additionalBindings))
+ return "additionalBindings: array expected";
+ for (var i = 0; i < message.additionalBindings.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]);
+ if (error)
+ return "additionalBindings." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.HttpRule} HttpRule
+ */
+ HttpRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.HttpRule)
+ return object;
+ var message = new $root.google.api.HttpRule();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.get != null)
+ message.get = String(object.get);
+ if (object.put != null)
+ message.put = String(object.put);
+ if (object.post != null)
+ message.post = String(object.post);
+ if (object["delete"] != null)
+ message["delete"] = String(object["delete"]);
+ if (object.patch != null)
+ message.patch = String(object.patch);
+ if (object.custom != null) {
+ if (typeof object.custom !== "object")
+ throw TypeError(".google.api.HttpRule.custom: object expected");
+ message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
+ }
+ if (object.body != null)
+ message.body = String(object.body);
+ if (object.responseBody != null)
+ message.responseBody = String(object.responseBody);
+ if (object.additionalBindings) {
+ if (!Array.isArray(object.additionalBindings))
+ throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
+ message.additionalBindings = [];
+ for (var i = 0; i < object.additionalBindings.length; ++i) {
+ if (typeof object.additionalBindings[i] !== "object")
+ throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
+ message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.HttpRule} message HttpRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HttpRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalBindings = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.body = "";
+ object.responseBody = "";
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.get != null && message.hasOwnProperty("get")) {
+ object.get = message.get;
+ if (options.oneofs)
+ object.pattern = "get";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ object.put = message.put;
+ if (options.oneofs)
+ object.pattern = "put";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ object.post = message.post;
+ if (options.oneofs)
+ object.pattern = "post";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ object["delete"] = message["delete"];
+ if (options.oneofs)
+ object.pattern = "delete";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ object.patch = message.patch;
+ if (options.oneofs)
+ object.pattern = "patch";
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ object.body = message.body;
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options);
+ if (options.oneofs)
+ object.pattern = "custom";
+ }
+ if (message.additionalBindings && message.additionalBindings.length) {
+ object.additionalBindings = [];
+ for (var j = 0; j < message.additionalBindings.length; ++j)
+ object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options);
+ }
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ object.responseBody = message.responseBody;
+ return object;
+ };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @function toJSON
+ * @memberof google.api.HttpRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @function getTypeUrl
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.HttpRule";
+ };
+
+ return HttpRule;
+ })();
+
+ api.CustomHttpPattern = (function() {
+
+ /**
+ * Properties of a CustomHttpPattern.
+ * @memberof google.api
+ * @interface ICustomHttpPattern
+ * @property {string|null} [kind] CustomHttpPattern kind
+ * @property {string|null} [path] CustomHttpPattern path
+ */
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @memberof google.api
+ * @classdesc Represents a CustomHttpPattern.
+ * @implements ICustomHttpPattern
+ * @constructor
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ */
+ function CustomHttpPattern(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CustomHttpPattern kind.
+ * @member {string} kind
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.kind = "";
+
+ /**
+ * CustomHttpPattern path.
+ * @member {string} path
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.path = "";
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @function create
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
+ */
+ CustomHttpPattern.create = function create(properties) {
+ return new CustomHttpPattern(properties);
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @function verify
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomHttpPattern.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ */
+ CustomHttpPattern.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CustomHttpPattern)
+ return object;
+ var message = new $root.google.api.CustomHttpPattern();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.CustomHttpPattern} message CustomHttpPattern
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomHttpPattern.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.kind = "";
+ object.path = "";
+ }
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ object.kind = message.kind;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @function toJSON
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomHttpPattern.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @function getTypeUrl
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CustomHttpPattern";
+ };
+
+ return CustomHttpPattern;
+ })();
+
+ return api;
+ })();
+
+ google.protobuf = (function() {
+
+ /**
+ * Namespace protobuf.
+ * @memberof google
+ * @namespace
+ */
+ var protobuf = {};
+
+ protobuf.FileDescriptorSet = (function() {
+
+ /**
+ * Properties of a FileDescriptorSet.
+ * @memberof google.protobuf
+ * @interface IFileDescriptorSet
+ * @property {Array.|null} [file] FileDescriptorSet file
+ */
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @memberof google.protobuf
+ * @classdesc Represents a FileDescriptorSet.
+ * @implements IFileDescriptorSet
+ * @constructor
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
+ */
+ function FileDescriptorSet(properties) {
+ this.file = [];
+ 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]];
+ }
+
+ /**
+ * FileDescriptorSet file.
+ * @member {Array.} file
+ * @memberof google.protobuf.FileDescriptorSet
+ * @instance
+ */
+ FileDescriptorSet.prototype.file = $util.emptyArray;
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance
+ */
+ FileDescriptorSet.create = function create(properties) {
+ return new FileDescriptorSet(properties);
+ };
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorSet.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.file != null && message.file.length)
+ for (var i = 0; i < message.file.length; ++i)
+ $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorSet.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.protobuf.FileDescriptorSet();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.file && message.file.length))
+ message.file = [];
+ message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @function verify
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileDescriptorSet.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.file != null && message.hasOwnProperty("file")) {
+ if (!Array.isArray(message.file))
+ return "file: array expected";
+ for (var i = 0; i < message.file.length; ++i) {
+ var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]);
+ if (error)
+ return "file." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ */
+ FileDescriptorSet.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.FileDescriptorSet)
+ return object;
+ var message = new $root.google.protobuf.FileDescriptorSet();
+ if (object.file) {
+ if (!Array.isArray(object.file))
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");
+ message.file = [];
+ for (var i = 0; i < object.file.length; ++i) {
+ if (typeof object.file[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");
+ message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FileDescriptorSet.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.file = [];
+ if (message.file && message.file.length) {
+ object.file = [];
+ for (var j = 0; j < message.file.length; ++j)
+ object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.FileDescriptorSet
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FileDescriptorSet.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @function getTypeUrl
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.protobuf.FileDescriptorSet";
+ };
+
+ return FileDescriptorSet;
+ })();
+
+ protobuf.FileDescriptorProto = (function() {
+
+ /**
+ * Properties of a FileDescriptorProto.
+ * @memberof google.protobuf
+ * @interface IFileDescriptorProto
+ * @property {string|null} [name] FileDescriptorProto name
+ * @property {string|null} ["package"] FileDescriptorProto package
+ * @property {Array.|null} [dependency] FileDescriptorProto dependency
+ * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency
+ * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency
+ * @property {Array.