diff --git a/packages/google-cloud-functions/.eslintignore b/packages/google-cloud-functions/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-functions/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-functions/.eslintrc.json b/packages/google-cloud-functions/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-functions/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-functions/.gitattributes b/packages/google-cloud-functions/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-functions/.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-functions/.github/.OwlBot.yaml b/packages/google-cloud-functions/.github/.OwlBot.yaml
new file mode 100644
index 00000000000..1b49af14a32
--- /dev/null
+++ b/packages/google-cloud-functions/.github/.OwlBot.yaml
@@ -0,0 +1,26 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+docker:
+ image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
+
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/functions/(v.*)/.*-nodejs/(.*)
+ dest: /owl-bot-staging/$1/$2
+
+begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b
+
diff --git a/packages/google-cloud-functions/.gitignore b/packages/google-cloud-functions/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-functions/.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-functions/.jsdoc.js b/packages/google-cloud-functions/.jsdoc.js
new file mode 100644
index 00000000000..9ded0c9e61c
--- /dev/null
+++ b/packages/google-cloud-functions/.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/functions',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-functions/.mocharc.js b/packages/google-cloud-functions/.mocharc.js
new file mode 100644
index 00000000000..0b600509bed
--- /dev/null
+++ b/packages/google-cloud-functions/.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-functions/.nycrc b/packages/google-cloud-functions/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-functions/.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-functions/.prettierignore b/packages/google-cloud-functions/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-functions/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-functions/.prettierrc.js b/packages/google-cloud-functions/.prettierrc.js
new file mode 100644
index 00000000000..d1b95106f4c
--- /dev/null
+++ b/packages/google-cloud-functions/.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-functions/.repo-metadata.json b/packages/google-cloud-functions/.repo-metadata.json
new file mode 100644
index 00000000000..489554162fa
--- /dev/null
+++ b/packages/google-cloud-functions/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "issue_tracker": "",
+ "distribution_name": "@google-cloud/functions",
+ "product_documentation": "https://cloud.google.com/functions",
+ "api_id": "cloudfunctions.googleapis.com",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/functions/latest",
+ "repo": "googleapis/nodejs-functions",
+ "release_level": "stable",
+ "requires_billing": false,
+ "name_pretty": "Google Cloud Functions",
+ "name": "nodejs-functions",
+ "codeowner_team": "@googleapis/aap-dpes",
+ "default_version": "v1",
+ "language": "nodejs",
+ "api_shortname": "cloudfunctions",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-functions/CHANGELOG.md b/packages/google-cloud-functions/CHANGELOG.md
new file mode 100644
index 00000000000..4e3c3278e64
--- /dev/null
+++ b/packages/google-cloud-functions/CHANGELOG.md
@@ -0,0 +1,176 @@
+# Changelog
+
+## [2.2.3](https://github.com/googleapis/nodejs-functions/compare/v2.2.2...v2.2.3) (2022-11-11)
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#201](https://github.com/googleapis/nodejs-functions/issues/201)) ([727c86a](https://github.com/googleapis/nodejs-functions/commit/727c86a475f3405a86259e9ff1f2946e09ae81d3))
+* Regenerated protos JS and TS definitions ([#205](https://github.com/googleapis/nodejs-functions/issues/205)) ([c2a42c6](https://github.com/googleapis/nodejs-functions/commit/c2a42c6eb29eea880d6c15ee85dc7a8b84f65eb9))
+
+## [2.2.2](https://github.com/googleapis/nodejs-functions/compare/v2.2.1...v2.2.2) (2022-09-21)
+
+
+### Bug Fixes
+
+* Preserve default values in x-goog-request-params header ([#187](https://github.com/googleapis/nodejs-functions/issues/187)) ([57b025c](https://github.com/googleapis/nodejs-functions/commit/57b025c07d850812a246db7e61521a968f0cd20a))
+
+## [2.2.1](https://github.com/googleapis/nodejs-functions/compare/v2.2.0...v2.2.1) (2022-09-01)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#186](https://github.com/googleapis/nodejs-functions/issues/186)) ([2ab984e](https://github.com/googleapis/nodejs-functions/commit/2ab984e032f5062862f0ce0fbe65d18bbbc421f1))
+* Better support for fallback mode ([#181](https://github.com/googleapis/nodejs-functions/issues/181)) ([aeaefd4](https://github.com/googleapis/nodejs-functions/commit/aeaefd4debab32e91a0078a342acc15c501281f8))
+* Change import long to require ([#182](https://github.com/googleapis/nodejs-functions/issues/182)) ([1c02a68](https://github.com/googleapis/nodejs-functions/commit/1c02a6842e99c5a0db5eff94b46ca3551f0b13a0))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-functions/issues/1553)) ([#185](https://github.com/googleapis/nodejs-functions/issues/185)) ([b5748ed](https://github.com/googleapis/nodejs-functions/commit/b5748ed5154722907fd407c8bc6fd300a8fdaf21))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-functions/issues/1546)) ([#184](https://github.com/googleapis/nodejs-functions/issues/184)) ([a8ffbb1](https://github.com/googleapis/nodejs-functions/commit/a8ffbb17e77a95ea23a1f4043c50a17faaa66b7e))
+
+## [2.2.0](https://github.com/googleapis/nodejs-functions/compare/v2.1.0...v2.2.0) (2022-07-14)
+
+
+### Features
+
+* generating GAPIC libraries for Google Cloud Functions v2beta ([#175](https://github.com/googleapis/nodejs-functions/issues/175)) ([63a2cfd](https://github.com/googleapis/nodejs-functions/commit/63a2cfd6552495746f7af84cc5d4cdeec887f5e8))
+* support regapic LRO ([#172](https://github.com/googleapis/nodejs-functions/issues/172)) ([eb5486d](https://github.com/googleapis/nodejs-functions/commit/eb5486d20abaf81ce84730868ad4ed4f549d0f31))
+
+## [2.1.0](https://github.com/googleapis/nodejs-functions/compare/v2.0.0...v2.1.0) (2022-06-20)
+
+
+### Features
+
+* added support for CMEK ([#166](https://github.com/googleapis/nodejs-functions/issues/166)) ([5f5e7e0](https://github.com/googleapis/nodejs-functions/commit/5f5e7e00282783095af067268972b72e68a17ebe))
+* generating GAPIC libraries for Google Cloud Functions v2alpha ([25c6047](https://github.com/googleapis/nodejs-functions/commit/25c60474a412fc26d1f91a12e47d259fcf3b7445))
+* generating GAPIC libraries for Google Cloud Functions v2beta ([#171](https://github.com/googleapis/nodejs-functions/issues/171)) ([25c6047](https://github.com/googleapis/nodejs-functions/commit/25c60474a412fc26d1f91a12e47d259fcf3b7445))
+
+## [2.0.0](https://github.com/googleapis/nodejs-functions/compare/v1.3.0...v2.0.0) (2022-05-17)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#164)
+
+### Build System
+
+* update library to use Node 12 ([#164](https://github.com/googleapis/nodejs-functions/issues/164)) ([dd4d94a](https://github.com/googleapis/nodejs-functions/commit/dd4d94a43269225225aaf5da37fc1176eb6c6999))
+
+## [1.3.0](https://github.com/googleapis/nodejs-functions/compare/v1.2.0...v1.3.0) (2022-04-21)
+
+
+### Features
+
+* AuditConfig for IAM v1 ([#148](https://github.com/googleapis/nodejs-functions/issues/148)) ([3c9131b](https://github.com/googleapis/nodejs-functions/commit/3c9131b24985f5e69501c51f068a68a7fea5e588))
+
+## [1.2.0](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.9...v1.2.0) (2021-09-16)
+
+
+### Features
+
+* add SecurityLevel option on HttpsTrigger ([#110](https://www.github.com/googleapis/nodejs-functions/issues/110)) ([13d865e](https://www.github.com/googleapis/nodejs-functions/commit/13d865e773a66213c1915ebe2dfc18688e2db300))
+* turns on self-signed JWT feature flag ([#106](https://www.github.com/googleapis/nodejs-functions/issues/106)) ([9fb2982](https://www.github.com/googleapis/nodejs-functions/commit/9fb29822945fed6f99a7aefa70bdaf88b7782489))
+
+### [1.1.9](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.8...v1.1.9) (2021-08-17)
+
+
+### Bug Fixes
+
+* **build:** migrate to using main branch ([#103](https://www.github.com/googleapis/nodejs-functions/issues/103)) ([e1955e9](https://www.github.com/googleapis/nodejs-functions/commit/e1955e905b7b4128816bb778450cf60a11ae4b78))
+* **deps:** google-gax v2.24.1 ([#104](https://www.github.com/googleapis/nodejs-functions/issues/104)) ([a419fa4](https://www.github.com/googleapis/nodejs-functions/commit/a419fa46a2056de455989ee8af577fed01ed8fc3))
+* updating behavior of source_upload_url during Get/List function calls ([#100](https://www.github.com/googleapis/nodejs-functions/issues/100)) ([2cb3abe](https://www.github.com/googleapis/nodejs-functions/commit/2cb3abe1b686472610a799235a73f38415ea096f))
+
+### [1.1.8](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.7...v1.1.8) (2021-07-21)
+
+
+### Bug Fixes
+
+* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#93](https://www.github.com/googleapis/nodejs-functions/issues/93)) ([6125f4f](https://www.github.com/googleapis/nodejs-functions/commit/6125f4fe7846f67e4ad436b63d4914a2175f9672))
+
+### [1.1.7](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.6...v1.1.7) (2021-07-12)
+
+
+### Bug Fixes
+
+* **deps:** google-gax v2.17.0 with mTLS ([#89](https://www.github.com/googleapis/nodejs-functions/issues/89)) ([2beef03](https://www.github.com/googleapis/nodejs-functions/commit/2beef033c8c134d812e05f12186c7d1285f7e70b))
+* **deps:** google-gax v2.17.1 ([#92](https://www.github.com/googleapis/nodejs-functions/issues/92)) ([4024ee5](https://www.github.com/googleapis/nodejs-functions/commit/4024ee5bebfdd8d2fb1c7a3431906773e2510d5b))
+
+### [1.1.6](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.5...v1.1.6) (2021-06-24)
+
+
+### Bug Fixes
+
+* make request optional in all cases ([#85](https://www.github.com/googleapis/nodejs-functions/issues/85)) ([16b60eb](https://www.github.com/googleapis/nodejs-functions/commit/16b60eb08129f4da404970ba9b487770c1e8c9e8))
+
+### [1.1.5](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.4...v1.1.5) (2021-06-07)
+
+
+### Bug Fixes
+
+* GoogleAdsError missing using generator version after 1.3.0 ([#78](https://www.github.com/googleapis/nodejs-functions/issues/78)) ([4c413d8](https://www.github.com/googleapis/nodejs-functions/commit/4c413d8e199cfe5e4e6d1f9144b44fea1a98d59d))
+
+### [1.1.4](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.3...v1.1.4) (2021-05-12)
+
+
+### Bug Fixes
+
+* **deps:** require google-gax v2.12.0 ([#70](https://www.github.com/googleapis/nodejs-functions/issues/70)) ([0369f0c](https://www.github.com/googleapis/nodejs-functions/commit/0369f0cdf8424a531861b3ad65b10215d293b74d))
+* use require() to load JSON protos ([#73](https://www.github.com/googleapis/nodejs-functions/issues/73)) ([b3da62e](https://www.github.com/googleapis/nodejs-functions/commit/b3da62e5a46628f91615854fc8fa61f315ab1ff9))
+
+### [1.1.3](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.2...v1.1.3) (2021-03-15)
+
+
+### Bug Fixes
+
+* fix service namespace in grpc_service_config. ([#56](https://www.github.com/googleapis/nodejs-functions/issues/56)) ([8f5af4a](https://www.github.com/googleapis/nodejs-functions/commit/8f5af4a519473ed3fe8fd0761f21b886d3d1c0c9))
+
+### [1.1.2](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.1...v1.1.2) (2020-11-25)
+
+
+### Bug Fixes
+
+* **browser:** check for fetch on window ([0aa94fa](https://www.github.com/googleapis/nodejs-functions/commit/0aa94fa222e4ef0bb5a09d4aa3fa957bd8cc80cf))
+
+### [1.1.1](https://www.github.com/googleapis/nodejs-functions/compare/v1.1.0...v1.1.1) (2020-11-06)
+
+
+### Bug Fixes
+
+* do not modify options object, use defaultScopes ([#38](https://www.github.com/googleapis/nodejs-functions/issues/38)) ([24738f1](https://www.github.com/googleapis/nodejs-functions/commit/24738f112727b56fc180b2ad3280456ccabd1af8))
+
+## [1.1.0](https://www.github.com/googleapis/nodejs-functions/compare/v1.0.1...v1.1.0) (2020-09-01)
+
+
+### Features
+
+* promote library to GA ([#22](https://www.github.com/googleapis/nodejs-functions/issues/22)) ([ad3b6d0](https://www.github.com/googleapis/nodejs-functions/commit/ad3b6d0e72cda6414466fb6a8127afa155e955a7))
+
+### [1.0.1](https://www.github.com/googleapis/nodejs-functions/compare/v1.0.0...v1.0.1) (2020-08-03)
+
+
+### Bug Fixes
+
+* run synthtool hack to compile code ([#6](https://www.github.com/googleapis/nodejs-functions/issues/6)) ([2b080c5](https://www.github.com/googleapis/nodejs-functions/commit/2b080c5bfd3f134a5e0a365fc0d6663e1dd4755c))
+
+## 1.0.0 (2020-07-24)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial generation of full library
+
+### Features
+
+* first library generation ([1eb6d4e](https://www.github.com/googleapis/nodejs-functions/commit/1eb6d4effedd8077b1ad45c2bf3d006b50cc4e31))
+* initial generation of full library ([56dd811](https://www.github.com/googleapis/nodejs-functions/commit/56dd8110379f1f89dab77fb24e857b671b09569b))
+* run synthtool ([d990bc4](https://www.github.com/googleapis/nodejs-functions/commit/d990bc4fe9272fd7389b59a5fc0f248d3e0eb196))
+* run synthtool ([5798802](https://www.github.com/googleapis/nodejs-functions/commit/5798802a7686e4569bfe28142e304efcffd15c4c))
+* stub out samples directory ([32d1b49](https://www.github.com/googleapis/nodejs-functions/commit/32d1b4911e8de58885f77a8da0d124895a3d7a7d))
+
+
+### Bug Fixes
+
+* add prelint script ([d110ca0](https://www.github.com/googleapis/nodejs-functions/commit/d110ca0815f6276e24ef0babe40ab9abd7d51b4e))
+* linting ([a6bac6b](https://www.github.com/googleapis/nodejs-functions/commit/a6bac6bbed0ab4c44f6425df4ac2638a9c0c81e0))
+* linting error ([454bf37](https://www.github.com/googleapis/nodejs-functions/commit/454bf373253ce1d0ba081fbba3ee2fd9d76d88a0))
+* linting errors ([8e62b5d](https://www.github.com/googleapis/nodejs-functions/commit/8e62b5d0ce6e8ef91f1b496750a1604b7bb1c4e2))
+* missing require ([6956aa0](https://www.github.com/googleapis/nodejs-functions/commit/6956aa08cc7e00a4db4957f4f78fe485e74a492f))
+* space ([18af745](https://www.github.com/googleapis/nodejs-functions/commit/18af745e130d3cfaf91c28ac64124ffa3afbdb09))
diff --git a/packages/google-cloud-functions/CODE_OF_CONDUCT.md b/packages/google-cloud-functions/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-functions/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-functions/CONTRIBUTING.md b/packages/google-cloud-functions/CONTRIBUTING.md
new file mode 100644
index 00000000000..f7c51fb1b40
--- /dev/null
+++ b/packages/google-cloud-functions/CONTRIBUTING.md
@@ -0,0 +1,75 @@
+# 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 the Google Cloud Functions 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=cloudfunctions.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-functions/LICENSE b/packages/google-cloud-functions/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-functions/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-functions/README.md b/packages/google-cloud-functions/README.md
new file mode 100644
index 00000000000..1c9227b291e
--- /dev/null
+++ b/packages/google-cloud-functions/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`."
+
+
+# [Google Cloud Functions: Node.js Client](https://github.com/googleapis/nodejs-functions)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/functions)
+
+
+
+
+Functions client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/nodejs-functions/blob/main/CHANGELOG.md).
+
+* [Google Cloud Functions Node.js Client API Reference][client-docs]
+* [Google Cloud Functions Documentation][product-docs]
+* [github.com/googleapis/nodejs-functions](https://github.com/googleapis/nodejs-functions)
+
+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 the Google Cloud Functions 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/functions
+```
+
+
+### Using the client library
+
+```javascript
+// Imports the Google Cloud client library
+
+// remove this line after package is released
+// eslint-disable-next-line node/no-missing-require
+const {CloudFunctionsServiceClient} = require('@google-cloud/functions');
+
+// TODO(developer): replace with your prefered project ID.
+// const projectId = 'my-project'
+
+// Creates a client
+const client = new CloudFunctionsServiceClient();
+
+// project = 'my-project/*/locations/*' // Get the functions for a project.
+async function listFunctions() {
+ const [functions] = await client.listFunctions({
+ parent: `projects/${projectId}/locations/-`,
+ });
+ console.info(functions);
+}
+listFunctions();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/nodejs-functions/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-functions/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-functions&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
+
+
+
+The [Google Cloud Functions 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/functions@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-functions/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-functions/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/functions/latest
+[product-docs]: https://cloud.google.com/functions
+[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=cloudfunctions.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-functions/__pycache__/synth.cpython-37.pyc b/packages/google-cloud-functions/__pycache__/synth.cpython-37.pyc
new file mode 100644
index 00000000000..1c06c444214
Binary files /dev/null and b/packages/google-cloud-functions/__pycache__/synth.cpython-37.pyc differ
diff --git a/packages/google-cloud-functions/linkinator.config.json b/packages/google-cloud-functions/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-functions/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-functions/owlbot.py b/packages/google-cloud-functions/owlbot.py
new file mode 100644
index 00000000000..f75b4adadd5
--- /dev/null
+++ b/packages/google-cloud-functions/owlbot.py
@@ -0,0 +1,19 @@
+# Copyright 2019 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.
+"""This script is used to synthesize generated parts of this library."""
+import synthtool as s
+import synthtool.languages.node as node
+from pathlib import Path
+
+node.owlbot_main(staging_excludes=['README.md', 'package.json'])
diff --git a/packages/google-cloud-functions/package.json b/packages/google-cloud-functions/package.json
new file mode 100644
index 00000000000..9eed76b58c1
--- /dev/null
+++ b/packages/google-cloud-functions/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@google-cloud/functions",
+ "version": "2.2.3",
+ "description": "Functions client for Node.js",
+ "repository": "googleapis/nodejs-functions",
+ "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 functions",
+ "functions",
+ "cloud functions 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",
+ "prelint": "cd samples; npm link ../; npm i",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
+ "system-test": "c8 mocha build/system-test",
+ "test": "c8 mocha build/test"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.2.1",
+ "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.0",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.0.0",
+ "typescript": "^4.6.4",
+ "webpack": "^5.0.0",
+ "webpack-cli": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+}
diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v1/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v1/functions.proto
new file mode 100644
index 00000000000..7592f3bed90
--- /dev/null
+++ b/packages/google-cloud-functions/protos/google/cloud/functions/v1/functions.proto
@@ -0,0 +1,855 @@
+// 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.functions.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/iam/v1/iam_policy.proto";
+import "google/iam/v1/policy.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v1;functions";
+option java_multiple_files = true;
+option java_outer_classname = "FunctionsProto";
+option java_package = "com.google.cloud.functions.v1";
+option objc_class_prefix = "GCF";
+option (google.api.resource_definition) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ pattern: "projects/{project}/locations/{location}/repositories/{repository}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
+};
+
+// A service that application uses to manipulate triggers and functions.
+service CloudFunctionsService {
+ option (google.api.default_host) = "cloudfunctions.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Returns a list of functions that belong to the requested project.
+ rpc ListFunctions(ListFunctionsRequest) returns (ListFunctionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/functions"
+ };
+ }
+
+ // Returns a function with the given name from the requested project.
+ rpc GetFunction(GetFunctionRequest) returns (CloudFunction) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new function. If a function with the given name already exists in
+ // the specified project, the long running operation will return
+ // `ALREADY_EXISTS` error.
+ rpc CreateFunction(CreateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{location=projects/*/locations/*}/functions"
+ body: "function"
+ };
+ option (google.api.method_signature) = "location,function";
+ option (google.longrunning.operation_info) = {
+ response_type: "CloudFunction"
+ metadata_type: "OperationMetadataV1"
+ };
+ }
+
+ // Updates existing function.
+ rpc UpdateFunction(UpdateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{function.name=projects/*/locations/*/functions/*}"
+ body: "function"
+ };
+ option (google.api.method_signature) = "function";
+ option (google.longrunning.operation_info) = {
+ response_type: "CloudFunction"
+ metadata_type: "OperationMetadataV1"
+ };
+ }
+
+ // Deletes a function with the given name from the specified project. If the
+ // given function is used by some trigger, the trigger will be updated to
+ // remove this function.
+ rpc DeleteFunction(DeleteFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadataV1"
+ };
+ }
+
+ // Synchronously invokes a deployed Cloud Function. To be used for testing
+ // purposes as very limited traffic is allowed. For more information on
+ // the actual limits, refer to
+ // [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
+ rpc CallFunction(CallFunctionRequest) returns (CallFunctionResponse) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/functions/*}:call"
+ body: "*"
+ };
+ option (google.api.method_signature) = "name,data";
+ }
+
+ // Returns a signed URL for uploading a function source code.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls.
+ // Once the function source code upload is complete, the used signed
+ // URL should be provided in CreateFunction or UpdateFunction request
+ // as a reference to the function source code.
+ //
+ // When uploading source code to the generated signed URL, please follow
+ // these restrictions:
+ //
+ // * Source file type should be a zip file.
+ // * Source file size should not exceed 100MB limit.
+ // * No credentials should be attached - the signed URLs provide access to the
+ // target bucket using internal service identity; if credentials were
+ // attached, the identity from the credentials would be used, but that
+ // identity does not have permissions to upload files to the URL.
+ //
+ // When making a HTTP PUT request, these two headers need to be specified:
+ //
+ // * `content-type: application/zip`
+ // * `x-goog-content-length-range: 0,104857600`
+ //
+ // And this header SHOULD NOT be specified:
+ //
+ // * `Authorization: Bearer YOUR_TOKEN`
+ rpc GenerateUploadUrl(GenerateUploadUrlRequest) returns (GenerateUploadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/functions:generateUploadUrl"
+ body: "*"
+ };
+ }
+
+ // Returns a signed URL for downloading deployed function source code.
+ // The URL is only valid for a limited period and should be used within
+ // minutes after generation.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls
+ rpc GenerateDownloadUrl(GenerateDownloadUrlRequest) returns (GenerateDownloadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/functions/*}:generateDownloadUrl"
+ body: "*"
+ };
+ }
+
+ // Sets the IAM access control policy on the specified function.
+ // Replaces any existing policy.
+ rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
+ option (google.api.http) = {
+ post: "/v1/{resource=projects/*/locations/*/functions/*}:setIamPolicy"
+ body: "*"
+ };
+ }
+
+ // Gets the IAM access control policy for a function.
+ // Returns an empty policy if the function exists and does not have a policy
+ // set.
+ rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
+ option (google.api.http) = {
+ get: "/v1/{resource=projects/*/locations/*/functions/*}:getIamPolicy"
+ };
+ }
+
+ // Tests the specified permissions against the IAM access control policy
+ // for a function.
+ // If the function does not exist, this will return an empty set of
+ // permissions, not a NOT_FOUND error.
+ rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
+ option (google.api.http) = {
+ post: "/v1/{resource=projects/*/locations/*/functions/*}:testIamPermissions"
+ body: "*"
+ };
+ }
+}
+
+// Describes a Cloud Function that contains user computation executed in
+// response to an event. It encapsulate function and triggers configurations.
+message CloudFunction {
+ option (google.api.resource) = {
+ type: "cloudfunctions.googleapis.com/CloudFunction"
+ pattern: "projects/{project}/locations/{location}/functions/{function}"
+ };
+
+ // Available egress settings.
+ //
+ // This controls what traffic is diverted through the VPC Access Connector
+ // resource. By default PRIVATE_RANGES_ONLY will be used.
+ enum VpcConnectorEgressSettings {
+ // Unspecified.
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Use the VPC Access Connector only for private IP space from RFC1918.
+ PRIVATE_RANGES_ONLY = 1;
+
+ // Force the use of VPC Access Connector for all egress traffic from the
+ // function.
+ ALL_TRAFFIC = 2;
+ }
+
+ // Available ingress settings.
+ //
+ // This controls what traffic can reach the function.
+ //
+ // If unspecified, ALLOW_ALL will be used.
+ enum IngressSettings {
+ // Unspecified.
+ INGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Allow HTTP traffic from public and private sources.
+ ALLOW_ALL = 1;
+
+ // Allow HTTP traffic from only private VPC sources.
+ ALLOW_INTERNAL_ONLY = 2;
+
+ // Allow HTTP traffic from private VPC sources and through GCLB.
+ ALLOW_INTERNAL_AND_GCLB = 3;
+ }
+
+ // Docker Registry to use for storing function Docker images.
+ enum DockerRegistry {
+ // Unspecified.
+ DOCKER_REGISTRY_UNSPECIFIED = 0;
+
+ // Docker images will be stored in multi-regional Container Registry
+ // repositories named `gcf`.
+ CONTAINER_REGISTRY = 1;
+
+ // Docker images will be stored in regional Artifact Registry repositories.
+ // By default, GCF will create and use repositories named `gcf-artifacts`
+ // in every region in which a function is deployed. But the repository to
+ // use can also be specified by the user using the `docker_repository`
+ // field.
+ ARTIFACT_REGISTRY = 2;
+ }
+
+ // A user-defined name of the function. Function names must be unique
+ // globally and match pattern `projects/*/locations/*/functions/*`
+ string name = 1;
+
+ // User-provided description of a function.
+ string description = 2;
+
+ // The location of the function source code.
+ oneof source_code {
+ // The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
+ // archive which contains the function.
+ string source_archive_url = 3;
+
+ // **Beta Feature**
+ //
+ // The source repository where a function is hosted.
+ SourceRepository source_repository = 4;
+
+ // The Google Cloud Storage signed URL used for source uploading, generated
+ // by calling [google.cloud.functions.v1.GenerateUploadUrl].
+ //
+ // The signature is validated on write methods (Create, Update)
+ // The signature is stripped from the Function object on read methods (Get,
+ // List)
+ string source_upload_url = 16;
+ }
+
+ // An event that triggers the function.
+ oneof trigger {
+ // An HTTPS endpoint type of source that can be triggered via URL.
+ HttpsTrigger https_trigger = 5;
+
+ // A source that fires events in response to a condition in another service.
+ EventTrigger event_trigger = 6;
+ }
+
+ // Output only. Status of the function deployment.
+ CloudFunctionStatus status = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The name of the function (as defined in source code) that will be
+ // executed. Defaults to the resource name suffix, if not specified. For
+ // backward compatibility, if function with given name is not found, then the
+ // system will try to use function named "function".
+ // For Node.js this is name of a function exported by the module specified
+ // in `source_location`.
+ string entry_point = 8;
+
+ // The runtime in which to run the function. Required when deploying a new
+ // function, optional when updating an existing function. For a complete
+ // list of possible choices, see the
+ // [`gcloud` command
+ // reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
+ string runtime = 19;
+
+ // The function execution timeout. Execution is considered failed and
+ // can be terminated if the function is not completed at the end of the
+ // timeout period. Defaults to 60 seconds.
+ google.protobuf.Duration timeout = 9;
+
+ // The amount of memory in MB available for a function.
+ // Defaults to 256MB.
+ int32 available_memory_mb = 10;
+
+ // The email of the function's service account. If empty, defaults to
+ // `{project_id}@appspot.gserviceaccount.com`.
+ string service_account_email = 11;
+
+ // Output only. The last update timestamp of a Cloud Function.
+ google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The version identifier of the Cloud Function. Each deployment attempt
+ // results in a new version of a function being created.
+ int64 version_id = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Labels associated with this Cloud Function.
+ map labels = 15;
+
+ // Environment variables that shall be available during function execution.
+ map environment_variables = 17;
+
+ // Build environment variables that shall be available during build time.
+ map build_environment_variables = 28;
+
+ // The VPC Network that this cloud function can connect to. It can be
+ // either the fully-qualified URI, or the short name of the network resource.
+ // If the short network name is used, the network must belong to the same
+ // project. Otherwise, it must belong to a project within the same
+ // organization. The format of this field is either
+ // `projects/{project}/global/networks/{network}` or `{network}`, where
+ // `{project}` is a project id where the network is defined, and `{network}`
+ // is the short name of the network.
+ //
+ // This field is mutually exclusive with `vpc_connector` and will be replaced
+ // by it.
+ //
+ // See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
+ // more information on connecting Cloud projects.
+ string network = 18;
+
+ // The limit on the maximum number of function instances that may coexist at a
+ // given time.
+ //
+ // In some cases, such as rapid traffic surges, Cloud Functions may, for a
+ // short period of time, create more instances than the specified max
+ // instances limit. If your function cannot tolerate this temporary behavior,
+ // you may want to factor in a safety margin and set a lower max instances
+ // value than your function can tolerate.
+ //
+ // See the [Max
+ // Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
+ // more details.
+ int32 max_instances = 20;
+
+ // A lower bound for the number function instances that may coexist at a
+ // given time.
+ int32 min_instances = 32;
+
+ // The VPC Network Connector that this cloud function can connect to. It can
+ // be either the fully-qualified URI, or the short name of the network
+ // connector resource. The format of this field is
+ // `projects/*/locations/*/connectors/*`
+ //
+ // This field is mutually exclusive with `network` field and will eventually
+ // replace it.
+ //
+ // See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
+ // more information on connecting Cloud projects.
+ string vpc_connector = 22;
+
+ // The egress settings for the connector, controlling what traffic is diverted
+ // through it.
+ VpcConnectorEgressSettings vpc_connector_egress_settings = 23;
+
+ // The ingress settings for the function, controlling what traffic can reach
+ // it.
+ IngressSettings ingress_settings = 24;
+
+ // Resource name of a KMS crypto key (managed by the user) used to
+ // encrypt/decrypt function resources.
+ //
+ // It must match the pattern
+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+ //
+ // If specified, you must also provide an artifact registry repository using
+ // the `docker_repository` field that was created with the same KMS crypto
+ // key.
+ //
+ // The following service accounts need to be granted the role 'Cloud KMS
+ // CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
+ // on the Key/KeyRing/Project/Organization (least access preferred).
+ //
+ // 1. Google Cloud Functions service account
+ // (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
+ // Required to protect the function's image.
+ // 2. Google Storage service account
+ // (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) -
+ // Required to protect the function's source code.
+ // If this service account does not exist, deploying a function without a
+ // KMS key or retrieving the service agent name provisions it. For more
+ // information, see
+ // https://cloud.google.com/storage/docs/projects#service-agents and
+ // https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+ //
+ // Google Cloud Functions delegates access to service agents to protect
+ // function resources in internal projects that are not accessible by the
+ // end user.
+ string kms_key_name = 25 [(google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }];
+
+ // Name of the Cloud Build Custom Worker Pool that should be used to build the
+ // function. The format of this field is
+ // `projects/{project}/locations/{region}/workerPools/{workerPool}` where
+ // `{project}` and `{region}` are the project id and region respectively where
+ // the worker pool is defined and `{workerPool}` is the short name of the
+ // worker pool.
+ //
+ // If the project id is not the same as the function, then the Cloud
+ // Functions Service Agent
+ // (`service-@gcf-admin-robot.iam.gserviceaccount.com`) must
+ // be granted the role Cloud Build Custom Workers Builder
+ // (`roles/cloudbuild.customworkers.builder`) in the project.
+ string build_worker_pool = 26;
+
+ // Output only. The Cloud Build ID of the latest successful deployment of the
+ // function.
+ string build_id = 27 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The Cloud Build Name of the function deployment.
+ // `projects//locations//builds/`.
+ string build_name = 33 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Secret environment variables configuration.
+ repeated SecretEnvVar secret_environment_variables = 29;
+
+ // Secret volumes configuration.
+ repeated SecretVolume secret_volumes = 30;
+
+ // Input only. An identifier for Firebase function sources. Disclaimer: This field is only
+ // supported for Firebase function deployments.
+ string source_token = 31 [(google.api.field_behavior) = INPUT_ONLY];
+
+ // User managed repository created in Artifact Registry optionally with a
+ // customer managed encryption key. If specified, deployments will use
+ // Artifact Registry. If unspecified and the deployment is eligible to use
+ // Artifact Registry, GCF will create and use a repository named
+ // 'gcf-artifacts' for every deployed region. This is the repository to which
+ // the function docker image will be pushed after it is built by Cloud Build.
+ //
+ // It must match the pattern
+ // `projects/{project}/locations/{location}/repositories/{repository}`.
+ //
+ // Cross-project repositories are not supported.
+ // Cross-location repositories are not supported.
+ // Repository format must be 'DOCKER'.
+ string docker_repository = 34 [(google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ }];
+
+ // Docker Registry to use for this deployment.
+ //
+ // If `docker_repository` field is specified, this field will be automatically
+ // set as `ARTIFACT_REGISTRY`.
+ // If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+ // This field may be overridden by the backend for eligible deployments.
+ DockerRegistry docker_registry = 35;
+}
+
+// Describes SourceRepository, used to represent parameters related to
+// source repository where a function is hosted.
+message SourceRepository {
+ // The URL pointing to the hosted repository where the function is defined.
+ // There are supported Cloud Source Repository URLs in the following
+ // formats:
+ //
+ // To refer to a specific commit:
+ // `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
+ // To refer to a moveable alias (branch):
+ // `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
+ // In particular, to refer to HEAD use `master` moveable alias.
+ // To refer to a specific fixed alias (tag):
+ // `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
+ //
+ // You may omit `paths/*` if you want to use the main directory.
+ string url = 1;
+
+ // Output only. The URL pointing to the hosted repository where the function
+ // were defined at the time of deployment. It always points to a specific
+ // commit in the format described above.
+ string deployed_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Describes HttpsTrigger, could be used to connect web hooks to function.
+message HttpsTrigger {
+ // Available security level settings.
+ //
+ // This controls the methods to enforce security (HTTPS) on a URL.
+ //
+ // If unspecified, SECURE_OPTIONAL will be used.
+ enum SecurityLevel {
+ // Unspecified.
+ SECURITY_LEVEL_UNSPECIFIED = 0;
+
+ // Requests for a URL that match this handler that do not use HTTPS are
+ // automatically redirected to the HTTPS URL with the same path. Query
+ // parameters are reserved for the redirect.
+ SECURE_ALWAYS = 1;
+
+ // Both HTTP and HTTPS requests with URLs that match the handler succeed
+ // without redirects. The application can examine the request to determine
+ // which protocol was used and respond accordingly.
+ SECURE_OPTIONAL = 2;
+ }
+
+ // Output only. The deployed url for the function.
+ string url = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The security level for the function.
+ SecurityLevel security_level = 2;
+}
+
+// Describes EventTrigger, used to request events be sent from another
+// service.
+message EventTrigger {
+ // Required. The type of event to observe. For example:
+ // `providers/cloud.storage/eventTypes/object.change` and
+ // `providers/cloud.pubsub/eventTypes/topic.publish`.
+ //
+ // Event types match pattern `providers/*/eventTypes/*.*`.
+ // The pattern contains:
+ //
+ // 1. namespace: For example, `cloud.storage` and
+ // `google.firebase.analytics`.
+ // 2. resource type: The type of resource on which event occurs. For
+ // example, the Google Cloud Storage API includes the type `object`.
+ // 3. action: The action that generates the event. For example, action for
+ // a Google Cloud Storage Object is 'change'.
+ // These parts are lower case.
+ string event_type = 1;
+
+ // Required. The resource(s) from which to observe events, for example,
+ // `projects/_/buckets/myBucket`.
+ //
+ // Not all syntactically correct values are accepted by all services. For
+ // example:
+ //
+ // 1. The authorization model must support it. Google Cloud Functions
+ // only allows EventTriggers to be deployed that observe resources in the
+ // same project as the `CloudFunction`.
+ // 2. The resource type must match the pattern expected for an
+ // `event_type`. For example, an `EventTrigger` that has an
+ // `event_type` of "google.pubsub.topic.publish" should have a resource
+ // that matches Google Cloud Pub/Sub topics.
+ //
+ // Additionally, some services may support short names when creating an
+ // `EventTrigger`. These will always be returned in the normalized "long"
+ // format.
+ //
+ // See each *service's* documentation for supported formats.
+ string resource = 2;
+
+ // The hostname of the service that should be observed.
+ //
+ // If no string is provided, the default service implementing the API will
+ // be used. For example, `storage.googleapis.com` is the default for all
+ // event types in the `google.storage` namespace.
+ string service = 3;
+
+ // Specifies policy for failed executions.
+ FailurePolicy failure_policy = 5;
+}
+
+// Describes the policy in case of function's execution failure.
+// If empty, then defaults to ignoring failures (i.e. not retrying them).
+message FailurePolicy {
+ // Describes the retry policy in case of function's execution failure.
+ // A function execution will be retried on any failure.
+ // A failed execution will be retried up to 7 days with an exponential backoff
+ // (capped at 10 seconds).
+ // Retried execution is charged as any other execution.
+ message Retry {
+
+ }
+
+ // Defines the action taken in case of a function execution failure.
+ oneof action {
+ // If specified, then the function will be retried in case of a failure.
+ Retry retry = 1;
+ }
+}
+
+// Describes the current stage of a deployment.
+enum CloudFunctionStatus {
+ // Not specified. Invalid state.
+ CLOUD_FUNCTION_STATUS_UNSPECIFIED = 0;
+
+ // Function has been successfully deployed and is serving.
+ ACTIVE = 1;
+
+ // Function deployment failed and the function isn’t serving.
+ OFFLINE = 2;
+
+ // Function is being created or updated.
+ DEPLOY_IN_PROGRESS = 3;
+
+ // Function is being deleted.
+ DELETE_IN_PROGRESS = 4;
+
+ // Function deployment failed and the function serving state is undefined.
+ // The function should be updated or deleted to move it out of this state.
+ UNKNOWN = 5;
+}
+
+// Configuration for a secret environment variable. It has the information
+// necessary to fetch the secret value from secret manager and expose it as an
+// environment variable.
+message SecretEnvVar {
+ // Name of the environment variable.
+ string key = 1;
+
+ // Project identifier (preferrably project number but can also be the project
+ // ID) of the project that contains the secret. If not set, it will be
+ // populated with the function's project assuming that the secret exists in
+ // the same project as of the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // Version of the secret (version number or the string 'latest'). It is
+ // recommended to use a numeric version for secret environment variables as
+ // any updates to the secret value is not reflected until new instances start.
+ string version = 4;
+}
+
+// Configuration for a secret volume. It has the information necessary to fetch
+// the secret value from secret manager and make it available as files mounted
+// at the requested paths within the application container. Secret value is not
+// a part of the configuration. Every filesystem read operation performs a
+// lookup in secret manager to retrieve the secret value.
+message SecretVolume {
+ // Configuration for a single version.
+ message SecretVersion {
+ // Version of the secret (version number or the string 'latest'). It is
+ // preferrable to use `latest` version with secret volumes as secret value
+ // changes are reflected immediately.
+ string version = 1;
+
+ // Relative path of the file under the mount path where the secret value for
+ // this version will be fetched and made available. For example, setting the
+ // mount_path as '/etc/secrets' and path as `/secret_foo` would mount the
+ // secret value file at `/etc/secrets/secret_foo`.
+ string path = 2;
+ }
+
+ // The path within the container to mount the secret volume. For example,
+ // setting the mount_path as `/etc/secrets` would mount the secret value files
+ // under the `/etc/secrets` directory. This directory will also be completely
+ // shadowed and unavailable to mount any other secrets.
+ //
+ // Recommended mount paths: /etc/secrets
+ // Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
+ string mount_path = 1;
+
+ // Project identifier (preferrably project number but can also be the project
+ // ID) of the project that contains the secret. If not set, it will be
+ // populated with the function's project assuming that the secret exists in
+ // the same project as of the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // List of secret versions to mount for this secret. If empty, the `latest`
+ // version of the secret will be made available in a file named after the
+ // secret under the mount point.
+ repeated SecretVersion versions = 4;
+}
+
+// Request for the `CreateFunction` method.
+message CreateFunctionRequest {
+ // Required. The project and location in which the function should be created, specified
+ // in the format `projects/*/locations/*`
+ string location = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Function to be created.
+ CloudFunction function = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request for the `UpdateFunction` method.
+message UpdateFunctionRequest {
+ // Required. New version of the function.
+ CloudFunction function = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The list of fields in `CloudFunction` that have to be updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request for the `GetFunction` method.
+message GetFunctionRequest {
+ // Required. The name of the function which details should be obtained.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/CloudFunction"
+ }
+ ];
+}
+
+// Request for the `ListFunctions` method.
+message ListFunctionsRequest {
+ // The project and location from which the function should be listed,
+ // specified in the format `projects/*/locations/*`
+ // If you want to list functions in all locations, use "-" in place of a
+ // location. When listing functions in all locations, if one or more
+ // location(s) are unreachable, the response will contain functions from all
+ // reachable locations along with the names of any unreachable locations.
+ string parent = 1 [(google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }];
+
+ // Maximum number of functions to return per call.
+ int32 page_size = 2;
+
+ // The value returned by the last
+ // `ListFunctionsResponse`; indicates that
+ // this is a continuation of a prior `ListFunctions` call, and that the
+ // system should return the next page of data.
+ string page_token = 3;
+}
+
+// Response for the `ListFunctions` method.
+message ListFunctionsResponse {
+ // The functions that match the request.
+ repeated CloudFunction functions = 1;
+
+ // If not empty, indicates that there may be more functions that match
+ // the request; this value should be passed in a new
+ // [google.cloud.functions.v1.ListFunctionsRequest][google.cloud.functions.v1.ListFunctionsRequest]
+ // to get more functions.
+ string next_page_token = 2;
+
+ // Locations that could not be reached. The response does not include any
+ // functions from these locations.
+ repeated string unreachable = 3;
+}
+
+// Request for the `DeleteFunction` method.
+message DeleteFunctionRequest {
+ // Required. The name of the function which should be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/CloudFunction"
+ }
+ ];
+}
+
+// Request for the `CallFunction` method.
+message CallFunctionRequest {
+ // Required. The name of the function to be called.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/CloudFunction"
+ }
+ ];
+
+ // Required. Input to be passed to the function.
+ string data = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response of `CallFunction` method.
+message CallFunctionResponse {
+ // Execution id of function invocation.
+ string execution_id = 1;
+
+ // Result populated for successful execution of synchronous function. Will
+ // not be populated if function does not return a result through context.
+ string result = 2;
+
+ // Either system or user-function generated error. Set if execution
+ // was not successful.
+ string error = 3;
+}
+
+// Request of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlRequest {
+ // The project and location in which the Google Cloud Storage signed URL
+ // should be generated, specified in the format `projects/*/locations/*`.
+ string parent = 1;
+
+ // Resource name of a KMS crypto key (managed by the user) used to
+ // encrypt/decrypt function source code objects in staging Cloud Storage
+ // buckets. When you generate an upload url and upload your source code, it
+ // gets copied to a staging Cloud Storage bucket in an internal regional
+ // project. The source code is then copied to a versioned directory in the
+ // sources bucket in the consumer project during the function deployment.
+ //
+ // It must match the pattern
+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+ //
+ // The Google Cloud Functions service account
+ // (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+ // granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+ // (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+ // Key/KeyRing/Project/Organization (least access preferred). GCF will
+ // delegate access to the Google Storage service account in the internal
+ // project.
+ string kms_key_name = 2 [(google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }];
+}
+
+// Response of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for a
+ // function source code upload. The uploaded file should be a zip archive
+ // which contains a function.
+ string upload_url = 1;
+}
+
+// Request of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlRequest {
+ // The name of function for which source code Google Cloud Storage signed
+ // URL should be generated.
+ string name = 1;
+
+ // The optional version of function. If not set, default, current version
+ // is used.
+ uint64 version_id = 2;
+}
+
+// Response of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for
+ // function source code download.
+ string download_url = 1;
+}
diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v1/operations.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v1/operations.proto
new file mode 100644
index 00000000000..9d634e782f7
--- /dev/null
+++ b/packages/google-cloud-functions/protos/google/cloud/functions/v1/operations.proto
@@ -0,0 +1,73 @@
+// 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.functions.v1;
+
+import "google/protobuf/any.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v1;functions";
+option java_multiple_files = true;
+option java_outer_classname = "FunctionsOperationsProto";
+option java_package = "com.google.cloud.functions.v1";
+
+// A type of an operation.
+enum OperationType {
+ // Unknown operation type.
+ OPERATION_UNSPECIFIED = 0;
+
+ // Triggered by CreateFunction call
+ CREATE_FUNCTION = 1;
+
+ // Triggered by UpdateFunction call
+ UPDATE_FUNCTION = 2;
+
+ // Triggered by DeleteFunction call.
+ DELETE_FUNCTION = 3;
+}
+
+// Metadata describing an [Operation][google.longrunning.Operation]
+message OperationMetadataV1 {
+ // Target of the operation - for example
+ // `projects/project-1/locations/region-1/functions/function-1`
+ string target = 1;
+
+ // Type of operation.
+ OperationType type = 2;
+
+ // The original request that started the operation.
+ google.protobuf.Any request = 3;
+
+ // Version id of the function created or updated by an API call.
+ // This field is only populated for Create and Update operations.
+ int64 version_id = 4;
+
+ // The last update timestamp of the operation.
+ google.protobuf.Timestamp update_time = 5;
+
+ // The Cloud Build ID of the function created or updated by an API call.
+ // This field is only populated for Create and Update operations.
+ string build_id = 6;
+
+ // An identifier for Firebase function sources. Disclaimer: This field is only
+ // supported for Firebase function deployments.
+ string source_token = 7;
+
+ // The Cloud Build Name of the function deployment.
+ // This field is only populated for Create and Update operations.
+ // `projects//locations//builds/`.
+ string build_name = 8;
+}
diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v2/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v2/functions.proto
new file mode 100644
index 00000000000..6af26ee880d
--- /dev/null
+++ b/packages/google-cloud-functions/protos/google/cloud/functions/v2/functions.proto
@@ -0,0 +1,1037 @@
+// 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.functions.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/any.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v2;functions";
+option java_multiple_files = true;
+option java_outer_classname = "FunctionsProto";
+option java_package = "com.google.cloud.functions.v2";
+option objc_class_prefix = "GCF";
+option (google.api.resource_definition) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ pattern: "projects/{project}/locations/{location}/repositories/{repository}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudbuild.googleapis.com/Build"
+ pattern: "projects/{project}/locations/{location}/builds/{build}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudbuild.googleapis.com/WorkerPool"
+ pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}"
+};
+option (google.api.resource_definition) = {
+ type: "run.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/services/{service}"
+};
+option (google.api.resource_definition) = {
+ type: "vpcaccess.googleapis.com/Connector"
+ pattern: "projects/{project}/locations/{location}/connectors/{connector}"
+};
+option (google.api.resource_definition) = {
+ type: "eventarc.googleapis.com/Trigger"
+ pattern: "projects/{project}/locations/{location}/triggers/{trigger}"
+};
+option (google.api.resource_definition) = {
+ type: "eventarc.googleapis.com/Channel"
+ pattern: "projects/{project}/locations/{location}/channels/{channel}"
+};
+option (google.api.resource_definition) = {
+ type: "pubsub.googleapis.com/Topic"
+ pattern: "projects/{project}/topics/{topic}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
+};
+
+// Google Cloud Functions is used to deploy functions that are executed by
+// Google in response to various events. Data connected with that event is
+// passed to a function as the input data.
+//
+// A **function** is a resource which describes a function that should be
+// executed and how it is triggered.
+service FunctionService {
+ option (google.api.default_host) = "cloudfunctions.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Returns a function with the given name from the requested project.
+ rpc GetFunction(GetFunctionRequest) returns (Function) {
+ option (google.api.http) = {
+ get: "/v2/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns a list of functions that belong to the requested project.
+ rpc ListFunctions(ListFunctionsRequest) returns (ListFunctionsResponse) {
+ option (google.api.http) = {
+ get: "/v2/{parent=projects/*/locations/*}/functions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates a new function. If a function with the given name already exists in
+ // the specified project, the long running operation will return
+ // `ALREADY_EXISTS` error.
+ rpc CreateFunction(CreateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v2/{parent=projects/*/locations/*}/functions"
+ body: "function"
+ };
+ option (google.api.method_signature) = "parent,function,function_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.functions.v2.Function"
+ metadata_type: "google.cloud.functions.v2.OperationMetadata"
+ };
+ }
+
+ // Updates existing function.
+ rpc UpdateFunction(UpdateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v2/{function.name=projects/*/locations/*/functions/*}"
+ body: "function"
+ };
+ option (google.api.method_signature) = "function,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.functions.v2.Function"
+ metadata_type: "google.cloud.functions.v2.OperationMetadata"
+ };
+ }
+
+ // Deletes a function with the given name from the specified project. If the
+ // given function is used by some trigger, the trigger will be updated to
+ // remove this function.
+ rpc DeleteFunction(DeleteFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v2/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.functions.v2.OperationMetadata"
+ };
+ }
+
+ // Returns a signed URL for uploading a function source code.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls.
+ // Once the function source code upload is complete, the used signed
+ // URL should be provided in CreateFunction or UpdateFunction request
+ // as a reference to the function source code.
+ //
+ // When uploading source code to the generated signed URL, please follow
+ // these restrictions:
+ //
+ // * Source file type should be a zip file.
+ // * No credentials should be attached - the signed URLs provide access to the
+ // target bucket using internal service identity; if credentials were
+ // attached, the identity from the credentials would be used, but that
+ // identity does not have permissions to upload files to the URL.
+ //
+ // When making a HTTP PUT request, these two headers need to be specified:
+ //
+ // * `content-type: application/zip`
+ //
+ // And this header SHOULD NOT be specified:
+ //
+ // * `Authorization: Bearer YOUR_TOKEN`
+ rpc GenerateUploadUrl(GenerateUploadUrlRequest) returns (GenerateUploadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl"
+ body: "*"
+ };
+ }
+
+ // Returns a signed URL for downloading deployed function source code.
+ // The URL is only valid for a limited period and should be used within
+ // 30 minutes of generation.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls
+ rpc GenerateDownloadUrl(GenerateDownloadUrlRequest) returns (GenerateDownloadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl"
+ body: "*"
+ };
+ }
+
+ // Returns a list of runtimes that are supported for the requested project.
+ rpc ListRuntimes(ListRuntimesRequest) returns (ListRuntimesResponse) {
+ option (google.api.http) = {
+ get: "/v2/{parent=projects/*/locations/*}/runtimes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// The environment the function is hosted on.
+enum Environment {
+ // Unspecified
+ ENVIRONMENT_UNSPECIFIED = 0;
+
+ // Gen 1
+ GEN_1 = 1;
+
+ // Gen 2
+ GEN_2 = 2;
+}
+
+// Describes a Cloud Function that contains user computation executed in
+// response to an event. It encapsulates function and trigger configurations.
+message Function {
+ option (google.api.resource) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ pattern: "projects/{project}/locations/{location}/functions/{function}"
+ plural: "functions"
+ singular: "function"
+ };
+
+ // Describes the current state of the function.
+ enum State {
+ // Not specified. Invalid state.
+ STATE_UNSPECIFIED = 0;
+
+ // Function has been successfully deployed and is serving.
+ ACTIVE = 1;
+
+ // Function deployment failed and the function is not serving.
+ FAILED = 2;
+
+ // Function is being created or updated.
+ DEPLOYING = 3;
+
+ // Function is being deleted.
+ DELETING = 4;
+
+ // Function deployment failed and the function serving state is undefined.
+ // The function should be updated or deleted to move it out of this state.
+ UNKNOWN = 5;
+ }
+
+ // A user-defined name of the function. Function names must be unique
+ // globally and match pattern `projects/*/locations/*/functions/*`
+ string name = 1;
+
+ // Describe whether the function is gen1 or gen2.
+ Environment environment = 10;
+
+ // User-provided description of a function.
+ string description = 2;
+
+ // Describes the Build step of the function that builds a container from the
+ // given source.
+ BuildConfig build_config = 3;
+
+ // Describes the Service being deployed. Currently deploys services to Cloud
+ // Run (fully managed).
+ ServiceConfig service_config = 4;
+
+ // An Eventarc trigger managed by Google Cloud Functions that fires events in
+ // response to a condition in another service.
+ EventTrigger event_trigger = 5;
+
+ // Output only. State of the function.
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last update timestamp of a Cloud Function.
+ google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Labels associated with this Cloud Function.
+ map labels = 8;
+
+ // Output only. State Messages for this Cloud Function.
+ repeated StateMessage state_messages = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Informational messages about the state of the Cloud Function or Operation.
+message StateMessage {
+ // Severity of the state message.
+ enum Severity {
+ // Not specified. Invalid severity.
+ SEVERITY_UNSPECIFIED = 0;
+
+ // ERROR-level severity.
+ ERROR = 1;
+
+ // WARNING-level severity.
+ WARNING = 2;
+
+ // INFO-level severity.
+ INFO = 3;
+ }
+
+ // Severity of the state message.
+ Severity severity = 1;
+
+ // One-word CamelCase type of the state message.
+ string type = 2;
+
+ // The message.
+ string message = 3;
+}
+
+// Location of the source in an archive file in Google Cloud Storage.
+message StorageSource {
+ // Google Cloud Storage bucket containing the source (see
+ // [Bucket Name
+ // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+ string bucket = 1;
+
+ // Google Cloud Storage object containing the source.
+ //
+ // This object must be a gzipped archive file (`.tar.gz`) containing source to
+ // build.
+ string object = 2;
+
+ // Google Cloud Storage generation for the object. If the generation is
+ // omitted, the latest generation will be used.
+ int64 generation = 3;
+}
+
+// Location of the source in a Google Cloud Source Repository.
+message RepoSource {
+ // A revision within the Cloud Source Repository must be specified in
+ // one of these ways.
+ oneof revision {
+ // Regex matching branches to build.
+ //
+ // The syntax of the regular expressions accepted is the syntax accepted by
+ // RE2 and described at https://github.com/google/re2/wiki/Syntax
+ string branch_name = 3;
+
+ // Regex matching tags to build.
+ //
+ // The syntax of the regular expressions accepted is the syntax accepted by
+ // RE2 and described at https://github.com/google/re2/wiki/Syntax
+ string tag_name = 4;
+
+ // Explicit commit SHA to build.
+ string commit_sha = 5;
+ }
+
+ // ID of the project that owns the Cloud Source Repository. If omitted, the
+ // project ID requesting the build is assumed.
+ string project_id = 1;
+
+ // Name of the Cloud Source Repository.
+ string repo_name = 2;
+
+ // Directory, relative to the source root, in which to run the build.
+ //
+ // This must be a relative path. If a step's `dir` is specified and is an
+ // absolute path, this value is ignored for that step's execution.
+ // eg. helloworld (no leading slash allowed)
+ string dir = 6;
+
+ // Only trigger a build if the revision regex does NOT match the revision
+ // regex.
+ bool invert_regex = 7;
+}
+
+// The location of the function source code.
+message Source {
+ // Location of the source.
+ // At least one source needs to be provided for the deployment to succeed.
+ oneof source {
+ // If provided, get the source from this location in Google Cloud Storage.
+ StorageSource storage_source = 1;
+
+ // If provided, get the source from this location in a Cloud Source
+ // Repository.
+ RepoSource repo_source = 2;
+ }
+}
+
+// Provenance of the source. Ways to find the original source, or verify that
+// some source was used for this build.
+message SourceProvenance {
+ // A copy of the build's `source.storage_source`, if exists, with any
+ // generations resolved.
+ StorageSource resolved_storage_source = 1;
+
+ // A copy of the build's `source.repo_source`, if exists, with any
+ // revisions resolved.
+ RepoSource resolved_repo_source = 2;
+}
+
+// Describes the Build step of the function that builds a container from the
+// given source.
+message BuildConfig {
+ // Output only. The Cloud Build name of the latest successful deployment of the
+ // function.
+ string build = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/Build"
+ }
+ ];
+
+ // The runtime in which to run the function. Required when deploying a new
+ // function, optional when updating an existing function. For a complete
+ // list of possible choices, see the
+ // [`gcloud` command
+ // reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
+ string runtime = 2;
+
+ // The name of the function (as defined in source code) that will be
+ // executed. Defaults to the resource name suffix, if not specified. For
+ // backward compatibility, if function with given name is not found, then the
+ // system will try to use function named "function".
+ // For Node.js this is name of a function exported by the module specified
+ // in `source_location`.
+ string entry_point = 3;
+
+ // The location of the function source code.
+ Source source = 4;
+
+ // Output only. A permanent fixed identifier for source.
+ SourceProvenance source_provenance = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Name of the Cloud Build Custom Worker Pool that should be used to build the
+ // function. The format of this field is
+ // `projects/{project}/locations/{region}/workerPools/{workerPool}` where
+ // {project} and {region} are the project id and region respectively where the
+ // worker pool is defined and {workerPool} is the short name of the worker
+ // pool.
+ //
+ // If the project id is not the same as the function, then the Cloud
+ // Functions Service Agent
+ // (service-@gcf-admin-robot.iam.gserviceaccount.com) must be
+ // granted the role Cloud Build Custom Workers Builder
+ // (roles/cloudbuild.customworkers.builder) in the project.
+ string worker_pool = 5 [(google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/WorkerPool"
+ }];
+
+ // User-provided build-time environment variables for the function
+ map environment_variables = 6;
+
+ // Optional. User managed repository created in Artifact Registry optionally with a
+ // customer managed encryption key. This is the repository to which the
+ // function docker image will be pushed after it is built by Cloud Build.
+ // If unspecified, GCF will create and use a repository named 'gcf-artifacts'
+ // for every deployed region.
+ //
+ // It must match the pattern
+ // `projects/{project}/locations/{location}/repositories/{repository}`.
+ //
+ // Cross-project repositories are not supported.
+ // Cross-location repositories are not supported.
+ // Repository format must be 'DOCKER'.
+ string docker_repository = 7 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ }
+ ];
+}
+
+// Describes the Service being deployed.
+// Currently Supported : Cloud Run (fully managed).
+message ServiceConfig {
+ // Available egress settings.
+ //
+ // This controls what traffic is diverted through the VPC Access Connector
+ // resource. By default PRIVATE_RANGES_ONLY will be used.
+ enum VpcConnectorEgressSettings {
+ // Unspecified.
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Use the VPC Access Connector only for private IP space from RFC1918.
+ PRIVATE_RANGES_ONLY = 1;
+
+ // Force the use of VPC Access Connector for all egress traffic from the
+ // function.
+ ALL_TRAFFIC = 2;
+ }
+
+ // Available ingress settings.
+ //
+ // This controls what traffic can reach the function.
+ //
+ // If unspecified, ALLOW_ALL will be used.
+ enum IngressSettings {
+ // Unspecified.
+ INGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Allow HTTP traffic from public and private sources.
+ ALLOW_ALL = 1;
+
+ // Allow HTTP traffic from only private VPC sources.
+ ALLOW_INTERNAL_ONLY = 2;
+
+ // Allow HTTP traffic from private VPC sources and through GCLB.
+ ALLOW_INTERNAL_AND_GCLB = 3;
+ }
+
+ // Output only. Name of the service associated with a Function.
+ // The format of this field is
+ // `projects/{project}/locations/{region}/services/{service}`
+ string service = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "run.googleapis.com/Service"
+ }
+ ];
+
+ // The function execution timeout. Execution is considered failed and
+ // can be terminated if the function is not completed at the end of the
+ // timeout period. Defaults to 60 seconds.
+ int32 timeout_seconds = 2;
+
+ // The amount of memory available for a function.
+ // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
+ // supplied the value is interpreted as bytes.
+ // See
+ // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+ // a full description.
+ string available_memory = 13;
+
+ // Environment variables that shall be available during function execution.
+ map environment_variables = 4;
+
+ // The limit on the maximum number of function instances that may coexist at a
+ // given time.
+ //
+ // In some cases, such as rapid traffic surges, Cloud Functions may, for a
+ // short period of time, create more instances than the specified max
+ // instances limit. If your function cannot tolerate this temporary behavior,
+ // you may want to factor in a safety margin and set a lower max instances
+ // value than your function can tolerate.
+ //
+ // See the [Max
+ // Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
+ // more details.
+ int32 max_instance_count = 5;
+
+ // The limit on the minimum number of function instances that may coexist at a
+ // given time.
+ //
+ // Function instances are kept in idle state for a short period after they
+ // finished executing the request to reduce cold start time for subsequent
+ // requests. Setting a minimum instance count will ensure that the given
+ // number of instances are kept running in idle state always. This can help
+ // with cold start times when jump in incoming request count occurs after the
+ // idle instance would have been stopped in the default case.
+ int32 min_instance_count = 12;
+
+ // The Serverless VPC Access connector that this cloud function can connect
+ // to. The format of this field is `projects/*/locations/*/connectors/*`.
+ string vpc_connector = 6 [(google.api.resource_reference) = {
+ type: "vpcaccess.googleapis.com/Connector"
+ }];
+
+ // The egress settings for the connector, controlling what traffic is diverted
+ // through it.
+ VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
+
+ // The ingress settings for the function, controlling what traffic can reach
+ // it.
+ IngressSettings ingress_settings = 8;
+
+ // Output only. URI of the Service deployed.
+ string uri = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The email of the service's service account. If empty, defaults to
+ // `{project_number}-compute@developer.gserviceaccount.com`.
+ string service_account_email = 10;
+
+ // Whether 100% of traffic is routed to the latest revision.
+ // On CreateFunction and UpdateFunction, when set to true, the revision being
+ // deployed will serve 100% of traffic, ignoring any traffic split settings,
+ // if any. On GetFunction, true will be returned if the latest revision is
+ // serving 100% of traffic.
+ bool all_traffic_on_latest_revision = 16;
+
+ // Secret environment variables configuration.
+ repeated SecretEnvVar secret_environment_variables = 17;
+
+ // Secret volumes configuration.
+ repeated SecretVolume secret_volumes = 19;
+
+ // Output only. The name of service revision.
+ string revision = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Configuration for a secret environment variable. It has the information
+// necessary to fetch the secret value from secret manager and expose it as an
+// environment variable.
+message SecretEnvVar {
+ // Name of the environment variable.
+ string key = 1;
+
+ // Project identifier (preferably project number but can also be the
+ // project ID) of the project that contains the secret. If not set, it is
+ // assumed that the secret is in the same project as the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // Version of the secret (version number or the string 'latest'). It is
+ // recommended to use a numeric version for secret environment variables as
+ // any updates to the secret value is not reflected until new instances
+ // start.
+ string version = 4;
+}
+
+// Configuration for a secret volume. It has the information necessary to fetch
+// the secret value from secret manager and make it available as files mounted
+// at the requested paths within the application container.
+message SecretVolume {
+ // Configuration for a single version.
+ message SecretVersion {
+ // Version of the secret (version number or the string 'latest'). It is
+ // preferable to use `latest` version with secret volumes as secret value
+ // changes are reflected immediately.
+ string version = 1;
+
+ // Relative path of the file under the mount path where the secret value for
+ // this version will be fetched and made available. For example, setting the
+ // mount_path as '/etc/secrets' and path as `secret_foo` would mount the
+ // secret value file at `/etc/secrets/secret_foo`.
+ string path = 2;
+ }
+
+ // The path within the container to mount the secret volume. For example,
+ // setting the mount_path as `/etc/secrets` would mount the secret value files
+ // under the `/etc/secrets` directory. This directory will also be completely
+ // shadowed and unavailable to mount any other secrets.
+ // Recommended mount path: /etc/secrets
+ string mount_path = 1;
+
+ // Project identifier (preferably project number but can also be the project
+ // ID) of the project that contains the secret. If not set, it is
+ // assumed that the secret is in the same project as the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // List of secret versions to mount for this secret. If empty, the `latest`
+ // version of the secret will be made available in a file named after the
+ // secret under the mount point.
+ repeated SecretVersion versions = 4;
+}
+
+// Describes EventTrigger, used to request events to be sent from another
+// service.
+message EventTrigger {
+ // Describes the retry policy in case of function's execution failure.
+ // Retried execution is charged as any other execution.
+ enum RetryPolicy {
+ // Not specified.
+ RETRY_POLICY_UNSPECIFIED = 0;
+
+ // Do not retry.
+ RETRY_POLICY_DO_NOT_RETRY = 1;
+
+ // Retry on any failure, retry up to 7 days with an exponential backoff
+ // (capped at 10 seconds).
+ RETRY_POLICY_RETRY = 2;
+ }
+
+ // Output only. The resource name of the Eventarc trigger. The format of this field is
+ // `projects/{project}/locations/{region}/triggers/{trigger}`.
+ string trigger = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Trigger"
+ }
+ ];
+
+ // The region that the trigger will be in. The trigger will only receive
+ // events originating in this region. It can be the same
+ // region as the function, a different region or multi-region, or the global
+ // region. If not provided, defaults to the same region as the function.
+ string trigger_region = 2;
+
+ // Required. The type of event to observe. For example:
+ // `google.cloud.audit.log.v1.written` or
+ // `google.cloud.pubsub.topic.v1.messagePublished`.
+ string event_type = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Criteria used to filter events.
+ repeated EventFilter event_filters = 4;
+
+ // Optional. The name of a Pub/Sub topic in the same project that will be used
+ // as the transport topic for the event delivery. Format:
+ // `projects/{project}/topics/{topic}`.
+ //
+ // This is only valid for events of type
+ // `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
+ // will not be deleted at function deletion.
+ string pubsub_topic = 5 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "pubsub.googleapis.com/Topic"
+ }
+ ];
+
+ // Optional. The email of the trigger's service account. The service account must have
+ // permission to invoke Cloud Run services, the permission is
+ // `run.routes.invoke`.
+ // If empty, defaults to the Compute Engine default service account:
+ // `{project_number}-compute@developer.gserviceaccount.com`.
+ string service_account_email = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+ RetryPolicy retry_policy = 7 [(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 = 8 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+}
+
+// Filters events based on exact matches on the CloudEvents attributes.
+message EventFilter {
+ // Required. The name of a CloudEvents 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];
+}
+
+// Request for the `GetFunction` method.
+message GetFunctionRequest {
+ // Required. The name of the function which details should be obtained.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Request for the `ListFunctions` method.
+message ListFunctionsRequest {
+ // Required. The project and location from which the function should be listed,
+ // specified in the format `projects/*/locations/*`
+ // If you want to list functions in all locations, use "-" in place of a
+ // location. When listing functions in all locations, if one or more
+ // location(s) are unreachable, the response will contain functions from all
+ // reachable locations along with the names of any unreachable locations.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+
+ // Maximum number of functions to return per call.
+ int32 page_size = 2;
+
+ // The value returned by the last
+ // `ListFunctionsResponse`; indicates that
+ // this is a continuation of a prior `ListFunctions` call, and that the
+ // system should return the next page of data.
+ string page_token = 3;
+
+ // The filter for Functions that match the filter expression,
+ // following the syntax outlined in https://google.aip.dev/160.
+ string filter = 4;
+
+ // The sorting order of the resources returned. Value should be a comma
+ // separated list of fields. The default sorting oder is ascending.
+ // See https://google.aip.dev/132#ordering.
+ string order_by = 5;
+}
+
+// Response for the `ListFunctions` method.
+message ListFunctionsResponse {
+ // The functions that match the request.
+ repeated Function functions = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached. The response does not include any
+ // functions from these locations.
+ repeated string unreachable = 3;
+}
+
+// Request for the `CreateFunction` method.
+message CreateFunctionRequest {
+ // Required. The project and location in which the function should be created, specified
+ // in the format `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Function to be created.
+ Function function = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The ID to use for the function, which will become the final component of
+ // the function's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ string function_id = 3;
+}
+
+// Request for the `UpdateFunction` method.
+message UpdateFunctionRequest {
+ // Required. New version of the function.
+ Function function = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated.
+ // If no field mask is provided, all provided fields in the request will be
+ // updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request for the `DeleteFunction` method.
+message DeleteFunctionRequest {
+ // Required. The name of the function which should be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Request of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlRequest {
+ // Required. The project and location in which the Google Cloud Storage signed URL
+ // should be generated, specified in the format `projects/*/locations/*`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+}
+
+// Response of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for a
+ // function source code upload. The uploaded file should be a zip archive
+ // which contains a function.
+ string upload_url = 1;
+
+ // The location of the source code in the upload bucket.
+ //
+ // Once the archive is uploaded using the `upload_url` use this field to
+ // set the `function.build_config.source.storage_source`
+ // during CreateFunction and UpdateFunction.
+ //
+ // Generation defaults to 0, as Cloud Storage provides a new generation only
+ // upon uploading a new object or version of an object.
+ StorageSource storage_source = 2;
+}
+
+// Request of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlRequest {
+ // Required. The name of function for which source code Google Cloud Storage signed
+ // URL should be generated.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Response of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for
+ // function source code download.
+ string download_url = 1;
+}
+
+// Request for the `ListRuntimes` method.
+message ListRuntimesRequest {
+ // Required. The project and location from which the runtimes should be listed,
+ // specified in the format `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The filter for Runtimes that match the filter expression,
+ // following the syntax outlined in https://google.aip.dev/160.
+ string filter = 2;
+}
+
+// Response for the `ListRuntimes` method.
+message ListRuntimesResponse {
+ // Describes a runtime and any special information (e.g., deprecation status)
+ // related to it.
+ message Runtime {
+ // The name of the runtime, e.g., 'go113', 'nodejs12', etc.
+ string name = 1;
+
+ // The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
+ string display_name = 5;
+
+ // The stage of life this runtime is in, e.g., BETA, GA, etc.
+ RuntimeStage stage = 2;
+
+ // Warning messages, e.g., a deprecation warning.
+ repeated string warnings = 3;
+
+ // The environment for the runtime.
+ Environment environment = 4;
+ }
+
+ // The various stages that a runtime can be in.
+ enum RuntimeStage {
+ // Not specified.
+ RUNTIME_STAGE_UNSPECIFIED = 0;
+
+ // The runtime is in development.
+ DEVELOPMENT = 1;
+
+ // The runtime is in the Alpha stage.
+ ALPHA = 2;
+
+ // The runtime is in the Beta stage.
+ BETA = 3;
+
+ // The runtime is generally available.
+ GA = 4;
+
+ // The runtime is deprecated.
+ DEPRECATED = 5;
+
+ // The runtime is no longer supported.
+ DECOMMISSIONED = 6;
+ }
+
+ // The runtimes that match the request.
+ repeated Runtime runtimes = 1;
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // The time the operation was created.
+ google.protobuf.Timestamp create_time = 1;
+
+ // The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2;
+
+ // Server-defined resource path for the target of the operation.
+ string target = 3;
+
+ // Name of the verb executed by the operation.
+ string verb = 4;
+
+ // Human-readable status of the operation, if any.
+ string status_detail = 5;
+
+ // 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 cancel_requested = 6;
+
+ // API version used to start the operation.
+ string api_version = 7;
+
+ // The original request that started the operation.
+ google.protobuf.Any request_resource = 8;
+
+ // Mechanism for reporting in-progress stages
+ repeated Stage stages = 9;
+}
+
+// Each Stage of the deployment process
+message Stage {
+ // Possible names for a Stage
+ enum Name {
+ // Not specified. Invalid name.
+ NAME_UNSPECIFIED = 0;
+
+ // Artifact Regsitry Stage
+ ARTIFACT_REGISTRY = 1;
+
+ // Build Stage
+ BUILD = 2;
+
+ // Service Stage
+ SERVICE = 3;
+
+ // Trigger Stage
+ TRIGGER = 4;
+
+ // Service Rollback Stage
+ SERVICE_ROLLBACK = 5;
+
+ // Trigger Rollback Stage
+ TRIGGER_ROLLBACK = 6;
+ }
+
+ // Possible states for a Stage
+ enum State {
+ // Not specified. Invalid state.
+ STATE_UNSPECIFIED = 0;
+
+ // Stage has not started.
+ NOT_STARTED = 1;
+
+ // Stage is in progress.
+ IN_PROGRESS = 2;
+
+ // Stage has completed.
+ COMPLETE = 3;
+ }
+
+ // Name of the Stage. This will be unique for each Stage.
+ Name name = 1;
+
+ // Message describing the Stage
+ string message = 2;
+
+ // Current state of the Stage
+ State state = 3;
+
+ // Resource of the Stage
+ string resource = 4;
+
+ // Link to the current Stage resource
+ string resource_uri = 5;
+
+ // State messages from the current Stage.
+ repeated StateMessage state_messages = 6;
+}
diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v2alpha/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v2alpha/functions.proto
new file mode 100644
index 00000000000..6bc9de6832c
--- /dev/null
+++ b/packages/google-cloud-functions/protos/google/cloud/functions/v2alpha/functions.proto
@@ -0,0 +1,1033 @@
+// 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.functions.v2alpha;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/any.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v2alpha;functions";
+option java_multiple_files = true;
+option java_outer_classname = "FunctionsProto";
+option java_package = "com.google.cloud.functions.v2alpha";
+option objc_class_prefix = "GCF";
+option (google.api.resource_definition) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ pattern: "projects/{project}/locations/{location}/repositories/{repository}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudbuild.googleapis.com/Build"
+ pattern: "projects/{project}/locations/{location}/builds/{build}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudbuild.googleapis.com/WorkerPool"
+ pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}"
+};
+option (google.api.resource_definition) = {
+ type: "run.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/services/{service}"
+};
+option (google.api.resource_definition) = {
+ type: "vpcaccess.googleapis.com/Connector"
+ pattern: "projects/{project}/locations/{location}/connectors/{connector}"
+};
+option (google.api.resource_definition) = {
+ type: "eventarc.googleapis.com/Trigger"
+ pattern: "projects/{project}/locations/{location}/triggers/{trigger}"
+};
+option (google.api.resource_definition) = {
+ type: "eventarc.googleapis.com/Channel"
+ pattern: "projects/{project}/locations/{location}/channels/{channel}"
+};
+option (google.api.resource_definition) = {
+ type: "pubsub.googleapis.com/Topic"
+ pattern: "projects/{project}/topics/{topic}"
+};
+
+// Google Cloud Functions is used to deploy functions that are executed by
+// Google in response to various events. Data connected with that event is
+// passed to a function as the input data.
+//
+// A **function** is a resource which describes a function that should be
+// executed and how it is triggered.
+service FunctionService {
+ option (google.api.default_host) = "cloudfunctions.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Returns a function with the given name from the requested project.
+ rpc GetFunction(GetFunctionRequest) returns (Function) {
+ option (google.api.http) = {
+ get: "/v2alpha/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns a list of functions that belong to the requested project.
+ rpc ListFunctions(ListFunctionsRequest) returns (ListFunctionsResponse) {
+ option (google.api.http) = {
+ get: "/v2alpha/{parent=projects/*/locations/*}/functions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates a new function. If a function with the given name already exists in
+ // the specified project, the long running operation will return
+ // `ALREADY_EXISTS` error.
+ rpc CreateFunction(CreateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v2alpha/{parent=projects/*/locations/*}/functions"
+ body: "function"
+ };
+ option (google.api.method_signature) = "parent,function,function_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.functions.v2alpha.Function"
+ metadata_type: "google.cloud.functions.v2alpha.OperationMetadata"
+ };
+ }
+
+ // Updates existing function.
+ rpc UpdateFunction(UpdateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v2alpha/{function.name=projects/*/locations/*/functions/*}"
+ body: "function"
+ };
+ option (google.api.method_signature) = "function,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.functions.v2alpha.Function"
+ metadata_type: "google.cloud.functions.v2alpha.OperationMetadata"
+ };
+ }
+
+ // Deletes a function with the given name from the specified project. If the
+ // given function is used by some trigger, the trigger will be updated to
+ // remove this function.
+ rpc DeleteFunction(DeleteFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v2alpha/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.functions.v2alpha.OperationMetadata"
+ };
+ }
+
+ // Returns a signed URL for uploading a function source code.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls.
+ // Once the function source code upload is complete, the used signed
+ // URL should be provided in CreateFunction or UpdateFunction request
+ // as a reference to the function source code.
+ //
+ // When uploading source code to the generated signed URL, please follow
+ // these restrictions:
+ //
+ // * Source file type should be a zip file.
+ // * No credentials should be attached - the signed URLs provide access to the
+ // target bucket using internal service identity; if credentials were
+ // attached, the identity from the credentials would be used, but that
+ // identity does not have permissions to upload files to the URL.
+ //
+ // When making a HTTP PUT request, these two headers need to be specified:
+ //
+ // * `content-type: application/zip`
+ //
+ // And this header SHOULD NOT be specified:
+ //
+ // * `Authorization: Bearer YOUR_TOKEN`
+ rpc GenerateUploadUrl(GenerateUploadUrlRequest) returns (GenerateUploadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v2alpha/{parent=projects/*/locations/*}/functions:generateUploadUrl"
+ body: "*"
+ };
+ }
+
+ // Returns a signed URL for downloading deployed function source code.
+ // The URL is only valid for a limited period and should be used within
+ // 30 minutes of generation.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls
+ rpc GenerateDownloadUrl(GenerateDownloadUrlRequest) returns (GenerateDownloadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v2alpha/{name=projects/*/locations/*/functions/*}:generateDownloadUrl"
+ body: "*"
+ };
+ }
+
+ // Returns a list of runtimes that are supported for the requested project.
+ rpc ListRuntimes(ListRuntimesRequest) returns (ListRuntimesResponse) {
+ option (google.api.http) = {
+ get: "/v2alpha/{parent=projects/*/locations/*}/runtimes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// The environment the function is hosted on.
+enum Environment {
+ // Unspecified
+ ENVIRONMENT_UNSPECIFIED = 0;
+
+ // Gen 1
+ GEN_1 = 1;
+
+ // Gen 2
+ GEN_2 = 2;
+}
+
+// Describes a Cloud Function that contains user computation executed in
+// response to an event. It encapsulates function and trigger configurations.
+message Function {
+ option (google.api.resource) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ pattern: "projects/{project}/locations/{location}/functions/{function}"
+ plural: "functions"
+ singular: "function"
+ };
+
+ // Describes the current state of the function.
+ enum State {
+ // Not specified. Invalid state.
+ STATE_UNSPECIFIED = 0;
+
+ // Function has been successfully deployed and is serving.
+ ACTIVE = 1;
+
+ // Function deployment failed and the function is not serving.
+ FAILED = 2;
+
+ // Function is being created or updated.
+ DEPLOYING = 3;
+
+ // Function is being deleted.
+ DELETING = 4;
+
+ // Function deployment failed and the function serving state is undefined.
+ // The function should be updated or deleted to move it out of this state.
+ UNKNOWN = 5;
+ }
+
+ // A user-defined name of the function. Function names must be unique
+ // globally and match pattern `projects/*/locations/*/functions/*`
+ string name = 1;
+
+ // Describe whether the function is gen1 or gen2.
+ Environment environment = 10;
+
+ // User-provided description of a function.
+ string description = 2;
+
+ // Describes the Build step of the function that builds a container from the
+ // given source.
+ BuildConfig build_config = 3;
+
+ // Describes the Service being deployed. Currently deploys services to Cloud
+ // Run (fully managed).
+ ServiceConfig service_config = 4;
+
+ // An Eventarc trigger managed by Google Cloud Functions that fires events in
+ // response to a condition in another service.
+ EventTrigger event_trigger = 5;
+
+ // Output only. State of the function.
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last update timestamp of a Cloud Function.
+ google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Labels associated with this Cloud Function.
+ map labels = 8;
+
+ // Output only. State Messages for this Cloud Function.
+ repeated StateMessage state_messages = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Informational messages about the state of the Cloud Function or Operation.
+message StateMessage {
+ // Severity of the state message.
+ enum Severity {
+ // Not specified. Invalid severity.
+ SEVERITY_UNSPECIFIED = 0;
+
+ // ERROR-level severity.
+ ERROR = 1;
+
+ // WARNING-level severity.
+ WARNING = 2;
+
+ // INFO-level severity.
+ INFO = 3;
+ }
+
+ // Severity of the state message.
+ Severity severity = 1;
+
+ // One-word CamelCase type of the state message.
+ string type = 2;
+
+ // The message.
+ string message = 3;
+}
+
+// Location of the source in an archive file in Google Cloud Storage.
+message StorageSource {
+ // Google Cloud Storage bucket containing the source (see
+ // [Bucket Name
+ // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+ string bucket = 1;
+
+ // Google Cloud Storage object containing the source.
+ //
+ // This object must be a gzipped archive file (`.tar.gz`) containing source to
+ // build.
+ string object = 2;
+
+ // Google Cloud Storage generation for the object. If the generation is
+ // omitted, the latest generation will be used.
+ int64 generation = 3;
+}
+
+// Location of the source in a Google Cloud Source Repository.
+message RepoSource {
+ // A revision within the Cloud Source Repository must be specified in
+ // one of these ways.
+ oneof revision {
+ // Regex matching branches to build.
+ //
+ // The syntax of the regular expressions accepted is the syntax accepted by
+ // RE2 and described at https://github.com/google/re2/wiki/Syntax
+ string branch_name = 3;
+
+ // Regex matching tags to build.
+ //
+ // The syntax of the regular expressions accepted is the syntax accepted by
+ // RE2 and described at https://github.com/google/re2/wiki/Syntax
+ string tag_name = 4;
+
+ // Explicit commit SHA to build.
+ string commit_sha = 5;
+ }
+
+ // ID of the project that owns the Cloud Source Repository. If omitted, the
+ // project ID requesting the build is assumed.
+ string project_id = 1;
+
+ // Name of the Cloud Source Repository.
+ string repo_name = 2;
+
+ // Directory, relative to the source root, in which to run the build.
+ //
+ // This must be a relative path. If a step's `dir` is specified and is an
+ // absolute path, this value is ignored for that step's execution.
+ // eg. helloworld (no leading slash allowed)
+ string dir = 6;
+
+ // Only trigger a build if the revision regex does NOT match the revision
+ // regex.
+ bool invert_regex = 7;
+}
+
+// The location of the function source code.
+message Source {
+ // Location of the source.
+ // At least one source needs to be provided for the deployment to succeed.
+ oneof source {
+ // If provided, get the source from this location in Google Cloud Storage.
+ StorageSource storage_source = 1;
+
+ // If provided, get the source from this location in a Cloud Source
+ // Repository.
+ RepoSource repo_source = 2;
+ }
+}
+
+// Provenance of the source. Ways to find the original source, or verify that
+// some source was used for this build.
+message SourceProvenance {
+ // A copy of the build's `source.storage_source`, if exists, with any
+ // generations resolved.
+ StorageSource resolved_storage_source = 1;
+
+ // A copy of the build's `source.repo_source`, if exists, with any
+ // revisions resolved.
+ RepoSource resolved_repo_source = 2;
+}
+
+// Describes the Build step of the function that builds a container from the
+// given source.
+message BuildConfig {
+ // Output only. The Cloud Build name of the latest successful deployment of the
+ // function.
+ string build = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/Build"
+ }
+ ];
+
+ // The runtime in which to run the function. Required when deploying a new
+ // function, optional when updating an existing function. For a complete
+ // list of possible choices, see the
+ // [`gcloud` command
+ // reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
+ string runtime = 2;
+
+ // The name of the function (as defined in source code) that will be
+ // executed. Defaults to the resource name suffix, if not specified. For
+ // backward compatibility, if function with given name is not found, then the
+ // system will try to use function named "function".
+ // For Node.js this is name of a function exported by the module specified
+ // in `source_location`.
+ string entry_point = 3;
+
+ // The location of the function source code.
+ Source source = 4;
+
+ // Output only. A permanent fixed identifier for source.
+ SourceProvenance source_provenance = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Name of the Cloud Build Custom Worker Pool that should be used to build the
+ // function. The format of this field is
+ // `projects/{project}/locations/{region}/workerPools/{workerPool}` where
+ // {project} and {region} are the project id and region respectively where the
+ // worker pool is defined and {workerPool} is the short name of the worker
+ // pool.
+ //
+ // If the project id is not the same as the function, then the Cloud
+ // Functions Service Agent
+ // (service-@gcf-admin-robot.iam.gserviceaccount.com) must be
+ // granted the role Cloud Build Custom Workers Builder
+ // (roles/cloudbuild.customworkers.builder) in the project.
+ string worker_pool = 5 [(google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/WorkerPool"
+ }];
+
+ // User-provided build-time environment variables for the function
+ map environment_variables = 6;
+
+ // Optional. User managed repository created in Artifact Registry optionally with a
+ // customer managed encryption key. This is the repository to which the
+ // function docker image will be pushed after it is built by Cloud Build.
+ // If unspecified, GCF will create and use a repository named 'gcf-artifacts'
+ // for every deployed region.
+ //
+ // It must match the pattern
+ // `projects/{project}/locations/{location}/repositories/{repository}`.
+ //
+ // Cross-project repositories are not supported.
+ // Cross-location repositories are not supported.
+ // Repository format must be 'DOCKER'.
+ string docker_repository = 7 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ }
+ ];
+}
+
+// Describes the Service being deployed.
+// Currently Supported : Cloud Run (fully managed).
+message ServiceConfig {
+ // Available egress settings.
+ //
+ // This controls what traffic is diverted through the VPC Access Connector
+ // resource. By default PRIVATE_RANGES_ONLY will be used.
+ enum VpcConnectorEgressSettings {
+ // Unspecified.
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Use the VPC Access Connector only for private IP space from RFC1918.
+ PRIVATE_RANGES_ONLY = 1;
+
+ // Force the use of VPC Access Connector for all egress traffic from the
+ // function.
+ ALL_TRAFFIC = 2;
+ }
+
+ // Available ingress settings.
+ //
+ // This controls what traffic can reach the function.
+ //
+ // If unspecified, ALLOW_ALL will be used.
+ enum IngressSettings {
+ // Unspecified.
+ INGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Allow HTTP traffic from public and private sources.
+ ALLOW_ALL = 1;
+
+ // Allow HTTP traffic from only private VPC sources.
+ ALLOW_INTERNAL_ONLY = 2;
+
+ // Allow HTTP traffic from private VPC sources and through GCLB.
+ ALLOW_INTERNAL_AND_GCLB = 3;
+ }
+
+ // Output only. Name of the service associated with a Function.
+ // The format of this field is
+ // `projects/{project}/locations/{region}/services/{service}`
+ string service = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "run.googleapis.com/Service"
+ }
+ ];
+
+ // The function execution timeout. Execution is considered failed and
+ // can be terminated if the function is not completed at the end of the
+ // timeout period. Defaults to 60 seconds.
+ int32 timeout_seconds = 2;
+
+ // The amount of memory available for a function.
+ // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
+ // supplied the value is interpreted as bytes.
+ // See
+ // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+ // a full description.
+ string available_memory = 13;
+
+ // Environment variables that shall be available during function execution.
+ map environment_variables = 4;
+
+ // The limit on the maximum number of function instances that may coexist at a
+ // given time.
+ //
+ // In some cases, such as rapid traffic surges, Cloud Functions may, for a
+ // short period of time, create more instances than the specified max
+ // instances limit. If your function cannot tolerate this temporary behavior,
+ // you may want to factor in a safety margin and set a lower max instances
+ // value than your function can tolerate.
+ //
+ // See the [Max
+ // Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
+ // more details.
+ int32 max_instance_count = 5;
+
+ // The limit on the minimum number of function instances that may coexist at a
+ // given time.
+ //
+ // Function instances are kept in idle state for a short period after they
+ // finished executing the request to reduce cold start time for subsequent
+ // requests. Setting a minimum instance count will ensure that the given
+ // number of instances are kept running in idle state always. This can help
+ // with cold start times when jump in incoming request count occurs after the
+ // idle instance would have been stopped in the default case.
+ int32 min_instance_count = 12;
+
+ // The Serverless VPC Access connector that this cloud function can connect
+ // to. The format of this field is `projects/*/locations/*/connectors/*`.
+ string vpc_connector = 6 [(google.api.resource_reference) = {
+ type: "vpcaccess.googleapis.com/Connector"
+ }];
+
+ // The egress settings for the connector, controlling what traffic is diverted
+ // through it.
+ VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
+
+ // The ingress settings for the function, controlling what traffic can reach
+ // it.
+ IngressSettings ingress_settings = 8;
+
+ // Output only. URI of the Service deployed.
+ string uri = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The email of the service's service account. If empty, defaults to
+ // `{project_number}-compute@developer.gserviceaccount.com`.
+ string service_account_email = 10;
+
+ // Whether 100% of traffic is routed to the latest revision.
+ // On CreateFunction and UpdateFunction, when set to true, the revision being
+ // deployed will serve 100% of traffic, ignoring any traffic split settings,
+ // if any. On GetFunction, true will be returned if the latest revision is
+ // serving 100% of traffic.
+ bool all_traffic_on_latest_revision = 16;
+
+ // Secret environment variables configuration.
+ repeated SecretEnvVar secret_environment_variables = 17;
+
+ // Secret volumes configuration.
+ repeated SecretVolume secret_volumes = 19;
+
+ // Output only. The name of service revision.
+ string revision = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Configuration for a secret environment variable. It has the information
+// necessary to fetch the secret value from secret manager and expose it as an
+// environment variable.
+message SecretEnvVar {
+ // Name of the environment variable.
+ string key = 1;
+
+ // Project identifier (preferably project number but can also be the
+ // project ID) of the project that contains the secret. If not set, it is
+ // assumed that the secret is in the same project as the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // Version of the secret (version number or the string 'latest'). It is
+ // recommended to use a numeric version for secret environment variables as
+ // any updates to the secret value is not reflected until new instances
+ // start.
+ string version = 4;
+}
+
+// Configuration for a secret volume. It has the information necessary to fetch
+// the secret value from secret manager and make it available as files mounted
+// at the requested paths within the application container.
+message SecretVolume {
+ // Configuration for a single version.
+ message SecretVersion {
+ // Version of the secret (version number or the string 'latest'). It is
+ // preferable to use `latest` version with secret volumes as secret value
+ // changes are reflected immediately.
+ string version = 1;
+
+ // Relative path of the file under the mount path where the secret value for
+ // this version will be fetched and made available. For example, setting the
+ // mount_path as '/etc/secrets' and path as `secret_foo` would mount the
+ // secret value file at `/etc/secrets/secret_foo`.
+ string path = 2;
+ }
+
+ // The path within the container to mount the secret volume. For example,
+ // setting the mount_path as `/etc/secrets` would mount the secret value files
+ // under the `/etc/secrets` directory. This directory will also be completely
+ // shadowed and unavailable to mount any other secrets.
+ // Recommended mount path: /etc/secrets
+ string mount_path = 1;
+
+ // Project identifier (preferably project number but can also be the project
+ // ID) of the project that contains the secret. If not set, it is
+ // assumed that the secret is in the same project as the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // List of secret versions to mount for this secret. If empty, the `latest`
+ // version of the secret will be made available in a file named after the
+ // secret under the mount point.
+ repeated SecretVersion versions = 4;
+}
+
+// Describes EventTrigger, used to request events to be sent from another
+// service.
+message EventTrigger {
+ // Describes the retry policy in case of function's execution failure.
+ // Retried execution is charged as any other execution.
+ enum RetryPolicy {
+ // Not specified.
+ RETRY_POLICY_UNSPECIFIED = 0;
+
+ // Do not retry.
+ RETRY_POLICY_DO_NOT_RETRY = 1;
+
+ // Retry on any failure, retry up to 7 days with an exponential backoff
+ // (capped at 10 seconds).
+ RETRY_POLICY_RETRY = 2;
+ }
+
+ // Output only. The resource name of the Eventarc trigger. The format of this field is
+ // `projects/{project}/locations/{region}/triggers/{trigger}`.
+ string trigger = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Trigger"
+ }
+ ];
+
+ // The region that the trigger will be in. The trigger will only receive
+ // events originating in this region. It can be the same
+ // region as the function, a different region or multi-region, or the global
+ // region. If not provided, defaults to the same region as the function.
+ string trigger_region = 2;
+
+ // Required. The type of event to observe. For example:
+ // `google.cloud.audit.log.v1.written` or
+ // `google.cloud.pubsub.topic.v1.messagePublished`.
+ string event_type = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Criteria used to filter events.
+ repeated EventFilter event_filters = 4;
+
+ // Optional. The name of a Pub/Sub topic in the same project that will be used
+ // as the transport topic for the event delivery. Format:
+ // `projects/{project}/topics/{topic}`.
+ //
+ // This is only valid for events of type
+ // `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
+ // will not be deleted at function deletion.
+ string pubsub_topic = 5 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "pubsub.googleapis.com/Topic"
+ }
+ ];
+
+ // Optional. The email of the trigger's service account. The service account must have
+ // permission to invoke Cloud Run services, the permission is
+ // `run.routes.invoke`.
+ // If empty, defaults to the Compute Engine default service account:
+ // `{project_number}-compute@developer.gserviceaccount.com`.
+ string service_account_email = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+ RetryPolicy retry_policy = 7 [(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 = 8 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+}
+
+// Filters events based on exact matches on the CloudEvents attributes.
+message EventFilter {
+ // Required. The name of a CloudEvents 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];
+}
+
+// Request for the `GetFunction` method.
+message GetFunctionRequest {
+ // Required. The name of the function which details should be obtained.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Request for the `ListFunctions` method.
+message ListFunctionsRequest {
+ // Required. The project and location from which the function should be listed,
+ // specified in the format `projects/*/locations/*`
+ // If you want to list functions in all locations, use "-" in place of a
+ // location. When listing functions in all locations, if one or more
+ // location(s) are unreachable, the response will contain functions from all
+ // reachable locations along with the names of any unreachable locations.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+
+ // Maximum number of functions to return per call.
+ int32 page_size = 2;
+
+ // The value returned by the last
+ // `ListFunctionsResponse`; indicates that
+ // this is a continuation of a prior `ListFunctions` call, and that the
+ // system should return the next page of data.
+ string page_token = 3;
+
+ // The filter for Functions that match the filter expression,
+ // following the syntax outlined in https://google.aip.dev/160.
+ string filter = 4;
+
+ // The sorting order of the resources returned. Value should be a comma
+ // separated list of fields. The default sorting oder is ascending.
+ // See https://google.aip.dev/132#ordering.
+ string order_by = 5;
+}
+
+// Response for the `ListFunctions` method.
+message ListFunctionsResponse {
+ // The functions that match the request.
+ repeated Function functions = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached. The response does not include any
+ // functions from these locations.
+ repeated string unreachable = 3;
+}
+
+// Request for the `CreateFunction` method.
+message CreateFunctionRequest {
+ // Required. The project and location in which the function should be created, specified
+ // in the format `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Function to be created.
+ Function function = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The ID to use for the function, which will become the final component of
+ // the function's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ string function_id = 3;
+}
+
+// Request for the `UpdateFunction` method.
+message UpdateFunctionRequest {
+ // Required. New version of the function.
+ Function function = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated.
+ // If no field mask is provided, all provided fields in the request will be
+ // updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request for the `DeleteFunction` method.
+message DeleteFunctionRequest {
+ // Required. The name of the function which should be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Request of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlRequest {
+ // Required. The project and location in which the Google Cloud Storage signed URL
+ // should be generated, specified in the format `projects/*/locations/*`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+}
+
+// Response of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for a
+ // function source code upload. The uploaded file should be a zip archive
+ // which contains a function.
+ string upload_url = 1;
+
+ // The location of the source code in the upload bucket.
+ //
+ // Once the archive is uploaded using the `upload_url` use this field to
+ // set the `function.build_config.source.storage_source`
+ // during CreateFunction and UpdateFunction.
+ //
+ // Generation defaults to 0, as Cloud Storage provides a new generation only
+ // upon uploading a new object or version of an object.
+ StorageSource storage_source = 2;
+}
+
+// Request of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlRequest {
+ // Required. The name of function for which source code Google Cloud Storage signed
+ // URL should be generated.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Response of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for
+ // function source code download.
+ string download_url = 1;
+}
+
+// Request for the `ListRuntimes` method.
+message ListRuntimesRequest {
+ // Required. The project and location from which the runtimes should be listed,
+ // specified in the format `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The filter for Runtimes that match the filter expression,
+ // following the syntax outlined in https://google.aip.dev/160.
+ string filter = 2;
+}
+
+// Response for the `ListRuntimes` method.
+message ListRuntimesResponse {
+ // Describes a runtime and any special information (e.g., deprecation status)
+ // related to it.
+ message Runtime {
+ // The name of the runtime, e.g., 'go113', 'nodejs12', etc.
+ string name = 1;
+
+ // The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
+ string display_name = 5;
+
+ // The stage of life this runtime is in, e.g., BETA, GA, etc.
+ RuntimeStage stage = 2;
+
+ // Warning messages, e.g., a deprecation warning.
+ repeated string warnings = 3;
+
+ // The environment for the runtime.
+ Environment environment = 4;
+ }
+
+ // The various stages that a runtime can be in.
+ enum RuntimeStage {
+ // Not specified.
+ RUNTIME_STAGE_UNSPECIFIED = 0;
+
+ // The runtime is in development.
+ DEVELOPMENT = 1;
+
+ // The runtime is in the Alpha stage.
+ ALPHA = 2;
+
+ // The runtime is in the Beta stage.
+ BETA = 3;
+
+ // The runtime is generally available.
+ GA = 4;
+
+ // The runtime is deprecated.
+ DEPRECATED = 5;
+
+ // The runtime is no longer supported.
+ DECOMMISSIONED = 6;
+ }
+
+ // The runtimes that match the request.
+ repeated Runtime runtimes = 1;
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // The time the operation was created.
+ google.protobuf.Timestamp create_time = 1;
+
+ // The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2;
+
+ // Server-defined resource path for the target of the operation.
+ string target = 3;
+
+ // Name of the verb executed by the operation.
+ string verb = 4;
+
+ // Human-readable status of the operation, if any.
+ string status_detail = 5;
+
+ // 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 cancel_requested = 6;
+
+ // API version used to start the operation.
+ string api_version = 7;
+
+ // The original request that started the operation.
+ google.protobuf.Any request_resource = 8;
+
+ // Mechanism for reporting in-progress stages
+ repeated Stage stages = 9;
+}
+
+// Each Stage of the deployment process
+message Stage {
+ // Possible names for a Stage
+ enum Name {
+ // Not specified. Invalid name.
+ NAME_UNSPECIFIED = 0;
+
+ // Artifact Regsitry Stage
+ ARTIFACT_REGISTRY = 1;
+
+ // Build Stage
+ BUILD = 2;
+
+ // Service Stage
+ SERVICE = 3;
+
+ // Trigger Stage
+ TRIGGER = 4;
+
+ // Service Rollback Stage
+ SERVICE_ROLLBACK = 5;
+
+ // Trigger Rollback Stage
+ TRIGGER_ROLLBACK = 6;
+ }
+
+ // Possible states for a Stage
+ enum State {
+ // Not specified. Invalid state.
+ STATE_UNSPECIFIED = 0;
+
+ // Stage has not started.
+ NOT_STARTED = 1;
+
+ // Stage is in progress.
+ IN_PROGRESS = 2;
+
+ // Stage has completed.
+ COMPLETE = 3;
+ }
+
+ // Name of the Stage. This will be unique for each Stage.
+ Name name = 1;
+
+ // Message describing the Stage
+ string message = 2;
+
+ // Current state of the Stage
+ State state = 3;
+
+ // Resource of the Stage
+ string resource = 4;
+
+ // Link to the current Stage resource
+ string resource_uri = 5;
+
+ // State messages from the current Stage.
+ repeated StateMessage state_messages = 6;
+}
diff --git a/packages/google-cloud-functions/protos/google/cloud/functions/v2beta/functions.proto b/packages/google-cloud-functions/protos/google/cloud/functions/v2beta/functions.proto
new file mode 100644
index 00000000000..4d8ee95f343
--- /dev/null
+++ b/packages/google-cloud-functions/protos/google/cloud/functions/v2beta/functions.proto
@@ -0,0 +1,1033 @@
+// 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.functions.v2beta;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/any.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v2beta;functions";
+option java_multiple_files = true;
+option java_outer_classname = "FunctionsProto";
+option java_package = "com.google.cloud.functions.v2beta";
+option objc_class_prefix = "GCF";
+option (google.api.resource_definition) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ pattern: "projects/{project}/locations/{location}/repositories/{repository}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudbuild.googleapis.com/Build"
+ pattern: "projects/{project}/locations/{location}/builds/{build}"
+};
+option (google.api.resource_definition) = {
+ type: "cloudbuild.googleapis.com/WorkerPool"
+ pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}"
+};
+option (google.api.resource_definition) = {
+ type: "run.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/services/{service}"
+};
+option (google.api.resource_definition) = {
+ type: "vpcaccess.googleapis.com/Connector"
+ pattern: "projects/{project}/locations/{location}/connectors/{connector}"
+};
+option (google.api.resource_definition) = {
+ type: "eventarc.googleapis.com/Trigger"
+ pattern: "projects/{project}/locations/{location}/triggers/{trigger}"
+};
+option (google.api.resource_definition) = {
+ type: "eventarc.googleapis.com/Channel"
+ pattern: "projects/{project}/locations/{location}/channels/{channel}"
+};
+option (google.api.resource_definition) = {
+ type: "pubsub.googleapis.com/Topic"
+ pattern: "projects/{project}/topics/{topic}"
+};
+
+// Google Cloud Functions is used to deploy functions that are executed by
+// Google in response to various events. Data connected with that event is
+// passed to a function as the input data.
+//
+// A **function** is a resource which describes a function that should be
+// executed and how it is triggered.
+service FunctionService {
+ option (google.api.default_host) = "cloudfunctions.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Returns a function with the given name from the requested project.
+ rpc GetFunction(GetFunctionRequest) returns (Function) {
+ option (google.api.http) = {
+ get: "/v2beta/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns a list of functions that belong to the requested project.
+ rpc ListFunctions(ListFunctionsRequest) returns (ListFunctionsResponse) {
+ option (google.api.http) = {
+ get: "/v2beta/{parent=projects/*/locations/*}/functions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates a new function. If a function with the given name already exists in
+ // the specified project, the long running operation will return
+ // `ALREADY_EXISTS` error.
+ rpc CreateFunction(CreateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v2beta/{parent=projects/*/locations/*}/functions"
+ body: "function"
+ };
+ option (google.api.method_signature) = "parent,function,function_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.functions.v2beta.Function"
+ metadata_type: "google.cloud.functions.v2beta.OperationMetadata"
+ };
+ }
+
+ // Updates existing function.
+ rpc UpdateFunction(UpdateFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v2beta/{function.name=projects/*/locations/*/functions/*}"
+ body: "function"
+ };
+ option (google.api.method_signature) = "function,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.functions.v2beta.Function"
+ metadata_type: "google.cloud.functions.v2beta.OperationMetadata"
+ };
+ }
+
+ // Deletes a function with the given name from the specified project. If the
+ // given function is used by some trigger, the trigger will be updated to
+ // remove this function.
+ rpc DeleteFunction(DeleteFunctionRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v2beta/{name=projects/*/locations/*/functions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.functions.v2beta.OperationMetadata"
+ };
+ }
+
+ // Returns a signed URL for uploading a function source code.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls.
+ // Once the function source code upload is complete, the used signed
+ // URL should be provided in CreateFunction or UpdateFunction request
+ // as a reference to the function source code.
+ //
+ // When uploading source code to the generated signed URL, please follow
+ // these restrictions:
+ //
+ // * Source file type should be a zip file.
+ // * No credentials should be attached - the signed URLs provide access to the
+ // target bucket using internal service identity; if credentials were
+ // attached, the identity from the credentials would be used, but that
+ // identity does not have permissions to upload files to the URL.
+ //
+ // When making a HTTP PUT request, these two headers need to be specified:
+ //
+ // * `content-type: application/zip`
+ //
+ // And this header SHOULD NOT be specified:
+ //
+ // * `Authorization: Bearer YOUR_TOKEN`
+ rpc GenerateUploadUrl(GenerateUploadUrlRequest) returns (GenerateUploadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v2beta/{parent=projects/*/locations/*}/functions:generateUploadUrl"
+ body: "*"
+ };
+ }
+
+ // Returns a signed URL for downloading deployed function source code.
+ // The URL is only valid for a limited period and should be used within
+ // 30 minutes of generation.
+ // For more information about the signed URL usage see:
+ // https://cloud.google.com/storage/docs/access-control/signed-urls
+ rpc GenerateDownloadUrl(GenerateDownloadUrlRequest) returns (GenerateDownloadUrlResponse) {
+ option (google.api.http) = {
+ post: "/v2beta/{name=projects/*/locations/*/functions/*}:generateDownloadUrl"
+ body: "*"
+ };
+ }
+
+ // Returns a list of runtimes that are supported for the requested project.
+ rpc ListRuntimes(ListRuntimesRequest) returns (ListRuntimesResponse) {
+ option (google.api.http) = {
+ get: "/v2beta/{parent=projects/*/locations/*}/runtimes"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// The environment the function is hosted on.
+enum Environment {
+ // Unspecified
+ ENVIRONMENT_UNSPECIFIED = 0;
+
+ // Gen 1
+ GEN_1 = 1;
+
+ // Gen 2
+ GEN_2 = 2;
+}
+
+// Describes a Cloud Function that contains user computation executed in
+// response to an event. It encapsulates function and trigger configurations.
+message Function {
+ option (google.api.resource) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ pattern: "projects/{project}/locations/{location}/functions/{function}"
+ plural: "functions"
+ singular: "function"
+ };
+
+ // Describes the current state of the function.
+ enum State {
+ // Not specified. Invalid state.
+ STATE_UNSPECIFIED = 0;
+
+ // Function has been successfully deployed and is serving.
+ ACTIVE = 1;
+
+ // Function deployment failed and the function is not serving.
+ FAILED = 2;
+
+ // Function is being created or updated.
+ DEPLOYING = 3;
+
+ // Function is being deleted.
+ DELETING = 4;
+
+ // Function deployment failed and the function serving state is undefined.
+ // The function should be updated or deleted to move it out of this state.
+ UNKNOWN = 5;
+ }
+
+ // A user-defined name of the function. Function names must be unique
+ // globally and match pattern `projects/*/locations/*/functions/*`
+ string name = 1;
+
+ // Describe whether the function is gen1 or gen2.
+ Environment environment = 10;
+
+ // User-provided description of a function.
+ string description = 2;
+
+ // Describes the Build step of the function that builds a container from the
+ // given source.
+ BuildConfig build_config = 3;
+
+ // Describes the Service being deployed. Currently deploys services to Cloud
+ // Run (fully managed).
+ ServiceConfig service_config = 4;
+
+ // An Eventarc trigger managed by Google Cloud Functions that fires events in
+ // response to a condition in another service.
+ EventTrigger event_trigger = 5;
+
+ // Output only. State of the function.
+ State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The last update timestamp of a Cloud Function.
+ google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Labels associated with this Cloud Function.
+ map labels = 8;
+
+ // Output only. State Messages for this Cloud Function.
+ repeated StateMessage state_messages = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Informational messages about the state of the Cloud Function or Operation.
+message StateMessage {
+ // Severity of the state message.
+ enum Severity {
+ // Not specified. Invalid severity.
+ SEVERITY_UNSPECIFIED = 0;
+
+ // ERROR-level severity.
+ ERROR = 1;
+
+ // WARNING-level severity.
+ WARNING = 2;
+
+ // INFO-level severity.
+ INFO = 3;
+ }
+
+ // Severity of the state message.
+ Severity severity = 1;
+
+ // One-word CamelCase type of the state message.
+ string type = 2;
+
+ // The message.
+ string message = 3;
+}
+
+// Location of the source in an archive file in Google Cloud Storage.
+message StorageSource {
+ // Google Cloud Storage bucket containing the source (see
+ // [Bucket Name
+ // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+ string bucket = 1;
+
+ // Google Cloud Storage object containing the source.
+ //
+ // This object must be a gzipped archive file (`.tar.gz`) containing source to
+ // build.
+ string object = 2;
+
+ // Google Cloud Storage generation for the object. If the generation is
+ // omitted, the latest generation will be used.
+ int64 generation = 3;
+}
+
+// Location of the source in a Google Cloud Source Repository.
+message RepoSource {
+ // A revision within the Cloud Source Repository must be specified in
+ // one of these ways.
+ oneof revision {
+ // Regex matching branches to build.
+ //
+ // The syntax of the regular expressions accepted is the syntax accepted by
+ // RE2 and described at https://github.com/google/re2/wiki/Syntax
+ string branch_name = 3;
+
+ // Regex matching tags to build.
+ //
+ // The syntax of the regular expressions accepted is the syntax accepted by
+ // RE2 and described at https://github.com/google/re2/wiki/Syntax
+ string tag_name = 4;
+
+ // Explicit commit SHA to build.
+ string commit_sha = 5;
+ }
+
+ // ID of the project that owns the Cloud Source Repository. If omitted, the
+ // project ID requesting the build is assumed.
+ string project_id = 1;
+
+ // Name of the Cloud Source Repository.
+ string repo_name = 2;
+
+ // Directory, relative to the source root, in which to run the build.
+ //
+ // This must be a relative path. If a step's `dir` is specified and is an
+ // absolute path, this value is ignored for that step's execution.
+ // eg. helloworld (no leading slash allowed)
+ string dir = 6;
+
+ // Only trigger a build if the revision regex does NOT match the revision
+ // regex.
+ bool invert_regex = 7;
+}
+
+// The location of the function source code.
+message Source {
+ // Location of the source.
+ // At least one source needs to be provided for the deployment to succeed.
+ oneof source {
+ // If provided, get the source from this location in Google Cloud Storage.
+ StorageSource storage_source = 1;
+
+ // If provided, get the source from this location in a Cloud Source
+ // Repository.
+ RepoSource repo_source = 2;
+ }
+}
+
+// Provenance of the source. Ways to find the original source, or verify that
+// some source was used for this build.
+message SourceProvenance {
+ // A copy of the build's `source.storage_source`, if exists, with any
+ // generations resolved.
+ StorageSource resolved_storage_source = 1;
+
+ // A copy of the build's `source.repo_source`, if exists, with any
+ // revisions resolved.
+ RepoSource resolved_repo_source = 2;
+}
+
+// Describes the Build step of the function that builds a container from the
+// given source.
+message BuildConfig {
+ // Output only. The Cloud Build name of the latest successful deployment of the
+ // function.
+ string build = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/Build"
+ }
+ ];
+
+ // The runtime in which to run the function. Required when deploying a new
+ // function, optional when updating an existing function. For a complete
+ // list of possible choices, see the
+ // [`gcloud` command
+ // reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
+ string runtime = 2;
+
+ // The name of the function (as defined in source code) that will be
+ // executed. Defaults to the resource name suffix, if not specified. For
+ // backward compatibility, if function with given name is not found, then the
+ // system will try to use function named "function".
+ // For Node.js this is name of a function exported by the module specified
+ // in `source_location`.
+ string entry_point = 3;
+
+ // The location of the function source code.
+ Source source = 4;
+
+ // Output only. A permanent fixed identifier for source.
+ SourceProvenance source_provenance = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Name of the Cloud Build Custom Worker Pool that should be used to build the
+ // function. The format of this field is
+ // `projects/{project}/locations/{region}/workerPools/{workerPool}` where
+ // {project} and {region} are the project id and region respectively where the
+ // worker pool is defined and {workerPool} is the short name of the worker
+ // pool.
+ //
+ // If the project id is not the same as the function, then the Cloud
+ // Functions Service Agent
+ // (service-@gcf-admin-robot.iam.gserviceaccount.com) must be
+ // granted the role Cloud Build Custom Workers Builder
+ // (roles/cloudbuild.customworkers.builder) in the project.
+ string worker_pool = 5 [(google.api.resource_reference) = {
+ type: "cloudbuild.googleapis.com/WorkerPool"
+ }];
+
+ // User-provided build-time environment variables for the function
+ map environment_variables = 6;
+
+ // Optional. User managed repository created in Artifact Registry optionally with a
+ // customer managed encryption key. This is the repository to which the
+ // function docker image will be pushed after it is built by Cloud Build.
+ // If unspecified, GCF will create and use a repository named 'gcf-artifacts'
+ // for every deployed region.
+ //
+ // It must match the pattern
+ // `projects/{project}/locations/{location}/repositories/{repository}`.
+ //
+ // Cross-project repositories are not supported.
+ // Cross-location repositories are not supported.
+ // Repository format must be 'DOCKER'.
+ string docker_repository = 7 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "artifactregistry.googleapis.com/Repository"
+ }
+ ];
+}
+
+// Describes the Service being deployed.
+// Currently Supported : Cloud Run (fully managed).
+message ServiceConfig {
+ // Available egress settings.
+ //
+ // This controls what traffic is diverted through the VPC Access Connector
+ // resource. By default PRIVATE_RANGES_ONLY will be used.
+ enum VpcConnectorEgressSettings {
+ // Unspecified.
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Use the VPC Access Connector only for private IP space from RFC1918.
+ PRIVATE_RANGES_ONLY = 1;
+
+ // Force the use of VPC Access Connector for all egress traffic from the
+ // function.
+ ALL_TRAFFIC = 2;
+ }
+
+ // Available ingress settings.
+ //
+ // This controls what traffic can reach the function.
+ //
+ // If unspecified, ALLOW_ALL will be used.
+ enum IngressSettings {
+ // Unspecified.
+ INGRESS_SETTINGS_UNSPECIFIED = 0;
+
+ // Allow HTTP traffic from public and private sources.
+ ALLOW_ALL = 1;
+
+ // Allow HTTP traffic from only private VPC sources.
+ ALLOW_INTERNAL_ONLY = 2;
+
+ // Allow HTTP traffic from private VPC sources and through GCLB.
+ ALLOW_INTERNAL_AND_GCLB = 3;
+ }
+
+ // Output only. Name of the service associated with a Function.
+ // The format of this field is
+ // `projects/{project}/locations/{region}/services/{service}`
+ string service = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "run.googleapis.com/Service"
+ }
+ ];
+
+ // The function execution timeout. Execution is considered failed and
+ // can be terminated if the function is not completed at the end of the
+ // timeout period. Defaults to 60 seconds.
+ int32 timeout_seconds = 2;
+
+ // The amount of memory available for a function.
+ // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
+ // supplied the value is interpreted as bytes.
+ // See
+ // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+ // a full description.
+ string available_memory = 13;
+
+ // Environment variables that shall be available during function execution.
+ map environment_variables = 4;
+
+ // The limit on the maximum number of function instances that may coexist at a
+ // given time.
+ //
+ // In some cases, such as rapid traffic surges, Cloud Functions may, for a
+ // short period of time, create more instances than the specified max
+ // instances limit. If your function cannot tolerate this temporary behavior,
+ // you may want to factor in a safety margin and set a lower max instances
+ // value than your function can tolerate.
+ //
+ // See the [Max
+ // Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
+ // more details.
+ int32 max_instance_count = 5;
+
+ // The limit on the minimum number of function instances that may coexist at a
+ // given time.
+ //
+ // Function instances are kept in idle state for a short period after they
+ // finished executing the request to reduce cold start time for subsequent
+ // requests. Setting a minimum instance count will ensure that the given
+ // number of instances are kept running in idle state always. This can help
+ // with cold start times when jump in incoming request count occurs after the
+ // idle instance would have been stopped in the default case.
+ int32 min_instance_count = 12;
+
+ // The Serverless VPC Access connector that this cloud function can connect
+ // to. The format of this field is `projects/*/locations/*/connectors/*`.
+ string vpc_connector = 6 [(google.api.resource_reference) = {
+ type: "vpcaccess.googleapis.com/Connector"
+ }];
+
+ // The egress settings for the connector, controlling what traffic is diverted
+ // through it.
+ VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
+
+ // The ingress settings for the function, controlling what traffic can reach
+ // it.
+ IngressSettings ingress_settings = 8;
+
+ // Output only. URI of the Service deployed.
+ string uri = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The email of the service's service account. If empty, defaults to
+ // `{project_number}-compute@developer.gserviceaccount.com`.
+ string service_account_email = 10;
+
+ // Whether 100% of traffic is routed to the latest revision.
+ // On CreateFunction and UpdateFunction, when set to true, the revision being
+ // deployed will serve 100% of traffic, ignoring any traffic split settings,
+ // if any. On GetFunction, true will be returned if the latest revision is
+ // serving 100% of traffic.
+ bool all_traffic_on_latest_revision = 16;
+
+ // Secret environment variables configuration.
+ repeated SecretEnvVar secret_environment_variables = 17;
+
+ // Secret volumes configuration.
+ repeated SecretVolume secret_volumes = 19;
+
+ // Output only. The name of service revision.
+ string revision = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Configuration for a secret environment variable. It has the information
+// necessary to fetch the secret value from secret manager and expose it as an
+// environment variable.
+message SecretEnvVar {
+ // Name of the environment variable.
+ string key = 1;
+
+ // Project identifier (preferably project number but can also be the
+ // project ID) of the project that contains the secret. If not set, it is
+ // assumed that the secret is in the same project as the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // Version of the secret (version number or the string 'latest'). It is
+ // recommended to use a numeric version for secret environment variables as
+ // any updates to the secret value is not reflected until new instances
+ // start.
+ string version = 4;
+}
+
+// Configuration for a secret volume. It has the information necessary to fetch
+// the secret value from secret manager and make it available as files mounted
+// at the requested paths within the application container.
+message SecretVolume {
+ // Configuration for a single version.
+ message SecretVersion {
+ // Version of the secret (version number or the string 'latest'). It is
+ // preferable to use `latest` version with secret volumes as secret value
+ // changes are reflected immediately.
+ string version = 1;
+
+ // Relative path of the file under the mount path where the secret value for
+ // this version will be fetched and made available. For example, setting the
+ // mount_path as '/etc/secrets' and path as `secret_foo` would mount the
+ // secret value file at `/etc/secrets/secret_foo`.
+ string path = 2;
+ }
+
+ // The path within the container to mount the secret volume. For example,
+ // setting the mount_path as `/etc/secrets` would mount the secret value files
+ // under the `/etc/secrets` directory. This directory will also be completely
+ // shadowed and unavailable to mount any other secrets.
+ // Recommended mount path: /etc/secrets
+ string mount_path = 1;
+
+ // Project identifier (preferably project number but can also be the project
+ // ID) of the project that contains the secret. If not set, it is
+ // assumed that the secret is in the same project as the function.
+ string project_id = 2;
+
+ // Name of the secret in secret manager (not the full resource name).
+ string secret = 3;
+
+ // List of secret versions to mount for this secret. If empty, the `latest`
+ // version of the secret will be made available in a file named after the
+ // secret under the mount point.
+ repeated SecretVersion versions = 4;
+}
+
+// Describes EventTrigger, used to request events to be sent from another
+// service.
+message EventTrigger {
+ // Describes the retry policy in case of function's execution failure.
+ // Retried execution is charged as any other execution.
+ enum RetryPolicy {
+ // Not specified.
+ RETRY_POLICY_UNSPECIFIED = 0;
+
+ // Do not retry.
+ RETRY_POLICY_DO_NOT_RETRY = 1;
+
+ // Retry on any failure, retry up to 7 days with an exponential backoff
+ // (capped at 10 seconds).
+ RETRY_POLICY_RETRY = 2;
+ }
+
+ // Output only. The resource name of the Eventarc trigger. The format of this field is
+ // `projects/{project}/locations/{region}/triggers/{trigger}`.
+ string trigger = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Trigger"
+ }
+ ];
+
+ // The region that the trigger will be in. The trigger will only receive
+ // events originating in this region. It can be the same
+ // region as the function, a different region or multi-region, or the global
+ // region. If not provided, defaults to the same region as the function.
+ string trigger_region = 2;
+
+ // Required. The type of event to observe. For example:
+ // `google.cloud.audit.log.v1.written` or
+ // `google.cloud.pubsub.topic.v1.messagePublished`.
+ string event_type = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Criteria used to filter events.
+ repeated EventFilter event_filters = 4;
+
+ // Optional. The name of a Pub/Sub topic in the same project that will be used
+ // as the transport topic for the event delivery. Format:
+ // `projects/{project}/topics/{topic}`.
+ //
+ // This is only valid for events of type
+ // `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
+ // will not be deleted at function deletion.
+ string pubsub_topic = 5 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "pubsub.googleapis.com/Topic"
+ }
+ ];
+
+ // Optional. The email of the trigger's service account. The service account must have
+ // permission to invoke Cloud Run services, the permission is
+ // `run.routes.invoke`.
+ // If empty, defaults to the Compute Engine default service account:
+ // `{project_number}-compute@developer.gserviceaccount.com`.
+ string service_account_email = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+ RetryPolicy retry_policy = 7 [(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 = 8 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "eventarc.googleapis.com/Channel"
+ }
+ ];
+}
+
+// Filters events based on exact matches on the CloudEvents attributes.
+message EventFilter {
+ // Required. The name of a CloudEvents 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];
+}
+
+// Request for the `GetFunction` method.
+message GetFunctionRequest {
+ // Required. The name of the function which details should be obtained.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Request for the `ListFunctions` method.
+message ListFunctionsRequest {
+ // Required. The project and location from which the function should be listed,
+ // specified in the format `projects/*/locations/*`
+ // If you want to list functions in all locations, use "-" in place of a
+ // location. When listing functions in all locations, if one or more
+ // location(s) are unreachable, the response will contain functions from all
+ // reachable locations along with the names of any unreachable locations.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+
+ // Maximum number of functions to return per call.
+ int32 page_size = 2;
+
+ // The value returned by the last
+ // `ListFunctionsResponse`; indicates that
+ // this is a continuation of a prior `ListFunctions` call, and that the
+ // system should return the next page of data.
+ string page_token = 3;
+
+ // The filter for Functions that match the filter expression,
+ // following the syntax outlined in https://google.aip.dev/160.
+ string filter = 4;
+
+ // The sorting order of the resources returned. Value should be a comma
+ // separated list of fields. The default sorting oder is ascending.
+ // See https://google.aip.dev/132#ordering.
+ string order_by = 5;
+}
+
+// Response for the `ListFunctions` method.
+message ListFunctionsResponse {
+ // The functions that match the request.
+ repeated Function functions = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+
+ // Locations that could not be reached. The response does not include any
+ // functions from these locations.
+ repeated string unreachable = 3;
+}
+
+// Request for the `CreateFunction` method.
+message CreateFunctionRequest {
+ // Required. The project and location in which the function should be created, specified
+ // in the format `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Function to be created.
+ Function function = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The ID to use for the function, which will become the final component of
+ // the function's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ string function_id = 3;
+}
+
+// Request for the `UpdateFunction` method.
+message UpdateFunctionRequest {
+ // Required. New version of the function.
+ Function function = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated.
+ // If no field mask is provided, all provided fields in the request will be
+ // updated.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+// Request for the `DeleteFunction` method.
+message DeleteFunctionRequest {
+ // Required. The name of the function which should be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Request of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlRequest {
+ // Required. The project and location in which the Google Cloud Storage signed URL
+ // should be generated, specified in the format `projects/*/locations/*`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+}
+
+// Response of `GenerateSourceUploadUrl` method.
+message GenerateUploadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for a
+ // function source code upload. The uploaded file should be a zip archive
+ // which contains a function.
+ string upload_url = 1;
+
+ // The location of the source code in the upload bucket.
+ //
+ // Once the archive is uploaded using the `upload_url` use this field to
+ // set the `function.build_config.source.storage_source`
+ // during CreateFunction and UpdateFunction.
+ //
+ // Generation defaults to 0, as Cloud Storage provides a new generation only
+ // upon uploading a new object or version of an object.
+ StorageSource storage_source = 2;
+}
+
+// Request of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlRequest {
+ // Required. The name of function for which source code Google Cloud Storage signed
+ // URL should be generated.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudfunctions.googleapis.com/Function"
+ }
+ ];
+}
+
+// Response of `GenerateDownloadUrl` method.
+message GenerateDownloadUrlResponse {
+ // The generated Google Cloud Storage signed URL that should be used for
+ // function source code download.
+ string download_url = 1;
+}
+
+// Request for the `ListRuntimes` method.
+message ListRuntimesRequest {
+ // Required. The project and location from which the runtimes should be listed,
+ // specified in the format `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // The filter for Runtimes that match the filter expression,
+ // following the syntax outlined in https://google.aip.dev/160.
+ string filter = 2;
+}
+
+// Response for the `ListRuntimes` method.
+message ListRuntimesResponse {
+ // Describes a runtime and any special information (e.g., deprecation status)
+ // related to it.
+ message Runtime {
+ // The name of the runtime, e.g., 'go113', 'nodejs12', etc.
+ string name = 1;
+
+ // The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
+ string display_name = 5;
+
+ // The stage of life this runtime is in, e.g., BETA, GA, etc.
+ RuntimeStage stage = 2;
+
+ // Warning messages, e.g., a deprecation warning.
+ repeated string warnings = 3;
+
+ // The environment for the runtime.
+ Environment environment = 4;
+ }
+
+ // The various stages that a runtime can be in.
+ enum RuntimeStage {
+ // Not specified.
+ RUNTIME_STAGE_UNSPECIFIED = 0;
+
+ // The runtime is in development.
+ DEVELOPMENT = 1;
+
+ // The runtime is in the Alpha stage.
+ ALPHA = 2;
+
+ // The runtime is in the Beta stage.
+ BETA = 3;
+
+ // The runtime is generally available.
+ GA = 4;
+
+ // The runtime is deprecated.
+ DEPRECATED = 5;
+
+ // The runtime is no longer supported.
+ DECOMMISSIONED = 6;
+ }
+
+ // The runtimes that match the request.
+ repeated Runtime runtimes = 1;
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // The time the operation was created.
+ google.protobuf.Timestamp create_time = 1;
+
+ // The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2;
+
+ // Server-defined resource path for the target of the operation.
+ string target = 3;
+
+ // Name of the verb executed by the operation.
+ string verb = 4;
+
+ // Human-readable status of the operation, if any.
+ string status_detail = 5;
+
+ // 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 cancel_requested = 6;
+
+ // API version used to start the operation.
+ string api_version = 7;
+
+ // The original request that started the operation.
+ google.protobuf.Any request_resource = 8;
+
+ // Mechanism for reporting in-progress stages
+ repeated Stage stages = 9;
+}
+
+// Each Stage of the deployment process
+message Stage {
+ // Possible names for a Stage
+ enum Name {
+ // Not specified. Invalid name.
+ NAME_UNSPECIFIED = 0;
+
+ // Artifact Regsitry Stage
+ ARTIFACT_REGISTRY = 1;
+
+ // Build Stage
+ BUILD = 2;
+
+ // Service Stage
+ SERVICE = 3;
+
+ // Trigger Stage
+ TRIGGER = 4;
+
+ // Service Rollback Stage
+ SERVICE_ROLLBACK = 5;
+
+ // Trigger Rollback Stage
+ TRIGGER_ROLLBACK = 6;
+ }
+
+ // Possible states for a Stage
+ enum State {
+ // Not specified. Invalid state.
+ STATE_UNSPECIFIED = 0;
+
+ // Stage has not started.
+ NOT_STARTED = 1;
+
+ // Stage is in progress.
+ IN_PROGRESS = 2;
+
+ // Stage has completed.
+ COMPLETE = 3;
+ }
+
+ // Name of the Stage. This will be unique for each Stage.
+ Name name = 1;
+
+ // Message describing the Stage
+ string message = 2;
+
+ // Current state of the Stage
+ State state = 3;
+
+ // Resource of the Stage
+ string resource = 4;
+
+ // Link to the current Stage resource
+ string resource_uri = 5;
+
+ // State messages from the current Stage.
+ repeated StateMessage state_messages = 6;
+}
diff --git a/packages/google-cloud-functions/protos/protos.d.ts b/packages/google-cloud-functions/protos/protos.d.ts
new file mode 100644
index 00000000000..008a48a70a2
--- /dev/null
+++ b/packages/google-cloud-functions/protos/protos.d.ts
@@ -0,0 +1,20527 @@
+// 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 functions. */
+ namespace functions {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a CloudFunctionsService */
+ class CloudFunctionsService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new CloudFunctionsService 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 CloudFunctionsService 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): CloudFunctionsService;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFunctionsResponse
+ */
+ public listFunctions(request: google.cloud.functions.v1.IListFunctionsRequest, callback: google.cloud.functions.v1.CloudFunctionsService.ListFunctionsCallback): void;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @returns Promise
+ */
+ public listFunctions(request: google.cloud.functions.v1.IListFunctionsRequest): Promise;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CloudFunction
+ */
+ public getFunction(request: google.cloud.functions.v1.IGetFunctionRequest, callback: google.cloud.functions.v1.CloudFunctionsService.GetFunctionCallback): void;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public getFunction(request: google.cloud.functions.v1.IGetFunctionRequest): Promise;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createFunction(request: google.cloud.functions.v1.ICreateFunctionRequest, callback: google.cloud.functions.v1.CloudFunctionsService.CreateFunctionCallback): void;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public createFunction(request: google.cloud.functions.v1.ICreateFunctionRequest): Promise;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateFunction(request: google.cloud.functions.v1.IUpdateFunctionRequest, callback: google.cloud.functions.v1.CloudFunctionsService.UpdateFunctionCallback): void;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public updateFunction(request: google.cloud.functions.v1.IUpdateFunctionRequest): Promise;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteFunction(request: google.cloud.functions.v1.IDeleteFunctionRequest, callback: google.cloud.functions.v1.CloudFunctionsService.DeleteFunctionCallback): void;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteFunction(request: google.cloud.functions.v1.IDeleteFunctionRequest): Promise;
+
+ /**
+ * Calls CallFunction.
+ * @param request CallFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CallFunctionResponse
+ */
+ public callFunction(request: google.cloud.functions.v1.ICallFunctionRequest, callback: google.cloud.functions.v1.CloudFunctionsService.CallFunctionCallback): void;
+
+ /**
+ * Calls CallFunction.
+ * @param request CallFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public callFunction(request: google.cloud.functions.v1.ICallFunctionRequest): Promise;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateUploadUrlResponse
+ */
+ public generateUploadUrl(request: google.cloud.functions.v1.IGenerateUploadUrlRequest, callback: google.cloud.functions.v1.CloudFunctionsService.GenerateUploadUrlCallback): void;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateUploadUrl(request: google.cloud.functions.v1.IGenerateUploadUrlRequest): Promise;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateDownloadUrlResponse
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v1.IGenerateDownloadUrlRequest, callback: google.cloud.functions.v1.CloudFunctionsService.GenerateDownloadUrlCallback): void;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v1.IGenerateDownloadUrlRequest): Promise;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.functions.v1.CloudFunctionsService.SetIamPolicyCallback): void;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.functions.v1.CloudFunctionsService.GetIamPolicyCallback): void;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.functions.v1.CloudFunctionsService.TestIamPermissionsCallback): void;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @returns Promise
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise;
+ }
+
+ namespace CloudFunctionsService {
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|listFunctions}.
+ * @param error Error, if any
+ * @param [response] ListFunctionsResponse
+ */
+ type ListFunctionsCallback = (error: (Error|null), response?: google.cloud.functions.v1.ListFunctionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|getFunction}.
+ * @param error Error, if any
+ * @param [response] CloudFunction
+ */
+ type GetFunctionCallback = (error: (Error|null), response?: google.cloud.functions.v1.CloudFunction) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|createFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|updateFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|deleteFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|callFunction}.
+ * @param error Error, if any
+ * @param [response] CallFunctionResponse
+ */
+ type CallFunctionCallback = (error: (Error|null), response?: google.cloud.functions.v1.CallFunctionResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|generateUploadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateUploadUrlResponse
+ */
+ type GenerateUploadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v1.GenerateUploadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|generateDownloadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateDownloadUrlResponse
+ */
+ type GenerateDownloadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v1.GenerateDownloadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|setIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|getIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|testIamPermissions}.
+ * @param error Error, if any
+ * @param [response] TestIamPermissionsResponse
+ */
+ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void;
+ }
+
+ /** Properties of a CloudFunction. */
+ interface ICloudFunction {
+
+ /** CloudFunction name */
+ name?: (string|null);
+
+ /** CloudFunction description */
+ description?: (string|null);
+
+ /** CloudFunction sourceArchiveUrl */
+ sourceArchiveUrl?: (string|null);
+
+ /** CloudFunction sourceRepository */
+ sourceRepository?: (google.cloud.functions.v1.ISourceRepository|null);
+
+ /** CloudFunction sourceUploadUrl */
+ sourceUploadUrl?: (string|null);
+
+ /** CloudFunction httpsTrigger */
+ httpsTrigger?: (google.cloud.functions.v1.IHttpsTrigger|null);
+
+ /** CloudFunction eventTrigger */
+ eventTrigger?: (google.cloud.functions.v1.IEventTrigger|null);
+
+ /** CloudFunction status */
+ status?: (google.cloud.functions.v1.CloudFunctionStatus|keyof typeof google.cloud.functions.v1.CloudFunctionStatus|null);
+
+ /** CloudFunction entryPoint */
+ entryPoint?: (string|null);
+
+ /** CloudFunction runtime */
+ runtime?: (string|null);
+
+ /** CloudFunction timeout */
+ timeout?: (google.protobuf.IDuration|null);
+
+ /** CloudFunction availableMemoryMb */
+ availableMemoryMb?: (number|null);
+
+ /** CloudFunction serviceAccountEmail */
+ serviceAccountEmail?: (string|null);
+
+ /** CloudFunction updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloudFunction versionId */
+ versionId?: (number|Long|string|null);
+
+ /** CloudFunction labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** CloudFunction environmentVariables */
+ environmentVariables?: ({ [k: string]: string }|null);
+
+ /** CloudFunction buildEnvironmentVariables */
+ buildEnvironmentVariables?: ({ [k: string]: string }|null);
+
+ /** CloudFunction network */
+ network?: (string|null);
+
+ /** CloudFunction maxInstances */
+ maxInstances?: (number|null);
+
+ /** CloudFunction minInstances */
+ minInstances?: (number|null);
+
+ /** CloudFunction vpcConnector */
+ vpcConnector?: (string|null);
+
+ /** CloudFunction vpcConnectorEgressSettings */
+ vpcConnectorEgressSettings?: (google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings|null);
+
+ /** CloudFunction ingressSettings */
+ ingressSettings?: (google.cloud.functions.v1.CloudFunction.IngressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.IngressSettings|null);
+
+ /** CloudFunction kmsKeyName */
+ kmsKeyName?: (string|null);
+
+ /** CloudFunction buildWorkerPool */
+ buildWorkerPool?: (string|null);
+
+ /** CloudFunction buildId */
+ buildId?: (string|null);
+
+ /** CloudFunction buildName */
+ buildName?: (string|null);
+
+ /** CloudFunction secretEnvironmentVariables */
+ secretEnvironmentVariables?: (google.cloud.functions.v1.ISecretEnvVar[]|null);
+
+ /** CloudFunction secretVolumes */
+ secretVolumes?: (google.cloud.functions.v1.ISecretVolume[]|null);
+
+ /** CloudFunction sourceToken */
+ sourceToken?: (string|null);
+
+ /** CloudFunction dockerRepository */
+ dockerRepository?: (string|null);
+
+ /** CloudFunction dockerRegistry */
+ dockerRegistry?: (google.cloud.functions.v1.CloudFunction.DockerRegistry|keyof typeof google.cloud.functions.v1.CloudFunction.DockerRegistry|null);
+ }
+
+ /** Represents a CloudFunction. */
+ class CloudFunction implements ICloudFunction {
+
+ /**
+ * Constructs a new CloudFunction.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.ICloudFunction);
+
+ /** CloudFunction name. */
+ public name: string;
+
+ /** CloudFunction description. */
+ public description: string;
+
+ /** CloudFunction sourceArchiveUrl. */
+ public sourceArchiveUrl?: (string|null);
+
+ /** CloudFunction sourceRepository. */
+ public sourceRepository?: (google.cloud.functions.v1.ISourceRepository|null);
+
+ /** CloudFunction sourceUploadUrl. */
+ public sourceUploadUrl?: (string|null);
+
+ /** CloudFunction httpsTrigger. */
+ public httpsTrigger?: (google.cloud.functions.v1.IHttpsTrigger|null);
+
+ /** CloudFunction eventTrigger. */
+ public eventTrigger?: (google.cloud.functions.v1.IEventTrigger|null);
+
+ /** CloudFunction status. */
+ public status: (google.cloud.functions.v1.CloudFunctionStatus|keyof typeof google.cloud.functions.v1.CloudFunctionStatus);
+
+ /** CloudFunction entryPoint. */
+ public entryPoint: string;
+
+ /** CloudFunction runtime. */
+ public runtime: string;
+
+ /** CloudFunction timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /** CloudFunction availableMemoryMb. */
+ public availableMemoryMb: number;
+
+ /** CloudFunction serviceAccountEmail. */
+ public serviceAccountEmail: string;
+
+ /** CloudFunction updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CloudFunction versionId. */
+ public versionId: (number|Long|string);
+
+ /** CloudFunction labels. */
+ public labels: { [k: string]: string };
+
+ /** CloudFunction environmentVariables. */
+ public environmentVariables: { [k: string]: string };
+
+ /** CloudFunction buildEnvironmentVariables. */
+ public buildEnvironmentVariables: { [k: string]: string };
+
+ /** CloudFunction network. */
+ public network: string;
+
+ /** CloudFunction maxInstances. */
+ public maxInstances: number;
+
+ /** CloudFunction minInstances. */
+ public minInstances: number;
+
+ /** CloudFunction vpcConnector. */
+ public vpcConnector: string;
+
+ /** CloudFunction vpcConnectorEgressSettings. */
+ public vpcConnectorEgressSettings: (google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings);
+
+ /** CloudFunction ingressSettings. */
+ public ingressSettings: (google.cloud.functions.v1.CloudFunction.IngressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.IngressSettings);
+
+ /** CloudFunction kmsKeyName. */
+ public kmsKeyName: string;
+
+ /** CloudFunction buildWorkerPool. */
+ public buildWorkerPool: string;
+
+ /** CloudFunction buildId. */
+ public buildId: string;
+
+ /** CloudFunction buildName. */
+ public buildName: string;
+
+ /** CloudFunction secretEnvironmentVariables. */
+ public secretEnvironmentVariables: google.cloud.functions.v1.ISecretEnvVar[];
+
+ /** CloudFunction secretVolumes. */
+ public secretVolumes: google.cloud.functions.v1.ISecretVolume[];
+
+ /** CloudFunction sourceToken. */
+ public sourceToken: string;
+
+ /** CloudFunction dockerRepository. */
+ public dockerRepository: string;
+
+ /** CloudFunction dockerRegistry. */
+ public dockerRegistry: (google.cloud.functions.v1.CloudFunction.DockerRegistry|keyof typeof google.cloud.functions.v1.CloudFunction.DockerRegistry);
+
+ /** CloudFunction sourceCode. */
+ public sourceCode?: ("sourceArchiveUrl"|"sourceRepository"|"sourceUploadUrl");
+
+ /** CloudFunction trigger. */
+ public trigger?: ("httpsTrigger"|"eventTrigger");
+
+ /**
+ * Creates a new CloudFunction instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloudFunction instance
+ */
+ public static create(properties?: google.cloud.functions.v1.ICloudFunction): google.cloud.functions.v1.CloudFunction;
+
+ /**
+ * Encodes the specified CloudFunction message. Does not implicitly {@link google.cloud.functions.v1.CloudFunction.verify|verify} messages.
+ * @param message CloudFunction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.ICloudFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloudFunction message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CloudFunction.verify|verify} messages.
+ * @param message CloudFunction message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.ICloudFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloudFunction message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloudFunction
+ * @throws {Error} If the payload is not 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.functions.v1.CloudFunction;
+
+ /**
+ * Decodes a CloudFunction message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloudFunction
+ * @throws {Error} If the payload 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.functions.v1.CloudFunction;
+
+ /**
+ * Verifies a CloudFunction message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CloudFunction message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloudFunction
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.CloudFunction;
+
+ /**
+ * Creates a plain object from a CloudFunction message. Also converts values to other types if specified.
+ * @param message CloudFunction
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.CloudFunction, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloudFunction to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloudFunction
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CloudFunction {
+
+ /** VpcConnectorEgressSettings enum. */
+ enum VpcConnectorEgressSettings {
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0,
+ PRIVATE_RANGES_ONLY = 1,
+ ALL_TRAFFIC = 2
+ }
+
+ /** IngressSettings enum. */
+ enum IngressSettings {
+ INGRESS_SETTINGS_UNSPECIFIED = 0,
+ ALLOW_ALL = 1,
+ ALLOW_INTERNAL_ONLY = 2,
+ ALLOW_INTERNAL_AND_GCLB = 3
+ }
+
+ /** DockerRegistry enum. */
+ enum DockerRegistry {
+ DOCKER_REGISTRY_UNSPECIFIED = 0,
+ CONTAINER_REGISTRY = 1,
+ ARTIFACT_REGISTRY = 2
+ }
+ }
+
+ /** Properties of a SourceRepository. */
+ interface ISourceRepository {
+
+ /** SourceRepository url */
+ url?: (string|null);
+
+ /** SourceRepository deployedUrl */
+ deployedUrl?: (string|null);
+ }
+
+ /** Represents a SourceRepository. */
+ class SourceRepository implements ISourceRepository {
+
+ /**
+ * Constructs a new SourceRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.ISourceRepository);
+
+ /** SourceRepository url. */
+ public url: string;
+
+ /** SourceRepository deployedUrl. */
+ public deployedUrl: string;
+
+ /**
+ * Creates a new SourceRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceRepository instance
+ */
+ public static create(properties?: google.cloud.functions.v1.ISourceRepository): google.cloud.functions.v1.SourceRepository;
+
+ /**
+ * Encodes the specified SourceRepository message. Does not implicitly {@link google.cloud.functions.v1.SourceRepository.verify|verify} messages.
+ * @param message SourceRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.ISourceRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceRepository message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SourceRepository.verify|verify} messages.
+ * @param message SourceRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.ISourceRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceRepository
+ * @throws {Error} If the payload is not 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.functions.v1.SourceRepository;
+
+ /**
+ * Decodes a SourceRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceRepository
+ * @throws {Error} If the payload 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.functions.v1.SourceRepository;
+
+ /**
+ * Verifies a SourceRepository message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.SourceRepository;
+
+ /**
+ * Creates a plain object from a SourceRepository message. Also converts values to other types if specified.
+ * @param message SourceRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.SourceRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpsTrigger. */
+ interface IHttpsTrigger {
+
+ /** HttpsTrigger url */
+ url?: (string|null);
+
+ /** HttpsTrigger securityLevel */
+ securityLevel?: (google.cloud.functions.v1.HttpsTrigger.SecurityLevel|keyof typeof google.cloud.functions.v1.HttpsTrigger.SecurityLevel|null);
+ }
+
+ /** Represents a HttpsTrigger. */
+ class HttpsTrigger implements IHttpsTrigger {
+
+ /**
+ * Constructs a new HttpsTrigger.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IHttpsTrigger);
+
+ /** HttpsTrigger url. */
+ public url: string;
+
+ /** HttpsTrigger securityLevel. */
+ public securityLevel: (google.cloud.functions.v1.HttpsTrigger.SecurityLevel|keyof typeof google.cloud.functions.v1.HttpsTrigger.SecurityLevel);
+
+ /**
+ * Creates a new HttpsTrigger instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpsTrigger instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IHttpsTrigger): google.cloud.functions.v1.HttpsTrigger;
+
+ /**
+ * Encodes the specified HttpsTrigger message. Does not implicitly {@link google.cloud.functions.v1.HttpsTrigger.verify|verify} messages.
+ * @param message HttpsTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IHttpsTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpsTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v1.HttpsTrigger.verify|verify} messages.
+ * @param message HttpsTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IHttpsTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpsTrigger message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpsTrigger
+ * @throws {Error} If the payload is not 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.functions.v1.HttpsTrigger;
+
+ /**
+ * Decodes a HttpsTrigger message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpsTrigger
+ * @throws {Error} If the payload 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.functions.v1.HttpsTrigger;
+
+ /**
+ * Verifies a HttpsTrigger message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpsTrigger message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpsTrigger
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.HttpsTrigger;
+
+ /**
+ * Creates a plain object from a HttpsTrigger message. Also converts values to other types if specified.
+ * @param message HttpsTrigger
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.HttpsTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpsTrigger to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpsTrigger
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace HttpsTrigger {
+
+ /** SecurityLevel enum. */
+ enum SecurityLevel {
+ SECURITY_LEVEL_UNSPECIFIED = 0,
+ SECURE_ALWAYS = 1,
+ SECURE_OPTIONAL = 2
+ }
+ }
+
+ /** Properties of an EventTrigger. */
+ interface IEventTrigger {
+
+ /** EventTrigger eventType */
+ eventType?: (string|null);
+
+ /** EventTrigger resource */
+ resource?: (string|null);
+
+ /** EventTrigger service */
+ service?: (string|null);
+
+ /** EventTrigger failurePolicy */
+ failurePolicy?: (google.cloud.functions.v1.IFailurePolicy|null);
+ }
+
+ /** Represents an EventTrigger. */
+ class EventTrigger implements IEventTrigger {
+
+ /**
+ * Constructs a new EventTrigger.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IEventTrigger);
+
+ /** EventTrigger eventType. */
+ public eventType: string;
+
+ /** EventTrigger resource. */
+ public resource: string;
+
+ /** EventTrigger service. */
+ public service: string;
+
+ /** EventTrigger failurePolicy. */
+ public failurePolicy?: (google.cloud.functions.v1.IFailurePolicy|null);
+
+ /**
+ * Creates a new EventTrigger instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventTrigger instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IEventTrigger): google.cloud.functions.v1.EventTrigger;
+
+ /**
+ * Encodes the specified EventTrigger message. Does not implicitly {@link google.cloud.functions.v1.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v1.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventTrigger
+ * @throws {Error} If the payload is not 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.functions.v1.EventTrigger;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventTrigger
+ * @throws {Error} If the payload 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.functions.v1.EventTrigger;
+
+ /**
+ * Verifies an EventTrigger message.
+ * @param message Plain 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 EventTrigger message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventTrigger
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.EventTrigger;
+
+ /**
+ * Creates a plain object from an EventTrigger message. Also converts values to other types if specified.
+ * @param message EventTrigger
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.EventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventTrigger to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventTrigger
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FailurePolicy. */
+ interface IFailurePolicy {
+
+ /** FailurePolicy retry */
+ retry?: (google.cloud.functions.v1.FailurePolicy.IRetry|null);
+ }
+
+ /** Represents a FailurePolicy. */
+ class FailurePolicy implements IFailurePolicy {
+
+ /**
+ * Constructs a new FailurePolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IFailurePolicy);
+
+ /** FailurePolicy retry. */
+ public retry?: (google.cloud.functions.v1.FailurePolicy.IRetry|null);
+
+ /** FailurePolicy action. */
+ public action?: "retry";
+
+ /**
+ * Creates a new FailurePolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FailurePolicy instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IFailurePolicy): google.cloud.functions.v1.FailurePolicy;
+
+ /**
+ * Encodes the specified FailurePolicy message. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.verify|verify} messages.
+ * @param message FailurePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IFailurePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FailurePolicy message, length delimited. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.verify|verify} messages.
+ * @param message FailurePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IFailurePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FailurePolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FailurePolicy
+ * @throws {Error} If the payload is not 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.functions.v1.FailurePolicy;
+
+ /**
+ * Decodes a FailurePolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FailurePolicy
+ * @throws {Error} If the payload 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.functions.v1.FailurePolicy;
+
+ /**
+ * Verifies a FailurePolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FailurePolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FailurePolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.FailurePolicy;
+
+ /**
+ * Creates a plain object from a FailurePolicy message. Also converts values to other types if specified.
+ * @param message FailurePolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.FailurePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FailurePolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FailurePolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FailurePolicy {
+
+ /** Properties of a Retry. */
+ interface IRetry {
+ }
+
+ /** Represents a Retry. */
+ class Retry implements IRetry {
+
+ /**
+ * Constructs a new Retry.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.FailurePolicy.IRetry);
+
+ /**
+ * Creates a new Retry instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Retry instance
+ */
+ public static create(properties?: google.cloud.functions.v1.FailurePolicy.IRetry): google.cloud.functions.v1.FailurePolicy.Retry;
+
+ /**
+ * Encodes the specified Retry message. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.Retry.verify|verify} messages.
+ * @param message Retry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.FailurePolicy.IRetry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Retry message, length delimited. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.Retry.verify|verify} messages.
+ * @param message Retry message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.FailurePolicy.IRetry, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Retry message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Retry
+ * @throws {Error} If the payload is not 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.functions.v1.FailurePolicy.Retry;
+
+ /**
+ * Decodes a Retry message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Retry
+ * @throws {Error} If the payload 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.functions.v1.FailurePolicy.Retry;
+
+ /**
+ * Verifies a Retry message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Retry message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Retry
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.FailurePolicy.Retry;
+
+ /**
+ * Creates a plain object from a Retry message. Also converts values to other types if specified.
+ * @param message Retry
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.FailurePolicy.Retry, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Retry to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Retry
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** CloudFunctionStatus enum. */
+ enum CloudFunctionStatus {
+ CLOUD_FUNCTION_STATUS_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ OFFLINE = 2,
+ DEPLOY_IN_PROGRESS = 3,
+ DELETE_IN_PROGRESS = 4,
+ UNKNOWN = 5
+ }
+
+ /** Properties of a SecretEnvVar. */
+ interface ISecretEnvVar {
+
+ /** SecretEnvVar key */
+ key?: (string|null);
+
+ /** SecretEnvVar projectId */
+ projectId?: (string|null);
+
+ /** SecretEnvVar secret */
+ secret?: (string|null);
+
+ /** SecretEnvVar version */
+ version?: (string|null);
+ }
+
+ /** Represents a SecretEnvVar. */
+ class SecretEnvVar implements ISecretEnvVar {
+
+ /**
+ * Constructs a new SecretEnvVar.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.ISecretEnvVar);
+
+ /** SecretEnvVar key. */
+ public key: string;
+
+ /** SecretEnvVar projectId. */
+ public projectId: string;
+
+ /** SecretEnvVar secret. */
+ public secret: string;
+
+ /** SecretEnvVar version. */
+ public version: string;
+
+ /**
+ * Creates a new SecretEnvVar instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretEnvVar instance
+ */
+ public static create(properties?: google.cloud.functions.v1.ISecretEnvVar): google.cloud.functions.v1.SecretEnvVar;
+
+ /**
+ * Encodes the specified SecretEnvVar message. Does not implicitly {@link google.cloud.functions.v1.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretEnvVar message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload is not 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.functions.v1.SecretEnvVar;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload 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.functions.v1.SecretEnvVar;
+
+ /**
+ * Verifies a SecretEnvVar message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretEnvVar message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretEnvVar
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.SecretEnvVar;
+
+ /**
+ * Creates a plain object from a SecretEnvVar message. Also converts values to other types if specified.
+ * @param message SecretEnvVar
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.SecretEnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretEnvVar to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretEnvVar
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SecretVolume. */
+ interface ISecretVolume {
+
+ /** SecretVolume mountPath */
+ mountPath?: (string|null);
+
+ /** SecretVolume projectId */
+ projectId?: (string|null);
+
+ /** SecretVolume secret */
+ secret?: (string|null);
+
+ /** SecretVolume versions */
+ versions?: (google.cloud.functions.v1.SecretVolume.ISecretVersion[]|null);
+ }
+
+ /** Represents a SecretVolume. */
+ class SecretVolume implements ISecretVolume {
+
+ /**
+ * Constructs a new SecretVolume.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.ISecretVolume);
+
+ /** SecretVolume mountPath. */
+ public mountPath: string;
+
+ /** SecretVolume projectId. */
+ public projectId: string;
+
+ /** SecretVolume secret. */
+ public secret: string;
+
+ /** SecretVolume versions. */
+ public versions: google.cloud.functions.v1.SecretVolume.ISecretVersion[];
+
+ /**
+ * Creates a new SecretVolume instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVolume instance
+ */
+ public static create(properties?: google.cloud.functions.v1.ISecretVolume): google.cloud.functions.v1.SecretVolume;
+
+ /**
+ * Encodes the specified SecretVolume message. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVolume message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVolume
+ * @throws {Error} If the payload is not 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.functions.v1.SecretVolume;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVolume
+ * @throws {Error} If the payload 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.functions.v1.SecretVolume;
+
+ /**
+ * Verifies a SecretVolume message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVolume message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVolume
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.SecretVolume;
+
+ /**
+ * Creates a plain object from a SecretVolume message. Also converts values to other types if specified.
+ * @param message SecretVolume
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.SecretVolume, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVolume to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVolume
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SecretVolume {
+
+ /** Properties of a SecretVersion. */
+ interface ISecretVersion {
+
+ /** SecretVersion version */
+ version?: (string|null);
+
+ /** SecretVersion path */
+ path?: (string|null);
+ }
+
+ /** Represents a SecretVersion. */
+ class SecretVersion implements ISecretVersion {
+
+ /**
+ * Constructs a new SecretVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.SecretVolume.ISecretVersion);
+
+ /** SecretVersion version. */
+ public version: string;
+
+ /** SecretVersion path. */
+ public path: string;
+
+ /**
+ * Creates a new SecretVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVersion instance
+ */
+ public static create(properties?: google.cloud.functions.v1.SecretVolume.ISecretVersion): google.cloud.functions.v1.SecretVolume.SecretVersion;
+
+ /**
+ * Encodes the specified SecretVersion message. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVersion message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVersion
+ * @throws {Error} If the payload is not 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.functions.v1.SecretVolume.SecretVersion;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVersion
+ * @throws {Error} If the payload 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.functions.v1.SecretVolume.SecretVersion;
+
+ /**
+ * Verifies a SecretVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.SecretVolume.SecretVersion;
+
+ /**
+ * Creates a plain object from a SecretVersion message. Also converts values to other types if specified.
+ * @param message SecretVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.SecretVolume.SecretVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a CreateFunctionRequest. */
+ interface ICreateFunctionRequest {
+
+ /** CreateFunctionRequest location */
+ location?: (string|null);
+
+ /** CreateFunctionRequest function */
+ "function"?: (google.cloud.functions.v1.ICloudFunction|null);
+ }
+
+ /** Represents a CreateFunctionRequest. */
+ class CreateFunctionRequest implements ICreateFunctionRequest {
+
+ /**
+ * Constructs a new CreateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.ICreateFunctionRequest);
+
+ /** CreateFunctionRequest location. */
+ public location: string;
+
+ /** CreateFunctionRequest function. */
+ public function?: (google.cloud.functions.v1.ICloudFunction|null);
+
+ /**
+ * Creates a new CreateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.ICreateFunctionRequest): google.cloud.functions.v1.CreateFunctionRequest;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v1.CreateFunctionRequest;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v1.CreateFunctionRequest;
+
+ /**
+ * Verifies a CreateFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.CreateFunctionRequest;
+
+ /**
+ * Creates a plain object from a CreateFunctionRequest message. Also converts values to other types if specified.
+ * @param message CreateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.CreateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateFunctionRequest. */
+ interface IUpdateFunctionRequest {
+
+ /** UpdateFunctionRequest function */
+ "function"?: (google.cloud.functions.v1.ICloudFunction|null);
+
+ /** UpdateFunctionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateFunctionRequest. */
+ class UpdateFunctionRequest implements IUpdateFunctionRequest {
+
+ /**
+ * Constructs a new UpdateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IUpdateFunctionRequest);
+
+ /** UpdateFunctionRequest function. */
+ public function?: (google.cloud.functions.v1.ICloudFunction|null);
+
+ /** UpdateFunctionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IUpdateFunctionRequest): google.cloud.functions.v1.UpdateFunctionRequest;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v1.UpdateFunctionRequest;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v1.UpdateFunctionRequest;
+
+ /**
+ * Verifies an UpdateFunctionRequest message.
+ * @param message Plain 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 UpdateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.UpdateFunctionRequest;
+
+ /**
+ * Creates a plain object from an UpdateFunctionRequest message. Also converts values to other types if specified.
+ * @param message UpdateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.UpdateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetFunctionRequest. */
+ interface IGetFunctionRequest {
+
+ /** GetFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFunctionRequest. */
+ class GetFunctionRequest implements IGetFunctionRequest {
+
+ /**
+ * Constructs a new GetFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IGetFunctionRequest);
+
+ /** GetFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IGetFunctionRequest): google.cloud.functions.v1.GetFunctionRequest;
+
+ /**
+ * Encodes the specified GetFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v1.GetFunctionRequest;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload 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.functions.v1.GetFunctionRequest;
+
+ /**
+ * Verifies a GetFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.GetFunctionRequest;
+
+ /**
+ * Creates a plain object from a GetFunctionRequest message. Also converts values to other types if specified.
+ * @param message GetFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.GetFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsRequest. */
+ interface IListFunctionsRequest {
+
+ /** ListFunctionsRequest parent */
+ parent?: (string|null);
+
+ /** ListFunctionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListFunctionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListFunctionsRequest. */
+ class ListFunctionsRequest implements IListFunctionsRequest {
+
+ /**
+ * Constructs a new ListFunctionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IListFunctionsRequest);
+
+ /** ListFunctionsRequest parent. */
+ public parent: string;
+
+ /** ListFunctionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListFunctionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListFunctionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IListFunctionsRequest): google.cloud.functions.v1.ListFunctionsRequest;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload is not 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.functions.v1.ListFunctionsRequest;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload 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.functions.v1.ListFunctionsRequest;
+
+ /**
+ * Verifies a ListFunctionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.ListFunctionsRequest;
+
+ /**
+ * Creates a plain object from a ListFunctionsRequest message. Also converts values to other types if specified.
+ * @param message ListFunctionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.ListFunctionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsResponse. */
+ interface IListFunctionsResponse {
+
+ /** ListFunctionsResponse functions */
+ functions?: (google.cloud.functions.v1.ICloudFunction[]|null);
+
+ /** ListFunctionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListFunctionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListFunctionsResponse. */
+ class ListFunctionsResponse implements IListFunctionsResponse {
+
+ /**
+ * Constructs a new ListFunctionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IListFunctionsResponse);
+
+ /** ListFunctionsResponse functions. */
+ public functions: google.cloud.functions.v1.ICloudFunction[];
+
+ /** ListFunctionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListFunctionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListFunctionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IListFunctionsResponse): google.cloud.functions.v1.ListFunctionsResponse;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload is not 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.functions.v1.ListFunctionsResponse;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload 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.functions.v1.ListFunctionsResponse;
+
+ /**
+ * Verifies a ListFunctionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.ListFunctionsResponse;
+
+ /**
+ * Creates a plain object from a ListFunctionsResponse message. Also converts values to other types if specified.
+ * @param message ListFunctionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.ListFunctionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteFunctionRequest. */
+ interface IDeleteFunctionRequest {
+
+ /** DeleteFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteFunctionRequest. */
+ class DeleteFunctionRequest implements IDeleteFunctionRequest {
+
+ /**
+ * Constructs a new DeleteFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IDeleteFunctionRequest);
+
+ /** DeleteFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IDeleteFunctionRequest): google.cloud.functions.v1.DeleteFunctionRequest;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v1.DeleteFunctionRequest;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload 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.functions.v1.DeleteFunctionRequest;
+
+ /**
+ * Verifies a DeleteFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.DeleteFunctionRequest;
+
+ /**
+ * Creates a plain object from a DeleteFunctionRequest message. Also converts values to other types if specified.
+ * @param message DeleteFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.DeleteFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CallFunctionRequest. */
+ interface ICallFunctionRequest {
+
+ /** CallFunctionRequest name */
+ name?: (string|null);
+
+ /** CallFunctionRequest data */
+ data?: (string|null);
+ }
+
+ /** Represents a CallFunctionRequest. */
+ class CallFunctionRequest implements ICallFunctionRequest {
+
+ /**
+ * Constructs a new CallFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.ICallFunctionRequest);
+
+ /** CallFunctionRequest name. */
+ public name: string;
+
+ /** CallFunctionRequest data. */
+ public data: string;
+
+ /**
+ * Creates a new CallFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CallFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.ICallFunctionRequest): google.cloud.functions.v1.CallFunctionRequest;
+
+ /**
+ * Encodes the specified CallFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.CallFunctionRequest.verify|verify} messages.
+ * @param message CallFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.ICallFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CallFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CallFunctionRequest.verify|verify} messages.
+ * @param message CallFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.ICallFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CallFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CallFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v1.CallFunctionRequest;
+
+ /**
+ * Decodes a CallFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CallFunctionRequest
+ * @throws {Error} If the payload 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.functions.v1.CallFunctionRequest;
+
+ /**
+ * Verifies a CallFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CallFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CallFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.CallFunctionRequest;
+
+ /**
+ * Creates a plain object from a CallFunctionRequest message. Also converts values to other types if specified.
+ * @param message CallFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.CallFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CallFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CallFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CallFunctionResponse. */
+ interface ICallFunctionResponse {
+
+ /** CallFunctionResponse executionId */
+ executionId?: (string|null);
+
+ /** CallFunctionResponse result */
+ result?: (string|null);
+
+ /** CallFunctionResponse error */
+ error?: (string|null);
+ }
+
+ /** Represents a CallFunctionResponse. */
+ class CallFunctionResponse implements ICallFunctionResponse {
+
+ /**
+ * Constructs a new CallFunctionResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.ICallFunctionResponse);
+
+ /** CallFunctionResponse executionId. */
+ public executionId: string;
+
+ /** CallFunctionResponse result. */
+ public result: string;
+
+ /** CallFunctionResponse error. */
+ public error: string;
+
+ /**
+ * Creates a new CallFunctionResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CallFunctionResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v1.ICallFunctionResponse): google.cloud.functions.v1.CallFunctionResponse;
+
+ /**
+ * Encodes the specified CallFunctionResponse message. Does not implicitly {@link google.cloud.functions.v1.CallFunctionResponse.verify|verify} messages.
+ * @param message CallFunctionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.ICallFunctionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CallFunctionResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CallFunctionResponse.verify|verify} messages.
+ * @param message CallFunctionResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.ICallFunctionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CallFunctionResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CallFunctionResponse
+ * @throws {Error} If the payload is not 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.functions.v1.CallFunctionResponse;
+
+ /**
+ * Decodes a CallFunctionResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CallFunctionResponse
+ * @throws {Error} If the payload 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.functions.v1.CallFunctionResponse;
+
+ /**
+ * Verifies a CallFunctionResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CallFunctionResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CallFunctionResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.CallFunctionResponse;
+
+ /**
+ * Creates a plain object from a CallFunctionResponse message. Also converts values to other types if specified.
+ * @param message CallFunctionResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.CallFunctionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CallFunctionResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CallFunctionResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlRequest. */
+ interface IGenerateUploadUrlRequest {
+
+ /** GenerateUploadUrlRequest parent */
+ parent?: (string|null);
+
+ /** GenerateUploadUrlRequest kmsKeyName */
+ kmsKeyName?: (string|null);
+ }
+
+ /** Represents a GenerateUploadUrlRequest. */
+ class GenerateUploadUrlRequest implements IGenerateUploadUrlRequest {
+
+ /**
+ * Constructs a new GenerateUploadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IGenerateUploadUrlRequest);
+
+ /** GenerateUploadUrlRequest parent. */
+ public parent: string;
+
+ /** GenerateUploadUrlRequest kmsKeyName. */
+ public kmsKeyName: string;
+
+ /**
+ * Creates a new GenerateUploadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IGenerateUploadUrlRequest): google.cloud.functions.v1.GenerateUploadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v1.GenerateUploadUrlRequest;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload 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.functions.v1.GenerateUploadUrlRequest;
+
+ /**
+ * Verifies a GenerateUploadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.GenerateUploadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.GenerateUploadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlResponse. */
+ interface IGenerateUploadUrlResponse {
+
+ /** GenerateUploadUrlResponse uploadUrl */
+ uploadUrl?: (string|null);
+ }
+
+ /** Represents a GenerateUploadUrlResponse. */
+ class GenerateUploadUrlResponse implements IGenerateUploadUrlResponse {
+
+ /**
+ * Constructs a new GenerateUploadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IGenerateUploadUrlResponse);
+
+ /** GenerateUploadUrlResponse uploadUrl. */
+ public uploadUrl: string;
+
+ /**
+ * Creates a new GenerateUploadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IGenerateUploadUrlResponse): google.cloud.functions.v1.GenerateUploadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v1.GenerateUploadUrlResponse;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload 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.functions.v1.GenerateUploadUrlResponse;
+
+ /**
+ * Verifies a GenerateUploadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.GenerateUploadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.GenerateUploadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlRequest. */
+ interface IGenerateDownloadUrlRequest {
+
+ /** GenerateDownloadUrlRequest name */
+ name?: (string|null);
+
+ /** GenerateDownloadUrlRequest versionId */
+ versionId?: (number|Long|string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlRequest. */
+ class GenerateDownloadUrlRequest implements IGenerateDownloadUrlRequest {
+
+ /**
+ * Constructs a new GenerateDownloadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IGenerateDownloadUrlRequest);
+
+ /** GenerateDownloadUrlRequest name. */
+ public name: string;
+
+ /** GenerateDownloadUrlRequest versionId. */
+ public versionId: (number|Long|string);
+
+ /**
+ * Creates a new GenerateDownloadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IGenerateDownloadUrlRequest): google.cloud.functions.v1.GenerateDownloadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v1.GenerateDownloadUrlRequest;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload 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.functions.v1.GenerateDownloadUrlRequest;
+
+ /**
+ * Verifies a GenerateDownloadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.GenerateDownloadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.GenerateDownloadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlResponse. */
+ interface IGenerateDownloadUrlResponse {
+
+ /** GenerateDownloadUrlResponse downloadUrl */
+ downloadUrl?: (string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlResponse. */
+ class GenerateDownloadUrlResponse implements IGenerateDownloadUrlResponse {
+
+ /**
+ * Constructs a new GenerateDownloadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IGenerateDownloadUrlResponse);
+
+ /** GenerateDownloadUrlResponse downloadUrl. */
+ public downloadUrl: string;
+
+ /**
+ * Creates a new GenerateDownloadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IGenerateDownloadUrlResponse): google.cloud.functions.v1.GenerateDownloadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v1.GenerateDownloadUrlResponse;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload 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.functions.v1.GenerateDownloadUrlResponse;
+
+ /**
+ * Verifies a GenerateDownloadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.GenerateDownloadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.GenerateDownloadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** OperationType enum. */
+ enum OperationType {
+ OPERATION_UNSPECIFIED = 0,
+ CREATE_FUNCTION = 1,
+ UPDATE_FUNCTION = 2,
+ DELETE_FUNCTION = 3
+ }
+
+ /** Properties of an OperationMetadataV1. */
+ interface IOperationMetadataV1 {
+
+ /** OperationMetadataV1 target */
+ target?: (string|null);
+
+ /** OperationMetadataV1 type */
+ type?: (google.cloud.functions.v1.OperationType|keyof typeof google.cloud.functions.v1.OperationType|null);
+
+ /** OperationMetadataV1 request */
+ request?: (google.protobuf.IAny|null);
+
+ /** OperationMetadataV1 versionId */
+ versionId?: (number|Long|string|null);
+
+ /** OperationMetadataV1 updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadataV1 buildId */
+ buildId?: (string|null);
+
+ /** OperationMetadataV1 sourceToken */
+ sourceToken?: (string|null);
+
+ /** OperationMetadataV1 buildName */
+ buildName?: (string|null);
+ }
+
+ /** Represents an OperationMetadataV1. */
+ class OperationMetadataV1 implements IOperationMetadataV1 {
+
+ /**
+ * Constructs a new OperationMetadataV1.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v1.IOperationMetadataV1);
+
+ /** OperationMetadataV1 target. */
+ public target: string;
+
+ /** OperationMetadataV1 type. */
+ public type: (google.cloud.functions.v1.OperationType|keyof typeof google.cloud.functions.v1.OperationType);
+
+ /** OperationMetadataV1 request. */
+ public request?: (google.protobuf.IAny|null);
+
+ /** OperationMetadataV1 versionId. */
+ public versionId: (number|Long|string);
+
+ /** OperationMetadataV1 updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadataV1 buildId. */
+ public buildId: string;
+
+ /** OperationMetadataV1 sourceToken. */
+ public sourceToken: string;
+
+ /** OperationMetadataV1 buildName. */
+ public buildName: string;
+
+ /**
+ * Creates a new OperationMetadataV1 instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadataV1 instance
+ */
+ public static create(properties?: google.cloud.functions.v1.IOperationMetadataV1): google.cloud.functions.v1.OperationMetadataV1;
+
+ /**
+ * Encodes the specified OperationMetadataV1 message. Does not implicitly {@link google.cloud.functions.v1.OperationMetadataV1.verify|verify} messages.
+ * @param message OperationMetadataV1 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v1.IOperationMetadataV1, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadataV1 message, length delimited. Does not implicitly {@link google.cloud.functions.v1.OperationMetadataV1.verify|verify} messages.
+ * @param message OperationMetadataV1 message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v1.IOperationMetadataV1, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadataV1 message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadataV1
+ * @throws {Error} If the payload is not 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.functions.v1.OperationMetadataV1;
+
+ /**
+ * Decodes an OperationMetadataV1 message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadataV1
+ * @throws {Error} If the payload 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.functions.v1.OperationMetadataV1;
+
+ /**
+ * Verifies an OperationMetadataV1 message.
+ * @param message Plain 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 OperationMetadataV1 message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadataV1
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.OperationMetadataV1;
+
+ /**
+ * Creates a plain object from an OperationMetadataV1 message. Also converts values to other types if specified.
+ * @param message OperationMetadataV1
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v1.OperationMetadataV1, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadataV1 to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadataV1
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace v2. */
+ namespace v2 {
+
+ /** Represents a FunctionService */
+ class FunctionService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new FunctionService 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 FunctionService 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): FunctionService;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Function
+ */
+ public getFunction(request: google.cloud.functions.v2.IGetFunctionRequest, callback: google.cloud.functions.v2.FunctionService.GetFunctionCallback): void;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public getFunction(request: google.cloud.functions.v2.IGetFunctionRequest): Promise;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFunctionsResponse
+ */
+ public listFunctions(request: google.cloud.functions.v2.IListFunctionsRequest, callback: google.cloud.functions.v2.FunctionService.ListFunctionsCallback): void;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @returns Promise
+ */
+ public listFunctions(request: google.cloud.functions.v2.IListFunctionsRequest): Promise;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createFunction(request: google.cloud.functions.v2.ICreateFunctionRequest, callback: google.cloud.functions.v2.FunctionService.CreateFunctionCallback): void;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public createFunction(request: google.cloud.functions.v2.ICreateFunctionRequest): Promise;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateFunction(request: google.cloud.functions.v2.IUpdateFunctionRequest, callback: google.cloud.functions.v2.FunctionService.UpdateFunctionCallback): void;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public updateFunction(request: google.cloud.functions.v2.IUpdateFunctionRequest): Promise;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteFunction(request: google.cloud.functions.v2.IDeleteFunctionRequest, callback: google.cloud.functions.v2.FunctionService.DeleteFunctionCallback): void;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteFunction(request: google.cloud.functions.v2.IDeleteFunctionRequest): Promise;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateUploadUrlResponse
+ */
+ public generateUploadUrl(request: google.cloud.functions.v2.IGenerateUploadUrlRequest, callback: google.cloud.functions.v2.FunctionService.GenerateUploadUrlCallback): void;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateUploadUrl(request: google.cloud.functions.v2.IGenerateUploadUrlRequest): Promise;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateDownloadUrlResponse
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v2.IGenerateDownloadUrlRequest, callback: google.cloud.functions.v2.FunctionService.GenerateDownloadUrlCallback): void;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v2.IGenerateDownloadUrlRequest): Promise;
+
+ /**
+ * Calls ListRuntimes.
+ * @param request ListRuntimesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRuntimesResponse
+ */
+ public listRuntimes(request: google.cloud.functions.v2.IListRuntimesRequest, callback: google.cloud.functions.v2.FunctionService.ListRuntimesCallback): void;
+
+ /**
+ * Calls ListRuntimes.
+ * @param request ListRuntimesRequest message or plain object
+ * @returns Promise
+ */
+ public listRuntimes(request: google.cloud.functions.v2.IListRuntimesRequest): Promise;
+ }
+
+ namespace FunctionService {
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|getFunction}.
+ * @param error Error, if any
+ * @param [response] Function
+ */
+ type GetFunctionCallback = (error: (Error|null), response?: google.cloud.functions.v2.Function) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|listFunctions}.
+ * @param error Error, if any
+ * @param [response] ListFunctionsResponse
+ */
+ type ListFunctionsCallback = (error: (Error|null), response?: google.cloud.functions.v2.ListFunctionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|createFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|updateFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|deleteFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|generateUploadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateUploadUrlResponse
+ */
+ type GenerateUploadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v2.GenerateUploadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|generateDownloadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateDownloadUrlResponse
+ */
+ type GenerateDownloadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v2.GenerateDownloadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|listRuntimes}.
+ * @param error Error, if any
+ * @param [response] ListRuntimesResponse
+ */
+ type ListRuntimesCallback = (error: (Error|null), response?: google.cloud.functions.v2.ListRuntimesResponse) => void;
+ }
+
+ /** Environment enum. */
+ enum Environment {
+ ENVIRONMENT_UNSPECIFIED = 0,
+ GEN_1 = 1,
+ GEN_2 = 2
+ }
+
+ /** Properties of a Function. */
+ interface IFunction {
+
+ /** Function name */
+ name?: (string|null);
+
+ /** Function environment */
+ environment?: (google.cloud.functions.v2.Environment|keyof typeof google.cloud.functions.v2.Environment|null);
+
+ /** Function description */
+ description?: (string|null);
+
+ /** Function buildConfig */
+ buildConfig?: (google.cloud.functions.v2.IBuildConfig|null);
+
+ /** Function serviceConfig */
+ serviceConfig?: (google.cloud.functions.v2.IServiceConfig|null);
+
+ /** Function eventTrigger */
+ eventTrigger?: (google.cloud.functions.v2.IEventTrigger|null);
+
+ /** Function state */
+ state?: (google.cloud.functions.v2.Function.State|keyof typeof google.cloud.functions.v2.Function.State|null);
+
+ /** Function updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Function labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Function stateMessages */
+ stateMessages?: (google.cloud.functions.v2.IStateMessage[]|null);
+ }
+
+ /** Represents a Function. */
+ class Function implements IFunction {
+
+ /**
+ * Constructs a new Function.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IFunction);
+
+ /** Function name. */
+ public name: string;
+
+ /** Function environment. */
+ public environment: (google.cloud.functions.v2.Environment|keyof typeof google.cloud.functions.v2.Environment);
+
+ /** Function description. */
+ public description: string;
+
+ /** Function buildConfig. */
+ public buildConfig?: (google.cloud.functions.v2.IBuildConfig|null);
+
+ /** Function serviceConfig. */
+ public serviceConfig?: (google.cloud.functions.v2.IServiceConfig|null);
+
+ /** Function eventTrigger. */
+ public eventTrigger?: (google.cloud.functions.v2.IEventTrigger|null);
+
+ /** Function state. */
+ public state: (google.cloud.functions.v2.Function.State|keyof typeof google.cloud.functions.v2.Function.State);
+
+ /** Function updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Function labels. */
+ public labels: { [k: string]: string };
+
+ /** Function stateMessages. */
+ public stateMessages: google.cloud.functions.v2.IStateMessage[];
+
+ /**
+ * Creates a new Function instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Function instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IFunction): google.cloud.functions.v2.Function;
+
+ /**
+ * Encodes the specified Function message. Does not implicitly {@link google.cloud.functions.v2.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Function message, length delimited. Does not implicitly {@link google.cloud.functions.v2.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Function
+ * @throws {Error} If the payload is not 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.functions.v2.Function;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Function
+ * @throws {Error} If the payload 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.functions.v2.Function;
+
+ /**
+ * Verifies a Function message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Function message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Function
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.Function;
+
+ /**
+ * Creates a plain object from a Function message. Also converts values to other types if specified.
+ * @param message Function
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.Function, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Function to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Function
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Function {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ FAILED = 2,
+ DEPLOYING = 3,
+ DELETING = 4,
+ UNKNOWN = 5
+ }
+ }
+
+ /** Properties of a StateMessage. */
+ interface IStateMessage {
+
+ /** StateMessage severity */
+ severity?: (google.cloud.functions.v2.StateMessage.Severity|keyof typeof google.cloud.functions.v2.StateMessage.Severity|null);
+
+ /** StateMessage type */
+ type?: (string|null);
+
+ /** StateMessage message */
+ message?: (string|null);
+ }
+
+ /** Represents a StateMessage. */
+ class StateMessage implements IStateMessage {
+
+ /**
+ * Constructs a new StateMessage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IStateMessage);
+
+ /** StateMessage severity. */
+ public severity: (google.cloud.functions.v2.StateMessage.Severity|keyof typeof google.cloud.functions.v2.StateMessage.Severity);
+
+ /** StateMessage type. */
+ public type: string;
+
+ /** StateMessage message. */
+ public message: string;
+
+ /**
+ * Creates a new StateMessage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StateMessage instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IStateMessage): google.cloud.functions.v2.StateMessage;
+
+ /**
+ * Encodes the specified StateMessage message. Does not implicitly {@link google.cloud.functions.v2.StateMessage.verify|verify} messages.
+ * @param message StateMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IStateMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StateMessage message, length delimited. Does not implicitly {@link google.cloud.functions.v2.StateMessage.verify|verify} messages.
+ * @param message StateMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IStateMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StateMessage
+ * @throws {Error} If the payload is not 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.functions.v2.StateMessage;
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StateMessage
+ * @throws {Error} If the payload 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.functions.v2.StateMessage;
+
+ /**
+ * Verifies a StateMessage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StateMessage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StateMessage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.StateMessage;
+
+ /**
+ * Creates a plain object from a StateMessage message. Also converts values to other types if specified.
+ * @param message StateMessage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.StateMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StateMessage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StateMessage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StateMessage {
+
+ /** Severity enum. */
+ enum Severity {
+ SEVERITY_UNSPECIFIED = 0,
+ ERROR = 1,
+ WARNING = 2,
+ INFO = 3
+ }
+ }
+
+ /** Properties of a StorageSource. */
+ interface IStorageSource {
+
+ /** StorageSource bucket */
+ bucket?: (string|null);
+
+ /** StorageSource object */
+ object?: (string|null);
+
+ /** StorageSource generation */
+ generation?: (number|Long|string|null);
+ }
+
+ /** Represents a StorageSource. */
+ class StorageSource implements IStorageSource {
+
+ /**
+ * Constructs a new StorageSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IStorageSource);
+
+ /** StorageSource bucket. */
+ public bucket: string;
+
+ /** StorageSource object. */
+ public object: string;
+
+ /** StorageSource generation. */
+ public generation: (number|Long|string);
+
+ /**
+ * Creates a new StorageSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StorageSource instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IStorageSource): google.cloud.functions.v2.StorageSource;
+
+ /**
+ * Encodes the specified StorageSource message. Does not implicitly {@link google.cloud.functions.v2.StorageSource.verify|verify} messages.
+ * @param message StorageSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StorageSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2.StorageSource.verify|verify} messages.
+ * @param message StorageSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StorageSource
+ * @throws {Error} If the payload is not 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.functions.v2.StorageSource;
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StorageSource
+ * @throws {Error} If the payload 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.functions.v2.StorageSource;
+
+ /**
+ * Verifies a StorageSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StorageSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StorageSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.StorageSource;
+
+ /**
+ * Creates a plain object from a StorageSource message. Also converts values to other types if specified.
+ * @param message StorageSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.StorageSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StorageSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StorageSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RepoSource. */
+ interface IRepoSource {
+
+ /** RepoSource branchName */
+ branchName?: (string|null);
+
+ /** RepoSource tagName */
+ tagName?: (string|null);
+
+ /** RepoSource commitSha */
+ commitSha?: (string|null);
+
+ /** RepoSource projectId */
+ projectId?: (string|null);
+
+ /** RepoSource repoName */
+ repoName?: (string|null);
+
+ /** RepoSource dir */
+ dir?: (string|null);
+
+ /** RepoSource invertRegex */
+ invertRegex?: (boolean|null);
+ }
+
+ /** Represents a RepoSource. */
+ class RepoSource implements IRepoSource {
+
+ /**
+ * Constructs a new RepoSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IRepoSource);
+
+ /** RepoSource branchName. */
+ public branchName?: (string|null);
+
+ /** RepoSource tagName. */
+ public tagName?: (string|null);
+
+ /** RepoSource commitSha. */
+ public commitSha?: (string|null);
+
+ /** RepoSource projectId. */
+ public projectId: string;
+
+ /** RepoSource repoName. */
+ public repoName: string;
+
+ /** RepoSource dir. */
+ public dir: string;
+
+ /** RepoSource invertRegex. */
+ public invertRegex: boolean;
+
+ /** RepoSource revision. */
+ public revision?: ("branchName"|"tagName"|"commitSha");
+
+ /**
+ * Creates a new RepoSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RepoSource instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IRepoSource): google.cloud.functions.v2.RepoSource;
+
+ /**
+ * Encodes the specified RepoSource message. Does not implicitly {@link google.cloud.functions.v2.RepoSource.verify|verify} messages.
+ * @param message RepoSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IRepoSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RepoSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2.RepoSource.verify|verify} messages.
+ * @param message RepoSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IRepoSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RepoSource
+ * @throws {Error} If the payload is not 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.functions.v2.RepoSource;
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RepoSource
+ * @throws {Error} If the payload 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.functions.v2.RepoSource;
+
+ /**
+ * Verifies a RepoSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RepoSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RepoSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.RepoSource;
+
+ /**
+ * Creates a plain object from a RepoSource message. Also converts values to other types if specified.
+ * @param message RepoSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.RepoSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RepoSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RepoSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Source. */
+ interface ISource {
+
+ /** Source storageSource */
+ storageSource?: (google.cloud.functions.v2.IStorageSource|null);
+
+ /** Source repoSource */
+ repoSource?: (google.cloud.functions.v2.IRepoSource|null);
+ }
+
+ /** Represents a Source. */
+ class Source implements ISource {
+
+ /**
+ * Constructs a new Source.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.ISource);
+
+ /** Source storageSource. */
+ public storageSource?: (google.cloud.functions.v2.IStorageSource|null);
+
+ /** Source repoSource. */
+ public repoSource?: (google.cloud.functions.v2.IRepoSource|null);
+
+ /** Source source. */
+ public source?: ("storageSource"|"repoSource");
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Source instance
+ */
+ public static create(properties?: google.cloud.functions.v2.ISource): google.cloud.functions.v2.Source;
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.functions.v2.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.functions.v2.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.functions.v2.Source;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.functions.v2.Source;
+
+ /**
+ * Verifies a Source message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Source
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.Source;
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @param message Source
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.Source, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Source to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Source
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceProvenance. */
+ interface ISourceProvenance {
+
+ /** SourceProvenance resolvedStorageSource */
+ resolvedStorageSource?: (google.cloud.functions.v2.IStorageSource|null);
+
+ /** SourceProvenance resolvedRepoSource */
+ resolvedRepoSource?: (google.cloud.functions.v2.IRepoSource|null);
+ }
+
+ /** Represents a SourceProvenance. */
+ class SourceProvenance implements ISourceProvenance {
+
+ /**
+ * Constructs a new SourceProvenance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.ISourceProvenance);
+
+ /** SourceProvenance resolvedStorageSource. */
+ public resolvedStorageSource?: (google.cloud.functions.v2.IStorageSource|null);
+
+ /** SourceProvenance resolvedRepoSource. */
+ public resolvedRepoSource?: (google.cloud.functions.v2.IRepoSource|null);
+
+ /**
+ * Creates a new SourceProvenance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceProvenance instance
+ */
+ public static create(properties?: google.cloud.functions.v2.ISourceProvenance): google.cloud.functions.v2.SourceProvenance;
+
+ /**
+ * Encodes the specified SourceProvenance message. Does not implicitly {@link google.cloud.functions.v2.SourceProvenance.verify|verify} messages.
+ * @param message SourceProvenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.ISourceProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceProvenance message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SourceProvenance.verify|verify} messages.
+ * @param message SourceProvenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.ISourceProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceProvenance
+ * @throws {Error} If the payload is not 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.functions.v2.SourceProvenance;
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceProvenance
+ * @throws {Error} If the payload 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.functions.v2.SourceProvenance;
+
+ /**
+ * Verifies a SourceProvenance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceProvenance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceProvenance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.SourceProvenance;
+
+ /**
+ * Creates a plain object from a SourceProvenance message. Also converts values to other types if specified.
+ * @param message SourceProvenance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.SourceProvenance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceProvenance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceProvenance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BuildConfig. */
+ interface IBuildConfig {
+
+ /** BuildConfig build */
+ build?: (string|null);
+
+ /** BuildConfig runtime */
+ runtime?: (string|null);
+
+ /** BuildConfig entryPoint */
+ entryPoint?: (string|null);
+
+ /** BuildConfig source */
+ source?: (google.cloud.functions.v2.ISource|null);
+
+ /** BuildConfig sourceProvenance */
+ sourceProvenance?: (google.cloud.functions.v2.ISourceProvenance|null);
+
+ /** BuildConfig workerPool */
+ workerPool?: (string|null);
+
+ /** BuildConfig environmentVariables */
+ environmentVariables?: ({ [k: string]: string }|null);
+
+ /** BuildConfig dockerRepository */
+ dockerRepository?: (string|null);
+ }
+
+ /** Represents a BuildConfig. */
+ class BuildConfig implements IBuildConfig {
+
+ /**
+ * Constructs a new BuildConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IBuildConfig);
+
+ /** BuildConfig build. */
+ public build: string;
+
+ /** BuildConfig runtime. */
+ public runtime: string;
+
+ /** BuildConfig entryPoint. */
+ public entryPoint: string;
+
+ /** BuildConfig source. */
+ public source?: (google.cloud.functions.v2.ISource|null);
+
+ /** BuildConfig sourceProvenance. */
+ public sourceProvenance?: (google.cloud.functions.v2.ISourceProvenance|null);
+
+ /** BuildConfig workerPool. */
+ public workerPool: string;
+
+ /** BuildConfig environmentVariables. */
+ public environmentVariables: { [k: string]: string };
+
+ /** BuildConfig dockerRepository. */
+ public dockerRepository: string;
+
+ /**
+ * Creates a new BuildConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BuildConfig instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IBuildConfig): google.cloud.functions.v2.BuildConfig;
+
+ /**
+ * Encodes the specified BuildConfig message. Does not implicitly {@link google.cloud.functions.v2.BuildConfig.verify|verify} messages.
+ * @param message BuildConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IBuildConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BuildConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2.BuildConfig.verify|verify} messages.
+ * @param message BuildConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IBuildConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BuildConfig
+ * @throws {Error} If the payload is not 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.functions.v2.BuildConfig;
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BuildConfig
+ * @throws {Error} If the payload 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.functions.v2.BuildConfig;
+
+ /**
+ * Verifies a BuildConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BuildConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BuildConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.BuildConfig;
+
+ /**
+ * Creates a plain object from a BuildConfig message. Also converts values to other types if specified.
+ * @param message BuildConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.BuildConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BuildConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BuildConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceConfig. */
+ interface IServiceConfig {
+
+ /** ServiceConfig service */
+ service?: (string|null);
+
+ /** ServiceConfig timeoutSeconds */
+ timeoutSeconds?: (number|null);
+
+ /** ServiceConfig availableMemory */
+ availableMemory?: (string|null);
+
+ /** ServiceConfig environmentVariables */
+ environmentVariables?: ({ [k: string]: string }|null);
+
+ /** ServiceConfig maxInstanceCount */
+ maxInstanceCount?: (number|null);
+
+ /** ServiceConfig minInstanceCount */
+ minInstanceCount?: (number|null);
+
+ /** ServiceConfig vpcConnector */
+ vpcConnector?: (string|null);
+
+ /** ServiceConfig vpcConnectorEgressSettings */
+ vpcConnectorEgressSettings?: (google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings|null);
+
+ /** ServiceConfig ingressSettings */
+ ingressSettings?: (google.cloud.functions.v2.ServiceConfig.IngressSettings|keyof typeof google.cloud.functions.v2.ServiceConfig.IngressSettings|null);
+
+ /** ServiceConfig uri */
+ uri?: (string|null);
+
+ /** ServiceConfig serviceAccountEmail */
+ serviceAccountEmail?: (string|null);
+
+ /** ServiceConfig allTrafficOnLatestRevision */
+ allTrafficOnLatestRevision?: (boolean|null);
+
+ /** ServiceConfig secretEnvironmentVariables */
+ secretEnvironmentVariables?: (google.cloud.functions.v2.ISecretEnvVar[]|null);
+
+ /** ServiceConfig secretVolumes */
+ secretVolumes?: (google.cloud.functions.v2.ISecretVolume[]|null);
+
+ /** ServiceConfig revision */
+ revision?: (string|null);
+ }
+
+ /** Represents a ServiceConfig. */
+ class ServiceConfig implements IServiceConfig {
+
+ /**
+ * Constructs a new ServiceConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IServiceConfig);
+
+ /** ServiceConfig service. */
+ public service: string;
+
+ /** ServiceConfig timeoutSeconds. */
+ public timeoutSeconds: number;
+
+ /** ServiceConfig availableMemory. */
+ public availableMemory: string;
+
+ /** ServiceConfig environmentVariables. */
+ public environmentVariables: { [k: string]: string };
+
+ /** ServiceConfig maxInstanceCount. */
+ public maxInstanceCount: number;
+
+ /** ServiceConfig minInstanceCount. */
+ public minInstanceCount: number;
+
+ /** ServiceConfig vpcConnector. */
+ public vpcConnector: string;
+
+ /** ServiceConfig vpcConnectorEgressSettings. */
+ public vpcConnectorEgressSettings: (google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings);
+
+ /** ServiceConfig ingressSettings. */
+ public ingressSettings: (google.cloud.functions.v2.ServiceConfig.IngressSettings|keyof typeof google.cloud.functions.v2.ServiceConfig.IngressSettings);
+
+ /** ServiceConfig uri. */
+ public uri: string;
+
+ /** ServiceConfig serviceAccountEmail. */
+ public serviceAccountEmail: string;
+
+ /** ServiceConfig allTrafficOnLatestRevision. */
+ public allTrafficOnLatestRevision: boolean;
+
+ /** ServiceConfig secretEnvironmentVariables. */
+ public secretEnvironmentVariables: google.cloud.functions.v2.ISecretEnvVar[];
+
+ /** ServiceConfig secretVolumes. */
+ public secretVolumes: google.cloud.functions.v2.ISecretVolume[];
+
+ /** ServiceConfig revision. */
+ public revision: string;
+
+ /**
+ * Creates a new ServiceConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceConfig instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IServiceConfig): google.cloud.functions.v2.ServiceConfig;
+
+ /**
+ * Encodes the specified ServiceConfig message. Does not implicitly {@link google.cloud.functions.v2.ServiceConfig.verify|verify} messages.
+ * @param message ServiceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2.ServiceConfig.verify|verify} messages.
+ * @param message ServiceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceConfig
+ * @throws {Error} If the payload is not 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.functions.v2.ServiceConfig;
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceConfig
+ * @throws {Error} If the payload 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.functions.v2.ServiceConfig;
+
+ /**
+ * Verifies a ServiceConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.ServiceConfig;
+
+ /**
+ * Creates a plain object from a ServiceConfig message. Also converts values to other types if specified.
+ * @param message ServiceConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.ServiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ServiceConfig {
+
+ /** VpcConnectorEgressSettings enum. */
+ enum VpcConnectorEgressSettings {
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0,
+ PRIVATE_RANGES_ONLY = 1,
+ ALL_TRAFFIC = 2
+ }
+
+ /** IngressSettings enum. */
+ enum IngressSettings {
+ INGRESS_SETTINGS_UNSPECIFIED = 0,
+ ALLOW_ALL = 1,
+ ALLOW_INTERNAL_ONLY = 2,
+ ALLOW_INTERNAL_AND_GCLB = 3
+ }
+ }
+
+ /** Properties of a SecretEnvVar. */
+ interface ISecretEnvVar {
+
+ /** SecretEnvVar key */
+ key?: (string|null);
+
+ /** SecretEnvVar projectId */
+ projectId?: (string|null);
+
+ /** SecretEnvVar secret */
+ secret?: (string|null);
+
+ /** SecretEnvVar version */
+ version?: (string|null);
+ }
+
+ /** Represents a SecretEnvVar. */
+ class SecretEnvVar implements ISecretEnvVar {
+
+ /**
+ * Constructs a new SecretEnvVar.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.ISecretEnvVar);
+
+ /** SecretEnvVar key. */
+ public key: string;
+
+ /** SecretEnvVar projectId. */
+ public projectId: string;
+
+ /** SecretEnvVar secret. */
+ public secret: string;
+
+ /** SecretEnvVar version. */
+ public version: string;
+
+ /**
+ * Creates a new SecretEnvVar instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretEnvVar instance
+ */
+ public static create(properties?: google.cloud.functions.v2.ISecretEnvVar): google.cloud.functions.v2.SecretEnvVar;
+
+ /**
+ * Encodes the specified SecretEnvVar message. Does not implicitly {@link google.cloud.functions.v2.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretEnvVar message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload is not 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.functions.v2.SecretEnvVar;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload 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.functions.v2.SecretEnvVar;
+
+ /**
+ * Verifies a SecretEnvVar message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretEnvVar message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretEnvVar
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.SecretEnvVar;
+
+ /**
+ * Creates a plain object from a SecretEnvVar message. Also converts values to other types if specified.
+ * @param message SecretEnvVar
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.SecretEnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretEnvVar to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretEnvVar
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SecretVolume. */
+ interface ISecretVolume {
+
+ /** SecretVolume mountPath */
+ mountPath?: (string|null);
+
+ /** SecretVolume projectId */
+ projectId?: (string|null);
+
+ /** SecretVolume secret */
+ secret?: (string|null);
+
+ /** SecretVolume versions */
+ versions?: (google.cloud.functions.v2.SecretVolume.ISecretVersion[]|null);
+ }
+
+ /** Represents a SecretVolume. */
+ class SecretVolume implements ISecretVolume {
+
+ /**
+ * Constructs a new SecretVolume.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.ISecretVolume);
+
+ /** SecretVolume mountPath. */
+ public mountPath: string;
+
+ /** SecretVolume projectId. */
+ public projectId: string;
+
+ /** SecretVolume secret. */
+ public secret: string;
+
+ /** SecretVolume versions. */
+ public versions: google.cloud.functions.v2.SecretVolume.ISecretVersion[];
+
+ /**
+ * Creates a new SecretVolume instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVolume instance
+ */
+ public static create(properties?: google.cloud.functions.v2.ISecretVolume): google.cloud.functions.v2.SecretVolume;
+
+ /**
+ * Encodes the specified SecretVolume message. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVolume message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVolume
+ * @throws {Error} If the payload is not 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.functions.v2.SecretVolume;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVolume
+ * @throws {Error} If the payload 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.functions.v2.SecretVolume;
+
+ /**
+ * Verifies a SecretVolume message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVolume message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVolume
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.SecretVolume;
+
+ /**
+ * Creates a plain object from a SecretVolume message. Also converts values to other types if specified.
+ * @param message SecretVolume
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.SecretVolume, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVolume to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVolume
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SecretVolume {
+
+ /** Properties of a SecretVersion. */
+ interface ISecretVersion {
+
+ /** SecretVersion version */
+ version?: (string|null);
+
+ /** SecretVersion path */
+ path?: (string|null);
+ }
+
+ /** Represents a SecretVersion. */
+ class SecretVersion implements ISecretVersion {
+
+ /**
+ * Constructs a new SecretVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.SecretVolume.ISecretVersion);
+
+ /** SecretVersion version. */
+ public version: string;
+
+ /** SecretVersion path. */
+ public path: string;
+
+ /**
+ * Creates a new SecretVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVersion instance
+ */
+ public static create(properties?: google.cloud.functions.v2.SecretVolume.ISecretVersion): google.cloud.functions.v2.SecretVolume.SecretVersion;
+
+ /**
+ * Encodes the specified SecretVersion message. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVersion message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVersion
+ * @throws {Error} If the payload is not 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.functions.v2.SecretVolume.SecretVersion;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVersion
+ * @throws {Error} If the payload 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.functions.v2.SecretVolume.SecretVersion;
+
+ /**
+ * Verifies a SecretVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.SecretVolume.SecretVersion;
+
+ /**
+ * Creates a plain object from a SecretVersion message. Also converts values to other types if specified.
+ * @param message SecretVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.SecretVolume.SecretVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EventTrigger. */
+ interface IEventTrigger {
+
+ /** EventTrigger trigger */
+ trigger?: (string|null);
+
+ /** EventTrigger triggerRegion */
+ triggerRegion?: (string|null);
+
+ /** EventTrigger eventType */
+ eventType?: (string|null);
+
+ /** EventTrigger eventFilters */
+ eventFilters?: (google.cloud.functions.v2.IEventFilter[]|null);
+
+ /** EventTrigger pubsubTopic */
+ pubsubTopic?: (string|null);
+
+ /** EventTrigger serviceAccountEmail */
+ serviceAccountEmail?: (string|null);
+
+ /** EventTrigger retryPolicy */
+ retryPolicy?: (google.cloud.functions.v2.EventTrigger.RetryPolicy|keyof typeof google.cloud.functions.v2.EventTrigger.RetryPolicy|null);
+
+ /** EventTrigger channel */
+ channel?: (string|null);
+ }
+
+ /** Represents an EventTrigger. */
+ class EventTrigger implements IEventTrigger {
+
+ /**
+ * Constructs a new EventTrigger.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IEventTrigger);
+
+ /** EventTrigger trigger. */
+ public trigger: string;
+
+ /** EventTrigger triggerRegion. */
+ public triggerRegion: string;
+
+ /** EventTrigger eventType. */
+ public eventType: string;
+
+ /** EventTrigger eventFilters. */
+ public eventFilters: google.cloud.functions.v2.IEventFilter[];
+
+ /** EventTrigger pubsubTopic. */
+ public pubsubTopic: string;
+
+ /** EventTrigger serviceAccountEmail. */
+ public serviceAccountEmail: string;
+
+ /** EventTrigger retryPolicy. */
+ public retryPolicy: (google.cloud.functions.v2.EventTrigger.RetryPolicy|keyof typeof google.cloud.functions.v2.EventTrigger.RetryPolicy);
+
+ /** EventTrigger channel. */
+ public channel: string;
+
+ /**
+ * Creates a new EventTrigger instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventTrigger instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IEventTrigger): google.cloud.functions.v2.EventTrigger;
+
+ /**
+ * Encodes the specified EventTrigger message. Does not implicitly {@link google.cloud.functions.v2.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v2.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventTrigger
+ * @throws {Error} If the payload is not 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.functions.v2.EventTrigger;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventTrigger
+ * @throws {Error} If the payload 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.functions.v2.EventTrigger;
+
+ /**
+ * Verifies an EventTrigger message.
+ * @param message Plain 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 EventTrigger message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventTrigger
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.EventTrigger;
+
+ /**
+ * Creates a plain object from an EventTrigger message. Also converts values to other types if specified.
+ * @param message EventTrigger
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.EventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventTrigger to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventTrigger
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EventTrigger {
+
+ /** RetryPolicy enum. */
+ enum RetryPolicy {
+ RETRY_POLICY_UNSPECIFIED = 0,
+ RETRY_POLICY_DO_NOT_RETRY = 1,
+ RETRY_POLICY_RETRY = 2
+ }
+ }
+
+ /** 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.functions.v2.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.functions.v2.IEventFilter): google.cloud.functions.v2.EventFilter;
+
+ /**
+ * Encodes the specified EventFilter message. Does not implicitly {@link google.cloud.functions.v2.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.functions.v2.IEventFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventFilter message, length delimited. Does not implicitly {@link google.cloud.functions.v2.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.functions.v2.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.functions.v2.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.functions.v2.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.functions.v2.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.functions.v2.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 GetFunctionRequest. */
+ interface IGetFunctionRequest {
+
+ /** GetFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFunctionRequest. */
+ class GetFunctionRequest implements IGetFunctionRequest {
+
+ /**
+ * Constructs a new GetFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IGetFunctionRequest);
+
+ /** GetFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IGetFunctionRequest): google.cloud.functions.v2.GetFunctionRequest;
+
+ /**
+ * Encodes the specified GetFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2.GetFunctionRequest;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2.GetFunctionRequest;
+
+ /**
+ * Verifies a GetFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.GetFunctionRequest;
+
+ /**
+ * Creates a plain object from a GetFunctionRequest message. Also converts values to other types if specified.
+ * @param message GetFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.GetFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsRequest. */
+ interface IListFunctionsRequest {
+
+ /** ListFunctionsRequest parent */
+ parent?: (string|null);
+
+ /** ListFunctionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListFunctionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListFunctionsRequest filter */
+ filter?: (string|null);
+
+ /** ListFunctionsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListFunctionsRequest. */
+ class ListFunctionsRequest implements IListFunctionsRequest {
+
+ /**
+ * Constructs a new ListFunctionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IListFunctionsRequest);
+
+ /** ListFunctionsRequest parent. */
+ public parent: string;
+
+ /** ListFunctionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListFunctionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListFunctionsRequest filter. */
+ public filter: string;
+
+ /** ListFunctionsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListFunctionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IListFunctionsRequest): google.cloud.functions.v2.ListFunctionsRequest;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message. Does not implicitly {@link google.cloud.functions.v2.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload is not 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.functions.v2.ListFunctionsRequest;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload 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.functions.v2.ListFunctionsRequest;
+
+ /**
+ * Verifies a ListFunctionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.ListFunctionsRequest;
+
+ /**
+ * Creates a plain object from a ListFunctionsRequest message. Also converts values to other types if specified.
+ * @param message ListFunctionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.ListFunctionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsResponse. */
+ interface IListFunctionsResponse {
+
+ /** ListFunctionsResponse functions */
+ functions?: (google.cloud.functions.v2.IFunction[]|null);
+
+ /** ListFunctionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListFunctionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListFunctionsResponse. */
+ class ListFunctionsResponse implements IListFunctionsResponse {
+
+ /**
+ * Constructs a new ListFunctionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IListFunctionsResponse);
+
+ /** ListFunctionsResponse functions. */
+ public functions: google.cloud.functions.v2.IFunction[];
+
+ /** ListFunctionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListFunctionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListFunctionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IListFunctionsResponse): google.cloud.functions.v2.ListFunctionsResponse;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message. Does not implicitly {@link google.cloud.functions.v2.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload is not 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.functions.v2.ListFunctionsResponse;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload 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.functions.v2.ListFunctionsResponse;
+
+ /**
+ * Verifies a ListFunctionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.ListFunctionsResponse;
+
+ /**
+ * Creates a plain object from a ListFunctionsResponse message. Also converts values to other types if specified.
+ * @param message ListFunctionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.ListFunctionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateFunctionRequest. */
+ interface ICreateFunctionRequest {
+
+ /** CreateFunctionRequest parent */
+ parent?: (string|null);
+
+ /** CreateFunctionRequest function */
+ "function"?: (google.cloud.functions.v2.IFunction|null);
+
+ /** CreateFunctionRequest functionId */
+ functionId?: (string|null);
+ }
+
+ /** Represents a CreateFunctionRequest. */
+ class CreateFunctionRequest implements ICreateFunctionRequest {
+
+ /**
+ * Constructs a new CreateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.ICreateFunctionRequest);
+
+ /** CreateFunctionRequest parent. */
+ public parent: string;
+
+ /** CreateFunctionRequest function. */
+ public function?: (google.cloud.functions.v2.IFunction|null);
+
+ /** CreateFunctionRequest functionId. */
+ public functionId: string;
+
+ /**
+ * Creates a new CreateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.ICreateFunctionRequest): google.cloud.functions.v2.CreateFunctionRequest;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2.CreateFunctionRequest;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2.CreateFunctionRequest;
+
+ /**
+ * Verifies a CreateFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.CreateFunctionRequest;
+
+ /**
+ * Creates a plain object from a CreateFunctionRequest message. Also converts values to other types if specified.
+ * @param message CreateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.CreateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateFunctionRequest. */
+ interface IUpdateFunctionRequest {
+
+ /** UpdateFunctionRequest function */
+ "function"?: (google.cloud.functions.v2.IFunction|null);
+
+ /** UpdateFunctionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateFunctionRequest. */
+ class UpdateFunctionRequest implements IUpdateFunctionRequest {
+
+ /**
+ * Constructs a new UpdateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IUpdateFunctionRequest);
+
+ /** UpdateFunctionRequest function. */
+ public function?: (google.cloud.functions.v2.IFunction|null);
+
+ /** UpdateFunctionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IUpdateFunctionRequest): google.cloud.functions.v2.UpdateFunctionRequest;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2.UpdateFunctionRequest;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2.UpdateFunctionRequest;
+
+ /**
+ * Verifies an UpdateFunctionRequest message.
+ * @param message Plain 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 UpdateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.UpdateFunctionRequest;
+
+ /**
+ * Creates a plain object from an UpdateFunctionRequest message. Also converts values to other types if specified.
+ * @param message UpdateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.UpdateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteFunctionRequest. */
+ interface IDeleteFunctionRequest {
+
+ /** DeleteFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteFunctionRequest. */
+ class DeleteFunctionRequest implements IDeleteFunctionRequest {
+
+ /**
+ * Constructs a new DeleteFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IDeleteFunctionRequest);
+
+ /** DeleteFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IDeleteFunctionRequest): google.cloud.functions.v2.DeleteFunctionRequest;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2.DeleteFunctionRequest;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2.DeleteFunctionRequest;
+
+ /**
+ * Verifies a DeleteFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.DeleteFunctionRequest;
+
+ /**
+ * Creates a plain object from a DeleteFunctionRequest message. Also converts values to other types if specified.
+ * @param message DeleteFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.DeleteFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlRequest. */
+ interface IGenerateUploadUrlRequest {
+
+ /** GenerateUploadUrlRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a GenerateUploadUrlRequest. */
+ class GenerateUploadUrlRequest implements IGenerateUploadUrlRequest {
+
+ /**
+ * Constructs a new GenerateUploadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IGenerateUploadUrlRequest);
+
+ /** GenerateUploadUrlRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new GenerateUploadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IGenerateUploadUrlRequest): google.cloud.functions.v2.GenerateUploadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message. Does not implicitly {@link google.cloud.functions.v2.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v2.GenerateUploadUrlRequest;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload 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.functions.v2.GenerateUploadUrlRequest;
+
+ /**
+ * Verifies a GenerateUploadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.GenerateUploadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.GenerateUploadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlResponse. */
+ interface IGenerateUploadUrlResponse {
+
+ /** GenerateUploadUrlResponse uploadUrl */
+ uploadUrl?: (string|null);
+
+ /** GenerateUploadUrlResponse storageSource */
+ storageSource?: (google.cloud.functions.v2.IStorageSource|null);
+ }
+
+ /** Represents a GenerateUploadUrlResponse. */
+ class GenerateUploadUrlResponse implements IGenerateUploadUrlResponse {
+
+ /**
+ * Constructs a new GenerateUploadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IGenerateUploadUrlResponse);
+
+ /** GenerateUploadUrlResponse uploadUrl. */
+ public uploadUrl: string;
+
+ /** GenerateUploadUrlResponse storageSource. */
+ public storageSource?: (google.cloud.functions.v2.IStorageSource|null);
+
+ /**
+ * Creates a new GenerateUploadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IGenerateUploadUrlResponse): google.cloud.functions.v2.GenerateUploadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message. Does not implicitly {@link google.cloud.functions.v2.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v2.GenerateUploadUrlResponse;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload 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.functions.v2.GenerateUploadUrlResponse;
+
+ /**
+ * Verifies a GenerateUploadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.GenerateUploadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.GenerateUploadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlRequest. */
+ interface IGenerateDownloadUrlRequest {
+
+ /** GenerateDownloadUrlRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlRequest. */
+ class GenerateDownloadUrlRequest implements IGenerateDownloadUrlRequest {
+
+ /**
+ * Constructs a new GenerateDownloadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IGenerateDownloadUrlRequest);
+
+ /** GenerateDownloadUrlRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GenerateDownloadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IGenerateDownloadUrlRequest): google.cloud.functions.v2.GenerateDownloadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message. Does not implicitly {@link google.cloud.functions.v2.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v2.GenerateDownloadUrlRequest;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload 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.functions.v2.GenerateDownloadUrlRequest;
+
+ /**
+ * Verifies a GenerateDownloadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.GenerateDownloadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.GenerateDownloadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlResponse. */
+ interface IGenerateDownloadUrlResponse {
+
+ /** GenerateDownloadUrlResponse downloadUrl */
+ downloadUrl?: (string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlResponse. */
+ class GenerateDownloadUrlResponse implements IGenerateDownloadUrlResponse {
+
+ /**
+ * Constructs a new GenerateDownloadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IGenerateDownloadUrlResponse);
+
+ /** GenerateDownloadUrlResponse downloadUrl. */
+ public downloadUrl: string;
+
+ /**
+ * Creates a new GenerateDownloadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IGenerateDownloadUrlResponse): google.cloud.functions.v2.GenerateDownloadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message. Does not implicitly {@link google.cloud.functions.v2.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v2.GenerateDownloadUrlResponse;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload 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.functions.v2.GenerateDownloadUrlResponse;
+
+ /**
+ * Verifies a GenerateDownloadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.GenerateDownloadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.GenerateDownloadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimesRequest. */
+ interface IListRuntimesRequest {
+
+ /** ListRuntimesRequest parent */
+ parent?: (string|null);
+
+ /** ListRuntimesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListRuntimesRequest. */
+ class ListRuntimesRequest implements IListRuntimesRequest {
+
+ /**
+ * Constructs a new ListRuntimesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IListRuntimesRequest);
+
+ /** ListRuntimesRequest parent. */
+ public parent: string;
+
+ /** ListRuntimesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListRuntimesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimesRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IListRuntimesRequest): google.cloud.functions.v2.ListRuntimesRequest;
+
+ /**
+ * Encodes the specified ListRuntimesRequest message. Does not implicitly {@link google.cloud.functions.v2.ListRuntimesRequest.verify|verify} messages.
+ * @param message ListRuntimesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IListRuntimesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimesRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2.ListRuntimesRequest.verify|verify} messages.
+ * @param message ListRuntimesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IListRuntimesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimesRequest
+ * @throws {Error} If the payload is not 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.functions.v2.ListRuntimesRequest;
+
+ /**
+ * Decodes a ListRuntimesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimesRequest
+ * @throws {Error} If the payload 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.functions.v2.ListRuntimesRequest;
+
+ /**
+ * Verifies a ListRuntimesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.ListRuntimesRequest;
+
+ /**
+ * Creates a plain object from a ListRuntimesRequest message. Also converts values to other types if specified.
+ * @param message ListRuntimesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.ListRuntimesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimesResponse. */
+ interface IListRuntimesResponse {
+
+ /** ListRuntimesResponse runtimes */
+ runtimes?: (google.cloud.functions.v2.ListRuntimesResponse.IRuntime[]|null);
+ }
+
+ /** Represents a ListRuntimesResponse. */
+ class ListRuntimesResponse implements IListRuntimesResponse {
+
+ /**
+ * Constructs a new ListRuntimesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IListRuntimesResponse);
+
+ /** ListRuntimesResponse runtimes. */
+ public runtimes: google.cloud.functions.v2.ListRuntimesResponse.IRuntime[];
+
+ /**
+ * Creates a new ListRuntimesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimesResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IListRuntimesResponse): google.cloud.functions.v2.ListRuntimesResponse;
+
+ /**
+ * Encodes the specified ListRuntimesResponse message. Does not implicitly {@link google.cloud.functions.v2.ListRuntimesResponse.verify|verify} messages.
+ * @param message ListRuntimesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IListRuntimesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimesResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2.ListRuntimesResponse.verify|verify} messages.
+ * @param message ListRuntimesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IListRuntimesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimesResponse
+ * @throws {Error} If the payload is not 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.functions.v2.ListRuntimesResponse;
+
+ /**
+ * Decodes a ListRuntimesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimesResponse
+ * @throws {Error} If the payload 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.functions.v2.ListRuntimesResponse;
+
+ /**
+ * Verifies a ListRuntimesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.ListRuntimesResponse;
+
+ /**
+ * Creates a plain object from a ListRuntimesResponse message. Also converts values to other types if specified.
+ * @param message ListRuntimesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.ListRuntimesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ListRuntimesResponse {
+
+ /** Properties of a Runtime. */
+ interface IRuntime {
+
+ /** Runtime name */
+ name?: (string|null);
+
+ /** Runtime displayName */
+ displayName?: (string|null);
+
+ /** Runtime stage */
+ stage?: (google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage|keyof typeof google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage|null);
+
+ /** Runtime warnings */
+ warnings?: (string[]|null);
+
+ /** Runtime environment */
+ environment?: (google.cloud.functions.v2.Environment|keyof typeof google.cloud.functions.v2.Environment|null);
+ }
+
+ /** Represents a Runtime. */
+ class Runtime implements IRuntime {
+
+ /**
+ * Constructs a new Runtime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.ListRuntimesResponse.IRuntime);
+
+ /** Runtime name. */
+ public name: string;
+
+ /** Runtime displayName. */
+ public displayName: string;
+
+ /** Runtime stage. */
+ public stage: (google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage|keyof typeof google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage);
+
+ /** Runtime warnings. */
+ public warnings: string[];
+
+ /** Runtime environment. */
+ public environment: (google.cloud.functions.v2.Environment|keyof typeof google.cloud.functions.v2.Environment);
+
+ /**
+ * Creates a new Runtime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Runtime instance
+ */
+ public static create(properties?: google.cloud.functions.v2.ListRuntimesResponse.IRuntime): google.cloud.functions.v2.ListRuntimesResponse.Runtime;
+
+ /**
+ * Encodes the specified Runtime message. Does not implicitly {@link google.cloud.functions.v2.ListRuntimesResponse.Runtime.verify|verify} messages.
+ * @param message Runtime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.ListRuntimesResponse.IRuntime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Runtime message, length delimited. Does not implicitly {@link google.cloud.functions.v2.ListRuntimesResponse.Runtime.verify|verify} messages.
+ * @param message Runtime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.ListRuntimesResponse.IRuntime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Runtime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Runtime
+ * @throws {Error} If the payload is not 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.functions.v2.ListRuntimesResponse.Runtime;
+
+ /**
+ * Decodes a Runtime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Runtime
+ * @throws {Error} If the payload 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.functions.v2.ListRuntimesResponse.Runtime;
+
+ /**
+ * Verifies a Runtime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Runtime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Runtime
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.ListRuntimesResponse.Runtime;
+
+ /**
+ * Creates a plain object from a Runtime message. Also converts values to other types if specified.
+ * @param message Runtime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.ListRuntimesResponse.Runtime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Runtime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Runtime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RuntimeStage enum. */
+ enum RuntimeStage {
+ RUNTIME_STAGE_UNSPECIFIED = 0,
+ DEVELOPMENT = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5,
+ DECOMMISSIONED = 6
+ }
+ }
+
+ /** 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 statusDetail */
+ statusDetail?: (string|null);
+
+ /** OperationMetadata cancelRequested */
+ cancelRequested?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+
+ /** OperationMetadata requestResource */
+ requestResource?: (google.protobuf.IAny|null);
+
+ /** OperationMetadata stages */
+ stages?: (google.cloud.functions.v2.IStage[]|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.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 statusDetail. */
+ public statusDetail: string;
+
+ /** OperationMetadata cancelRequested. */
+ public cancelRequested: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /** OperationMetadata requestResource. */
+ public requestResource?: (google.protobuf.IAny|null);
+
+ /** OperationMetadata stages. */
+ public stages: google.cloud.functions.v2.IStage[];
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IOperationMetadata): google.cloud.functions.v2.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.functions.v2.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.functions.v2.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.functions.v2.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.functions.v2.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.functions.v2.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.functions.v2.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.functions.v2.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.functions.v2.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 Stage. */
+ interface IStage {
+
+ /** Stage name */
+ name?: (google.cloud.functions.v2.Stage.Name|keyof typeof google.cloud.functions.v2.Stage.Name|null);
+
+ /** Stage message */
+ message?: (string|null);
+
+ /** Stage state */
+ state?: (google.cloud.functions.v2.Stage.State|keyof typeof google.cloud.functions.v2.Stage.State|null);
+
+ /** Stage resource */
+ resource?: (string|null);
+
+ /** Stage resourceUri */
+ resourceUri?: (string|null);
+
+ /** Stage stateMessages */
+ stateMessages?: (google.cloud.functions.v2.IStateMessage[]|null);
+ }
+
+ /** Represents a Stage. */
+ class Stage implements IStage {
+
+ /**
+ * Constructs a new Stage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2.IStage);
+
+ /** Stage name. */
+ public name: (google.cloud.functions.v2.Stage.Name|keyof typeof google.cloud.functions.v2.Stage.Name);
+
+ /** Stage message. */
+ public message: string;
+
+ /** Stage state. */
+ public state: (google.cloud.functions.v2.Stage.State|keyof typeof google.cloud.functions.v2.Stage.State);
+
+ /** Stage resource. */
+ public resource: string;
+
+ /** Stage resourceUri. */
+ public resourceUri: string;
+
+ /** Stage stateMessages. */
+ public stateMessages: google.cloud.functions.v2.IStateMessage[];
+
+ /**
+ * Creates a new Stage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Stage instance
+ */
+ public static create(properties?: google.cloud.functions.v2.IStage): google.cloud.functions.v2.Stage;
+
+ /**
+ * Encodes the specified Stage message. Does not implicitly {@link google.cloud.functions.v2.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Stage message, length delimited. Does not implicitly {@link google.cloud.functions.v2.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Stage
+ * @throws {Error} If the payload is not 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.functions.v2.Stage;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Stage
+ * @throws {Error} If the payload 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.functions.v2.Stage;
+
+ /**
+ * Verifies a Stage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Stage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Stage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2.Stage;
+
+ /**
+ * Creates a plain object from a Stage message. Also converts values to other types if specified.
+ * @param message Stage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2.Stage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Stage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Stage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Stage {
+
+ /** Name enum. */
+ enum Name {
+ NAME_UNSPECIFIED = 0,
+ ARTIFACT_REGISTRY = 1,
+ BUILD = 2,
+ SERVICE = 3,
+ TRIGGER = 4,
+ SERVICE_ROLLBACK = 5,
+ TRIGGER_ROLLBACK = 6
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ NOT_STARTED = 1,
+ IN_PROGRESS = 2,
+ COMPLETE = 3
+ }
+ }
+ }
+
+ /** Namespace v2alpha. */
+ namespace v2alpha {
+
+ /** Represents a FunctionService */
+ class FunctionService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new FunctionService 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 FunctionService 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): FunctionService;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Function
+ */
+ public getFunction(request: google.cloud.functions.v2alpha.IGetFunctionRequest, callback: google.cloud.functions.v2alpha.FunctionService.GetFunctionCallback): void;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public getFunction(request: google.cloud.functions.v2alpha.IGetFunctionRequest): Promise;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFunctionsResponse
+ */
+ public listFunctions(request: google.cloud.functions.v2alpha.IListFunctionsRequest, callback: google.cloud.functions.v2alpha.FunctionService.ListFunctionsCallback): void;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @returns Promise
+ */
+ public listFunctions(request: google.cloud.functions.v2alpha.IListFunctionsRequest): Promise;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createFunction(request: google.cloud.functions.v2alpha.ICreateFunctionRequest, callback: google.cloud.functions.v2alpha.FunctionService.CreateFunctionCallback): void;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public createFunction(request: google.cloud.functions.v2alpha.ICreateFunctionRequest): Promise;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateFunction(request: google.cloud.functions.v2alpha.IUpdateFunctionRequest, callback: google.cloud.functions.v2alpha.FunctionService.UpdateFunctionCallback): void;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public updateFunction(request: google.cloud.functions.v2alpha.IUpdateFunctionRequest): Promise;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteFunction(request: google.cloud.functions.v2alpha.IDeleteFunctionRequest, callback: google.cloud.functions.v2alpha.FunctionService.DeleteFunctionCallback): void;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteFunction(request: google.cloud.functions.v2alpha.IDeleteFunctionRequest): Promise;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateUploadUrlResponse
+ */
+ public generateUploadUrl(request: google.cloud.functions.v2alpha.IGenerateUploadUrlRequest, callback: google.cloud.functions.v2alpha.FunctionService.GenerateUploadUrlCallback): void;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateUploadUrl(request: google.cloud.functions.v2alpha.IGenerateUploadUrlRequest): Promise;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateDownloadUrlResponse
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v2alpha.IGenerateDownloadUrlRequest, callback: google.cloud.functions.v2alpha.FunctionService.GenerateDownloadUrlCallback): void;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v2alpha.IGenerateDownloadUrlRequest): Promise;
+
+ /**
+ * Calls ListRuntimes.
+ * @param request ListRuntimesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRuntimesResponse
+ */
+ public listRuntimes(request: google.cloud.functions.v2alpha.IListRuntimesRequest, callback: google.cloud.functions.v2alpha.FunctionService.ListRuntimesCallback): void;
+
+ /**
+ * Calls ListRuntimes.
+ * @param request ListRuntimesRequest message or plain object
+ * @returns Promise
+ */
+ public listRuntimes(request: google.cloud.functions.v2alpha.IListRuntimesRequest): Promise;
+ }
+
+ namespace FunctionService {
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|getFunction}.
+ * @param error Error, if any
+ * @param [response] Function
+ */
+ type GetFunctionCallback = (error: (Error|null), response?: google.cloud.functions.v2alpha.Function) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|listFunctions}.
+ * @param error Error, if any
+ * @param [response] ListFunctionsResponse
+ */
+ type ListFunctionsCallback = (error: (Error|null), response?: google.cloud.functions.v2alpha.ListFunctionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|createFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|updateFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|deleteFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|generateUploadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateUploadUrlResponse
+ */
+ type GenerateUploadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v2alpha.GenerateUploadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|generateDownloadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateDownloadUrlResponse
+ */
+ type GenerateDownloadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2alpha.FunctionService|listRuntimes}.
+ * @param error Error, if any
+ * @param [response] ListRuntimesResponse
+ */
+ type ListRuntimesCallback = (error: (Error|null), response?: google.cloud.functions.v2alpha.ListRuntimesResponse) => void;
+ }
+
+ /** Environment enum. */
+ enum Environment {
+ ENVIRONMENT_UNSPECIFIED = 0,
+ GEN_1 = 1,
+ GEN_2 = 2
+ }
+
+ /** Properties of a Function. */
+ interface IFunction {
+
+ /** Function name */
+ name?: (string|null);
+
+ /** Function environment */
+ environment?: (google.cloud.functions.v2alpha.Environment|keyof typeof google.cloud.functions.v2alpha.Environment|null);
+
+ /** Function description */
+ description?: (string|null);
+
+ /** Function buildConfig */
+ buildConfig?: (google.cloud.functions.v2alpha.IBuildConfig|null);
+
+ /** Function serviceConfig */
+ serviceConfig?: (google.cloud.functions.v2alpha.IServiceConfig|null);
+
+ /** Function eventTrigger */
+ eventTrigger?: (google.cloud.functions.v2alpha.IEventTrigger|null);
+
+ /** Function state */
+ state?: (google.cloud.functions.v2alpha.Function.State|keyof typeof google.cloud.functions.v2alpha.Function.State|null);
+
+ /** Function updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Function labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Function stateMessages */
+ stateMessages?: (google.cloud.functions.v2alpha.IStateMessage[]|null);
+ }
+
+ /** Represents a Function. */
+ class Function implements IFunction {
+
+ /**
+ * Constructs a new Function.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IFunction);
+
+ /** Function name. */
+ public name: string;
+
+ /** Function environment. */
+ public environment: (google.cloud.functions.v2alpha.Environment|keyof typeof google.cloud.functions.v2alpha.Environment);
+
+ /** Function description. */
+ public description: string;
+
+ /** Function buildConfig. */
+ public buildConfig?: (google.cloud.functions.v2alpha.IBuildConfig|null);
+
+ /** Function serviceConfig. */
+ public serviceConfig?: (google.cloud.functions.v2alpha.IServiceConfig|null);
+
+ /** Function eventTrigger. */
+ public eventTrigger?: (google.cloud.functions.v2alpha.IEventTrigger|null);
+
+ /** Function state. */
+ public state: (google.cloud.functions.v2alpha.Function.State|keyof typeof google.cloud.functions.v2alpha.Function.State);
+
+ /** Function updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Function labels. */
+ public labels: { [k: string]: string };
+
+ /** Function stateMessages. */
+ public stateMessages: google.cloud.functions.v2alpha.IStateMessage[];
+
+ /**
+ * Creates a new Function instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Function instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IFunction): google.cloud.functions.v2alpha.Function;
+
+ /**
+ * Encodes the specified Function message. Does not implicitly {@link google.cloud.functions.v2alpha.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Function message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Function
+ * @throws {Error} If the payload is not 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.functions.v2alpha.Function;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Function
+ * @throws {Error} If the payload 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.functions.v2alpha.Function;
+
+ /**
+ * Verifies a Function message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Function message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Function
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.Function;
+
+ /**
+ * Creates a plain object from a Function message. Also converts values to other types if specified.
+ * @param message Function
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.Function, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Function to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Function
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Function {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ FAILED = 2,
+ DEPLOYING = 3,
+ DELETING = 4,
+ UNKNOWN = 5
+ }
+ }
+
+ /** Properties of a StateMessage. */
+ interface IStateMessage {
+
+ /** StateMessage severity */
+ severity?: (google.cloud.functions.v2alpha.StateMessage.Severity|keyof typeof google.cloud.functions.v2alpha.StateMessage.Severity|null);
+
+ /** StateMessage type */
+ type?: (string|null);
+
+ /** StateMessage message */
+ message?: (string|null);
+ }
+
+ /** Represents a StateMessage. */
+ class StateMessage implements IStateMessage {
+
+ /**
+ * Constructs a new StateMessage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IStateMessage);
+
+ /** StateMessage severity. */
+ public severity: (google.cloud.functions.v2alpha.StateMessage.Severity|keyof typeof google.cloud.functions.v2alpha.StateMessage.Severity);
+
+ /** StateMessage type. */
+ public type: string;
+
+ /** StateMessage message. */
+ public message: string;
+
+ /**
+ * Creates a new StateMessage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StateMessage instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IStateMessage): google.cloud.functions.v2alpha.StateMessage;
+
+ /**
+ * Encodes the specified StateMessage message. Does not implicitly {@link google.cloud.functions.v2alpha.StateMessage.verify|verify} messages.
+ * @param message StateMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IStateMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StateMessage message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.StateMessage.verify|verify} messages.
+ * @param message StateMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IStateMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StateMessage
+ * @throws {Error} If the payload is not 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.functions.v2alpha.StateMessage;
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StateMessage
+ * @throws {Error} If the payload 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.functions.v2alpha.StateMessage;
+
+ /**
+ * Verifies a StateMessage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StateMessage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StateMessage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.StateMessage;
+
+ /**
+ * Creates a plain object from a StateMessage message. Also converts values to other types if specified.
+ * @param message StateMessage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.StateMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StateMessage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StateMessage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StateMessage {
+
+ /** Severity enum. */
+ enum Severity {
+ SEVERITY_UNSPECIFIED = 0,
+ ERROR = 1,
+ WARNING = 2,
+ INFO = 3
+ }
+ }
+
+ /** Properties of a StorageSource. */
+ interface IStorageSource {
+
+ /** StorageSource bucket */
+ bucket?: (string|null);
+
+ /** StorageSource object */
+ object?: (string|null);
+
+ /** StorageSource generation */
+ generation?: (number|Long|string|null);
+ }
+
+ /** Represents a StorageSource. */
+ class StorageSource implements IStorageSource {
+
+ /**
+ * Constructs a new StorageSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IStorageSource);
+
+ /** StorageSource bucket. */
+ public bucket: string;
+
+ /** StorageSource object. */
+ public object: string;
+
+ /** StorageSource generation. */
+ public generation: (number|Long|string);
+
+ /**
+ * Creates a new StorageSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StorageSource instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IStorageSource): google.cloud.functions.v2alpha.StorageSource;
+
+ /**
+ * Encodes the specified StorageSource message. Does not implicitly {@link google.cloud.functions.v2alpha.StorageSource.verify|verify} messages.
+ * @param message StorageSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StorageSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.StorageSource.verify|verify} messages.
+ * @param message StorageSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StorageSource
+ * @throws {Error} If the payload is not 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.functions.v2alpha.StorageSource;
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StorageSource
+ * @throws {Error} If the payload 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.functions.v2alpha.StorageSource;
+
+ /**
+ * Verifies a StorageSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StorageSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StorageSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.StorageSource;
+
+ /**
+ * Creates a plain object from a StorageSource message. Also converts values to other types if specified.
+ * @param message StorageSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.StorageSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StorageSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StorageSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RepoSource. */
+ interface IRepoSource {
+
+ /** RepoSource branchName */
+ branchName?: (string|null);
+
+ /** RepoSource tagName */
+ tagName?: (string|null);
+
+ /** RepoSource commitSha */
+ commitSha?: (string|null);
+
+ /** RepoSource projectId */
+ projectId?: (string|null);
+
+ /** RepoSource repoName */
+ repoName?: (string|null);
+
+ /** RepoSource dir */
+ dir?: (string|null);
+
+ /** RepoSource invertRegex */
+ invertRegex?: (boolean|null);
+ }
+
+ /** Represents a RepoSource. */
+ class RepoSource implements IRepoSource {
+
+ /**
+ * Constructs a new RepoSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IRepoSource);
+
+ /** RepoSource branchName. */
+ public branchName?: (string|null);
+
+ /** RepoSource tagName. */
+ public tagName?: (string|null);
+
+ /** RepoSource commitSha. */
+ public commitSha?: (string|null);
+
+ /** RepoSource projectId. */
+ public projectId: string;
+
+ /** RepoSource repoName. */
+ public repoName: string;
+
+ /** RepoSource dir. */
+ public dir: string;
+
+ /** RepoSource invertRegex. */
+ public invertRegex: boolean;
+
+ /** RepoSource revision. */
+ public revision?: ("branchName"|"tagName"|"commitSha");
+
+ /**
+ * Creates a new RepoSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RepoSource instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IRepoSource): google.cloud.functions.v2alpha.RepoSource;
+
+ /**
+ * Encodes the specified RepoSource message. Does not implicitly {@link google.cloud.functions.v2alpha.RepoSource.verify|verify} messages.
+ * @param message RepoSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IRepoSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RepoSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.RepoSource.verify|verify} messages.
+ * @param message RepoSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IRepoSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RepoSource
+ * @throws {Error} If the payload is not 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.functions.v2alpha.RepoSource;
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RepoSource
+ * @throws {Error} If the payload 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.functions.v2alpha.RepoSource;
+
+ /**
+ * Verifies a RepoSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RepoSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RepoSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.RepoSource;
+
+ /**
+ * Creates a plain object from a RepoSource message. Also converts values to other types if specified.
+ * @param message RepoSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.RepoSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RepoSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RepoSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Source. */
+ interface ISource {
+
+ /** Source storageSource */
+ storageSource?: (google.cloud.functions.v2alpha.IStorageSource|null);
+
+ /** Source repoSource */
+ repoSource?: (google.cloud.functions.v2alpha.IRepoSource|null);
+ }
+
+ /** Represents a Source. */
+ class Source implements ISource {
+
+ /**
+ * Constructs a new Source.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.ISource);
+
+ /** Source storageSource. */
+ public storageSource?: (google.cloud.functions.v2alpha.IStorageSource|null);
+
+ /** Source repoSource. */
+ public repoSource?: (google.cloud.functions.v2alpha.IRepoSource|null);
+
+ /** Source source. */
+ public source?: ("storageSource"|"repoSource");
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Source instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.ISource): google.cloud.functions.v2alpha.Source;
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.functions.v2alpha.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.functions.v2alpha.Source;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.functions.v2alpha.Source;
+
+ /**
+ * Verifies a Source message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Source
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.Source;
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @param message Source
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.Source, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Source to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Source
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceProvenance. */
+ interface ISourceProvenance {
+
+ /** SourceProvenance resolvedStorageSource */
+ resolvedStorageSource?: (google.cloud.functions.v2alpha.IStorageSource|null);
+
+ /** SourceProvenance resolvedRepoSource */
+ resolvedRepoSource?: (google.cloud.functions.v2alpha.IRepoSource|null);
+ }
+
+ /** Represents a SourceProvenance. */
+ class SourceProvenance implements ISourceProvenance {
+
+ /**
+ * Constructs a new SourceProvenance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.ISourceProvenance);
+
+ /** SourceProvenance resolvedStorageSource. */
+ public resolvedStorageSource?: (google.cloud.functions.v2alpha.IStorageSource|null);
+
+ /** SourceProvenance resolvedRepoSource. */
+ public resolvedRepoSource?: (google.cloud.functions.v2alpha.IRepoSource|null);
+
+ /**
+ * Creates a new SourceProvenance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceProvenance instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.ISourceProvenance): google.cloud.functions.v2alpha.SourceProvenance;
+
+ /**
+ * Encodes the specified SourceProvenance message. Does not implicitly {@link google.cloud.functions.v2alpha.SourceProvenance.verify|verify} messages.
+ * @param message SourceProvenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.ISourceProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceProvenance message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.SourceProvenance.verify|verify} messages.
+ * @param message SourceProvenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.ISourceProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceProvenance
+ * @throws {Error} If the payload is not 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.functions.v2alpha.SourceProvenance;
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceProvenance
+ * @throws {Error} If the payload 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.functions.v2alpha.SourceProvenance;
+
+ /**
+ * Verifies a SourceProvenance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceProvenance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceProvenance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.SourceProvenance;
+
+ /**
+ * Creates a plain object from a SourceProvenance message. Also converts values to other types if specified.
+ * @param message SourceProvenance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.SourceProvenance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceProvenance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceProvenance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BuildConfig. */
+ interface IBuildConfig {
+
+ /** BuildConfig build */
+ build?: (string|null);
+
+ /** BuildConfig runtime */
+ runtime?: (string|null);
+
+ /** BuildConfig entryPoint */
+ entryPoint?: (string|null);
+
+ /** BuildConfig source */
+ source?: (google.cloud.functions.v2alpha.ISource|null);
+
+ /** BuildConfig sourceProvenance */
+ sourceProvenance?: (google.cloud.functions.v2alpha.ISourceProvenance|null);
+
+ /** BuildConfig workerPool */
+ workerPool?: (string|null);
+
+ /** BuildConfig environmentVariables */
+ environmentVariables?: ({ [k: string]: string }|null);
+
+ /** BuildConfig dockerRepository */
+ dockerRepository?: (string|null);
+ }
+
+ /** Represents a BuildConfig. */
+ class BuildConfig implements IBuildConfig {
+
+ /**
+ * Constructs a new BuildConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IBuildConfig);
+
+ /** BuildConfig build. */
+ public build: string;
+
+ /** BuildConfig runtime. */
+ public runtime: string;
+
+ /** BuildConfig entryPoint. */
+ public entryPoint: string;
+
+ /** BuildConfig source. */
+ public source?: (google.cloud.functions.v2alpha.ISource|null);
+
+ /** BuildConfig sourceProvenance. */
+ public sourceProvenance?: (google.cloud.functions.v2alpha.ISourceProvenance|null);
+
+ /** BuildConfig workerPool. */
+ public workerPool: string;
+
+ /** BuildConfig environmentVariables. */
+ public environmentVariables: { [k: string]: string };
+
+ /** BuildConfig dockerRepository. */
+ public dockerRepository: string;
+
+ /**
+ * Creates a new BuildConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BuildConfig instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IBuildConfig): google.cloud.functions.v2alpha.BuildConfig;
+
+ /**
+ * Encodes the specified BuildConfig message. Does not implicitly {@link google.cloud.functions.v2alpha.BuildConfig.verify|verify} messages.
+ * @param message BuildConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IBuildConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BuildConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.BuildConfig.verify|verify} messages.
+ * @param message BuildConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IBuildConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BuildConfig
+ * @throws {Error} If the payload is not 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.functions.v2alpha.BuildConfig;
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BuildConfig
+ * @throws {Error} If the payload 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.functions.v2alpha.BuildConfig;
+
+ /**
+ * Verifies a BuildConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BuildConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BuildConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.BuildConfig;
+
+ /**
+ * Creates a plain object from a BuildConfig message. Also converts values to other types if specified.
+ * @param message BuildConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.BuildConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BuildConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BuildConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceConfig. */
+ interface IServiceConfig {
+
+ /** ServiceConfig service */
+ service?: (string|null);
+
+ /** ServiceConfig timeoutSeconds */
+ timeoutSeconds?: (number|null);
+
+ /** ServiceConfig availableMemory */
+ availableMemory?: (string|null);
+
+ /** ServiceConfig environmentVariables */
+ environmentVariables?: ({ [k: string]: string }|null);
+
+ /** ServiceConfig maxInstanceCount */
+ maxInstanceCount?: (number|null);
+
+ /** ServiceConfig minInstanceCount */
+ minInstanceCount?: (number|null);
+
+ /** ServiceConfig vpcConnector */
+ vpcConnector?: (string|null);
+
+ /** ServiceConfig vpcConnectorEgressSettings */
+ vpcConnectorEgressSettings?: (google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings|null);
+
+ /** ServiceConfig ingressSettings */
+ ingressSettings?: (google.cloud.functions.v2alpha.ServiceConfig.IngressSettings|keyof typeof google.cloud.functions.v2alpha.ServiceConfig.IngressSettings|null);
+
+ /** ServiceConfig uri */
+ uri?: (string|null);
+
+ /** ServiceConfig serviceAccountEmail */
+ serviceAccountEmail?: (string|null);
+
+ /** ServiceConfig allTrafficOnLatestRevision */
+ allTrafficOnLatestRevision?: (boolean|null);
+
+ /** ServiceConfig secretEnvironmentVariables */
+ secretEnvironmentVariables?: (google.cloud.functions.v2alpha.ISecretEnvVar[]|null);
+
+ /** ServiceConfig secretVolumes */
+ secretVolumes?: (google.cloud.functions.v2alpha.ISecretVolume[]|null);
+
+ /** ServiceConfig revision */
+ revision?: (string|null);
+ }
+
+ /** Represents a ServiceConfig. */
+ class ServiceConfig implements IServiceConfig {
+
+ /**
+ * Constructs a new ServiceConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IServiceConfig);
+
+ /** ServiceConfig service. */
+ public service: string;
+
+ /** ServiceConfig timeoutSeconds. */
+ public timeoutSeconds: number;
+
+ /** ServiceConfig availableMemory. */
+ public availableMemory: string;
+
+ /** ServiceConfig environmentVariables. */
+ public environmentVariables: { [k: string]: string };
+
+ /** ServiceConfig maxInstanceCount. */
+ public maxInstanceCount: number;
+
+ /** ServiceConfig minInstanceCount. */
+ public minInstanceCount: number;
+
+ /** ServiceConfig vpcConnector. */
+ public vpcConnector: string;
+
+ /** ServiceConfig vpcConnectorEgressSettings. */
+ public vpcConnectorEgressSettings: (google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings);
+
+ /** ServiceConfig ingressSettings. */
+ public ingressSettings: (google.cloud.functions.v2alpha.ServiceConfig.IngressSettings|keyof typeof google.cloud.functions.v2alpha.ServiceConfig.IngressSettings);
+
+ /** ServiceConfig uri. */
+ public uri: string;
+
+ /** ServiceConfig serviceAccountEmail. */
+ public serviceAccountEmail: string;
+
+ /** ServiceConfig allTrafficOnLatestRevision. */
+ public allTrafficOnLatestRevision: boolean;
+
+ /** ServiceConfig secretEnvironmentVariables. */
+ public secretEnvironmentVariables: google.cloud.functions.v2alpha.ISecretEnvVar[];
+
+ /** ServiceConfig secretVolumes. */
+ public secretVolumes: google.cloud.functions.v2alpha.ISecretVolume[];
+
+ /** ServiceConfig revision. */
+ public revision: string;
+
+ /**
+ * Creates a new ServiceConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceConfig instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IServiceConfig): google.cloud.functions.v2alpha.ServiceConfig;
+
+ /**
+ * Encodes the specified ServiceConfig message. Does not implicitly {@link google.cloud.functions.v2alpha.ServiceConfig.verify|verify} messages.
+ * @param message ServiceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.ServiceConfig.verify|verify} messages.
+ * @param message ServiceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceConfig
+ * @throws {Error} If the payload is not 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.functions.v2alpha.ServiceConfig;
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceConfig
+ * @throws {Error} If the payload 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.functions.v2alpha.ServiceConfig;
+
+ /**
+ * Verifies a ServiceConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.ServiceConfig;
+
+ /**
+ * Creates a plain object from a ServiceConfig message. Also converts values to other types if specified.
+ * @param message ServiceConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.ServiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ServiceConfig {
+
+ /** VpcConnectorEgressSettings enum. */
+ enum VpcConnectorEgressSettings {
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0,
+ PRIVATE_RANGES_ONLY = 1,
+ ALL_TRAFFIC = 2
+ }
+
+ /** IngressSettings enum. */
+ enum IngressSettings {
+ INGRESS_SETTINGS_UNSPECIFIED = 0,
+ ALLOW_ALL = 1,
+ ALLOW_INTERNAL_ONLY = 2,
+ ALLOW_INTERNAL_AND_GCLB = 3
+ }
+ }
+
+ /** Properties of a SecretEnvVar. */
+ interface ISecretEnvVar {
+
+ /** SecretEnvVar key */
+ key?: (string|null);
+
+ /** SecretEnvVar projectId */
+ projectId?: (string|null);
+
+ /** SecretEnvVar secret */
+ secret?: (string|null);
+
+ /** SecretEnvVar version */
+ version?: (string|null);
+ }
+
+ /** Represents a SecretEnvVar. */
+ class SecretEnvVar implements ISecretEnvVar {
+
+ /**
+ * Constructs a new SecretEnvVar.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.ISecretEnvVar);
+
+ /** SecretEnvVar key. */
+ public key: string;
+
+ /** SecretEnvVar projectId. */
+ public projectId: string;
+
+ /** SecretEnvVar secret. */
+ public secret: string;
+
+ /** SecretEnvVar version. */
+ public version: string;
+
+ /**
+ * Creates a new SecretEnvVar instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretEnvVar instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.ISecretEnvVar): google.cloud.functions.v2alpha.SecretEnvVar;
+
+ /**
+ * Encodes the specified SecretEnvVar message. Does not implicitly {@link google.cloud.functions.v2alpha.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretEnvVar message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload is not 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.functions.v2alpha.SecretEnvVar;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload 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.functions.v2alpha.SecretEnvVar;
+
+ /**
+ * Verifies a SecretEnvVar message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretEnvVar message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretEnvVar
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.SecretEnvVar;
+
+ /**
+ * Creates a plain object from a SecretEnvVar message. Also converts values to other types if specified.
+ * @param message SecretEnvVar
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.SecretEnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretEnvVar to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretEnvVar
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SecretVolume. */
+ interface ISecretVolume {
+
+ /** SecretVolume mountPath */
+ mountPath?: (string|null);
+
+ /** SecretVolume projectId */
+ projectId?: (string|null);
+
+ /** SecretVolume secret */
+ secret?: (string|null);
+
+ /** SecretVolume versions */
+ versions?: (google.cloud.functions.v2alpha.SecretVolume.ISecretVersion[]|null);
+ }
+
+ /** Represents a SecretVolume. */
+ class SecretVolume implements ISecretVolume {
+
+ /**
+ * Constructs a new SecretVolume.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.ISecretVolume);
+
+ /** SecretVolume mountPath. */
+ public mountPath: string;
+
+ /** SecretVolume projectId. */
+ public projectId: string;
+
+ /** SecretVolume secret. */
+ public secret: string;
+
+ /** SecretVolume versions. */
+ public versions: google.cloud.functions.v2alpha.SecretVolume.ISecretVersion[];
+
+ /**
+ * Creates a new SecretVolume instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVolume instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.ISecretVolume): google.cloud.functions.v2alpha.SecretVolume;
+
+ /**
+ * Encodes the specified SecretVolume message. Does not implicitly {@link google.cloud.functions.v2alpha.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVolume message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVolume
+ * @throws {Error} If the payload is not 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.functions.v2alpha.SecretVolume;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVolume
+ * @throws {Error} If the payload 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.functions.v2alpha.SecretVolume;
+
+ /**
+ * Verifies a SecretVolume message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVolume message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVolume
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.SecretVolume;
+
+ /**
+ * Creates a plain object from a SecretVolume message. Also converts values to other types if specified.
+ * @param message SecretVolume
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.SecretVolume, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVolume to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVolume
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SecretVolume {
+
+ /** Properties of a SecretVersion. */
+ interface ISecretVersion {
+
+ /** SecretVersion version */
+ version?: (string|null);
+
+ /** SecretVersion path */
+ path?: (string|null);
+ }
+
+ /** Represents a SecretVersion. */
+ class SecretVersion implements ISecretVersion {
+
+ /**
+ * Constructs a new SecretVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.SecretVolume.ISecretVersion);
+
+ /** SecretVersion version. */
+ public version: string;
+
+ /** SecretVersion path. */
+ public path: string;
+
+ /**
+ * Creates a new SecretVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVersion instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.SecretVolume.ISecretVersion): google.cloud.functions.v2alpha.SecretVolume.SecretVersion;
+
+ /**
+ * Encodes the specified SecretVersion message. Does not implicitly {@link google.cloud.functions.v2alpha.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVersion message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVersion
+ * @throws {Error} If the payload is not 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.functions.v2alpha.SecretVolume.SecretVersion;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVersion
+ * @throws {Error} If the payload 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.functions.v2alpha.SecretVolume.SecretVersion;
+
+ /**
+ * Verifies a SecretVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.SecretVolume.SecretVersion;
+
+ /**
+ * Creates a plain object from a SecretVersion message. Also converts values to other types if specified.
+ * @param message SecretVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.SecretVolume.SecretVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EventTrigger. */
+ interface IEventTrigger {
+
+ /** EventTrigger trigger */
+ trigger?: (string|null);
+
+ /** EventTrigger triggerRegion */
+ triggerRegion?: (string|null);
+
+ /** EventTrigger eventType */
+ eventType?: (string|null);
+
+ /** EventTrigger eventFilters */
+ eventFilters?: (google.cloud.functions.v2alpha.IEventFilter[]|null);
+
+ /** EventTrigger pubsubTopic */
+ pubsubTopic?: (string|null);
+
+ /** EventTrigger serviceAccountEmail */
+ serviceAccountEmail?: (string|null);
+
+ /** EventTrigger retryPolicy */
+ retryPolicy?: (google.cloud.functions.v2alpha.EventTrigger.RetryPolicy|keyof typeof google.cloud.functions.v2alpha.EventTrigger.RetryPolicy|null);
+
+ /** EventTrigger channel */
+ channel?: (string|null);
+ }
+
+ /** Represents an EventTrigger. */
+ class EventTrigger implements IEventTrigger {
+
+ /**
+ * Constructs a new EventTrigger.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IEventTrigger);
+
+ /** EventTrigger trigger. */
+ public trigger: string;
+
+ /** EventTrigger triggerRegion. */
+ public triggerRegion: string;
+
+ /** EventTrigger eventType. */
+ public eventType: string;
+
+ /** EventTrigger eventFilters. */
+ public eventFilters: google.cloud.functions.v2alpha.IEventFilter[];
+
+ /** EventTrigger pubsubTopic. */
+ public pubsubTopic: string;
+
+ /** EventTrigger serviceAccountEmail. */
+ public serviceAccountEmail: string;
+
+ /** EventTrigger retryPolicy. */
+ public retryPolicy: (google.cloud.functions.v2alpha.EventTrigger.RetryPolicy|keyof typeof google.cloud.functions.v2alpha.EventTrigger.RetryPolicy);
+
+ /** EventTrigger channel. */
+ public channel: string;
+
+ /**
+ * Creates a new EventTrigger instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventTrigger instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IEventTrigger): google.cloud.functions.v2alpha.EventTrigger;
+
+ /**
+ * Encodes the specified EventTrigger message. Does not implicitly {@link google.cloud.functions.v2alpha.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventTrigger
+ * @throws {Error} If the payload is not 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.functions.v2alpha.EventTrigger;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventTrigger
+ * @throws {Error} If the payload 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.functions.v2alpha.EventTrigger;
+
+ /**
+ * Verifies an EventTrigger message.
+ * @param message Plain 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 EventTrigger message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventTrigger
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.EventTrigger;
+
+ /**
+ * Creates a plain object from an EventTrigger message. Also converts values to other types if specified.
+ * @param message EventTrigger
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.EventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventTrigger to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventTrigger
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EventTrigger {
+
+ /** RetryPolicy enum. */
+ enum RetryPolicy {
+ RETRY_POLICY_UNSPECIFIED = 0,
+ RETRY_POLICY_DO_NOT_RETRY = 1,
+ RETRY_POLICY_RETRY = 2
+ }
+ }
+
+ /** 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.functions.v2alpha.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.functions.v2alpha.IEventFilter): google.cloud.functions.v2alpha.EventFilter;
+
+ /**
+ * Encodes the specified EventFilter message. Does not implicitly {@link google.cloud.functions.v2alpha.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.functions.v2alpha.IEventFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventFilter message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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 GetFunctionRequest. */
+ interface IGetFunctionRequest {
+
+ /** GetFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFunctionRequest. */
+ class GetFunctionRequest implements IGetFunctionRequest {
+
+ /**
+ * Constructs a new GetFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IGetFunctionRequest);
+
+ /** GetFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IGetFunctionRequest): google.cloud.functions.v2alpha.GetFunctionRequest;
+
+ /**
+ * Encodes the specified GetFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.GetFunctionRequest;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.GetFunctionRequest;
+
+ /**
+ * Verifies a GetFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.GetFunctionRequest;
+
+ /**
+ * Creates a plain object from a GetFunctionRequest message. Also converts values to other types if specified.
+ * @param message GetFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.GetFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsRequest. */
+ interface IListFunctionsRequest {
+
+ /** ListFunctionsRequest parent */
+ parent?: (string|null);
+
+ /** ListFunctionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListFunctionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListFunctionsRequest filter */
+ filter?: (string|null);
+
+ /** ListFunctionsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListFunctionsRequest. */
+ class ListFunctionsRequest implements IListFunctionsRequest {
+
+ /**
+ * Constructs a new ListFunctionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IListFunctionsRequest);
+
+ /** ListFunctionsRequest parent. */
+ public parent: string;
+
+ /** ListFunctionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListFunctionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListFunctionsRequest filter. */
+ public filter: string;
+
+ /** ListFunctionsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListFunctionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IListFunctionsRequest): google.cloud.functions.v2alpha.ListFunctionsRequest;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.ListFunctionsRequest;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.ListFunctionsRequest;
+
+ /**
+ * Verifies a ListFunctionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.ListFunctionsRequest;
+
+ /**
+ * Creates a plain object from a ListFunctionsRequest message. Also converts values to other types if specified.
+ * @param message ListFunctionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.ListFunctionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsResponse. */
+ interface IListFunctionsResponse {
+
+ /** ListFunctionsResponse functions */
+ functions?: (google.cloud.functions.v2alpha.IFunction[]|null);
+
+ /** ListFunctionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListFunctionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListFunctionsResponse. */
+ class ListFunctionsResponse implements IListFunctionsResponse {
+
+ /**
+ * Constructs a new ListFunctionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IListFunctionsResponse);
+
+ /** ListFunctionsResponse functions. */
+ public functions: google.cloud.functions.v2alpha.IFunction[];
+
+ /** ListFunctionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListFunctionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListFunctionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IListFunctionsResponse): google.cloud.functions.v2alpha.ListFunctionsResponse;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message. Does not implicitly {@link google.cloud.functions.v2alpha.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload is not 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.functions.v2alpha.ListFunctionsResponse;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload 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.functions.v2alpha.ListFunctionsResponse;
+
+ /**
+ * Verifies a ListFunctionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.ListFunctionsResponse;
+
+ /**
+ * Creates a plain object from a ListFunctionsResponse message. Also converts values to other types if specified.
+ * @param message ListFunctionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.ListFunctionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateFunctionRequest. */
+ interface ICreateFunctionRequest {
+
+ /** CreateFunctionRequest parent */
+ parent?: (string|null);
+
+ /** CreateFunctionRequest function */
+ "function"?: (google.cloud.functions.v2alpha.IFunction|null);
+
+ /** CreateFunctionRequest functionId */
+ functionId?: (string|null);
+ }
+
+ /** Represents a CreateFunctionRequest. */
+ class CreateFunctionRequest implements ICreateFunctionRequest {
+
+ /**
+ * Constructs a new CreateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.ICreateFunctionRequest);
+
+ /** CreateFunctionRequest parent. */
+ public parent: string;
+
+ /** CreateFunctionRequest function. */
+ public function?: (google.cloud.functions.v2alpha.IFunction|null);
+
+ /** CreateFunctionRequest functionId. */
+ public functionId: string;
+
+ /**
+ * Creates a new CreateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.ICreateFunctionRequest): google.cloud.functions.v2alpha.CreateFunctionRequest;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.CreateFunctionRequest;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.CreateFunctionRequest;
+
+ /**
+ * Verifies a CreateFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.CreateFunctionRequest;
+
+ /**
+ * Creates a plain object from a CreateFunctionRequest message. Also converts values to other types if specified.
+ * @param message CreateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.CreateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateFunctionRequest. */
+ interface IUpdateFunctionRequest {
+
+ /** UpdateFunctionRequest function */
+ "function"?: (google.cloud.functions.v2alpha.IFunction|null);
+
+ /** UpdateFunctionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateFunctionRequest. */
+ class UpdateFunctionRequest implements IUpdateFunctionRequest {
+
+ /**
+ * Constructs a new UpdateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IUpdateFunctionRequest);
+
+ /** UpdateFunctionRequest function. */
+ public function?: (google.cloud.functions.v2alpha.IFunction|null);
+
+ /** UpdateFunctionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IUpdateFunctionRequest): google.cloud.functions.v2alpha.UpdateFunctionRequest;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.UpdateFunctionRequest;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.UpdateFunctionRequest;
+
+ /**
+ * Verifies an UpdateFunctionRequest message.
+ * @param message Plain 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 UpdateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.UpdateFunctionRequest;
+
+ /**
+ * Creates a plain object from an UpdateFunctionRequest message. Also converts values to other types if specified.
+ * @param message UpdateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.UpdateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteFunctionRequest. */
+ interface IDeleteFunctionRequest {
+
+ /** DeleteFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteFunctionRequest. */
+ class DeleteFunctionRequest implements IDeleteFunctionRequest {
+
+ /**
+ * Constructs a new DeleteFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IDeleteFunctionRequest);
+
+ /** DeleteFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IDeleteFunctionRequest): google.cloud.functions.v2alpha.DeleteFunctionRequest;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.DeleteFunctionRequest;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.DeleteFunctionRequest;
+
+ /**
+ * Verifies a DeleteFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.DeleteFunctionRequest;
+
+ /**
+ * Creates a plain object from a DeleteFunctionRequest message. Also converts values to other types if specified.
+ * @param message DeleteFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.DeleteFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlRequest. */
+ interface IGenerateUploadUrlRequest {
+
+ /** GenerateUploadUrlRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a GenerateUploadUrlRequest. */
+ class GenerateUploadUrlRequest implements IGenerateUploadUrlRequest {
+
+ /**
+ * Constructs a new GenerateUploadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IGenerateUploadUrlRequest);
+
+ /** GenerateUploadUrlRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new GenerateUploadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IGenerateUploadUrlRequest): google.cloud.functions.v2alpha.GenerateUploadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.GenerateUploadUrlRequest;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.GenerateUploadUrlRequest;
+
+ /**
+ * Verifies a GenerateUploadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.GenerateUploadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.GenerateUploadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlResponse. */
+ interface IGenerateUploadUrlResponse {
+
+ /** GenerateUploadUrlResponse uploadUrl */
+ uploadUrl?: (string|null);
+
+ /** GenerateUploadUrlResponse storageSource */
+ storageSource?: (google.cloud.functions.v2alpha.IStorageSource|null);
+ }
+
+ /** Represents a GenerateUploadUrlResponse. */
+ class GenerateUploadUrlResponse implements IGenerateUploadUrlResponse {
+
+ /**
+ * Constructs a new GenerateUploadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IGenerateUploadUrlResponse);
+
+ /** GenerateUploadUrlResponse uploadUrl. */
+ public uploadUrl: string;
+
+ /** GenerateUploadUrlResponse storageSource. */
+ public storageSource?: (google.cloud.functions.v2alpha.IStorageSource|null);
+
+ /**
+ * Creates a new GenerateUploadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IGenerateUploadUrlResponse): google.cloud.functions.v2alpha.GenerateUploadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v2alpha.GenerateUploadUrlResponse;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload 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.functions.v2alpha.GenerateUploadUrlResponse;
+
+ /**
+ * Verifies a GenerateUploadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.GenerateUploadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.GenerateUploadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlRequest. */
+ interface IGenerateDownloadUrlRequest {
+
+ /** GenerateDownloadUrlRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlRequest. */
+ class GenerateDownloadUrlRequest implements IGenerateDownloadUrlRequest {
+
+ /**
+ * Constructs a new GenerateDownloadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IGenerateDownloadUrlRequest);
+
+ /** GenerateDownloadUrlRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GenerateDownloadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IGenerateDownloadUrlRequest): google.cloud.functions.v2alpha.GenerateDownloadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.GenerateDownloadUrlRequest;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.GenerateDownloadUrlRequest;
+
+ /**
+ * Verifies a GenerateDownloadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.GenerateDownloadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlResponse. */
+ interface IGenerateDownloadUrlResponse {
+
+ /** GenerateDownloadUrlResponse downloadUrl */
+ downloadUrl?: (string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlResponse. */
+ class GenerateDownloadUrlResponse implements IGenerateDownloadUrlResponse {
+
+ /**
+ * Constructs a new GenerateDownloadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IGenerateDownloadUrlResponse);
+
+ /** GenerateDownloadUrlResponse downloadUrl. */
+ public downloadUrl: string;
+
+ /**
+ * Creates a new GenerateDownloadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IGenerateDownloadUrlResponse): google.cloud.functions.v2alpha.GenerateDownloadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v2alpha.GenerateDownloadUrlResponse;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload 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.functions.v2alpha.GenerateDownloadUrlResponse;
+
+ /**
+ * Verifies a GenerateDownloadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.GenerateDownloadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.GenerateDownloadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimesRequest. */
+ interface IListRuntimesRequest {
+
+ /** ListRuntimesRequest parent */
+ parent?: (string|null);
+
+ /** ListRuntimesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListRuntimesRequest. */
+ class ListRuntimesRequest implements IListRuntimesRequest {
+
+ /**
+ * Constructs a new ListRuntimesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IListRuntimesRequest);
+
+ /** ListRuntimesRequest parent. */
+ public parent: string;
+
+ /** ListRuntimesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListRuntimesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimesRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IListRuntimesRequest): google.cloud.functions.v2alpha.ListRuntimesRequest;
+
+ /**
+ * Encodes the specified ListRuntimesRequest message. Does not implicitly {@link google.cloud.functions.v2alpha.ListRuntimesRequest.verify|verify} messages.
+ * @param message ListRuntimesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IListRuntimesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimesRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.ListRuntimesRequest.verify|verify} messages.
+ * @param message ListRuntimesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IListRuntimesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimesRequest
+ * @throws {Error} If the payload is not 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.functions.v2alpha.ListRuntimesRequest;
+
+ /**
+ * Decodes a ListRuntimesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimesRequest
+ * @throws {Error} If the payload 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.functions.v2alpha.ListRuntimesRequest;
+
+ /**
+ * Verifies a ListRuntimesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.ListRuntimesRequest;
+
+ /**
+ * Creates a plain object from a ListRuntimesRequest message. Also converts values to other types if specified.
+ * @param message ListRuntimesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.ListRuntimesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimesResponse. */
+ interface IListRuntimesResponse {
+
+ /** ListRuntimesResponse runtimes */
+ runtimes?: (google.cloud.functions.v2alpha.ListRuntimesResponse.IRuntime[]|null);
+ }
+
+ /** Represents a ListRuntimesResponse. */
+ class ListRuntimesResponse implements IListRuntimesResponse {
+
+ /**
+ * Constructs a new ListRuntimesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IListRuntimesResponse);
+
+ /** ListRuntimesResponse runtimes. */
+ public runtimes: google.cloud.functions.v2alpha.ListRuntimesResponse.IRuntime[];
+
+ /**
+ * Creates a new ListRuntimesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimesResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IListRuntimesResponse): google.cloud.functions.v2alpha.ListRuntimesResponse;
+
+ /**
+ * Encodes the specified ListRuntimesResponse message. Does not implicitly {@link google.cloud.functions.v2alpha.ListRuntimesResponse.verify|verify} messages.
+ * @param message ListRuntimesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IListRuntimesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimesResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.ListRuntimesResponse.verify|verify} messages.
+ * @param message ListRuntimesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IListRuntimesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimesResponse
+ * @throws {Error} If the payload is not 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.functions.v2alpha.ListRuntimesResponse;
+
+ /**
+ * Decodes a ListRuntimesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimesResponse
+ * @throws {Error} If the payload 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.functions.v2alpha.ListRuntimesResponse;
+
+ /**
+ * Verifies a ListRuntimesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.ListRuntimesResponse;
+
+ /**
+ * Creates a plain object from a ListRuntimesResponse message. Also converts values to other types if specified.
+ * @param message ListRuntimesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.ListRuntimesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ListRuntimesResponse {
+
+ /** Properties of a Runtime. */
+ interface IRuntime {
+
+ /** Runtime name */
+ name?: (string|null);
+
+ /** Runtime displayName */
+ displayName?: (string|null);
+
+ /** Runtime stage */
+ stage?: (google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage|keyof typeof google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage|null);
+
+ /** Runtime warnings */
+ warnings?: (string[]|null);
+
+ /** Runtime environment */
+ environment?: (google.cloud.functions.v2alpha.Environment|keyof typeof google.cloud.functions.v2alpha.Environment|null);
+ }
+
+ /** Represents a Runtime. */
+ class Runtime implements IRuntime {
+
+ /**
+ * Constructs a new Runtime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.ListRuntimesResponse.IRuntime);
+
+ /** Runtime name. */
+ public name: string;
+
+ /** Runtime displayName. */
+ public displayName: string;
+
+ /** Runtime stage. */
+ public stage: (google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage|keyof typeof google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage);
+
+ /** Runtime warnings. */
+ public warnings: string[];
+
+ /** Runtime environment. */
+ public environment: (google.cloud.functions.v2alpha.Environment|keyof typeof google.cloud.functions.v2alpha.Environment);
+
+ /**
+ * Creates a new Runtime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Runtime instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.ListRuntimesResponse.IRuntime): google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime;
+
+ /**
+ * Encodes the specified Runtime message. Does not implicitly {@link google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.verify|verify} messages.
+ * @param message Runtime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.ListRuntimesResponse.IRuntime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Runtime message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.verify|verify} messages.
+ * @param message Runtime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.ListRuntimesResponse.IRuntime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Runtime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Runtime
+ * @throws {Error} If the payload is not 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.functions.v2alpha.ListRuntimesResponse.Runtime;
+
+ /**
+ * Decodes a Runtime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Runtime
+ * @throws {Error} If the payload 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.functions.v2alpha.ListRuntimesResponse.Runtime;
+
+ /**
+ * Verifies a Runtime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Runtime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Runtime
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime;
+
+ /**
+ * Creates a plain object from a Runtime message. Also converts values to other types if specified.
+ * @param message Runtime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Runtime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Runtime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RuntimeStage enum. */
+ enum RuntimeStage {
+ RUNTIME_STAGE_UNSPECIFIED = 0,
+ DEVELOPMENT = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5,
+ DECOMMISSIONED = 6
+ }
+ }
+
+ /** 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 statusDetail */
+ statusDetail?: (string|null);
+
+ /** OperationMetadata cancelRequested */
+ cancelRequested?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+
+ /** OperationMetadata requestResource */
+ requestResource?: (google.protobuf.IAny|null);
+
+ /** OperationMetadata stages */
+ stages?: (google.cloud.functions.v2alpha.IStage[]|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.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 statusDetail. */
+ public statusDetail: string;
+
+ /** OperationMetadata cancelRequested. */
+ public cancelRequested: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /** OperationMetadata requestResource. */
+ public requestResource?: (google.protobuf.IAny|null);
+
+ /** OperationMetadata stages. */
+ public stages: google.cloud.functions.v2alpha.IStage[];
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IOperationMetadata): google.cloud.functions.v2alpha.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.functions.v2alpha.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.functions.v2alpha.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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.functions.v2alpha.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 Stage. */
+ interface IStage {
+
+ /** Stage name */
+ name?: (google.cloud.functions.v2alpha.Stage.Name|keyof typeof google.cloud.functions.v2alpha.Stage.Name|null);
+
+ /** Stage message */
+ message?: (string|null);
+
+ /** Stage state */
+ state?: (google.cloud.functions.v2alpha.Stage.State|keyof typeof google.cloud.functions.v2alpha.Stage.State|null);
+
+ /** Stage resource */
+ resource?: (string|null);
+
+ /** Stage resourceUri */
+ resourceUri?: (string|null);
+
+ /** Stage stateMessages */
+ stateMessages?: (google.cloud.functions.v2alpha.IStateMessage[]|null);
+ }
+
+ /** Represents a Stage. */
+ class Stage implements IStage {
+
+ /**
+ * Constructs a new Stage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2alpha.IStage);
+
+ /** Stage name. */
+ public name: (google.cloud.functions.v2alpha.Stage.Name|keyof typeof google.cloud.functions.v2alpha.Stage.Name);
+
+ /** Stage message. */
+ public message: string;
+
+ /** Stage state. */
+ public state: (google.cloud.functions.v2alpha.Stage.State|keyof typeof google.cloud.functions.v2alpha.Stage.State);
+
+ /** Stage resource. */
+ public resource: string;
+
+ /** Stage resourceUri. */
+ public resourceUri: string;
+
+ /** Stage stateMessages. */
+ public stateMessages: google.cloud.functions.v2alpha.IStateMessage[];
+
+ /**
+ * Creates a new Stage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Stage instance
+ */
+ public static create(properties?: google.cloud.functions.v2alpha.IStage): google.cloud.functions.v2alpha.Stage;
+
+ /**
+ * Encodes the specified Stage message. Does not implicitly {@link google.cloud.functions.v2alpha.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2alpha.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Stage message, length delimited. Does not implicitly {@link google.cloud.functions.v2alpha.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2alpha.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Stage
+ * @throws {Error} If the payload is not 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.functions.v2alpha.Stage;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Stage
+ * @throws {Error} If the payload 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.functions.v2alpha.Stage;
+
+ /**
+ * Verifies a Stage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Stage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Stage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2alpha.Stage;
+
+ /**
+ * Creates a plain object from a Stage message. Also converts values to other types if specified.
+ * @param message Stage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2alpha.Stage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Stage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Stage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Stage {
+
+ /** Name enum. */
+ enum Name {
+ NAME_UNSPECIFIED = 0,
+ ARTIFACT_REGISTRY = 1,
+ BUILD = 2,
+ SERVICE = 3,
+ TRIGGER = 4,
+ SERVICE_ROLLBACK = 5,
+ TRIGGER_ROLLBACK = 6
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ NOT_STARTED = 1,
+ IN_PROGRESS = 2,
+ COMPLETE = 3
+ }
+ }
+ }
+
+ /** Namespace v2beta. */
+ namespace v2beta {
+
+ /** Represents a FunctionService */
+ class FunctionService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new FunctionService 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 FunctionService 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): FunctionService;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Function
+ */
+ public getFunction(request: google.cloud.functions.v2beta.IGetFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.GetFunctionCallback): void;
+
+ /**
+ * Calls GetFunction.
+ * @param request GetFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public getFunction(request: google.cloud.functions.v2beta.IGetFunctionRequest): Promise;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFunctionsResponse
+ */
+ public listFunctions(request: google.cloud.functions.v2beta.IListFunctionsRequest, callback: google.cloud.functions.v2beta.FunctionService.ListFunctionsCallback): void;
+
+ /**
+ * Calls ListFunctions.
+ * @param request ListFunctionsRequest message or plain object
+ * @returns Promise
+ */
+ public listFunctions(request: google.cloud.functions.v2beta.IListFunctionsRequest): Promise;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createFunction(request: google.cloud.functions.v2beta.ICreateFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.CreateFunctionCallback): void;
+
+ /**
+ * Calls CreateFunction.
+ * @param request CreateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public createFunction(request: google.cloud.functions.v2beta.ICreateFunctionRequest): Promise;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateFunction(request: google.cloud.functions.v2beta.IUpdateFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.UpdateFunctionCallback): void;
+
+ /**
+ * Calls UpdateFunction.
+ * @param request UpdateFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public updateFunction(request: google.cloud.functions.v2beta.IUpdateFunctionRequest): Promise;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteFunction(request: google.cloud.functions.v2beta.IDeleteFunctionRequest, callback: google.cloud.functions.v2beta.FunctionService.DeleteFunctionCallback): void;
+
+ /**
+ * Calls DeleteFunction.
+ * @param request DeleteFunctionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteFunction(request: google.cloud.functions.v2beta.IDeleteFunctionRequest): Promise;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateUploadUrlResponse
+ */
+ public generateUploadUrl(request: google.cloud.functions.v2beta.IGenerateUploadUrlRequest, callback: google.cloud.functions.v2beta.FunctionService.GenerateUploadUrlCallback): void;
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @param request GenerateUploadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateUploadUrl(request: google.cloud.functions.v2beta.IGenerateUploadUrlRequest): Promise;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GenerateDownloadUrlResponse
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest, callback: google.cloud.functions.v2beta.FunctionService.GenerateDownloadUrlCallback): void;
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @param request GenerateDownloadUrlRequest message or plain object
+ * @returns Promise
+ */
+ public generateDownloadUrl(request: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest): Promise;
+
+ /**
+ * Calls ListRuntimes.
+ * @param request ListRuntimesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListRuntimesResponse
+ */
+ public listRuntimes(request: google.cloud.functions.v2beta.IListRuntimesRequest, callback: google.cloud.functions.v2beta.FunctionService.ListRuntimesCallback): void;
+
+ /**
+ * Calls ListRuntimes.
+ * @param request ListRuntimesRequest message or plain object
+ * @returns Promise
+ */
+ public listRuntimes(request: google.cloud.functions.v2beta.IListRuntimesRequest): Promise;
+ }
+
+ namespace FunctionService {
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|getFunction}.
+ * @param error Error, if any
+ * @param [response] Function
+ */
+ type GetFunctionCallback = (error: (Error|null), response?: google.cloud.functions.v2beta.Function) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|listFunctions}.
+ * @param error Error, if any
+ * @param [response] ListFunctionsResponse
+ */
+ type ListFunctionsCallback = (error: (Error|null), response?: google.cloud.functions.v2beta.ListFunctionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|createFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|updateFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|deleteFunction}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteFunctionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|generateUploadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateUploadUrlResponse
+ */
+ type GenerateUploadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v2beta.GenerateUploadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|generateDownloadUrl}.
+ * @param error Error, if any
+ * @param [response] GenerateDownloadUrlResponse
+ */
+ type GenerateDownloadUrlCallback = (error: (Error|null), response?: google.cloud.functions.v2beta.GenerateDownloadUrlResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2beta.FunctionService|listRuntimes}.
+ * @param error Error, if any
+ * @param [response] ListRuntimesResponse
+ */
+ type ListRuntimesCallback = (error: (Error|null), response?: google.cloud.functions.v2beta.ListRuntimesResponse) => void;
+ }
+
+ /** Environment enum. */
+ enum Environment {
+ ENVIRONMENT_UNSPECIFIED = 0,
+ GEN_1 = 1,
+ GEN_2 = 2
+ }
+
+ /** Properties of a Function. */
+ interface IFunction {
+
+ /** Function name */
+ name?: (string|null);
+
+ /** Function environment */
+ environment?: (google.cloud.functions.v2beta.Environment|keyof typeof google.cloud.functions.v2beta.Environment|null);
+
+ /** Function description */
+ description?: (string|null);
+
+ /** Function buildConfig */
+ buildConfig?: (google.cloud.functions.v2beta.IBuildConfig|null);
+
+ /** Function serviceConfig */
+ serviceConfig?: (google.cloud.functions.v2beta.IServiceConfig|null);
+
+ /** Function eventTrigger */
+ eventTrigger?: (google.cloud.functions.v2beta.IEventTrigger|null);
+
+ /** Function state */
+ state?: (google.cloud.functions.v2beta.Function.State|keyof typeof google.cloud.functions.v2beta.Function.State|null);
+
+ /** Function updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Function labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Function stateMessages */
+ stateMessages?: (google.cloud.functions.v2beta.IStateMessage[]|null);
+ }
+
+ /** Represents a Function. */
+ class Function implements IFunction {
+
+ /**
+ * Constructs a new Function.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IFunction);
+
+ /** Function name. */
+ public name: string;
+
+ /** Function environment. */
+ public environment: (google.cloud.functions.v2beta.Environment|keyof typeof google.cloud.functions.v2beta.Environment);
+
+ /** Function description. */
+ public description: string;
+
+ /** Function buildConfig. */
+ public buildConfig?: (google.cloud.functions.v2beta.IBuildConfig|null);
+
+ /** Function serviceConfig. */
+ public serviceConfig?: (google.cloud.functions.v2beta.IServiceConfig|null);
+
+ /** Function eventTrigger. */
+ public eventTrigger?: (google.cloud.functions.v2beta.IEventTrigger|null);
+
+ /** Function state. */
+ public state: (google.cloud.functions.v2beta.Function.State|keyof typeof google.cloud.functions.v2beta.Function.State);
+
+ /** Function updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Function labels. */
+ public labels: { [k: string]: string };
+
+ /** Function stateMessages. */
+ public stateMessages: google.cloud.functions.v2beta.IStateMessage[];
+
+ /**
+ * Creates a new Function instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Function instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IFunction): google.cloud.functions.v2beta.Function;
+
+ /**
+ * Encodes the specified Function message. Does not implicitly {@link google.cloud.functions.v2beta.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Function message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.Function.verify|verify} messages.
+ * @param message Function message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IFunction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Function
+ * @throws {Error} If the payload is not 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.functions.v2beta.Function;
+
+ /**
+ * Decodes a Function message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Function
+ * @throws {Error} If the payload 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.functions.v2beta.Function;
+
+ /**
+ * Verifies a Function message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Function message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Function
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.Function;
+
+ /**
+ * Creates a plain object from a Function message. Also converts values to other types if specified.
+ * @param message Function
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.Function, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Function to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Function
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Function {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ FAILED = 2,
+ DEPLOYING = 3,
+ DELETING = 4,
+ UNKNOWN = 5
+ }
+ }
+
+ /** Properties of a StateMessage. */
+ interface IStateMessage {
+
+ /** StateMessage severity */
+ severity?: (google.cloud.functions.v2beta.StateMessage.Severity|keyof typeof google.cloud.functions.v2beta.StateMessage.Severity|null);
+
+ /** StateMessage type */
+ type?: (string|null);
+
+ /** StateMessage message */
+ message?: (string|null);
+ }
+
+ /** Represents a StateMessage. */
+ class StateMessage implements IStateMessage {
+
+ /**
+ * Constructs a new StateMessage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IStateMessage);
+
+ /** StateMessage severity. */
+ public severity: (google.cloud.functions.v2beta.StateMessage.Severity|keyof typeof google.cloud.functions.v2beta.StateMessage.Severity);
+
+ /** StateMessage type. */
+ public type: string;
+
+ /** StateMessage message. */
+ public message: string;
+
+ /**
+ * Creates a new StateMessage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StateMessage instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IStateMessage): google.cloud.functions.v2beta.StateMessage;
+
+ /**
+ * Encodes the specified StateMessage message. Does not implicitly {@link google.cloud.functions.v2beta.StateMessage.verify|verify} messages.
+ * @param message StateMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IStateMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StateMessage message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.StateMessage.verify|verify} messages.
+ * @param message StateMessage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IStateMessage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StateMessage
+ * @throws {Error} If the payload is not 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.functions.v2beta.StateMessage;
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StateMessage
+ * @throws {Error} If the payload 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.functions.v2beta.StateMessage;
+
+ /**
+ * Verifies a StateMessage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StateMessage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StateMessage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.StateMessage;
+
+ /**
+ * Creates a plain object from a StateMessage message. Also converts values to other types if specified.
+ * @param message StateMessage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.StateMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StateMessage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StateMessage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StateMessage {
+
+ /** Severity enum. */
+ enum Severity {
+ SEVERITY_UNSPECIFIED = 0,
+ ERROR = 1,
+ WARNING = 2,
+ INFO = 3
+ }
+ }
+
+ /** Properties of a StorageSource. */
+ interface IStorageSource {
+
+ /** StorageSource bucket */
+ bucket?: (string|null);
+
+ /** StorageSource object */
+ object?: (string|null);
+
+ /** StorageSource generation */
+ generation?: (number|Long|string|null);
+ }
+
+ /** Represents a StorageSource. */
+ class StorageSource implements IStorageSource {
+
+ /**
+ * Constructs a new StorageSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IStorageSource);
+
+ /** StorageSource bucket. */
+ public bucket: string;
+
+ /** StorageSource object. */
+ public object: string;
+
+ /** StorageSource generation. */
+ public generation: (number|Long|string);
+
+ /**
+ * Creates a new StorageSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StorageSource instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IStorageSource): google.cloud.functions.v2beta.StorageSource;
+
+ /**
+ * Encodes the specified StorageSource message. Does not implicitly {@link google.cloud.functions.v2beta.StorageSource.verify|verify} messages.
+ * @param message StorageSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StorageSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.StorageSource.verify|verify} messages.
+ * @param message StorageSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StorageSource
+ * @throws {Error} If the payload is not 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.functions.v2beta.StorageSource;
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StorageSource
+ * @throws {Error} If the payload 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.functions.v2beta.StorageSource;
+
+ /**
+ * Verifies a StorageSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a StorageSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StorageSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.StorageSource;
+
+ /**
+ * Creates a plain object from a StorageSource message. Also converts values to other types if specified.
+ * @param message StorageSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.StorageSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StorageSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StorageSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RepoSource. */
+ interface IRepoSource {
+
+ /** RepoSource branchName */
+ branchName?: (string|null);
+
+ /** RepoSource tagName */
+ tagName?: (string|null);
+
+ /** RepoSource commitSha */
+ commitSha?: (string|null);
+
+ /** RepoSource projectId */
+ projectId?: (string|null);
+
+ /** RepoSource repoName */
+ repoName?: (string|null);
+
+ /** RepoSource dir */
+ dir?: (string|null);
+
+ /** RepoSource invertRegex */
+ invertRegex?: (boolean|null);
+ }
+
+ /** Represents a RepoSource. */
+ class RepoSource implements IRepoSource {
+
+ /**
+ * Constructs a new RepoSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IRepoSource);
+
+ /** RepoSource branchName. */
+ public branchName?: (string|null);
+
+ /** RepoSource tagName. */
+ public tagName?: (string|null);
+
+ /** RepoSource commitSha. */
+ public commitSha?: (string|null);
+
+ /** RepoSource projectId. */
+ public projectId: string;
+
+ /** RepoSource repoName. */
+ public repoName: string;
+
+ /** RepoSource dir. */
+ public dir: string;
+
+ /** RepoSource invertRegex. */
+ public invertRegex: boolean;
+
+ /** RepoSource revision. */
+ public revision?: ("branchName"|"tagName"|"commitSha");
+
+ /**
+ * Creates a new RepoSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RepoSource instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IRepoSource): google.cloud.functions.v2beta.RepoSource;
+
+ /**
+ * Encodes the specified RepoSource message. Does not implicitly {@link google.cloud.functions.v2beta.RepoSource.verify|verify} messages.
+ * @param message RepoSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IRepoSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RepoSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.RepoSource.verify|verify} messages.
+ * @param message RepoSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IRepoSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RepoSource
+ * @throws {Error} If the payload is not 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.functions.v2beta.RepoSource;
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RepoSource
+ * @throws {Error} If the payload 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.functions.v2beta.RepoSource;
+
+ /**
+ * Verifies a RepoSource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RepoSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RepoSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.RepoSource;
+
+ /**
+ * Creates a plain object from a RepoSource message. Also converts values to other types if specified.
+ * @param message RepoSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.RepoSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RepoSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RepoSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Source. */
+ interface ISource {
+
+ /** Source storageSource */
+ storageSource?: (google.cloud.functions.v2beta.IStorageSource|null);
+
+ /** Source repoSource */
+ repoSource?: (google.cloud.functions.v2beta.IRepoSource|null);
+ }
+
+ /** Represents a Source. */
+ class Source implements ISource {
+
+ /**
+ * Constructs a new Source.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.ISource);
+
+ /** Source storageSource. */
+ public storageSource?: (google.cloud.functions.v2beta.IStorageSource|null);
+
+ /** Source repoSource. */
+ public repoSource?: (google.cloud.functions.v2beta.IRepoSource|null);
+
+ /** Source source. */
+ public source?: ("storageSource"|"repoSource");
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Source instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.ISource): google.cloud.functions.v2beta.Source;
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.functions.v2beta.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.functions.v2beta.Source;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.functions.v2beta.Source;
+
+ /**
+ * Verifies a Source message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Source
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.Source;
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @param message Source
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.Source, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Source to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Source
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceProvenance. */
+ interface ISourceProvenance {
+
+ /** SourceProvenance resolvedStorageSource */
+ resolvedStorageSource?: (google.cloud.functions.v2beta.IStorageSource|null);
+
+ /** SourceProvenance resolvedRepoSource */
+ resolvedRepoSource?: (google.cloud.functions.v2beta.IRepoSource|null);
+ }
+
+ /** Represents a SourceProvenance. */
+ class SourceProvenance implements ISourceProvenance {
+
+ /**
+ * Constructs a new SourceProvenance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.ISourceProvenance);
+
+ /** SourceProvenance resolvedStorageSource. */
+ public resolvedStorageSource?: (google.cloud.functions.v2beta.IStorageSource|null);
+
+ /** SourceProvenance resolvedRepoSource. */
+ public resolvedRepoSource?: (google.cloud.functions.v2beta.IRepoSource|null);
+
+ /**
+ * Creates a new SourceProvenance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceProvenance instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.ISourceProvenance): google.cloud.functions.v2beta.SourceProvenance;
+
+ /**
+ * Encodes the specified SourceProvenance message. Does not implicitly {@link google.cloud.functions.v2beta.SourceProvenance.verify|verify} messages.
+ * @param message SourceProvenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.ISourceProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceProvenance message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.SourceProvenance.verify|verify} messages.
+ * @param message SourceProvenance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.ISourceProvenance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceProvenance
+ * @throws {Error} If the payload is not 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.functions.v2beta.SourceProvenance;
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceProvenance
+ * @throws {Error} If the payload 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.functions.v2beta.SourceProvenance;
+
+ /**
+ * Verifies a SourceProvenance message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceProvenance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceProvenance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.SourceProvenance;
+
+ /**
+ * Creates a plain object from a SourceProvenance message. Also converts values to other types if specified.
+ * @param message SourceProvenance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.SourceProvenance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceProvenance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceProvenance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BuildConfig. */
+ interface IBuildConfig {
+
+ /** BuildConfig build */
+ build?: (string|null);
+
+ /** BuildConfig runtime */
+ runtime?: (string|null);
+
+ /** BuildConfig entryPoint */
+ entryPoint?: (string|null);
+
+ /** BuildConfig source */
+ source?: (google.cloud.functions.v2beta.ISource|null);
+
+ /** BuildConfig sourceProvenance */
+ sourceProvenance?: (google.cloud.functions.v2beta.ISourceProvenance|null);
+
+ /** BuildConfig workerPool */
+ workerPool?: (string|null);
+
+ /** BuildConfig environmentVariables */
+ environmentVariables?: ({ [k: string]: string }|null);
+
+ /** BuildConfig dockerRepository */
+ dockerRepository?: (string|null);
+ }
+
+ /** Represents a BuildConfig. */
+ class BuildConfig implements IBuildConfig {
+
+ /**
+ * Constructs a new BuildConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IBuildConfig);
+
+ /** BuildConfig build. */
+ public build: string;
+
+ /** BuildConfig runtime. */
+ public runtime: string;
+
+ /** BuildConfig entryPoint. */
+ public entryPoint: string;
+
+ /** BuildConfig source. */
+ public source?: (google.cloud.functions.v2beta.ISource|null);
+
+ /** BuildConfig sourceProvenance. */
+ public sourceProvenance?: (google.cloud.functions.v2beta.ISourceProvenance|null);
+
+ /** BuildConfig workerPool. */
+ public workerPool: string;
+
+ /** BuildConfig environmentVariables. */
+ public environmentVariables: { [k: string]: string };
+
+ /** BuildConfig dockerRepository. */
+ public dockerRepository: string;
+
+ /**
+ * Creates a new BuildConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BuildConfig instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IBuildConfig): google.cloud.functions.v2beta.BuildConfig;
+
+ /**
+ * Encodes the specified BuildConfig message. Does not implicitly {@link google.cloud.functions.v2beta.BuildConfig.verify|verify} messages.
+ * @param message BuildConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IBuildConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BuildConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.BuildConfig.verify|verify} messages.
+ * @param message BuildConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IBuildConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BuildConfig
+ * @throws {Error} If the payload is not 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.functions.v2beta.BuildConfig;
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BuildConfig
+ * @throws {Error} If the payload 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.functions.v2beta.BuildConfig;
+
+ /**
+ * Verifies a BuildConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BuildConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BuildConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.BuildConfig;
+
+ /**
+ * Creates a plain object from a BuildConfig message. Also converts values to other types if specified.
+ * @param message BuildConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.BuildConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BuildConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BuildConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceConfig. */
+ interface IServiceConfig {
+
+ /** ServiceConfig service */
+ service?: (string|null);
+
+ /** ServiceConfig timeoutSeconds */
+ timeoutSeconds?: (number|null);
+
+ /** ServiceConfig availableMemory */
+ availableMemory?: (string|null);
+
+ /** ServiceConfig environmentVariables */
+ environmentVariables?: ({ [k: string]: string }|null);
+
+ /** ServiceConfig maxInstanceCount */
+ maxInstanceCount?: (number|null);
+
+ /** ServiceConfig minInstanceCount */
+ minInstanceCount?: (number|null);
+
+ /** ServiceConfig vpcConnector */
+ vpcConnector?: (string|null);
+
+ /** ServiceConfig vpcConnectorEgressSettings */
+ vpcConnectorEgressSettings?: (google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings|null);
+
+ /** ServiceConfig ingressSettings */
+ ingressSettings?: (google.cloud.functions.v2beta.ServiceConfig.IngressSettings|keyof typeof google.cloud.functions.v2beta.ServiceConfig.IngressSettings|null);
+
+ /** ServiceConfig uri */
+ uri?: (string|null);
+
+ /** ServiceConfig serviceAccountEmail */
+ serviceAccountEmail?: (string|null);
+
+ /** ServiceConfig allTrafficOnLatestRevision */
+ allTrafficOnLatestRevision?: (boolean|null);
+
+ /** ServiceConfig secretEnvironmentVariables */
+ secretEnvironmentVariables?: (google.cloud.functions.v2beta.ISecretEnvVar[]|null);
+
+ /** ServiceConfig secretVolumes */
+ secretVolumes?: (google.cloud.functions.v2beta.ISecretVolume[]|null);
+
+ /** ServiceConfig revision */
+ revision?: (string|null);
+ }
+
+ /** Represents a ServiceConfig. */
+ class ServiceConfig implements IServiceConfig {
+
+ /**
+ * Constructs a new ServiceConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IServiceConfig);
+
+ /** ServiceConfig service. */
+ public service: string;
+
+ /** ServiceConfig timeoutSeconds. */
+ public timeoutSeconds: number;
+
+ /** ServiceConfig availableMemory. */
+ public availableMemory: string;
+
+ /** ServiceConfig environmentVariables. */
+ public environmentVariables: { [k: string]: string };
+
+ /** ServiceConfig maxInstanceCount. */
+ public maxInstanceCount: number;
+
+ /** ServiceConfig minInstanceCount. */
+ public minInstanceCount: number;
+
+ /** ServiceConfig vpcConnector. */
+ public vpcConnector: string;
+
+ /** ServiceConfig vpcConnectorEgressSettings. */
+ public vpcConnectorEgressSettings: (google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings);
+
+ /** ServiceConfig ingressSettings. */
+ public ingressSettings: (google.cloud.functions.v2beta.ServiceConfig.IngressSettings|keyof typeof google.cloud.functions.v2beta.ServiceConfig.IngressSettings);
+
+ /** ServiceConfig uri. */
+ public uri: string;
+
+ /** ServiceConfig serviceAccountEmail. */
+ public serviceAccountEmail: string;
+
+ /** ServiceConfig allTrafficOnLatestRevision. */
+ public allTrafficOnLatestRevision: boolean;
+
+ /** ServiceConfig secretEnvironmentVariables. */
+ public secretEnvironmentVariables: google.cloud.functions.v2beta.ISecretEnvVar[];
+
+ /** ServiceConfig secretVolumes. */
+ public secretVolumes: google.cloud.functions.v2beta.ISecretVolume[];
+
+ /** ServiceConfig revision. */
+ public revision: string;
+
+ /**
+ * Creates a new ServiceConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceConfig instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IServiceConfig): google.cloud.functions.v2beta.ServiceConfig;
+
+ /**
+ * Encodes the specified ServiceConfig message. Does not implicitly {@link google.cloud.functions.v2beta.ServiceConfig.verify|verify} messages.
+ * @param message ServiceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.ServiceConfig.verify|verify} messages.
+ * @param message ServiceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceConfig
+ * @throws {Error} If the payload is not 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.functions.v2beta.ServiceConfig;
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceConfig
+ * @throws {Error} If the payload 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.functions.v2beta.ServiceConfig;
+
+ /**
+ * Verifies a ServiceConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.ServiceConfig;
+
+ /**
+ * Creates a plain object from a ServiceConfig message. Also converts values to other types if specified.
+ * @param message ServiceConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.ServiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ServiceConfig {
+
+ /** VpcConnectorEgressSettings enum. */
+ enum VpcConnectorEgressSettings {
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0,
+ PRIVATE_RANGES_ONLY = 1,
+ ALL_TRAFFIC = 2
+ }
+
+ /** IngressSettings enum. */
+ enum IngressSettings {
+ INGRESS_SETTINGS_UNSPECIFIED = 0,
+ ALLOW_ALL = 1,
+ ALLOW_INTERNAL_ONLY = 2,
+ ALLOW_INTERNAL_AND_GCLB = 3
+ }
+ }
+
+ /** Properties of a SecretEnvVar. */
+ interface ISecretEnvVar {
+
+ /** SecretEnvVar key */
+ key?: (string|null);
+
+ /** SecretEnvVar projectId */
+ projectId?: (string|null);
+
+ /** SecretEnvVar secret */
+ secret?: (string|null);
+
+ /** SecretEnvVar version */
+ version?: (string|null);
+ }
+
+ /** Represents a SecretEnvVar. */
+ class SecretEnvVar implements ISecretEnvVar {
+
+ /**
+ * Constructs a new SecretEnvVar.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.ISecretEnvVar);
+
+ /** SecretEnvVar key. */
+ public key: string;
+
+ /** SecretEnvVar projectId. */
+ public projectId: string;
+
+ /** SecretEnvVar secret. */
+ public secret: string;
+
+ /** SecretEnvVar version. */
+ public version: string;
+
+ /**
+ * Creates a new SecretEnvVar instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretEnvVar instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.ISecretEnvVar): google.cloud.functions.v2beta.SecretEnvVar;
+
+ /**
+ * Encodes the specified SecretEnvVar message. Does not implicitly {@link google.cloud.functions.v2beta.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretEnvVar message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.SecretEnvVar.verify|verify} messages.
+ * @param message SecretEnvVar message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.ISecretEnvVar, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload is not 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.functions.v2beta.SecretEnvVar;
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretEnvVar
+ * @throws {Error} If the payload 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.functions.v2beta.SecretEnvVar;
+
+ /**
+ * Verifies a SecretEnvVar message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretEnvVar message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretEnvVar
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.SecretEnvVar;
+
+ /**
+ * Creates a plain object from a SecretEnvVar message. Also converts values to other types if specified.
+ * @param message SecretEnvVar
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.SecretEnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretEnvVar to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretEnvVar
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SecretVolume. */
+ interface ISecretVolume {
+
+ /** SecretVolume mountPath */
+ mountPath?: (string|null);
+
+ /** SecretVolume projectId */
+ projectId?: (string|null);
+
+ /** SecretVolume secret */
+ secret?: (string|null);
+
+ /** SecretVolume versions */
+ versions?: (google.cloud.functions.v2beta.SecretVolume.ISecretVersion[]|null);
+ }
+
+ /** Represents a SecretVolume. */
+ class SecretVolume implements ISecretVolume {
+
+ /**
+ * Constructs a new SecretVolume.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.ISecretVolume);
+
+ /** SecretVolume mountPath. */
+ public mountPath: string;
+
+ /** SecretVolume projectId. */
+ public projectId: string;
+
+ /** SecretVolume secret. */
+ public secret: string;
+
+ /** SecretVolume versions. */
+ public versions: google.cloud.functions.v2beta.SecretVolume.ISecretVersion[];
+
+ /**
+ * Creates a new SecretVolume instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVolume instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.ISecretVolume): google.cloud.functions.v2beta.SecretVolume;
+
+ /**
+ * Encodes the specified SecretVolume message. Does not implicitly {@link google.cloud.functions.v2beta.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVolume message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.SecretVolume.verify|verify} messages.
+ * @param message SecretVolume message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.ISecretVolume, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVolume
+ * @throws {Error} If the payload is not 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.functions.v2beta.SecretVolume;
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVolume
+ * @throws {Error} If the payload 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.functions.v2beta.SecretVolume;
+
+ /**
+ * Verifies a SecretVolume message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVolume message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVolume
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.SecretVolume;
+
+ /**
+ * Creates a plain object from a SecretVolume message. Also converts values to other types if specified.
+ * @param message SecretVolume
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.SecretVolume, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVolume to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVolume
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SecretVolume {
+
+ /** Properties of a SecretVersion. */
+ interface ISecretVersion {
+
+ /** SecretVersion version */
+ version?: (string|null);
+
+ /** SecretVersion path */
+ path?: (string|null);
+ }
+
+ /** Represents a SecretVersion. */
+ class SecretVersion implements ISecretVersion {
+
+ /**
+ * Constructs a new SecretVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.SecretVolume.ISecretVersion);
+
+ /** SecretVersion version. */
+ public version: string;
+
+ /** SecretVersion path. */
+ public path: string;
+
+ /**
+ * Creates a new SecretVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SecretVersion instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.SecretVolume.ISecretVersion): google.cloud.functions.v2beta.SecretVolume.SecretVersion;
+
+ /**
+ * Encodes the specified SecretVersion message. Does not implicitly {@link google.cloud.functions.v2beta.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SecretVersion message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.SecretVolume.SecretVersion.verify|verify} messages.
+ * @param message SecretVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.SecretVolume.ISecretVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SecretVersion
+ * @throws {Error} If the payload is not 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.functions.v2beta.SecretVolume.SecretVersion;
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SecretVersion
+ * @throws {Error} If the payload 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.functions.v2beta.SecretVolume.SecretVersion;
+
+ /**
+ * Verifies a SecretVersion message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SecretVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SecretVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.SecretVolume.SecretVersion;
+
+ /**
+ * Creates a plain object from a SecretVersion message. Also converts values to other types if specified.
+ * @param message SecretVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.SecretVolume.SecretVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SecretVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SecretVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EventTrigger. */
+ interface IEventTrigger {
+
+ /** EventTrigger trigger */
+ trigger?: (string|null);
+
+ /** EventTrigger triggerRegion */
+ triggerRegion?: (string|null);
+
+ /** EventTrigger eventType */
+ eventType?: (string|null);
+
+ /** EventTrigger eventFilters */
+ eventFilters?: (google.cloud.functions.v2beta.IEventFilter[]|null);
+
+ /** EventTrigger pubsubTopic */
+ pubsubTopic?: (string|null);
+
+ /** EventTrigger serviceAccountEmail */
+ serviceAccountEmail?: (string|null);
+
+ /** EventTrigger retryPolicy */
+ retryPolicy?: (google.cloud.functions.v2beta.EventTrigger.RetryPolicy|keyof typeof google.cloud.functions.v2beta.EventTrigger.RetryPolicy|null);
+
+ /** EventTrigger channel */
+ channel?: (string|null);
+ }
+
+ /** Represents an EventTrigger. */
+ class EventTrigger implements IEventTrigger {
+
+ /**
+ * Constructs a new EventTrigger.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IEventTrigger);
+
+ /** EventTrigger trigger. */
+ public trigger: string;
+
+ /** EventTrigger triggerRegion. */
+ public triggerRegion: string;
+
+ /** EventTrigger eventType. */
+ public eventType: string;
+
+ /** EventTrigger eventFilters. */
+ public eventFilters: google.cloud.functions.v2beta.IEventFilter[];
+
+ /** EventTrigger pubsubTopic. */
+ public pubsubTopic: string;
+
+ /** EventTrigger serviceAccountEmail. */
+ public serviceAccountEmail: string;
+
+ /** EventTrigger retryPolicy. */
+ public retryPolicy: (google.cloud.functions.v2beta.EventTrigger.RetryPolicy|keyof typeof google.cloud.functions.v2beta.EventTrigger.RetryPolicy);
+
+ /** EventTrigger channel. */
+ public channel: string;
+
+ /**
+ * Creates a new EventTrigger instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventTrigger instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IEventTrigger): google.cloud.functions.v2beta.EventTrigger;
+
+ /**
+ * Encodes the specified EventTrigger message. Does not implicitly {@link google.cloud.functions.v2beta.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.EventTrigger.verify|verify} messages.
+ * @param message EventTrigger message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventTrigger
+ * @throws {Error} If the payload is not 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.functions.v2beta.EventTrigger;
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventTrigger
+ * @throws {Error} If the payload 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.functions.v2beta.EventTrigger;
+
+ /**
+ * Verifies an EventTrigger message.
+ * @param message Plain 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 EventTrigger message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventTrigger
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.EventTrigger;
+
+ /**
+ * Creates a plain object from an EventTrigger message. Also converts values to other types if specified.
+ * @param message EventTrigger
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.EventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventTrigger to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventTrigger
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EventTrigger {
+
+ /** RetryPolicy enum. */
+ enum RetryPolicy {
+ RETRY_POLICY_UNSPECIFIED = 0,
+ RETRY_POLICY_DO_NOT_RETRY = 1,
+ RETRY_POLICY_RETRY = 2
+ }
+ }
+
+ /** 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.functions.v2beta.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.functions.v2beta.IEventFilter): google.cloud.functions.v2beta.EventFilter;
+
+ /**
+ * Encodes the specified EventFilter message. Does not implicitly {@link google.cloud.functions.v2beta.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.functions.v2beta.IEventFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventFilter message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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 GetFunctionRequest. */
+ interface IGetFunctionRequest {
+
+ /** GetFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFunctionRequest. */
+ class GetFunctionRequest implements IGetFunctionRequest {
+
+ /**
+ * Constructs a new GetFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IGetFunctionRequest);
+
+ /** GetFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IGetFunctionRequest): google.cloud.functions.v2beta.GetFunctionRequest;
+
+ /**
+ * Encodes the specified GetFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2beta.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.GetFunctionRequest.verify|verify} messages.
+ * @param message GetFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IGetFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.GetFunctionRequest;
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2beta.GetFunctionRequest;
+
+ /**
+ * Verifies a GetFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.GetFunctionRequest;
+
+ /**
+ * Creates a plain object from a GetFunctionRequest message. Also converts values to other types if specified.
+ * @param message GetFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.GetFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsRequest. */
+ interface IListFunctionsRequest {
+
+ /** ListFunctionsRequest parent */
+ parent?: (string|null);
+
+ /** ListFunctionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListFunctionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListFunctionsRequest filter */
+ filter?: (string|null);
+
+ /** ListFunctionsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListFunctionsRequest. */
+ class ListFunctionsRequest implements IListFunctionsRequest {
+
+ /**
+ * Constructs a new ListFunctionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IListFunctionsRequest);
+
+ /** ListFunctionsRequest parent. */
+ public parent: string;
+
+ /** ListFunctionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListFunctionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListFunctionsRequest filter. */
+ public filter: string;
+
+ /** ListFunctionsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListFunctionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IListFunctionsRequest): google.cloud.functions.v2beta.ListFunctionsRequest;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message. Does not implicitly {@link google.cloud.functions.v2beta.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.ListFunctionsRequest.verify|verify} messages.
+ * @param message ListFunctionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IListFunctionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.ListFunctionsRequest;
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsRequest
+ * @throws {Error} If the payload 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.functions.v2beta.ListFunctionsRequest;
+
+ /**
+ * Verifies a ListFunctionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.ListFunctionsRequest;
+
+ /**
+ * Creates a plain object from a ListFunctionsRequest message. Also converts values to other types if specified.
+ * @param message ListFunctionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.ListFunctionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFunctionsResponse. */
+ interface IListFunctionsResponse {
+
+ /** ListFunctionsResponse functions */
+ functions?: (google.cloud.functions.v2beta.IFunction[]|null);
+
+ /** ListFunctionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListFunctionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListFunctionsResponse. */
+ class ListFunctionsResponse implements IListFunctionsResponse {
+
+ /**
+ * Constructs a new ListFunctionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IListFunctionsResponse);
+
+ /** ListFunctionsResponse functions. */
+ public functions: google.cloud.functions.v2beta.IFunction[];
+
+ /** ListFunctionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListFunctionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListFunctionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFunctionsResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IListFunctionsResponse): google.cloud.functions.v2beta.ListFunctionsResponse;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message. Does not implicitly {@link google.cloud.functions.v2beta.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFunctionsResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.ListFunctionsResponse.verify|verify} messages.
+ * @param message ListFunctionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IListFunctionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload is not 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.functions.v2beta.ListFunctionsResponse;
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFunctionsResponse
+ * @throws {Error} If the payload 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.functions.v2beta.ListFunctionsResponse;
+
+ /**
+ * Verifies a ListFunctionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListFunctionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFunctionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.ListFunctionsResponse;
+
+ /**
+ * Creates a plain object from a ListFunctionsResponse message. Also converts values to other types if specified.
+ * @param message ListFunctionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.ListFunctionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFunctionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFunctionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateFunctionRequest. */
+ interface ICreateFunctionRequest {
+
+ /** CreateFunctionRequest parent */
+ parent?: (string|null);
+
+ /** CreateFunctionRequest function */
+ "function"?: (google.cloud.functions.v2beta.IFunction|null);
+
+ /** CreateFunctionRequest functionId */
+ functionId?: (string|null);
+ }
+
+ /** Represents a CreateFunctionRequest. */
+ class CreateFunctionRequest implements ICreateFunctionRequest {
+
+ /**
+ * Constructs a new CreateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.ICreateFunctionRequest);
+
+ /** CreateFunctionRequest parent. */
+ public parent: string;
+
+ /** CreateFunctionRequest function. */
+ public function?: (google.cloud.functions.v2beta.IFunction|null);
+
+ /** CreateFunctionRequest functionId. */
+ public functionId: string;
+
+ /**
+ * Creates a new CreateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.ICreateFunctionRequest): google.cloud.functions.v2beta.CreateFunctionRequest;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2beta.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.CreateFunctionRequest.verify|verify} messages.
+ * @param message CreateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.ICreateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.CreateFunctionRequest;
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2beta.CreateFunctionRequest;
+
+ /**
+ * Verifies a CreateFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.CreateFunctionRequest;
+
+ /**
+ * Creates a plain object from a CreateFunctionRequest message. Also converts values to other types if specified.
+ * @param message CreateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.CreateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateFunctionRequest. */
+ interface IUpdateFunctionRequest {
+
+ /** UpdateFunctionRequest function */
+ "function"?: (google.cloud.functions.v2beta.IFunction|null);
+
+ /** UpdateFunctionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateFunctionRequest. */
+ class UpdateFunctionRequest implements IUpdateFunctionRequest {
+
+ /**
+ * Constructs a new UpdateFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IUpdateFunctionRequest);
+
+ /** UpdateFunctionRequest function. */
+ public function?: (google.cloud.functions.v2beta.IFunction|null);
+
+ /** UpdateFunctionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IUpdateFunctionRequest): google.cloud.functions.v2beta.UpdateFunctionRequest;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2beta.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.UpdateFunctionRequest.verify|verify} messages.
+ * @param message UpdateFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IUpdateFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.UpdateFunctionRequest;
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2beta.UpdateFunctionRequest;
+
+ /**
+ * Verifies an UpdateFunctionRequest message.
+ * @param message Plain 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 UpdateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.UpdateFunctionRequest;
+
+ /**
+ * Creates a plain object from an UpdateFunctionRequest message. Also converts values to other types if specified.
+ * @param message UpdateFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.UpdateFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteFunctionRequest. */
+ interface IDeleteFunctionRequest {
+
+ /** DeleteFunctionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteFunctionRequest. */
+ class DeleteFunctionRequest implements IDeleteFunctionRequest {
+
+ /**
+ * Constructs a new DeleteFunctionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IDeleteFunctionRequest);
+
+ /** DeleteFunctionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteFunctionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteFunctionRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IDeleteFunctionRequest): google.cloud.functions.v2beta.DeleteFunctionRequest;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message. Does not implicitly {@link google.cloud.functions.v2beta.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.DeleteFunctionRequest.verify|verify} messages.
+ * @param message DeleteFunctionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IDeleteFunctionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.DeleteFunctionRequest;
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteFunctionRequest
+ * @throws {Error} If the payload 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.functions.v2beta.DeleteFunctionRequest;
+
+ /**
+ * Verifies a DeleteFunctionRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteFunctionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.DeleteFunctionRequest;
+
+ /**
+ * Creates a plain object from a DeleteFunctionRequest message. Also converts values to other types if specified.
+ * @param message DeleteFunctionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.DeleteFunctionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteFunctionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteFunctionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlRequest. */
+ interface IGenerateUploadUrlRequest {
+
+ /** GenerateUploadUrlRequest parent */
+ parent?: (string|null);
+ }
+
+ /** Represents a GenerateUploadUrlRequest. */
+ class GenerateUploadUrlRequest implements IGenerateUploadUrlRequest {
+
+ /**
+ * Constructs a new GenerateUploadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IGenerateUploadUrlRequest);
+
+ /** GenerateUploadUrlRequest parent. */
+ public parent: string;
+
+ /**
+ * Creates a new GenerateUploadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IGenerateUploadUrlRequest): google.cloud.functions.v2beta.GenerateUploadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message. Does not implicitly {@link google.cloud.functions.v2beta.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.GenerateUploadUrlRequest.verify|verify} messages.
+ * @param message GenerateUploadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IGenerateUploadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.GenerateUploadUrlRequest;
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlRequest
+ * @throws {Error} If the payload 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.functions.v2beta.GenerateUploadUrlRequest;
+
+ /**
+ * Verifies a GenerateUploadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.GenerateUploadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.GenerateUploadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateUploadUrlResponse. */
+ interface IGenerateUploadUrlResponse {
+
+ /** GenerateUploadUrlResponse uploadUrl */
+ uploadUrl?: (string|null);
+
+ /** GenerateUploadUrlResponse storageSource */
+ storageSource?: (google.cloud.functions.v2beta.IStorageSource|null);
+ }
+
+ /** Represents a GenerateUploadUrlResponse. */
+ class GenerateUploadUrlResponse implements IGenerateUploadUrlResponse {
+
+ /**
+ * Constructs a new GenerateUploadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IGenerateUploadUrlResponse);
+
+ /** GenerateUploadUrlResponse uploadUrl. */
+ public uploadUrl: string;
+
+ /** GenerateUploadUrlResponse storageSource. */
+ public storageSource?: (google.cloud.functions.v2beta.IStorageSource|null);
+
+ /**
+ * Creates a new GenerateUploadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateUploadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IGenerateUploadUrlResponse): google.cloud.functions.v2beta.GenerateUploadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message. Does not implicitly {@link google.cloud.functions.v2beta.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.GenerateUploadUrlResponse.verify|verify} messages.
+ * @param message GenerateUploadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IGenerateUploadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v2beta.GenerateUploadUrlResponse;
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateUploadUrlResponse
+ * @throws {Error} If the payload 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.functions.v2beta.GenerateUploadUrlResponse;
+
+ /**
+ * Verifies a GenerateUploadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateUploadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateUploadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.GenerateUploadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateUploadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.GenerateUploadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateUploadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlRequest. */
+ interface IGenerateDownloadUrlRequest {
+
+ /** GenerateDownloadUrlRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlRequest. */
+ class GenerateDownloadUrlRequest implements IGenerateDownloadUrlRequest {
+
+ /**
+ * Constructs a new GenerateDownloadUrlRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest);
+
+ /** GenerateDownloadUrlRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GenerateDownloadUrlRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest): google.cloud.functions.v2beta.GenerateDownloadUrlRequest;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message. Does not implicitly {@link google.cloud.functions.v2beta.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @param message GenerateDownloadUrlRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IGenerateDownloadUrlRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.GenerateDownloadUrlRequest;
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlRequest
+ * @throws {Error} If the payload 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.functions.v2beta.GenerateDownloadUrlRequest;
+
+ /**
+ * Verifies a GenerateDownloadUrlRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.GenerateDownloadUrlRequest;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlRequest message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.GenerateDownloadUrlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GenerateDownloadUrlResponse. */
+ interface IGenerateDownloadUrlResponse {
+
+ /** GenerateDownloadUrlResponse downloadUrl */
+ downloadUrl?: (string|null);
+ }
+
+ /** Represents a GenerateDownloadUrlResponse. */
+ class GenerateDownloadUrlResponse implements IGenerateDownloadUrlResponse {
+
+ /**
+ * Constructs a new GenerateDownloadUrlResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IGenerateDownloadUrlResponse);
+
+ /** GenerateDownloadUrlResponse downloadUrl. */
+ public downloadUrl: string;
+
+ /**
+ * Creates a new GenerateDownloadUrlResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GenerateDownloadUrlResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IGenerateDownloadUrlResponse): google.cloud.functions.v2beta.GenerateDownloadUrlResponse;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message. Does not implicitly {@link google.cloud.functions.v2beta.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @param message GenerateDownloadUrlResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IGenerateDownloadUrlResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload is not 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.functions.v2beta.GenerateDownloadUrlResponse;
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GenerateDownloadUrlResponse
+ * @throws {Error} If the payload 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.functions.v2beta.GenerateDownloadUrlResponse;
+
+ /**
+ * Verifies a GenerateDownloadUrlResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GenerateDownloadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GenerateDownloadUrlResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.GenerateDownloadUrlResponse;
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlResponse message. Also converts values to other types if specified.
+ * @param message GenerateDownloadUrlResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.GenerateDownloadUrlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GenerateDownloadUrlResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimesRequest. */
+ interface IListRuntimesRequest {
+
+ /** ListRuntimesRequest parent */
+ parent?: (string|null);
+
+ /** ListRuntimesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListRuntimesRequest. */
+ class ListRuntimesRequest implements IListRuntimesRequest {
+
+ /**
+ * Constructs a new ListRuntimesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IListRuntimesRequest);
+
+ /** ListRuntimesRequest parent. */
+ public parent: string;
+
+ /** ListRuntimesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListRuntimesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimesRequest instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IListRuntimesRequest): google.cloud.functions.v2beta.ListRuntimesRequest;
+
+ /**
+ * Encodes the specified ListRuntimesRequest message. Does not implicitly {@link google.cloud.functions.v2beta.ListRuntimesRequest.verify|verify} messages.
+ * @param message ListRuntimesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IListRuntimesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimesRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.ListRuntimesRequest.verify|verify} messages.
+ * @param message ListRuntimesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IListRuntimesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimesRequest
+ * @throws {Error} If the payload is not 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.functions.v2beta.ListRuntimesRequest;
+
+ /**
+ * Decodes a ListRuntimesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimesRequest
+ * @throws {Error} If the payload 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.functions.v2beta.ListRuntimesRequest;
+
+ /**
+ * Verifies a ListRuntimesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.ListRuntimesRequest;
+
+ /**
+ * Creates a plain object from a ListRuntimesRequest message. Also converts values to other types if specified.
+ * @param message ListRuntimesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.ListRuntimesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListRuntimesResponse. */
+ interface IListRuntimesResponse {
+
+ /** ListRuntimesResponse runtimes */
+ runtimes?: (google.cloud.functions.v2beta.ListRuntimesResponse.IRuntime[]|null);
+ }
+
+ /** Represents a ListRuntimesResponse. */
+ class ListRuntimesResponse implements IListRuntimesResponse {
+
+ /**
+ * Constructs a new ListRuntimesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IListRuntimesResponse);
+
+ /** ListRuntimesResponse runtimes. */
+ public runtimes: google.cloud.functions.v2beta.ListRuntimesResponse.IRuntime[];
+
+ /**
+ * Creates a new ListRuntimesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListRuntimesResponse instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IListRuntimesResponse): google.cloud.functions.v2beta.ListRuntimesResponse;
+
+ /**
+ * Encodes the specified ListRuntimesResponse message. Does not implicitly {@link google.cloud.functions.v2beta.ListRuntimesResponse.verify|verify} messages.
+ * @param message ListRuntimesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IListRuntimesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListRuntimesResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.ListRuntimesResponse.verify|verify} messages.
+ * @param message ListRuntimesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IListRuntimesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListRuntimesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListRuntimesResponse
+ * @throws {Error} If the payload is not 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.functions.v2beta.ListRuntimesResponse;
+
+ /**
+ * Decodes a ListRuntimesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListRuntimesResponse
+ * @throws {Error} If the payload 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.functions.v2beta.ListRuntimesResponse;
+
+ /**
+ * Verifies a ListRuntimesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListRuntimesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListRuntimesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.ListRuntimesResponse;
+
+ /**
+ * Creates a plain object from a ListRuntimesResponse message. Also converts values to other types if specified.
+ * @param message ListRuntimesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.ListRuntimesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListRuntimesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListRuntimesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ListRuntimesResponse {
+
+ /** Properties of a Runtime. */
+ interface IRuntime {
+
+ /** Runtime name */
+ name?: (string|null);
+
+ /** Runtime displayName */
+ displayName?: (string|null);
+
+ /** Runtime stage */
+ stage?: (google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage|keyof typeof google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage|null);
+
+ /** Runtime warnings */
+ warnings?: (string[]|null);
+
+ /** Runtime environment */
+ environment?: (google.cloud.functions.v2beta.Environment|keyof typeof google.cloud.functions.v2beta.Environment|null);
+ }
+
+ /** Represents a Runtime. */
+ class Runtime implements IRuntime {
+
+ /**
+ * Constructs a new Runtime.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.ListRuntimesResponse.IRuntime);
+
+ /** Runtime name. */
+ public name: string;
+
+ /** Runtime displayName. */
+ public displayName: string;
+
+ /** Runtime stage. */
+ public stage: (google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage|keyof typeof google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage);
+
+ /** Runtime warnings. */
+ public warnings: string[];
+
+ /** Runtime environment. */
+ public environment: (google.cloud.functions.v2beta.Environment|keyof typeof google.cloud.functions.v2beta.Environment);
+
+ /**
+ * Creates a new Runtime instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Runtime instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.ListRuntimesResponse.IRuntime): google.cloud.functions.v2beta.ListRuntimesResponse.Runtime;
+
+ /**
+ * Encodes the specified Runtime message. Does not implicitly {@link google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.verify|verify} messages.
+ * @param message Runtime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.ListRuntimesResponse.IRuntime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Runtime message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.verify|verify} messages.
+ * @param message Runtime message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.ListRuntimesResponse.IRuntime, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Runtime message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Runtime
+ * @throws {Error} If the payload is not 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.functions.v2beta.ListRuntimesResponse.Runtime;
+
+ /**
+ * Decodes a Runtime message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Runtime
+ * @throws {Error} If the payload 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.functions.v2beta.ListRuntimesResponse.Runtime;
+
+ /**
+ * Verifies a Runtime message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Runtime message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Runtime
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.ListRuntimesResponse.Runtime;
+
+ /**
+ * Creates a plain object from a Runtime message. Also converts values to other types if specified.
+ * @param message Runtime
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Runtime to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Runtime
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** RuntimeStage enum. */
+ enum RuntimeStage {
+ RUNTIME_STAGE_UNSPECIFIED = 0,
+ DEVELOPMENT = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5,
+ DECOMMISSIONED = 6
+ }
+ }
+
+ /** 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 statusDetail */
+ statusDetail?: (string|null);
+
+ /** OperationMetadata cancelRequested */
+ cancelRequested?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+
+ /** OperationMetadata requestResource */
+ requestResource?: (google.protobuf.IAny|null);
+
+ /** OperationMetadata stages */
+ stages?: (google.cloud.functions.v2beta.IStage[]|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.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 statusDetail. */
+ public statusDetail: string;
+
+ /** OperationMetadata cancelRequested. */
+ public cancelRequested: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /** OperationMetadata requestResource. */
+ public requestResource?: (google.protobuf.IAny|null);
+
+ /** OperationMetadata stages. */
+ public stages: google.cloud.functions.v2beta.IStage[];
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IOperationMetadata): google.cloud.functions.v2beta.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.functions.v2beta.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.functions.v2beta.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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.functions.v2beta.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 Stage. */
+ interface IStage {
+
+ /** Stage name */
+ name?: (google.cloud.functions.v2beta.Stage.Name|keyof typeof google.cloud.functions.v2beta.Stage.Name|null);
+
+ /** Stage message */
+ message?: (string|null);
+
+ /** Stage state */
+ state?: (google.cloud.functions.v2beta.Stage.State|keyof typeof google.cloud.functions.v2beta.Stage.State|null);
+
+ /** Stage resource */
+ resource?: (string|null);
+
+ /** Stage resourceUri */
+ resourceUri?: (string|null);
+
+ /** Stage stateMessages */
+ stateMessages?: (google.cloud.functions.v2beta.IStateMessage[]|null);
+ }
+
+ /** Represents a Stage. */
+ class Stage implements IStage {
+
+ /**
+ * Constructs a new Stage.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.functions.v2beta.IStage);
+
+ /** Stage name. */
+ public name: (google.cloud.functions.v2beta.Stage.Name|keyof typeof google.cloud.functions.v2beta.Stage.Name);
+
+ /** Stage message. */
+ public message: string;
+
+ /** Stage state. */
+ public state: (google.cloud.functions.v2beta.Stage.State|keyof typeof google.cloud.functions.v2beta.Stage.State);
+
+ /** Stage resource. */
+ public resource: string;
+
+ /** Stage resourceUri. */
+ public resourceUri: string;
+
+ /** Stage stateMessages. */
+ public stateMessages: google.cloud.functions.v2beta.IStateMessage[];
+
+ /**
+ * Creates a new Stage instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Stage instance
+ */
+ public static create(properties?: google.cloud.functions.v2beta.IStage): google.cloud.functions.v2beta.Stage;
+
+ /**
+ * Encodes the specified Stage message. Does not implicitly {@link google.cloud.functions.v2beta.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.functions.v2beta.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Stage message, length delimited. Does not implicitly {@link google.cloud.functions.v2beta.Stage.verify|verify} messages.
+ * @param message Stage message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.functions.v2beta.IStage, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Stage
+ * @throws {Error} If the payload is not 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.functions.v2beta.Stage;
+
+ /**
+ * Decodes a Stage message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Stage
+ * @throws {Error} If the payload 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.functions.v2beta.Stage;
+
+ /**
+ * Verifies a Stage message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Stage message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Stage
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.functions.v2beta.Stage;
+
+ /**
+ * Creates a plain object from a Stage message. Also converts values to other types if specified.
+ * @param message Stage
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.functions.v2beta.Stage, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Stage to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Stage
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Stage {
+
+ /** Name enum. */
+ enum Name {
+ NAME_UNSPECIFIED = 0,
+ ARTIFACT_REGISTRY = 1,
+ BUILD = 2,
+ SERVICE = 3,
+ TRIGGER = 4,
+ SERVICE_ROLLBACK = 5,
+ TRIGGER_ROLLBACK = 6
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ NOT_STARTED = 1,
+ IN_PROGRESS = 2,
+ COMPLETE = 3
+ }
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (string|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: string;
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions phpGenericServices */
+ phpGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions phpGenericServices. */
+ public phpGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of 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 Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace iam. */
+ namespace iam {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a IAMPolicy */
+ class IAMPolicy extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new IAMPolicy 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 IAMPolicy 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): IAMPolicy;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.SetIamPolicyCallback): void;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.GetIamPolicyCallback): void;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.iam.v1.IAMPolicy.TestIamPermissionsCallback): void;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @returns Promise
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise;
+ }
+
+ namespace IAMPolicy {
+
+ /**
+ * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}.
+ * @param error Error, if any
+ * @param [response] TestIamPermissionsResponse
+ */
+ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void;
+ }
+
+ /** Properties of a SetIamPolicyRequest. */
+ interface ISetIamPolicyRequest {
+
+ /** SetIamPolicyRequest resource */
+ resource?: (string|null);
+
+ /** SetIamPolicyRequest policy */
+ policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetIamPolicyRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a SetIamPolicyRequest. */
+ class SetIamPolicyRequest implements ISetIamPolicyRequest {
+
+ /**
+ * Constructs a new SetIamPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.ISetIamPolicyRequest);
+
+ /** SetIamPolicyRequest resource. */
+ public resource: string;
+
+ /** SetIamPolicyRequest policy. */
+ public policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetIamPolicyRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new SetIamPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetIamPolicyRequest instance
+ */
+ public static create(properties?: google.iam.v1.ISetIamPolicyRequest): google.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Encodes the specified SetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages.
+ * @param message SetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages.
+ * @param message SetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetIamPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetIamPolicyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Decodes a SetIamPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetIamPolicyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Verifies a SetIamPolicyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SetIamPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetIamPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Creates a plain object from a SetIamPolicyRequest message. Also converts values to other types if specified.
+ * @param message SetIamPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.SetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetIamPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetIamPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetIamPolicyRequest. */
+ interface IGetIamPolicyRequest {
+
+ /** GetIamPolicyRequest resource */
+ resource?: (string|null);
+
+ /** GetIamPolicyRequest options */
+ options?: (google.iam.v1.IGetPolicyOptions|null);
+ }
+
+ /** Represents a GetIamPolicyRequest. */
+ class GetIamPolicyRequest implements IGetIamPolicyRequest {
+
+ /**
+ * Constructs a new GetIamPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IGetIamPolicyRequest);
+
+ /** GetIamPolicyRequest resource. */
+ public resource: string;
+
+ /** GetIamPolicyRequest options. */
+ public options?: (google.iam.v1.IGetPolicyOptions|null);
+
+ /**
+ * Creates a new GetIamPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetIamPolicyRequest instance
+ */
+ public static create(properties?: google.iam.v1.IGetIamPolicyRequest): google.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Encodes the specified GetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages.
+ * @param message GetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages.
+ * @param message GetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetIamPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetIamPolicyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Decodes a GetIamPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetIamPolicyRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Verifies a GetIamPolicyRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetIamPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetIamPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Creates a plain object from a GetIamPolicyRequest message. Also converts values to other types if specified.
+ * @param message GetIamPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.GetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetIamPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetIamPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TestIamPermissionsRequest. */
+ interface ITestIamPermissionsRequest {
+
+ /** TestIamPermissionsRequest resource */
+ resource?: (string|null);
+
+ /** TestIamPermissionsRequest permissions */
+ permissions?: (string[]|null);
+ }
+
+ /** Represents a TestIamPermissionsRequest. */
+ class TestIamPermissionsRequest implements ITestIamPermissionsRequest {
+
+ /**
+ * Constructs a new TestIamPermissionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.ITestIamPermissionsRequest);
+
+ /** TestIamPermissionsRequest resource. */
+ public resource: string;
+
+ /** TestIamPermissionsRequest permissions. */
+ public permissions: string[];
+
+ /**
+ * Creates a new TestIamPermissionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TestIamPermissionsRequest instance
+ */
+ public static create(properties?: google.iam.v1.ITestIamPermissionsRequest): google.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Encodes the specified TestIamPermissionsRequest message. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages.
+ * @param message TestIamPermissionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TestIamPermissionsRequest message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages.
+ * @param message TestIamPermissionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TestIamPermissionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TestIamPermissionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Decodes a TestIamPermissionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TestIamPermissionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Verifies a TestIamPermissionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TestIamPermissionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TestIamPermissionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Creates a plain object from a TestIamPermissionsRequest message. Also converts values to other types if specified.
+ * @param message TestIamPermissionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.TestIamPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TestIamPermissionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TestIamPermissionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TestIamPermissionsResponse. */
+ interface ITestIamPermissionsResponse {
+
+ /** TestIamPermissionsResponse permissions */
+ permissions?: (string[]|null);
+ }
+
+ /** Represents a TestIamPermissionsResponse. */
+ class TestIamPermissionsResponse implements ITestIamPermissionsResponse {
+
+ /**
+ * Constructs a new TestIamPermissionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.ITestIamPermissionsResponse);
+
+ /** TestIamPermissionsResponse permissions. */
+ public permissions: string[];
+
+ /**
+ * Creates a new TestIamPermissionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TestIamPermissionsResponse instance
+ */
+ public static create(properties?: google.iam.v1.ITestIamPermissionsResponse): google.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Encodes the specified TestIamPermissionsResponse message. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages.
+ * @param message TestIamPermissionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TestIamPermissionsResponse message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages.
+ * @param message TestIamPermissionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TestIamPermissionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TestIamPermissionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Decodes a TestIamPermissionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TestIamPermissionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Verifies a TestIamPermissionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TestIamPermissionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TestIamPermissionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Creates a plain object from a TestIamPermissionsResponse message. Also converts values to other types if specified.
+ * @param message TestIamPermissionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.TestIamPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TestIamPermissionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TestIamPermissionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetPolicyOptions. */
+ interface IGetPolicyOptions {
+
+ /** GetPolicyOptions requestedPolicyVersion */
+ requestedPolicyVersion?: (number|null);
+ }
+
+ /** Represents a GetPolicyOptions. */
+ class GetPolicyOptions implements IGetPolicyOptions {
+
+ /**
+ * Constructs a new GetPolicyOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IGetPolicyOptions);
+
+ /** GetPolicyOptions requestedPolicyVersion. */
+ public requestedPolicyVersion: number;
+
+ /**
+ * Creates a new GetPolicyOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetPolicyOptions instance
+ */
+ public static create(properties?: google.iam.v1.IGetPolicyOptions): google.iam.v1.GetPolicyOptions;
+
+ /**
+ * Encodes the specified GetPolicyOptions message. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages.
+ * @param message GetPolicyOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetPolicyOptions message, length delimited. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages.
+ * @param message GetPolicyOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetPolicyOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetPolicyOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.GetPolicyOptions;
+
+ /**
+ * Decodes a GetPolicyOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetPolicyOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.GetPolicyOptions;
+
+ /**
+ * Verifies a GetPolicyOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetPolicyOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetPolicyOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.GetPolicyOptions;
+
+ /**
+ * Creates a plain object from a GetPolicyOptions message. Also converts values to other types if specified.
+ * @param message GetPolicyOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.GetPolicyOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetPolicyOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetPolicyOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Policy. */
+ interface IPolicy {
+
+ /** Policy version */
+ version?: (number|null);
+
+ /** Policy bindings */
+ bindings?: (google.iam.v1.IBinding[]|null);
+
+ /** Policy auditConfigs */
+ auditConfigs?: (google.iam.v1.IAuditConfig[]|null);
+
+ /** Policy etag */
+ etag?: (Uint8Array|string|null);
+ }
+
+ /** Represents a Policy. */
+ class Policy implements IPolicy {
+
+ /**
+ * Constructs a new Policy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IPolicy);
+
+ /** Policy version. */
+ public version: number;
+
+ /** Policy bindings. */
+ public bindings: google.iam.v1.IBinding[];
+
+ /** Policy auditConfigs. */
+ public auditConfigs: google.iam.v1.IAuditConfig[];
+
+ /** Policy etag. */
+ public etag: (Uint8Array|string);
+
+ /**
+ * Creates a new Policy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Policy instance
+ */
+ public static create(properties?: google.iam.v1.IPolicy): google.iam.v1.Policy;
+
+ /**
+ * Encodes the specified Policy message. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages.
+ * @param message Policy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Policy message, length delimited. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages.
+ * @param message Policy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Policy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Policy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.Policy;
+
+ /**
+ * Decodes a Policy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Policy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.Policy;
+
+ /**
+ * Verifies a Policy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Policy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Policy
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.Policy;
+
+ /**
+ * Creates a plain object from a Policy message. Also converts values to other types if specified.
+ * @param message Policy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.Policy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Policy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Policy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Binding. */
+ interface IBinding {
+
+ /** Binding role */
+ role?: (string|null);
+
+ /** Binding members */
+ members?: (string[]|null);
+
+ /** Binding condition */
+ condition?: (google.type.IExpr|null);
+ }
+
+ /** Represents a Binding. */
+ class Binding implements IBinding {
+
+ /**
+ * Constructs a new Binding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IBinding);
+
+ /** Binding role. */
+ public role: string;
+
+ /** Binding members. */
+ public members: string[];
+
+ /** Binding condition. */
+ public condition?: (google.type.IExpr|null);
+
+ /**
+ * Creates a new Binding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Binding instance
+ */
+ public static create(properties?: google.iam.v1.IBinding): google.iam.v1.Binding;
+
+ /**
+ * Encodes the specified Binding message. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.Binding;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.Binding;
+
+ /**
+ * Verifies a Binding message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Binding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Binding
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.Binding;
+
+ /**
+ * Creates a plain object from a Binding message. Also converts values to other types if specified.
+ * @param message Binding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Binding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Binding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuditConfig. */
+ interface IAuditConfig {
+
+ /** AuditConfig service */
+ service?: (string|null);
+
+ /** AuditConfig auditLogConfigs */
+ auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null);
+ }
+
+ /** Represents an AuditConfig. */
+ class AuditConfig implements IAuditConfig {
+
+ /**
+ * Constructs a new AuditConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditConfig);
+
+ /** AuditConfig service. */
+ public service: string;
+
+ /** AuditConfig auditLogConfigs. */
+ public auditLogConfigs: google.iam.v1.IAuditLogConfig[];
+
+ /**
+ * Creates a new AuditConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditConfig instance
+ */
+ public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig;
+
+ /**
+ * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
+ * @param message AuditConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
+ * @param message AuditConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig;
+
+ /**
+ * Decodes an AuditConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig;
+
+ /**
+ * Verifies an AuditConfig message.
+ * @param message Plain 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 AuditConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig;
+
+ /**
+ * Creates a plain object from an AuditConfig message. Also converts values to other types if specified.
+ * @param message AuditConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuditLogConfig. */
+ interface IAuditLogConfig {
+
+ /** AuditLogConfig logType */
+ logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null);
+
+ /** AuditLogConfig exemptedMembers */
+ exemptedMembers?: (string[]|null);
+ }
+
+ /** Represents an AuditLogConfig. */
+ class AuditLogConfig implements IAuditLogConfig {
+
+ /**
+ * Constructs a new AuditLogConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditLogConfig);
+
+ /** AuditLogConfig logType. */
+ public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType);
+
+ /** AuditLogConfig exemptedMembers. */
+ public exemptedMembers: string[];
+
+ /**
+ * Creates a new AuditLogConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditLogConfig instance
+ */
+ public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
+ * @param message AuditLogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
+ * @param message AuditLogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditLogConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditLogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditLogConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Verifies an AuditLogConfig message.
+ * @param message Plain 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 AuditLogConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditLogConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified.
+ * @param message AuditLogConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditLogConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditLogConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AuditLogConfig {
+
+ /** LogType enum. */
+ enum LogType {
+ LOG_TYPE_UNSPECIFIED = 0,
+ ADMIN_READ = 1,
+ DATA_WRITE = 2,
+ DATA_READ = 3
+ }
+ }
+
+ /** Properties of a PolicyDelta. */
+ interface IPolicyDelta {
+
+ /** PolicyDelta bindingDeltas */
+ bindingDeltas?: (google.iam.v1.IBindingDelta[]|null);
+
+ /** PolicyDelta auditConfigDeltas */
+ auditConfigDeltas?: (google.iam.v1.IAuditConfigDelta[]|null);
+ }
+
+ /** Represents a PolicyDelta. */
+ class PolicyDelta implements IPolicyDelta {
+
+ /**
+ * Constructs a new PolicyDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IPolicyDelta);
+
+ /** PolicyDelta bindingDeltas. */
+ public bindingDeltas: google.iam.v1.IBindingDelta[];
+
+ /** PolicyDelta auditConfigDeltas. */
+ public auditConfigDeltas: google.iam.v1.IAuditConfigDelta[];
+
+ /**
+ * Creates a new PolicyDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PolicyDelta instance
+ */
+ public static create(properties?: google.iam.v1.IPolicyDelta): google.iam.v1.PolicyDelta;
+
+ /**
+ * Encodes the specified PolicyDelta message. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages.
+ * @param message PolicyDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PolicyDelta message, length delimited. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages.
+ * @param message PolicyDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PolicyDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PolicyDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.PolicyDelta;
+
+ /**
+ * Decodes a PolicyDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PolicyDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.PolicyDelta;
+
+ /**
+ * Verifies a PolicyDelta message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PolicyDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PolicyDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.PolicyDelta;
+
+ /**
+ * Creates a plain object from a PolicyDelta message. Also converts values to other types if specified.
+ * @param message PolicyDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.PolicyDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PolicyDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PolicyDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BindingDelta. */
+ interface IBindingDelta {
+
+ /** BindingDelta action */
+ action?: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action|null);
+
+ /** BindingDelta role */
+ role?: (string|null);
+
+ /** BindingDelta member */
+ member?: (string|null);
+
+ /** BindingDelta condition */
+ condition?: (google.type.IExpr|null);
+ }
+
+ /** Represents a BindingDelta. */
+ class BindingDelta implements IBindingDelta {
+
+ /**
+ * Constructs a new BindingDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IBindingDelta);
+
+ /** BindingDelta action. */
+ public action: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action);
+
+ /** BindingDelta role. */
+ public role: string;
+
+ /** BindingDelta member. */
+ public member: string;
+
+ /** BindingDelta condition. */
+ public condition?: (google.type.IExpr|null);
+
+ /**
+ * Creates a new BindingDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BindingDelta instance
+ */
+ public static create(properties?: google.iam.v1.IBindingDelta): google.iam.v1.BindingDelta;
+
+ /**
+ * Encodes the specified BindingDelta message. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages.
+ * @param message BindingDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BindingDelta message, length delimited. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages.
+ * @param message BindingDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BindingDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BindingDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.BindingDelta;
+
+ /**
+ * Decodes a BindingDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BindingDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.BindingDelta;
+
+ /**
+ * Verifies a BindingDelta message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a BindingDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BindingDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.BindingDelta;
+
+ /**
+ * Creates a plain object from a BindingDelta message. Also converts values to other types if specified.
+ * @param message BindingDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.BindingDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BindingDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BindingDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BindingDelta {
+
+ /** Action enum. */
+ enum Action {
+ ACTION_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+
+ /** Properties of an AuditConfigDelta. */
+ interface IAuditConfigDelta {
+
+ /** AuditConfigDelta action */
+ action?: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action|null);
+
+ /** AuditConfigDelta service */
+ service?: (string|null);
+
+ /** AuditConfigDelta exemptedMember */
+ exemptedMember?: (string|null);
+
+ /** AuditConfigDelta logType */
+ logType?: (string|null);
+ }
+
+ /** Represents an AuditConfigDelta. */
+ class AuditConfigDelta implements IAuditConfigDelta {
+
+ /**
+ * Constructs a new AuditConfigDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditConfigDelta);
+
+ /** AuditConfigDelta action. */
+ public action: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action);
+
+ /** AuditConfigDelta service. */
+ public service: string;
+
+ /** AuditConfigDelta exemptedMember. */
+ public exemptedMember: string;
+
+ /** AuditConfigDelta logType. */
+ public logType: string;
+
+ /**
+ * Creates a new AuditConfigDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditConfigDelta instance
+ */
+ public static create(properties?: google.iam.v1.IAuditConfigDelta): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Encodes the specified AuditConfigDelta message. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages.
+ * @param message AuditConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditConfigDelta message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages.
+ * @param message AuditConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditConfigDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Decodes an AuditConfigDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditConfigDelta
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Verifies an AuditConfigDelta message.
+ * @param message Plain 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 AuditConfigDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditConfigDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Creates a plain object from an AuditConfigDelta message. Also converts values to other types if specified.
+ * @param message AuditConfigDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditConfigDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditConfigDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditConfigDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AuditConfigDelta {
+
+ /** Action enum. */
+ enum Action {
+ ACTION_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** Properties of an Expr. */
+ interface IExpr {
+
+ /** Expr expression */
+ expression?: (string|null);
+
+ /** Expr title */
+ title?: (string|null);
+
+ /** Expr description */
+ description?: (string|null);
+
+ /** Expr location */
+ location?: (string|null);
+ }
+
+ /** Represents an Expr. */
+ class Expr implements IExpr {
+
+ /**
+ * Constructs a new Expr.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IExpr);
+
+ /** Expr expression. */
+ public expression: string;
+
+ /** Expr title. */
+ public title: string;
+
+ /** Expr description. */
+ public description: string;
+
+ /** Expr location. */
+ public location: string;
+
+ /**
+ * Creates a new Expr instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Expr instance
+ */
+ public static create(properties?: google.type.IExpr): google.type.Expr;
+
+ /**
+ * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Expr
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Expr;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Expr
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Expr;
+
+ /**
+ * Verifies an Expr message.
+ * @param message Plain 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 Expr message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Expr
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Expr;
+
+ /**
+ * Creates a plain object from an Expr message. Also converts values to other types if specified.
+ * @param message Expr
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Expr, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Expr to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Expr
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-functions/protos/protos.js b/packages/google-cloud-functions/protos/protos.js
new file mode 100644
index 00000000000..c9d5fbb11b3
--- /dev/null
+++ b/packages/google-cloud-functions/protos/protos.js
@@ -0,0 +1,52198 @@
+// 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_functions_protos || ($protobuf.roots._google_cloud_functions_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.functions = (function() {
+
+ /**
+ * Namespace functions.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var functions = {};
+
+ functions.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.functions
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.CloudFunctionsService = (function() {
+
+ /**
+ * Constructs a new CloudFunctionsService service.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a CloudFunctionsService
+ * @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 CloudFunctionsService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (CloudFunctionsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = CloudFunctionsService;
+
+ /**
+ * Creates new CloudFunctionsService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @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 {CloudFunctionsService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ CloudFunctionsService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|listFunctions}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef ListFunctionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v1.ListFunctionsResponse} [response] ListFunctionsResponse
+ */
+
+ /**
+ * Calls ListFunctions.
+ * @function listFunctions
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IListFunctionsRequest} request ListFunctionsRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.ListFunctionsCallback} callback Node-style callback called with the error, if any, and ListFunctionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.listFunctions = function listFunctions(request, callback) {
+ return this.rpcCall(listFunctions, $root.google.cloud.functions.v1.ListFunctionsRequest, $root.google.cloud.functions.v1.ListFunctionsResponse, request, callback);
+ }, "name", { value: "ListFunctions" });
+
+ /**
+ * Calls ListFunctions.
+ * @function listFunctions
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IListFunctionsRequest} request ListFunctionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|getFunction}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef GetFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v1.CloudFunction} [response] CloudFunction
+ */
+
+ /**
+ * Calls GetFunction.
+ * @function getFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IGetFunctionRequest} request GetFunctionRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.GetFunctionCallback} callback Node-style callback called with the error, if any, and CloudFunction
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.getFunction = function getFunction(request, callback) {
+ return this.rpcCall(getFunction, $root.google.cloud.functions.v1.GetFunctionRequest, $root.google.cloud.functions.v1.CloudFunction, request, callback);
+ }, "name", { value: "GetFunction" });
+
+ /**
+ * Calls GetFunction.
+ * @function getFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IGetFunctionRequest} request GetFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|createFunction}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef CreateFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateFunction.
+ * @function createFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.ICreateFunctionRequest} request CreateFunctionRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.CreateFunctionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.createFunction = function createFunction(request, callback) {
+ return this.rpcCall(createFunction, $root.google.cloud.functions.v1.CreateFunctionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateFunction" });
+
+ /**
+ * Calls CreateFunction.
+ * @function createFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.ICreateFunctionRequest} request CreateFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|updateFunction}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef UpdateFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateFunction.
+ * @function updateFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IUpdateFunctionRequest} request UpdateFunctionRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.UpdateFunctionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.updateFunction = function updateFunction(request, callback) {
+ return this.rpcCall(updateFunction, $root.google.cloud.functions.v1.UpdateFunctionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateFunction" });
+
+ /**
+ * Calls UpdateFunction.
+ * @function updateFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IUpdateFunctionRequest} request UpdateFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|deleteFunction}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef DeleteFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteFunction.
+ * @function deleteFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IDeleteFunctionRequest} request DeleteFunctionRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.DeleteFunctionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.deleteFunction = function deleteFunction(request, callback) {
+ return this.rpcCall(deleteFunction, $root.google.cloud.functions.v1.DeleteFunctionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteFunction" });
+
+ /**
+ * Calls DeleteFunction.
+ * @function deleteFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IDeleteFunctionRequest} request DeleteFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|callFunction}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef CallFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v1.CallFunctionResponse} [response] CallFunctionResponse
+ */
+
+ /**
+ * Calls CallFunction.
+ * @function callFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.ICallFunctionRequest} request CallFunctionRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.CallFunctionCallback} callback Node-style callback called with the error, if any, and CallFunctionResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.callFunction = function callFunction(request, callback) {
+ return this.rpcCall(callFunction, $root.google.cloud.functions.v1.CallFunctionRequest, $root.google.cloud.functions.v1.CallFunctionResponse, request, callback);
+ }, "name", { value: "CallFunction" });
+
+ /**
+ * Calls CallFunction.
+ * @function callFunction
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.ICallFunctionRequest} request CallFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|generateUploadUrl}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef GenerateUploadUrlCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v1.GenerateUploadUrlResponse} [response] GenerateUploadUrlResponse
+ */
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @function generateUploadUrl
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlRequest} request GenerateUploadUrlRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.GenerateUploadUrlCallback} callback Node-style callback called with the error, if any, and GenerateUploadUrlResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.generateUploadUrl = function generateUploadUrl(request, callback) {
+ return this.rpcCall(generateUploadUrl, $root.google.cloud.functions.v1.GenerateUploadUrlRequest, $root.google.cloud.functions.v1.GenerateUploadUrlResponse, request, callback);
+ }, "name", { value: "GenerateUploadUrl" });
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @function generateUploadUrl
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlRequest} request GenerateUploadUrlRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|generateDownloadUrl}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef GenerateDownloadUrlCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v1.GenerateDownloadUrlResponse} [response] GenerateDownloadUrlResponse
+ */
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @function generateDownloadUrl
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest} request GenerateDownloadUrlRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.GenerateDownloadUrlCallback} callback Node-style callback called with the error, if any, and GenerateDownloadUrlResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.generateDownloadUrl = function generateDownloadUrl(request, callback) {
+ return this.rpcCall(generateDownloadUrl, $root.google.cloud.functions.v1.GenerateDownloadUrlRequest, $root.google.cloud.functions.v1.GenerateDownloadUrlResponse, request, callback);
+ }, "name", { value: "GenerateDownloadUrl" });
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @function generateDownloadUrl
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest} request GenerateDownloadUrlRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|setIamPolicy}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef SetIamPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.iam.v1.Policy} [response] Policy
+ */
+
+ /**
+ * Calls SetIamPolicy.
+ * @function setIamPolicy
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.setIamPolicy = function setIamPolicy(request, callback) {
+ return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback);
+ }, "name", { value: "SetIamPolicy" });
+
+ /**
+ * Calls SetIamPolicy.
+ * @function setIamPolicy
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|getIamPolicy}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef GetIamPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.iam.v1.Policy} [response] Policy
+ */
+
+ /**
+ * Calls GetIamPolicy.
+ * @function getIamPolicy
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.getIamPolicy = function getIamPolicy(request, callback) {
+ return this.rpcCall(getIamPolicy, $root.google.iam.v1.GetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback);
+ }, "name", { value: "GetIamPolicy" });
+
+ /**
+ * Calls GetIamPolicy.
+ * @function getIamPolicy
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|testIamPermissions}.
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @typedef TestIamPermissionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse
+ */
+
+ /**
+ * Calls TestIamPermissions.
+ * @function testIamPermissions
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object
+ * @param {google.cloud.functions.v1.CloudFunctionsService.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(CloudFunctionsService.prototype.testIamPermissions = function testIamPermissions(request, callback) {
+ return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback);
+ }, "name", { value: "TestIamPermissions" });
+
+ /**
+ * Calls TestIamPermissions.
+ * @function testIamPermissions
+ * @memberof google.cloud.functions.v1.CloudFunctionsService
+ * @instance
+ * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return CloudFunctionsService;
+ })();
+
+ v1.CloudFunction = (function() {
+
+ /**
+ * Properties of a CloudFunction.
+ * @memberof google.cloud.functions.v1
+ * @interface ICloudFunction
+ * @property {string|null} [name] CloudFunction name
+ * @property {string|null} [description] CloudFunction description
+ * @property {string|null} [sourceArchiveUrl] CloudFunction sourceArchiveUrl
+ * @property {google.cloud.functions.v1.ISourceRepository|null} [sourceRepository] CloudFunction sourceRepository
+ * @property {string|null} [sourceUploadUrl] CloudFunction sourceUploadUrl
+ * @property {google.cloud.functions.v1.IHttpsTrigger|null} [httpsTrigger] CloudFunction httpsTrigger
+ * @property {google.cloud.functions.v1.IEventTrigger|null} [eventTrigger] CloudFunction eventTrigger
+ * @property {google.cloud.functions.v1.CloudFunctionStatus|null} [status] CloudFunction status
+ * @property {string|null} [entryPoint] CloudFunction entryPoint
+ * @property {string|null} [runtime] CloudFunction runtime
+ * @property {google.protobuf.IDuration|null} [timeout] CloudFunction timeout
+ * @property {number|null} [availableMemoryMb] CloudFunction availableMemoryMb
+ * @property {string|null} [serviceAccountEmail] CloudFunction serviceAccountEmail
+ * @property {google.protobuf.ITimestamp|null} [updateTime] CloudFunction updateTime
+ * @property {number|Long|null} [versionId] CloudFunction versionId
+ * @property {Object.|null} [labels] CloudFunction labels
+ * @property {Object.|null} [environmentVariables] CloudFunction environmentVariables
+ * @property {Object.|null} [buildEnvironmentVariables] CloudFunction buildEnvironmentVariables
+ * @property {string|null} [network] CloudFunction network
+ * @property {number|null} [maxInstances] CloudFunction maxInstances
+ * @property {number|null} [minInstances] CloudFunction minInstances
+ * @property {string|null} [vpcConnector] CloudFunction vpcConnector
+ * @property {google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings|null} [vpcConnectorEgressSettings] CloudFunction vpcConnectorEgressSettings
+ * @property {google.cloud.functions.v1.CloudFunction.IngressSettings|null} [ingressSettings] CloudFunction ingressSettings
+ * @property {string|null} [kmsKeyName] CloudFunction kmsKeyName
+ * @property {string|null} [buildWorkerPool] CloudFunction buildWorkerPool
+ * @property {string|null} [buildId] CloudFunction buildId
+ * @property {string|null} [buildName] CloudFunction buildName
+ * @property {Array.|null} [secretEnvironmentVariables] CloudFunction secretEnvironmentVariables
+ * @property {Array.|null} [secretVolumes] CloudFunction secretVolumes
+ * @property {string|null} [sourceToken] CloudFunction sourceToken
+ * @property {string|null} [dockerRepository] CloudFunction dockerRepository
+ * @property {google.cloud.functions.v1.CloudFunction.DockerRegistry|null} [dockerRegistry] CloudFunction dockerRegistry
+ */
+
+ /**
+ * Constructs a new CloudFunction.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a CloudFunction.
+ * @implements ICloudFunction
+ * @constructor
+ * @param {google.cloud.functions.v1.ICloudFunction=} [properties] Properties to set
+ */
+ function CloudFunction(properties) {
+ this.labels = {};
+ this.environmentVariables = {};
+ this.buildEnvironmentVariables = {};
+ this.secretEnvironmentVariables = [];
+ this.secretVolumes = [];
+ 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]];
+ }
+
+ /**
+ * CloudFunction name.
+ * @member {string} name
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.name = "";
+
+ /**
+ * CloudFunction description.
+ * @member {string} description
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.description = "";
+
+ /**
+ * CloudFunction sourceArchiveUrl.
+ * @member {string|null|undefined} sourceArchiveUrl
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.sourceArchiveUrl = null;
+
+ /**
+ * CloudFunction sourceRepository.
+ * @member {google.cloud.functions.v1.ISourceRepository|null|undefined} sourceRepository
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.sourceRepository = null;
+
+ /**
+ * CloudFunction sourceUploadUrl.
+ * @member {string|null|undefined} sourceUploadUrl
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.sourceUploadUrl = null;
+
+ /**
+ * CloudFunction httpsTrigger.
+ * @member {google.cloud.functions.v1.IHttpsTrigger|null|undefined} httpsTrigger
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.httpsTrigger = null;
+
+ /**
+ * CloudFunction eventTrigger.
+ * @member {google.cloud.functions.v1.IEventTrigger|null|undefined} eventTrigger
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.eventTrigger = null;
+
+ /**
+ * CloudFunction status.
+ * @member {google.cloud.functions.v1.CloudFunctionStatus} status
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.status = 0;
+
+ /**
+ * CloudFunction entryPoint.
+ * @member {string} entryPoint
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.entryPoint = "";
+
+ /**
+ * CloudFunction runtime.
+ * @member {string} runtime
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.runtime = "";
+
+ /**
+ * CloudFunction timeout.
+ * @member {google.protobuf.IDuration|null|undefined} timeout
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.timeout = null;
+
+ /**
+ * CloudFunction availableMemoryMb.
+ * @member {number} availableMemoryMb
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.availableMemoryMb = 0;
+
+ /**
+ * CloudFunction serviceAccountEmail.
+ * @member {string} serviceAccountEmail
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.serviceAccountEmail = "";
+
+ /**
+ * CloudFunction updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.updateTime = null;
+
+ /**
+ * CloudFunction versionId.
+ * @member {number|Long} versionId
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.versionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * CloudFunction labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.labels = $util.emptyObject;
+
+ /**
+ * CloudFunction environmentVariables.
+ * @member {Object.} environmentVariables
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.environmentVariables = $util.emptyObject;
+
+ /**
+ * CloudFunction buildEnvironmentVariables.
+ * @member {Object.} buildEnvironmentVariables
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.buildEnvironmentVariables = $util.emptyObject;
+
+ /**
+ * CloudFunction network.
+ * @member {string} network
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.network = "";
+
+ /**
+ * CloudFunction maxInstances.
+ * @member {number} maxInstances
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.maxInstances = 0;
+
+ /**
+ * CloudFunction minInstances.
+ * @member {number} minInstances
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.minInstances = 0;
+
+ /**
+ * CloudFunction vpcConnector.
+ * @member {string} vpcConnector
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.vpcConnector = "";
+
+ /**
+ * CloudFunction vpcConnectorEgressSettings.
+ * @member {google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings} vpcConnectorEgressSettings
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.vpcConnectorEgressSettings = 0;
+
+ /**
+ * CloudFunction ingressSettings.
+ * @member {google.cloud.functions.v1.CloudFunction.IngressSettings} ingressSettings
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.ingressSettings = 0;
+
+ /**
+ * CloudFunction kmsKeyName.
+ * @member {string} kmsKeyName
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.kmsKeyName = "";
+
+ /**
+ * CloudFunction buildWorkerPool.
+ * @member {string} buildWorkerPool
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.buildWorkerPool = "";
+
+ /**
+ * CloudFunction buildId.
+ * @member {string} buildId
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.buildId = "";
+
+ /**
+ * CloudFunction buildName.
+ * @member {string} buildName
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.buildName = "";
+
+ /**
+ * CloudFunction secretEnvironmentVariables.
+ * @member {Array.} secretEnvironmentVariables
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.secretEnvironmentVariables = $util.emptyArray;
+
+ /**
+ * CloudFunction secretVolumes.
+ * @member {Array.} secretVolumes
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.secretVolumes = $util.emptyArray;
+
+ /**
+ * CloudFunction sourceToken.
+ * @member {string} sourceToken
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.sourceToken = "";
+
+ /**
+ * CloudFunction dockerRepository.
+ * @member {string} dockerRepository
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.dockerRepository = "";
+
+ /**
+ * CloudFunction dockerRegistry.
+ * @member {google.cloud.functions.v1.CloudFunction.DockerRegistry} dockerRegistry
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ CloudFunction.prototype.dockerRegistry = 0;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * CloudFunction sourceCode.
+ * @member {"sourceArchiveUrl"|"sourceRepository"|"sourceUploadUrl"|undefined} sourceCode
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ Object.defineProperty(CloudFunction.prototype, "sourceCode", {
+ get: $util.oneOfGetter($oneOfFields = ["sourceArchiveUrl", "sourceRepository", "sourceUploadUrl"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * CloudFunction trigger.
+ * @member {"httpsTrigger"|"eventTrigger"|undefined} trigger
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ */
+ Object.defineProperty(CloudFunction.prototype, "trigger", {
+ get: $util.oneOfGetter($oneOfFields = ["httpsTrigger", "eventTrigger"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new CloudFunction instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {google.cloud.functions.v1.ICloudFunction=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.CloudFunction} CloudFunction instance
+ */
+ CloudFunction.create = function create(properties) {
+ return new CloudFunction(properties);
+ };
+
+ /**
+ * Encodes the specified CloudFunction message. Does not implicitly {@link google.cloud.functions.v1.CloudFunction.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {google.cloud.functions.v1.ICloudFunction} message CloudFunction message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudFunction.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.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.sourceArchiveUrl != null && Object.hasOwnProperty.call(message, "sourceArchiveUrl"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceArchiveUrl);
+ if (message.sourceRepository != null && Object.hasOwnProperty.call(message, "sourceRepository"))
+ $root.google.cloud.functions.v1.SourceRepository.encode(message.sourceRepository, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.httpsTrigger != null && Object.hasOwnProperty.call(message, "httpsTrigger"))
+ $root.google.cloud.functions.v1.HttpsTrigger.encode(message.httpsTrigger, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.eventTrigger != null && Object.hasOwnProperty.call(message, "eventTrigger"))
+ $root.google.cloud.functions.v1.EventTrigger.encode(message.eventTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.status);
+ if (message.entryPoint != null && Object.hasOwnProperty.call(message, "entryPoint"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.entryPoint);
+ if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout"))
+ $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.availableMemoryMb != null && Object.hasOwnProperty.call(message, "availableMemoryMb"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.availableMemoryMb);
+ if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.serviceAccountEmail);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.versionId != null && Object.hasOwnProperty.call(message, "versionId"))
+ writer.uint32(/* id 14, wireType 0 =*/112).int64(message.versionId);
+ 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 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.sourceUploadUrl != null && Object.hasOwnProperty.call(message, "sourceUploadUrl"))
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.sourceUploadUrl);
+ if (message.environmentVariables != null && Object.hasOwnProperty.call(message, "environmentVariables"))
+ for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim();
+ if (message.network != null && Object.hasOwnProperty.call(message, "network"))
+ writer.uint32(/* id 18, wireType 2 =*/146).string(message.network);
+ if (message.runtime != null && Object.hasOwnProperty.call(message, "runtime"))
+ writer.uint32(/* id 19, wireType 2 =*/154).string(message.runtime);
+ if (message.maxInstances != null && Object.hasOwnProperty.call(message, "maxInstances"))
+ writer.uint32(/* id 20, wireType 0 =*/160).int32(message.maxInstances);
+ if (message.vpcConnector != null && Object.hasOwnProperty.call(message, "vpcConnector"))
+ writer.uint32(/* id 22, wireType 2 =*/178).string(message.vpcConnector);
+ if (message.vpcConnectorEgressSettings != null && Object.hasOwnProperty.call(message, "vpcConnectorEgressSettings"))
+ writer.uint32(/* id 23, wireType 0 =*/184).int32(message.vpcConnectorEgressSettings);
+ if (message.ingressSettings != null && Object.hasOwnProperty.call(message, "ingressSettings"))
+ writer.uint32(/* id 24, wireType 0 =*/192).int32(message.ingressSettings);
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ writer.uint32(/* id 25, wireType 2 =*/202).string(message.kmsKeyName);
+ if (message.buildWorkerPool != null && Object.hasOwnProperty.call(message, "buildWorkerPool"))
+ writer.uint32(/* id 26, wireType 2 =*/210).string(message.buildWorkerPool);
+ if (message.buildId != null && Object.hasOwnProperty.call(message, "buildId"))
+ writer.uint32(/* id 27, wireType 2 =*/218).string(message.buildId);
+ if (message.buildEnvironmentVariables != null && Object.hasOwnProperty.call(message, "buildEnvironmentVariables"))
+ for (var keys = Object.keys(message.buildEnvironmentVariables), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 28, wireType 2 =*/226).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.buildEnvironmentVariables[keys[i]]).ldelim();
+ if (message.secretEnvironmentVariables != null && message.secretEnvironmentVariables.length)
+ for (var i = 0; i < message.secretEnvironmentVariables.length; ++i)
+ $root.google.cloud.functions.v1.SecretEnvVar.encode(message.secretEnvironmentVariables[i], writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
+ if (message.secretVolumes != null && message.secretVolumes.length)
+ for (var i = 0; i < message.secretVolumes.length; ++i)
+ $root.google.cloud.functions.v1.SecretVolume.encode(message.secretVolumes[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
+ if (message.sourceToken != null && Object.hasOwnProperty.call(message, "sourceToken"))
+ writer.uint32(/* id 31, wireType 2 =*/250).string(message.sourceToken);
+ if (message.minInstances != null && Object.hasOwnProperty.call(message, "minInstances"))
+ writer.uint32(/* id 32, wireType 0 =*/256).int32(message.minInstances);
+ if (message.buildName != null && Object.hasOwnProperty.call(message, "buildName"))
+ writer.uint32(/* id 33, wireType 2 =*/266).string(message.buildName);
+ if (message.dockerRepository != null && Object.hasOwnProperty.call(message, "dockerRepository"))
+ writer.uint32(/* id 34, wireType 2 =*/274).string(message.dockerRepository);
+ if (message.dockerRegistry != null && Object.hasOwnProperty.call(message, "dockerRegistry"))
+ writer.uint32(/* id 35, wireType 0 =*/280).int32(message.dockerRegistry);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CloudFunction message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CloudFunction.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {google.cloud.functions.v1.ICloudFunction} message CloudFunction message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudFunction.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CloudFunction message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.CloudFunction} CloudFunction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudFunction.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.functions.v1.CloudFunction(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.sourceArchiveUrl = reader.string();
+ break;
+ }
+ case 4: {
+ message.sourceRepository = $root.google.cloud.functions.v1.SourceRepository.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.sourceUploadUrl = reader.string();
+ break;
+ }
+ case 5: {
+ message.httpsTrigger = $root.google.cloud.functions.v1.HttpsTrigger.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.eventTrigger = $root.google.cloud.functions.v1.EventTrigger.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.status = reader.int32();
+ break;
+ }
+ case 8: {
+ message.entryPoint = reader.string();
+ break;
+ }
+ case 19: {
+ message.runtime = reader.string();
+ break;
+ }
+ case 9: {
+ message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.availableMemoryMb = reader.int32();
+ break;
+ }
+ case 11: {
+ message.serviceAccountEmail = reader.string();
+ break;
+ }
+ case 12: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 14: {
+ message.versionId = reader.int64();
+ break;
+ }
+ case 15: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.labels[key] = value;
+ break;
+ }
+ case 17: {
+ if (message.environmentVariables === $util.emptyObject)
+ message.environmentVariables = {};
+ 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.environmentVariables[key] = value;
+ break;
+ }
+ case 28: {
+ if (message.buildEnvironmentVariables === $util.emptyObject)
+ message.buildEnvironmentVariables = {};
+ 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.buildEnvironmentVariables[key] = value;
+ break;
+ }
+ case 18: {
+ message.network = reader.string();
+ break;
+ }
+ case 20: {
+ message.maxInstances = reader.int32();
+ break;
+ }
+ case 32: {
+ message.minInstances = reader.int32();
+ break;
+ }
+ case 22: {
+ message.vpcConnector = reader.string();
+ break;
+ }
+ case 23: {
+ message.vpcConnectorEgressSettings = reader.int32();
+ break;
+ }
+ case 24: {
+ message.ingressSettings = reader.int32();
+ break;
+ }
+ case 25: {
+ message.kmsKeyName = reader.string();
+ break;
+ }
+ case 26: {
+ message.buildWorkerPool = reader.string();
+ break;
+ }
+ case 27: {
+ message.buildId = reader.string();
+ break;
+ }
+ case 33: {
+ message.buildName = reader.string();
+ break;
+ }
+ case 29: {
+ if (!(message.secretEnvironmentVariables && message.secretEnvironmentVariables.length))
+ message.secretEnvironmentVariables = [];
+ message.secretEnvironmentVariables.push($root.google.cloud.functions.v1.SecretEnvVar.decode(reader, reader.uint32()));
+ break;
+ }
+ case 30: {
+ if (!(message.secretVolumes && message.secretVolumes.length))
+ message.secretVolumes = [];
+ message.secretVolumes.push($root.google.cloud.functions.v1.SecretVolume.decode(reader, reader.uint32()));
+ break;
+ }
+ case 31: {
+ message.sourceToken = reader.string();
+ break;
+ }
+ case 34: {
+ message.dockerRepository = reader.string();
+ break;
+ }
+ case 35: {
+ message.dockerRegistry = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CloudFunction message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.CloudFunction} CloudFunction
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudFunction.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CloudFunction message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CloudFunction.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.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.sourceArchiveUrl != null && message.hasOwnProperty("sourceArchiveUrl")) {
+ properties.sourceCode = 1;
+ if (!$util.isString(message.sourceArchiveUrl))
+ return "sourceArchiveUrl: string expected";
+ }
+ if (message.sourceRepository != null && message.hasOwnProperty("sourceRepository")) {
+ if (properties.sourceCode === 1)
+ return "sourceCode: multiple values";
+ properties.sourceCode = 1;
+ {
+ var error = $root.google.cloud.functions.v1.SourceRepository.verify(message.sourceRepository);
+ if (error)
+ return "sourceRepository." + error;
+ }
+ }
+ if (message.sourceUploadUrl != null && message.hasOwnProperty("sourceUploadUrl")) {
+ if (properties.sourceCode === 1)
+ return "sourceCode: multiple values";
+ properties.sourceCode = 1;
+ if (!$util.isString(message.sourceUploadUrl))
+ return "sourceUploadUrl: string expected";
+ }
+ if (message.httpsTrigger != null && message.hasOwnProperty("httpsTrigger")) {
+ properties.trigger = 1;
+ {
+ var error = $root.google.cloud.functions.v1.HttpsTrigger.verify(message.httpsTrigger);
+ if (error)
+ return "httpsTrigger." + error;
+ }
+ }
+ if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) {
+ if (properties.trigger === 1)
+ return "trigger: multiple values";
+ properties.trigger = 1;
+ {
+ var error = $root.google.cloud.functions.v1.EventTrigger.verify(message.eventTrigger);
+ if (error)
+ return "eventTrigger." + error;
+ }
+ }
+ if (message.status != null && message.hasOwnProperty("status"))
+ switch (message.status) {
+ default:
+ return "status: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
+ if (!$util.isString(message.entryPoint))
+ return "entryPoint: string expected";
+ if (message.runtime != null && message.hasOwnProperty("runtime"))
+ if (!$util.isString(message.runtime))
+ return "runtime: string expected";
+ if (message.timeout != null && message.hasOwnProperty("timeout")) {
+ var error = $root.google.protobuf.Duration.verify(message.timeout);
+ if (error)
+ return "timeout." + error;
+ }
+ if (message.availableMemoryMb != null && message.hasOwnProperty("availableMemoryMb"))
+ if (!$util.isInteger(message.availableMemoryMb))
+ return "availableMemoryMb: integer expected";
+ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail"))
+ if (!$util.isString(message.serviceAccountEmail))
+ return "serviceAccountEmail: 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.versionId != null && message.hasOwnProperty("versionId"))
+ if (!$util.isInteger(message.versionId) && !(message.versionId && $util.isInteger(message.versionId.low) && $util.isInteger(message.versionId.high)))
+ return "versionId: integer|Long expected";
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) {
+ if (!$util.isObject(message.environmentVariables))
+ return "environmentVariables: object expected";
+ var key = Object.keys(message.environmentVariables);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.environmentVariables[key[i]]))
+ return "environmentVariables: string{k:string} expected";
+ }
+ if (message.buildEnvironmentVariables != null && message.hasOwnProperty("buildEnvironmentVariables")) {
+ if (!$util.isObject(message.buildEnvironmentVariables))
+ return "buildEnvironmentVariables: object expected";
+ var key = Object.keys(message.buildEnvironmentVariables);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.buildEnvironmentVariables[key[i]]))
+ return "buildEnvironmentVariables: string{k:string} expected";
+ }
+ if (message.network != null && message.hasOwnProperty("network"))
+ if (!$util.isString(message.network))
+ return "network: string expected";
+ if (message.maxInstances != null && message.hasOwnProperty("maxInstances"))
+ if (!$util.isInteger(message.maxInstances))
+ return "maxInstances: integer expected";
+ if (message.minInstances != null && message.hasOwnProperty("minInstances"))
+ if (!$util.isInteger(message.minInstances))
+ return "minInstances: integer expected";
+ if (message.vpcConnector != null && message.hasOwnProperty("vpcConnector"))
+ if (!$util.isString(message.vpcConnector))
+ return "vpcConnector: string expected";
+ if (message.vpcConnectorEgressSettings != null && message.hasOwnProperty("vpcConnectorEgressSettings"))
+ switch (message.vpcConnectorEgressSettings) {
+ default:
+ return "vpcConnectorEgressSettings: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.ingressSettings != null && message.hasOwnProperty("ingressSettings"))
+ switch (message.ingressSettings) {
+ default:
+ return "ingressSettings: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ if (!$util.isString(message.kmsKeyName))
+ return "kmsKeyName: string expected";
+ if (message.buildWorkerPool != null && message.hasOwnProperty("buildWorkerPool"))
+ if (!$util.isString(message.buildWorkerPool))
+ return "buildWorkerPool: string expected";
+ if (message.buildId != null && message.hasOwnProperty("buildId"))
+ if (!$util.isString(message.buildId))
+ return "buildId: string expected";
+ if (message.buildName != null && message.hasOwnProperty("buildName"))
+ if (!$util.isString(message.buildName))
+ return "buildName: string expected";
+ if (message.secretEnvironmentVariables != null && message.hasOwnProperty("secretEnvironmentVariables")) {
+ if (!Array.isArray(message.secretEnvironmentVariables))
+ return "secretEnvironmentVariables: array expected";
+ for (var i = 0; i < message.secretEnvironmentVariables.length; ++i) {
+ var error = $root.google.cloud.functions.v1.SecretEnvVar.verify(message.secretEnvironmentVariables[i]);
+ if (error)
+ return "secretEnvironmentVariables." + error;
+ }
+ }
+ if (message.secretVolumes != null && message.hasOwnProperty("secretVolumes")) {
+ if (!Array.isArray(message.secretVolumes))
+ return "secretVolumes: array expected";
+ for (var i = 0; i < message.secretVolumes.length; ++i) {
+ var error = $root.google.cloud.functions.v1.SecretVolume.verify(message.secretVolumes[i]);
+ if (error)
+ return "secretVolumes." + error;
+ }
+ }
+ if (message.sourceToken != null && message.hasOwnProperty("sourceToken"))
+ if (!$util.isString(message.sourceToken))
+ return "sourceToken: string expected";
+ if (message.dockerRepository != null && message.hasOwnProperty("dockerRepository"))
+ if (!$util.isString(message.dockerRepository))
+ return "dockerRepository: string expected";
+ if (message.dockerRegistry != null && message.hasOwnProperty("dockerRegistry"))
+ switch (message.dockerRegistry) {
+ default:
+ return "dockerRegistry: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CloudFunction message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.CloudFunction} CloudFunction
+ */
+ CloudFunction.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.CloudFunction)
+ return object;
+ var message = new $root.google.cloud.functions.v1.CloudFunction();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.sourceArchiveUrl != null)
+ message.sourceArchiveUrl = String(object.sourceArchiveUrl);
+ if (object.sourceRepository != null) {
+ if (typeof object.sourceRepository !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.sourceRepository: object expected");
+ message.sourceRepository = $root.google.cloud.functions.v1.SourceRepository.fromObject(object.sourceRepository);
+ }
+ if (object.sourceUploadUrl != null)
+ message.sourceUploadUrl = String(object.sourceUploadUrl);
+ if (object.httpsTrigger != null) {
+ if (typeof object.httpsTrigger !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.httpsTrigger: object expected");
+ message.httpsTrigger = $root.google.cloud.functions.v1.HttpsTrigger.fromObject(object.httpsTrigger);
+ }
+ if (object.eventTrigger != null) {
+ if (typeof object.eventTrigger !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.eventTrigger: object expected");
+ message.eventTrigger = $root.google.cloud.functions.v1.EventTrigger.fromObject(object.eventTrigger);
+ }
+ switch (object.status) {
+ default:
+ if (typeof object.status === "number") {
+ message.status = object.status;
+ break;
+ }
+ break;
+ case "CLOUD_FUNCTION_STATUS_UNSPECIFIED":
+ case 0:
+ message.status = 0;
+ break;
+ case "ACTIVE":
+ case 1:
+ message.status = 1;
+ break;
+ case "OFFLINE":
+ case 2:
+ message.status = 2;
+ break;
+ case "DEPLOY_IN_PROGRESS":
+ case 3:
+ message.status = 3;
+ break;
+ case "DELETE_IN_PROGRESS":
+ case 4:
+ message.status = 4;
+ break;
+ case "UNKNOWN":
+ case 5:
+ message.status = 5;
+ break;
+ }
+ if (object.entryPoint != null)
+ message.entryPoint = String(object.entryPoint);
+ if (object.runtime != null)
+ message.runtime = String(object.runtime);
+ if (object.timeout != null) {
+ if (typeof object.timeout !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.timeout: object expected");
+ message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout);
+ }
+ if (object.availableMemoryMb != null)
+ message.availableMemoryMb = object.availableMemoryMb | 0;
+ if (object.serviceAccountEmail != null)
+ message.serviceAccountEmail = String(object.serviceAccountEmail);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.versionId != null)
+ if ($util.Long)
+ (message.versionId = $util.Long.fromValue(object.versionId)).unsigned = false;
+ else if (typeof object.versionId === "string")
+ message.versionId = parseInt(object.versionId, 10);
+ else if (typeof object.versionId === "number")
+ message.versionId = object.versionId;
+ else if (typeof object.versionId === "object")
+ message.versionId = new $util.LongBits(object.versionId.low >>> 0, object.versionId.high >>> 0).toNumber();
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.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.environmentVariables) {
+ if (typeof object.environmentVariables !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.environmentVariables: object expected");
+ message.environmentVariables = {};
+ for (var keys = Object.keys(object.environmentVariables), i = 0; i < keys.length; ++i)
+ message.environmentVariables[keys[i]] = String(object.environmentVariables[keys[i]]);
+ }
+ if (object.buildEnvironmentVariables) {
+ if (typeof object.buildEnvironmentVariables !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.buildEnvironmentVariables: object expected");
+ message.buildEnvironmentVariables = {};
+ for (var keys = Object.keys(object.buildEnvironmentVariables), i = 0; i < keys.length; ++i)
+ message.buildEnvironmentVariables[keys[i]] = String(object.buildEnvironmentVariables[keys[i]]);
+ }
+ if (object.network != null)
+ message.network = String(object.network);
+ if (object.maxInstances != null)
+ message.maxInstances = object.maxInstances | 0;
+ if (object.minInstances != null)
+ message.minInstances = object.minInstances | 0;
+ if (object.vpcConnector != null)
+ message.vpcConnector = String(object.vpcConnector);
+ switch (object.vpcConnectorEgressSettings) {
+ default:
+ if (typeof object.vpcConnectorEgressSettings === "number") {
+ message.vpcConnectorEgressSettings = object.vpcConnectorEgressSettings;
+ break;
+ }
+ break;
+ case "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED":
+ case 0:
+ message.vpcConnectorEgressSettings = 0;
+ break;
+ case "PRIVATE_RANGES_ONLY":
+ case 1:
+ message.vpcConnectorEgressSettings = 1;
+ break;
+ case "ALL_TRAFFIC":
+ case 2:
+ message.vpcConnectorEgressSettings = 2;
+ break;
+ }
+ switch (object.ingressSettings) {
+ default:
+ if (typeof object.ingressSettings === "number") {
+ message.ingressSettings = object.ingressSettings;
+ break;
+ }
+ break;
+ case "INGRESS_SETTINGS_UNSPECIFIED":
+ case 0:
+ message.ingressSettings = 0;
+ break;
+ case "ALLOW_ALL":
+ case 1:
+ message.ingressSettings = 1;
+ break;
+ case "ALLOW_INTERNAL_ONLY":
+ case 2:
+ message.ingressSettings = 2;
+ break;
+ case "ALLOW_INTERNAL_AND_GCLB":
+ case 3:
+ message.ingressSettings = 3;
+ break;
+ }
+ if (object.kmsKeyName != null)
+ message.kmsKeyName = String(object.kmsKeyName);
+ if (object.buildWorkerPool != null)
+ message.buildWorkerPool = String(object.buildWorkerPool);
+ if (object.buildId != null)
+ message.buildId = String(object.buildId);
+ if (object.buildName != null)
+ message.buildName = String(object.buildName);
+ if (object.secretEnvironmentVariables) {
+ if (!Array.isArray(object.secretEnvironmentVariables))
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.secretEnvironmentVariables: array expected");
+ message.secretEnvironmentVariables = [];
+ for (var i = 0; i < object.secretEnvironmentVariables.length; ++i) {
+ if (typeof object.secretEnvironmentVariables[i] !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.secretEnvironmentVariables: object expected");
+ message.secretEnvironmentVariables[i] = $root.google.cloud.functions.v1.SecretEnvVar.fromObject(object.secretEnvironmentVariables[i]);
+ }
+ }
+ if (object.secretVolumes) {
+ if (!Array.isArray(object.secretVolumes))
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.secretVolumes: array expected");
+ message.secretVolumes = [];
+ for (var i = 0; i < object.secretVolumes.length; ++i) {
+ if (typeof object.secretVolumes[i] !== "object")
+ throw TypeError(".google.cloud.functions.v1.CloudFunction.secretVolumes: object expected");
+ message.secretVolumes[i] = $root.google.cloud.functions.v1.SecretVolume.fromObject(object.secretVolumes[i]);
+ }
+ }
+ if (object.sourceToken != null)
+ message.sourceToken = String(object.sourceToken);
+ if (object.dockerRepository != null)
+ message.dockerRepository = String(object.dockerRepository);
+ switch (object.dockerRegistry) {
+ default:
+ if (typeof object.dockerRegistry === "number") {
+ message.dockerRegistry = object.dockerRegistry;
+ break;
+ }
+ break;
+ case "DOCKER_REGISTRY_UNSPECIFIED":
+ case 0:
+ message.dockerRegistry = 0;
+ break;
+ case "CONTAINER_REGISTRY":
+ case 1:
+ message.dockerRegistry = 1;
+ break;
+ case "ARTIFACT_REGISTRY":
+ case 2:
+ message.dockerRegistry = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CloudFunction message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {google.cloud.functions.v1.CloudFunction} message CloudFunction
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CloudFunction.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.secretEnvironmentVariables = [];
+ object.secretVolumes = [];
+ }
+ if (options.objects || options.defaults) {
+ object.labels = {};
+ object.environmentVariables = {};
+ object.buildEnvironmentVariables = {};
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.status = options.enums === String ? "CLOUD_FUNCTION_STATUS_UNSPECIFIED" : 0;
+ object.entryPoint = "";
+ object.timeout = null;
+ object.availableMemoryMb = 0;
+ object.serviceAccountEmail = "";
+ object.updateTime = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.versionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.versionId = options.longs === String ? "0" : 0;
+ object.network = "";
+ object.runtime = "";
+ object.maxInstances = 0;
+ object.vpcConnector = "";
+ object.vpcConnectorEgressSettings = options.enums === String ? "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED" : 0;
+ object.ingressSettings = options.enums === String ? "INGRESS_SETTINGS_UNSPECIFIED" : 0;
+ object.kmsKeyName = "";
+ object.buildWorkerPool = "";
+ object.buildId = "";
+ object.sourceToken = "";
+ object.minInstances = 0;
+ object.buildName = "";
+ object.dockerRepository = "";
+ object.dockerRegistry = options.enums === String ? "DOCKER_REGISTRY_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.sourceArchiveUrl != null && message.hasOwnProperty("sourceArchiveUrl")) {
+ object.sourceArchiveUrl = message.sourceArchiveUrl;
+ if (options.oneofs)
+ object.sourceCode = "sourceArchiveUrl";
+ }
+ if (message.sourceRepository != null && message.hasOwnProperty("sourceRepository")) {
+ object.sourceRepository = $root.google.cloud.functions.v1.SourceRepository.toObject(message.sourceRepository, options);
+ if (options.oneofs)
+ object.sourceCode = "sourceRepository";
+ }
+ if (message.httpsTrigger != null && message.hasOwnProperty("httpsTrigger")) {
+ object.httpsTrigger = $root.google.cloud.functions.v1.HttpsTrigger.toObject(message.httpsTrigger, options);
+ if (options.oneofs)
+ object.trigger = "httpsTrigger";
+ }
+ if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) {
+ object.eventTrigger = $root.google.cloud.functions.v1.EventTrigger.toObject(message.eventTrigger, options);
+ if (options.oneofs)
+ object.trigger = "eventTrigger";
+ }
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = options.enums === String ? $root.google.cloud.functions.v1.CloudFunctionStatus[message.status] === undefined ? message.status : $root.google.cloud.functions.v1.CloudFunctionStatus[message.status] : message.status;
+ if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
+ object.entryPoint = message.entryPoint;
+ if (message.timeout != null && message.hasOwnProperty("timeout"))
+ object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options);
+ if (message.availableMemoryMb != null && message.hasOwnProperty("availableMemoryMb"))
+ object.availableMemoryMb = message.availableMemoryMb;
+ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail"))
+ object.serviceAccountEmail = message.serviceAccountEmail;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.versionId != null && message.hasOwnProperty("versionId"))
+ if (typeof message.versionId === "number")
+ object.versionId = options.longs === String ? String(message.versionId) : message.versionId;
+ else
+ object.versionId = options.longs === String ? $util.Long.prototype.toString.call(message.versionId) : options.longs === Number ? new $util.LongBits(message.versionId.low >>> 0, message.versionId.high >>> 0).toNumber() : message.versionId;
+ 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.sourceUploadUrl != null && message.hasOwnProperty("sourceUploadUrl")) {
+ object.sourceUploadUrl = message.sourceUploadUrl;
+ if (options.oneofs)
+ object.sourceCode = "sourceUploadUrl";
+ }
+ if (message.environmentVariables && (keys2 = Object.keys(message.environmentVariables)).length) {
+ object.environmentVariables = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.environmentVariables[keys2[j]] = message.environmentVariables[keys2[j]];
+ }
+ if (message.network != null && message.hasOwnProperty("network"))
+ object.network = message.network;
+ if (message.runtime != null && message.hasOwnProperty("runtime"))
+ object.runtime = message.runtime;
+ if (message.maxInstances != null && message.hasOwnProperty("maxInstances"))
+ object.maxInstances = message.maxInstances;
+ if (message.vpcConnector != null && message.hasOwnProperty("vpcConnector"))
+ object.vpcConnector = message.vpcConnector;
+ if (message.vpcConnectorEgressSettings != null && message.hasOwnProperty("vpcConnectorEgressSettings"))
+ object.vpcConnectorEgressSettings = options.enums === String ? $root.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings[message.vpcConnectorEgressSettings] === undefined ? message.vpcConnectorEgressSettings : $root.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings[message.vpcConnectorEgressSettings] : message.vpcConnectorEgressSettings;
+ if (message.ingressSettings != null && message.hasOwnProperty("ingressSettings"))
+ object.ingressSettings = options.enums === String ? $root.google.cloud.functions.v1.CloudFunction.IngressSettings[message.ingressSettings] === undefined ? message.ingressSettings : $root.google.cloud.functions.v1.CloudFunction.IngressSettings[message.ingressSettings] : message.ingressSettings;
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ object.kmsKeyName = message.kmsKeyName;
+ if (message.buildWorkerPool != null && message.hasOwnProperty("buildWorkerPool"))
+ object.buildWorkerPool = message.buildWorkerPool;
+ if (message.buildId != null && message.hasOwnProperty("buildId"))
+ object.buildId = message.buildId;
+ if (message.buildEnvironmentVariables && (keys2 = Object.keys(message.buildEnvironmentVariables)).length) {
+ object.buildEnvironmentVariables = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.buildEnvironmentVariables[keys2[j]] = message.buildEnvironmentVariables[keys2[j]];
+ }
+ if (message.secretEnvironmentVariables && message.secretEnvironmentVariables.length) {
+ object.secretEnvironmentVariables = [];
+ for (var j = 0; j < message.secretEnvironmentVariables.length; ++j)
+ object.secretEnvironmentVariables[j] = $root.google.cloud.functions.v1.SecretEnvVar.toObject(message.secretEnvironmentVariables[j], options);
+ }
+ if (message.secretVolumes && message.secretVolumes.length) {
+ object.secretVolumes = [];
+ for (var j = 0; j < message.secretVolumes.length; ++j)
+ object.secretVolumes[j] = $root.google.cloud.functions.v1.SecretVolume.toObject(message.secretVolumes[j], options);
+ }
+ if (message.sourceToken != null && message.hasOwnProperty("sourceToken"))
+ object.sourceToken = message.sourceToken;
+ if (message.minInstances != null && message.hasOwnProperty("minInstances"))
+ object.minInstances = message.minInstances;
+ if (message.buildName != null && message.hasOwnProperty("buildName"))
+ object.buildName = message.buildName;
+ if (message.dockerRepository != null && message.hasOwnProperty("dockerRepository"))
+ object.dockerRepository = message.dockerRepository;
+ if (message.dockerRegistry != null && message.hasOwnProperty("dockerRegistry"))
+ object.dockerRegistry = options.enums === String ? $root.google.cloud.functions.v1.CloudFunction.DockerRegistry[message.dockerRegistry] === undefined ? message.dockerRegistry : $root.google.cloud.functions.v1.CloudFunction.DockerRegistry[message.dockerRegistry] : message.dockerRegistry;
+ return object;
+ };
+
+ /**
+ * Converts this CloudFunction to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CloudFunction.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CloudFunction
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.CloudFunction
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CloudFunction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.CloudFunction";
+ };
+
+ /**
+ * VpcConnectorEgressSettings enum.
+ * @name google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings
+ * @enum {number}
+ * @property {number} VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED=0 VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED value
+ * @property {number} PRIVATE_RANGES_ONLY=1 PRIVATE_RANGES_ONLY value
+ * @property {number} ALL_TRAFFIC=2 ALL_TRAFFIC value
+ */
+ CloudFunction.VpcConnectorEgressSettings = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PRIVATE_RANGES_ONLY"] = 1;
+ values[valuesById[2] = "ALL_TRAFFIC"] = 2;
+ return values;
+ })();
+
+ /**
+ * IngressSettings enum.
+ * @name google.cloud.functions.v1.CloudFunction.IngressSettings
+ * @enum {number}
+ * @property {number} INGRESS_SETTINGS_UNSPECIFIED=0 INGRESS_SETTINGS_UNSPECIFIED value
+ * @property {number} ALLOW_ALL=1 ALLOW_ALL value
+ * @property {number} ALLOW_INTERNAL_ONLY=2 ALLOW_INTERNAL_ONLY value
+ * @property {number} ALLOW_INTERNAL_AND_GCLB=3 ALLOW_INTERNAL_AND_GCLB value
+ */
+ CloudFunction.IngressSettings = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "INGRESS_SETTINGS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ALLOW_ALL"] = 1;
+ values[valuesById[2] = "ALLOW_INTERNAL_ONLY"] = 2;
+ values[valuesById[3] = "ALLOW_INTERNAL_AND_GCLB"] = 3;
+ return values;
+ })();
+
+ /**
+ * DockerRegistry enum.
+ * @name google.cloud.functions.v1.CloudFunction.DockerRegistry
+ * @enum {number}
+ * @property {number} DOCKER_REGISTRY_UNSPECIFIED=0 DOCKER_REGISTRY_UNSPECIFIED value
+ * @property {number} CONTAINER_REGISTRY=1 CONTAINER_REGISTRY value
+ * @property {number} ARTIFACT_REGISTRY=2 ARTIFACT_REGISTRY value
+ */
+ CloudFunction.DockerRegistry = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DOCKER_REGISTRY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CONTAINER_REGISTRY"] = 1;
+ values[valuesById[2] = "ARTIFACT_REGISTRY"] = 2;
+ return values;
+ })();
+
+ return CloudFunction;
+ })();
+
+ v1.SourceRepository = (function() {
+
+ /**
+ * Properties of a SourceRepository.
+ * @memberof google.cloud.functions.v1
+ * @interface ISourceRepository
+ * @property {string|null} [url] SourceRepository url
+ * @property {string|null} [deployedUrl] SourceRepository deployedUrl
+ */
+
+ /**
+ * Constructs a new SourceRepository.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a SourceRepository.
+ * @implements ISourceRepository
+ * @constructor
+ * @param {google.cloud.functions.v1.ISourceRepository=} [properties] Properties to set
+ */
+ function SourceRepository(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]];
+ }
+
+ /**
+ * SourceRepository url.
+ * @member {string} url
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @instance
+ */
+ SourceRepository.prototype.url = "";
+
+ /**
+ * SourceRepository deployedUrl.
+ * @member {string} deployedUrl
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @instance
+ */
+ SourceRepository.prototype.deployedUrl = "";
+
+ /**
+ * Creates a new SourceRepository instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {google.cloud.functions.v1.ISourceRepository=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.SourceRepository} SourceRepository instance
+ */
+ SourceRepository.create = function create(properties) {
+ return new SourceRepository(properties);
+ };
+
+ /**
+ * Encodes the specified SourceRepository message. Does not implicitly {@link google.cloud.functions.v1.SourceRepository.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {google.cloud.functions.v1.ISourceRepository} message SourceRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceRepository.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.url);
+ if (message.deployedUrl != null && Object.hasOwnProperty.call(message, "deployedUrl"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedUrl);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SourceRepository message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SourceRepository.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {google.cloud.functions.v1.ISourceRepository} message SourceRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceRepository.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SourceRepository message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.SourceRepository} SourceRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceRepository.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.functions.v1.SourceRepository();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.url = reader.string();
+ break;
+ }
+ case 2: {
+ message.deployedUrl = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SourceRepository message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.SourceRepository} SourceRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceRepository.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SourceRepository message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SourceRepository.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.url != null && message.hasOwnProperty("url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ if (message.deployedUrl != null && message.hasOwnProperty("deployedUrl"))
+ if (!$util.isString(message.deployedUrl))
+ return "deployedUrl: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SourceRepository message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.SourceRepository} SourceRepository
+ */
+ SourceRepository.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.SourceRepository)
+ return object;
+ var message = new $root.google.cloud.functions.v1.SourceRepository();
+ if (object.url != null)
+ message.url = String(object.url);
+ if (object.deployedUrl != null)
+ message.deployedUrl = String(object.deployedUrl);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SourceRepository message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {google.cloud.functions.v1.SourceRepository} message SourceRepository
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SourceRepository.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.url = "";
+ object.deployedUrl = "";
+ }
+ if (message.url != null && message.hasOwnProperty("url"))
+ object.url = message.url;
+ if (message.deployedUrl != null && message.hasOwnProperty("deployedUrl"))
+ object.deployedUrl = message.deployedUrl;
+ return object;
+ };
+
+ /**
+ * Converts this SourceRepository to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SourceRepository.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SourceRepository
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.SourceRepository
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SourceRepository.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.SourceRepository";
+ };
+
+ return SourceRepository;
+ })();
+
+ v1.HttpsTrigger = (function() {
+
+ /**
+ * Properties of a HttpsTrigger.
+ * @memberof google.cloud.functions.v1
+ * @interface IHttpsTrigger
+ * @property {string|null} [url] HttpsTrigger url
+ * @property {google.cloud.functions.v1.HttpsTrigger.SecurityLevel|null} [securityLevel] HttpsTrigger securityLevel
+ */
+
+ /**
+ * Constructs a new HttpsTrigger.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a HttpsTrigger.
+ * @implements IHttpsTrigger
+ * @constructor
+ * @param {google.cloud.functions.v1.IHttpsTrigger=} [properties] Properties to set
+ */
+ function HttpsTrigger(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]];
+ }
+
+ /**
+ * HttpsTrigger url.
+ * @member {string} url
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @instance
+ */
+ HttpsTrigger.prototype.url = "";
+
+ /**
+ * HttpsTrigger securityLevel.
+ * @member {google.cloud.functions.v1.HttpsTrigger.SecurityLevel} securityLevel
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @instance
+ */
+ HttpsTrigger.prototype.securityLevel = 0;
+
+ /**
+ * Creates a new HttpsTrigger instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {google.cloud.functions.v1.IHttpsTrigger=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.HttpsTrigger} HttpsTrigger instance
+ */
+ HttpsTrigger.create = function create(properties) {
+ return new HttpsTrigger(properties);
+ };
+
+ /**
+ * Encodes the specified HttpsTrigger message. Does not implicitly {@link google.cloud.functions.v1.HttpsTrigger.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {google.cloud.functions.v1.IHttpsTrigger} message HttpsTrigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpsTrigger.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.url);
+ if (message.securityLevel != null && Object.hasOwnProperty.call(message, "securityLevel"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.securityLevel);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HttpsTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v1.HttpsTrigger.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {google.cloud.functions.v1.IHttpsTrigger} message HttpsTrigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpsTrigger.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HttpsTrigger message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.HttpsTrigger} HttpsTrigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpsTrigger.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.functions.v1.HttpsTrigger();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.url = reader.string();
+ break;
+ }
+ case 2: {
+ message.securityLevel = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HttpsTrigger message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.HttpsTrigger} HttpsTrigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpsTrigger.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HttpsTrigger message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HttpsTrigger.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.url != null && message.hasOwnProperty("url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ if (message.securityLevel != null && message.hasOwnProperty("securityLevel"))
+ switch (message.securityLevel) {
+ default:
+ return "securityLevel: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a HttpsTrigger message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.HttpsTrigger} HttpsTrigger
+ */
+ HttpsTrigger.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.HttpsTrigger)
+ return object;
+ var message = new $root.google.cloud.functions.v1.HttpsTrigger();
+ if (object.url != null)
+ message.url = String(object.url);
+ switch (object.securityLevel) {
+ default:
+ if (typeof object.securityLevel === "number") {
+ message.securityLevel = object.securityLevel;
+ break;
+ }
+ break;
+ case "SECURITY_LEVEL_UNSPECIFIED":
+ case 0:
+ message.securityLevel = 0;
+ break;
+ case "SECURE_ALWAYS":
+ case 1:
+ message.securityLevel = 1;
+ break;
+ case "SECURE_OPTIONAL":
+ case 2:
+ message.securityLevel = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HttpsTrigger message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {google.cloud.functions.v1.HttpsTrigger} message HttpsTrigger
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HttpsTrigger.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.url = "";
+ object.securityLevel = options.enums === String ? "SECURITY_LEVEL_UNSPECIFIED" : 0;
+ }
+ if (message.url != null && message.hasOwnProperty("url"))
+ object.url = message.url;
+ if (message.securityLevel != null && message.hasOwnProperty("securityLevel"))
+ object.securityLevel = options.enums === String ? $root.google.cloud.functions.v1.HttpsTrigger.SecurityLevel[message.securityLevel] === undefined ? message.securityLevel : $root.google.cloud.functions.v1.HttpsTrigger.SecurityLevel[message.securityLevel] : message.securityLevel;
+ return object;
+ };
+
+ /**
+ * Converts this HttpsTrigger to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpsTrigger.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HttpsTrigger
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.HttpsTrigger
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HttpsTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.HttpsTrigger";
+ };
+
+ /**
+ * SecurityLevel enum.
+ * @name google.cloud.functions.v1.HttpsTrigger.SecurityLevel
+ * @enum {number}
+ * @property {number} SECURITY_LEVEL_UNSPECIFIED=0 SECURITY_LEVEL_UNSPECIFIED value
+ * @property {number} SECURE_ALWAYS=1 SECURE_ALWAYS value
+ * @property {number} SECURE_OPTIONAL=2 SECURE_OPTIONAL value
+ */
+ HttpsTrigger.SecurityLevel = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SECURITY_LEVEL_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "SECURE_ALWAYS"] = 1;
+ values[valuesById[2] = "SECURE_OPTIONAL"] = 2;
+ return values;
+ })();
+
+ return HttpsTrigger;
+ })();
+
+ v1.EventTrigger = (function() {
+
+ /**
+ * Properties of an EventTrigger.
+ * @memberof google.cloud.functions.v1
+ * @interface IEventTrigger
+ * @property {string|null} [eventType] EventTrigger eventType
+ * @property {string|null} [resource] EventTrigger resource
+ * @property {string|null} [service] EventTrigger service
+ * @property {google.cloud.functions.v1.IFailurePolicy|null} [failurePolicy] EventTrigger failurePolicy
+ */
+
+ /**
+ * Constructs a new EventTrigger.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents an EventTrigger.
+ * @implements IEventTrigger
+ * @constructor
+ * @param {google.cloud.functions.v1.IEventTrigger=} [properties] Properties to set
+ */
+ function EventTrigger(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]];
+ }
+
+ /**
+ * EventTrigger eventType.
+ * @member {string} eventType
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.eventType = "";
+
+ /**
+ * EventTrigger resource.
+ * @member {string} resource
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.resource = "";
+
+ /**
+ * EventTrigger service.
+ * @member {string} service
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.service = "";
+
+ /**
+ * EventTrigger failurePolicy.
+ * @member {google.cloud.functions.v1.IFailurePolicy|null|undefined} failurePolicy
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.failurePolicy = null;
+
+ /**
+ * Creates a new EventTrigger instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v1.IEventTrigger=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.EventTrigger} EventTrigger instance
+ */
+ EventTrigger.create = function create(properties) {
+ return new EventTrigger(properties);
+ };
+
+ /**
+ * Encodes the specified EventTrigger message. Does not implicitly {@link google.cloud.functions.v1.EventTrigger.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v1.IEventTrigger} message EventTrigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventTrigger.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventType);
+ if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.resource);
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.service);
+ if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy"))
+ $root.google.cloud.functions.v1.FailurePolicy.encode(message.failurePolicy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EventTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v1.EventTrigger.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v1.IEventTrigger} message EventTrigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventTrigger.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.EventTrigger} EventTrigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventTrigger.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.functions.v1.EventTrigger();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.eventType = reader.string();
+ break;
+ }
+ case 2: {
+ message.resource = reader.string();
+ break;
+ }
+ case 3: {
+ message.service = reader.string();
+ break;
+ }
+ case 5: {
+ message.failurePolicy = $root.google.cloud.functions.v1.FailurePolicy.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.EventTrigger} EventTrigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventTrigger.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EventTrigger message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EventTrigger.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.eventType != null && message.hasOwnProperty("eventType"))
+ if (!$util.isString(message.eventType))
+ return "eventType: string expected";
+ if (message.resource != null && message.hasOwnProperty("resource"))
+ if (!$util.isString(message.resource))
+ return "resource: string expected";
+ if (message.service != null && message.hasOwnProperty("service"))
+ if (!$util.isString(message.service))
+ return "service: string expected";
+ if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) {
+ var error = $root.google.cloud.functions.v1.FailurePolicy.verify(message.failurePolicy);
+ if (error)
+ return "failurePolicy." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an EventTrigger message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.EventTrigger} EventTrigger
+ */
+ EventTrigger.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.EventTrigger)
+ return object;
+ var message = new $root.google.cloud.functions.v1.EventTrigger();
+ if (object.eventType != null)
+ message.eventType = String(object.eventType);
+ if (object.resource != null)
+ message.resource = String(object.resource);
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.failurePolicy != null) {
+ if (typeof object.failurePolicy !== "object")
+ throw TypeError(".google.cloud.functions.v1.EventTrigger.failurePolicy: object expected");
+ message.failurePolicy = $root.google.cloud.functions.v1.FailurePolicy.fromObject(object.failurePolicy);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EventTrigger message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v1.EventTrigger} message EventTrigger
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EventTrigger.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.eventType = "";
+ object.resource = "";
+ object.service = "";
+ object.failurePolicy = null;
+ }
+ if (message.eventType != null && message.hasOwnProperty("eventType"))
+ object.eventType = message.eventType;
+ if (message.resource != null && message.hasOwnProperty("resource"))
+ object.resource = message.resource;
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = message.service;
+ if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy"))
+ object.failurePolicy = $root.google.cloud.functions.v1.FailurePolicy.toObject(message.failurePolicy, options);
+ return object;
+ };
+
+ /**
+ * Converts this EventTrigger to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EventTrigger.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EventTrigger
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.EventTrigger
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EventTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.EventTrigger";
+ };
+
+ return EventTrigger;
+ })();
+
+ v1.FailurePolicy = (function() {
+
+ /**
+ * Properties of a FailurePolicy.
+ * @memberof google.cloud.functions.v1
+ * @interface IFailurePolicy
+ * @property {google.cloud.functions.v1.FailurePolicy.IRetry|null} [retry] FailurePolicy retry
+ */
+
+ /**
+ * Constructs a new FailurePolicy.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a FailurePolicy.
+ * @implements IFailurePolicy
+ * @constructor
+ * @param {google.cloud.functions.v1.IFailurePolicy=} [properties] Properties to set
+ */
+ function FailurePolicy(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]];
+ }
+
+ /**
+ * FailurePolicy retry.
+ * @member {google.cloud.functions.v1.FailurePolicy.IRetry|null|undefined} retry
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @instance
+ */
+ FailurePolicy.prototype.retry = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * FailurePolicy action.
+ * @member {"retry"|undefined} action
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @instance
+ */
+ Object.defineProperty(FailurePolicy.prototype, "action", {
+ get: $util.oneOfGetter($oneOfFields = ["retry"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new FailurePolicy instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {google.cloud.functions.v1.IFailurePolicy=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.FailurePolicy} FailurePolicy instance
+ */
+ FailurePolicy.create = function create(properties) {
+ return new FailurePolicy(properties);
+ };
+
+ /**
+ * Encodes the specified FailurePolicy message. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {google.cloud.functions.v1.IFailurePolicy} message FailurePolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FailurePolicy.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.retry != null && Object.hasOwnProperty.call(message, "retry"))
+ $root.google.cloud.functions.v1.FailurePolicy.Retry.encode(message.retry, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FailurePolicy message, length delimited. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {google.cloud.functions.v1.IFailurePolicy} message FailurePolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FailurePolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FailurePolicy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.FailurePolicy} FailurePolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FailurePolicy.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.functions.v1.FailurePolicy();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.retry = $root.google.cloud.functions.v1.FailurePolicy.Retry.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FailurePolicy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.FailurePolicy} FailurePolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FailurePolicy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FailurePolicy message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FailurePolicy.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.retry != null && message.hasOwnProperty("retry")) {
+ properties.action = 1;
+ {
+ var error = $root.google.cloud.functions.v1.FailurePolicy.Retry.verify(message.retry);
+ if (error)
+ return "retry." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FailurePolicy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.FailurePolicy} FailurePolicy
+ */
+ FailurePolicy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.FailurePolicy)
+ return object;
+ var message = new $root.google.cloud.functions.v1.FailurePolicy();
+ if (object.retry != null) {
+ if (typeof object.retry !== "object")
+ throw TypeError(".google.cloud.functions.v1.FailurePolicy.retry: object expected");
+ message.retry = $root.google.cloud.functions.v1.FailurePolicy.Retry.fromObject(object.retry);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FailurePolicy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {google.cloud.functions.v1.FailurePolicy} message FailurePolicy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FailurePolicy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.retry != null && message.hasOwnProperty("retry")) {
+ object.retry = $root.google.cloud.functions.v1.FailurePolicy.Retry.toObject(message.retry, options);
+ if (options.oneofs)
+ object.action = "retry";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FailurePolicy to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FailurePolicy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FailurePolicy
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FailurePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.FailurePolicy";
+ };
+
+ FailurePolicy.Retry = (function() {
+
+ /**
+ * Properties of a Retry.
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @interface IRetry
+ */
+
+ /**
+ * Constructs a new Retry.
+ * @memberof google.cloud.functions.v1.FailurePolicy
+ * @classdesc Represents a Retry.
+ * @implements IRetry
+ * @constructor
+ * @param {google.cloud.functions.v1.FailurePolicy.IRetry=} [properties] Properties to set
+ */
+ function Retry(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new Retry instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {google.cloud.functions.v1.FailurePolicy.IRetry=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.FailurePolicy.Retry} Retry instance
+ */
+ Retry.create = function create(properties) {
+ return new Retry(properties);
+ };
+
+ /**
+ * Encodes the specified Retry message. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.Retry.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {google.cloud.functions.v1.FailurePolicy.IRetry} message Retry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Retry.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Retry message, length delimited. Does not implicitly {@link google.cloud.functions.v1.FailurePolicy.Retry.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {google.cloud.functions.v1.FailurePolicy.IRetry} message Retry message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Retry.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Retry message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.FailurePolicy.Retry} Retry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Retry.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.functions.v1.FailurePolicy.Retry();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Retry message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.FailurePolicy.Retry} Retry
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Retry.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Retry message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Retry.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ return null;
+ };
+
+ /**
+ * Creates a Retry message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.FailurePolicy.Retry} Retry
+ */
+ Retry.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.FailurePolicy.Retry)
+ return object;
+ return new $root.google.cloud.functions.v1.FailurePolicy.Retry();
+ };
+
+ /**
+ * Creates a plain object from a Retry message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {google.cloud.functions.v1.FailurePolicy.Retry} message Retry
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Retry.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this Retry to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Retry.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Retry
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.FailurePolicy.Retry
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Retry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.FailurePolicy.Retry";
+ };
+
+ return Retry;
+ })();
+
+ return FailurePolicy;
+ })();
+
+ /**
+ * CloudFunctionStatus enum.
+ * @name google.cloud.functions.v1.CloudFunctionStatus
+ * @enum {number}
+ * @property {number} CLOUD_FUNCTION_STATUS_UNSPECIFIED=0 CLOUD_FUNCTION_STATUS_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} OFFLINE=2 OFFLINE value
+ * @property {number} DEPLOY_IN_PROGRESS=3 DEPLOY_IN_PROGRESS value
+ * @property {number} DELETE_IN_PROGRESS=4 DELETE_IN_PROGRESS value
+ * @property {number} UNKNOWN=5 UNKNOWN value
+ */
+ v1.CloudFunctionStatus = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CLOUD_FUNCTION_STATUS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "OFFLINE"] = 2;
+ values[valuesById[3] = "DEPLOY_IN_PROGRESS"] = 3;
+ values[valuesById[4] = "DELETE_IN_PROGRESS"] = 4;
+ values[valuesById[5] = "UNKNOWN"] = 5;
+ return values;
+ })();
+
+ v1.SecretEnvVar = (function() {
+
+ /**
+ * Properties of a SecretEnvVar.
+ * @memberof google.cloud.functions.v1
+ * @interface ISecretEnvVar
+ * @property {string|null} [key] SecretEnvVar key
+ * @property {string|null} [projectId] SecretEnvVar projectId
+ * @property {string|null} [secret] SecretEnvVar secret
+ * @property {string|null} [version] SecretEnvVar version
+ */
+
+ /**
+ * Constructs a new SecretEnvVar.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a SecretEnvVar.
+ * @implements ISecretEnvVar
+ * @constructor
+ * @param {google.cloud.functions.v1.ISecretEnvVar=} [properties] Properties to set
+ */
+ function SecretEnvVar(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]];
+ }
+
+ /**
+ * SecretEnvVar key.
+ * @member {string} key
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.key = "";
+
+ /**
+ * SecretEnvVar projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.projectId = "";
+
+ /**
+ * SecretEnvVar secret.
+ * @member {string} secret
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.secret = "";
+
+ /**
+ * SecretEnvVar version.
+ * @member {string} version
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.version = "";
+
+ /**
+ * Creates a new SecretEnvVar instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v1.ISecretEnvVar=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.SecretEnvVar} SecretEnvVar instance
+ */
+ SecretEnvVar.create = function create(properties) {
+ return new SecretEnvVar(properties);
+ };
+
+ /**
+ * Encodes the specified SecretEnvVar message. Does not implicitly {@link google.cloud.functions.v1.SecretEnvVar.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v1.ISecretEnvVar} message SecretEnvVar message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretEnvVar.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectId);
+ if (message.secret != null && Object.hasOwnProperty.call(message, "secret"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.secret);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.version);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SecretEnvVar message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SecretEnvVar.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v1.ISecretEnvVar} message SecretEnvVar message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretEnvVar.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.SecretEnvVar} SecretEnvVar
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretEnvVar.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.functions.v1.SecretEnvVar();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.key = reader.string();
+ break;
+ }
+ case 2: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 3: {
+ message.secret = reader.string();
+ break;
+ }
+ case 4: {
+ message.version = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.SecretEnvVar} SecretEnvVar
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretEnvVar.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SecretEnvVar message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SecretEnvVar.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (!$util.isString(message.key))
+ return "key: string expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ if (!$util.isString(message.secret))
+ return "secret: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SecretEnvVar message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.SecretEnvVar} SecretEnvVar
+ */
+ SecretEnvVar.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.SecretEnvVar)
+ return object;
+ var message = new $root.google.cloud.functions.v1.SecretEnvVar();
+ if (object.key != null)
+ message.key = String(object.key);
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.secret != null)
+ message.secret = String(object.secret);
+ if (object.version != null)
+ message.version = String(object.version);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SecretEnvVar message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v1.SecretEnvVar} message SecretEnvVar
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SecretEnvVar.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.key = "";
+ object.projectId = "";
+ object.secret = "";
+ object.version = "";
+ }
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ object.secret = message.secret;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ return object;
+ };
+
+ /**
+ * Converts this SecretEnvVar to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SecretEnvVar.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SecretEnvVar
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.SecretEnvVar
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SecretEnvVar.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.SecretEnvVar";
+ };
+
+ return SecretEnvVar;
+ })();
+
+ v1.SecretVolume = (function() {
+
+ /**
+ * Properties of a SecretVolume.
+ * @memberof google.cloud.functions.v1
+ * @interface ISecretVolume
+ * @property {string|null} [mountPath] SecretVolume mountPath
+ * @property {string|null} [projectId] SecretVolume projectId
+ * @property {string|null} [secret] SecretVolume secret
+ * @property {Array.|null} [versions] SecretVolume versions
+ */
+
+ /**
+ * Constructs a new SecretVolume.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a SecretVolume.
+ * @implements ISecretVolume
+ * @constructor
+ * @param {google.cloud.functions.v1.ISecretVolume=} [properties] Properties to set
+ */
+ function SecretVolume(properties) {
+ this.versions = [];
+ 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]];
+ }
+
+ /**
+ * SecretVolume mountPath.
+ * @member {string} mountPath
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.mountPath = "";
+
+ /**
+ * SecretVolume projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.projectId = "";
+
+ /**
+ * SecretVolume secret.
+ * @member {string} secret
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.secret = "";
+
+ /**
+ * SecretVolume versions.
+ * @member {Array.} versions
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.versions = $util.emptyArray;
+
+ /**
+ * Creates a new SecretVolume instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v1.ISecretVolume=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.SecretVolume} SecretVolume instance
+ */
+ SecretVolume.create = function create(properties) {
+ return new SecretVolume(properties);
+ };
+
+ /**
+ * Encodes the specified SecretVolume message. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v1.ISecretVolume} message SecretVolume message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVolume.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.mountPath != null && Object.hasOwnProperty.call(message, "mountPath"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.mountPath);
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectId);
+ if (message.secret != null && Object.hasOwnProperty.call(message, "secret"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.secret);
+ if (message.versions != null && message.versions.length)
+ for (var i = 0; i < message.versions.length; ++i)
+ $root.google.cloud.functions.v1.SecretVolume.SecretVersion.encode(message.versions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SecretVolume message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v1.ISecretVolume} message SecretVolume message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVolume.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.SecretVolume} SecretVolume
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVolume.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.functions.v1.SecretVolume();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.mountPath = reader.string();
+ break;
+ }
+ case 2: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 3: {
+ message.secret = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.versions && message.versions.length))
+ message.versions = [];
+ message.versions.push($root.google.cloud.functions.v1.SecretVolume.SecretVersion.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.SecretVolume} SecretVolume
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVolume.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SecretVolume message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SecretVolume.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
+ if (!$util.isString(message.mountPath))
+ return "mountPath: string expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ if (!$util.isString(message.secret))
+ return "secret: string expected";
+ if (message.versions != null && message.hasOwnProperty("versions")) {
+ if (!Array.isArray(message.versions))
+ return "versions: array expected";
+ for (var i = 0; i < message.versions.length; ++i) {
+ var error = $root.google.cloud.functions.v1.SecretVolume.SecretVersion.verify(message.versions[i]);
+ if (error)
+ return "versions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SecretVolume message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.SecretVolume} SecretVolume
+ */
+ SecretVolume.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.SecretVolume)
+ return object;
+ var message = new $root.google.cloud.functions.v1.SecretVolume();
+ if (object.mountPath != null)
+ message.mountPath = String(object.mountPath);
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.secret != null)
+ message.secret = String(object.secret);
+ if (object.versions) {
+ if (!Array.isArray(object.versions))
+ throw TypeError(".google.cloud.functions.v1.SecretVolume.versions: array expected");
+ message.versions = [];
+ for (var i = 0; i < object.versions.length; ++i) {
+ if (typeof object.versions[i] !== "object")
+ throw TypeError(".google.cloud.functions.v1.SecretVolume.versions: object expected");
+ message.versions[i] = $root.google.cloud.functions.v1.SecretVolume.SecretVersion.fromObject(object.versions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SecretVolume message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v1.SecretVolume} message SecretVolume
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SecretVolume.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.versions = [];
+ if (options.defaults) {
+ object.mountPath = "";
+ object.projectId = "";
+ object.secret = "";
+ }
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
+ object.mountPath = message.mountPath;
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ object.secret = message.secret;
+ if (message.versions && message.versions.length) {
+ object.versions = [];
+ for (var j = 0; j < message.versions.length; ++j)
+ object.versions[j] = $root.google.cloud.functions.v1.SecretVolume.SecretVersion.toObject(message.versions[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this SecretVolume to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SecretVolume.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SecretVolume
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SecretVolume.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.SecretVolume";
+ };
+
+ SecretVolume.SecretVersion = (function() {
+
+ /**
+ * Properties of a SecretVersion.
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @interface ISecretVersion
+ * @property {string|null} [version] SecretVersion version
+ * @property {string|null} [path] SecretVersion path
+ */
+
+ /**
+ * Constructs a new SecretVersion.
+ * @memberof google.cloud.functions.v1.SecretVolume
+ * @classdesc Represents a SecretVersion.
+ * @implements ISecretVersion
+ * @constructor
+ * @param {google.cloud.functions.v1.SecretVolume.ISecretVersion=} [properties] Properties to set
+ */
+ function SecretVersion(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]];
+ }
+
+ /**
+ * SecretVersion version.
+ * @member {string} version
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @instance
+ */
+ SecretVersion.prototype.version = "";
+
+ /**
+ * SecretVersion path.
+ * @member {string} path
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @instance
+ */
+ SecretVersion.prototype.path = "";
+
+ /**
+ * Creates a new SecretVersion instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v1.SecretVolume.ISecretVersion=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.SecretVolume.SecretVersion} SecretVersion instance
+ */
+ SecretVersion.create = function create(properties) {
+ return new SecretVersion(properties);
+ };
+
+ /**
+ * Encodes the specified SecretVersion message. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.SecretVersion.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v1.SecretVolume.ISecretVersion} message SecretVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVersion.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SecretVersion message, length delimited. Does not implicitly {@link google.cloud.functions.v1.SecretVolume.SecretVersion.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v1.SecretVolume.ISecretVersion} message SecretVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVersion.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.SecretVolume.SecretVersion} SecretVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVersion.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.functions.v1.SecretVolume.SecretVersion();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.SecretVolume.SecretVersion} SecretVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVersion.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SecretVersion message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SecretVersion.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SecretVersion message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.SecretVolume.SecretVersion} SecretVersion
+ */
+ SecretVersion.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.SecretVolume.SecretVersion)
+ return object;
+ var message = new $root.google.cloud.functions.v1.SecretVolume.SecretVersion();
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SecretVersion message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v1.SecretVolume.SecretVersion} message SecretVersion
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SecretVersion.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.path = "";
+ }
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this SecretVersion to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SecretVersion.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SecretVersion
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.SecretVolume.SecretVersion
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SecretVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.SecretVolume.SecretVersion";
+ };
+
+ return SecretVersion;
+ })();
+
+ return SecretVolume;
+ })();
+
+ v1.CreateFunctionRequest = (function() {
+
+ /**
+ * Properties of a CreateFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface ICreateFunctionRequest
+ * @property {string|null} [location] CreateFunctionRequest location
+ * @property {google.cloud.functions.v1.ICloudFunction|null} ["function"] CreateFunctionRequest function
+ */
+
+ /**
+ * Constructs a new CreateFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a CreateFunctionRequest.
+ * @implements ICreateFunctionRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.ICreateFunctionRequest=} [properties] Properties to set
+ */
+ function CreateFunctionRequest(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]];
+ }
+
+ /**
+ * CreateFunctionRequest location.
+ * @member {string} location
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @instance
+ */
+ CreateFunctionRequest.prototype.location = "";
+
+ /**
+ * CreateFunctionRequest function.
+ * @member {google.cloud.functions.v1.ICloudFunction|null|undefined} function
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @instance
+ */
+ CreateFunctionRequest.prototype["function"] = null;
+
+ /**
+ * Creates a new CreateFunctionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.ICreateFunctionRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.CreateFunctionRequest} CreateFunctionRequest instance
+ */
+ CreateFunctionRequest.create = function create(properties) {
+ return new CreateFunctionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.CreateFunctionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.ICreateFunctionRequest} message CreateFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateFunctionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.location);
+ if (message["function"] != null && Object.hasOwnProperty.call(message, "function"))
+ $root.google.cloud.functions.v1.CloudFunction.encode(message["function"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CreateFunctionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.ICreateFunctionRequest} message CreateFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateFunctionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.CreateFunctionRequest} CreateFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateFunctionRequest.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.functions.v1.CreateFunctionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.location = reader.string();
+ break;
+ }
+ case 2: {
+ message["function"] = $root.google.cloud.functions.v1.CloudFunction.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.CreateFunctionRequest} CreateFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateFunctionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateFunctionRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateFunctionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message["function"] != null && message.hasOwnProperty("function")) {
+ var error = $root.google.cloud.functions.v1.CloudFunction.verify(message["function"]);
+ if (error)
+ return "function." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.CreateFunctionRequest} CreateFunctionRequest
+ */
+ CreateFunctionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.CreateFunctionRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.CreateFunctionRequest();
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object["function"] != null) {
+ if (typeof object["function"] !== "object")
+ throw TypeError(".google.cloud.functions.v1.CreateFunctionRequest.function: object expected");
+ message["function"] = $root.google.cloud.functions.v1.CloudFunction.fromObject(object["function"]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateFunctionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.CreateFunctionRequest} message CreateFunctionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateFunctionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.location = "";
+ object["function"] = null;
+ }
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message["function"] != null && message.hasOwnProperty("function"))
+ object["function"] = $root.google.cloud.functions.v1.CloudFunction.toObject(message["function"], options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateFunctionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateFunctionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateFunctionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.CreateFunctionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateFunctionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.CreateFunctionRequest";
+ };
+
+ return CreateFunctionRequest;
+ })();
+
+ v1.UpdateFunctionRequest = (function() {
+
+ /**
+ * Properties of an UpdateFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface IUpdateFunctionRequest
+ * @property {google.cloud.functions.v1.ICloudFunction|null} ["function"] UpdateFunctionRequest function
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFunctionRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents an UpdateFunctionRequest.
+ * @implements IUpdateFunctionRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.IUpdateFunctionRequest=} [properties] Properties to set
+ */
+ function UpdateFunctionRequest(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]];
+ }
+
+ /**
+ * UpdateFunctionRequest function.
+ * @member {google.cloud.functions.v1.ICloudFunction|null|undefined} function
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @instance
+ */
+ UpdateFunctionRequest.prototype["function"] = null;
+
+ /**
+ * UpdateFunctionRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @instance
+ */
+ UpdateFunctionRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateFunctionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IUpdateFunctionRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.UpdateFunctionRequest} UpdateFunctionRequest instance
+ */
+ UpdateFunctionRequest.create = function create(properties) {
+ return new UpdateFunctionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.UpdateFunctionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IUpdateFunctionRequest} message UpdateFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateFunctionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message["function"] != null && Object.hasOwnProperty.call(message, "function"))
+ $root.google.cloud.functions.v1.CloudFunction.encode(message["function"], 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 UpdateFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.UpdateFunctionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IUpdateFunctionRequest} message UpdateFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateFunctionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateFunctionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.UpdateFunctionRequest} UpdateFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateFunctionRequest.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.functions.v1.UpdateFunctionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message["function"] = $root.google.cloud.functions.v1.CloudFunction.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 UpdateFunctionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.UpdateFunctionRequest} UpdateFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateFunctionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateFunctionRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateFunctionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message["function"] != null && message.hasOwnProperty("function")) {
+ var error = $root.google.cloud.functions.v1.CloudFunction.verify(message["function"]);
+ if (error)
+ return "function." + 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 UpdateFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.UpdateFunctionRequest} UpdateFunctionRequest
+ */
+ UpdateFunctionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.UpdateFunctionRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.UpdateFunctionRequest();
+ if (object["function"] != null) {
+ if (typeof object["function"] !== "object")
+ throw TypeError(".google.cloud.functions.v1.UpdateFunctionRequest.function: object expected");
+ message["function"] = $root.google.cloud.functions.v1.CloudFunction.fromObject(object["function"]);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.functions.v1.UpdateFunctionRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateFunctionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.UpdateFunctionRequest} message UpdateFunctionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateFunctionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object["function"] = null;
+ object.updateMask = null;
+ }
+ if (message["function"] != null && message.hasOwnProperty("function"))
+ object["function"] = $root.google.cloud.functions.v1.CloudFunction.toObject(message["function"], options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateFunctionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateFunctionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateFunctionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.UpdateFunctionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateFunctionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.UpdateFunctionRequest";
+ };
+
+ return UpdateFunctionRequest;
+ })();
+
+ v1.GetFunctionRequest = (function() {
+
+ /**
+ * Properties of a GetFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface IGetFunctionRequest
+ * @property {string|null} [name] GetFunctionRequest name
+ */
+
+ /**
+ * Constructs a new GetFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a GetFunctionRequest.
+ * @implements IGetFunctionRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.IGetFunctionRequest=} [properties] Properties to set
+ */
+ function GetFunctionRequest(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]];
+ }
+
+ /**
+ * GetFunctionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @instance
+ */
+ GetFunctionRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetFunctionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGetFunctionRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.GetFunctionRequest} GetFunctionRequest instance
+ */
+ GetFunctionRequest.create = function create(properties) {
+ return new GetFunctionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.GetFunctionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGetFunctionRequest} message GetFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetFunctionRequest.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 GetFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GetFunctionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGetFunctionRequest} message GetFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetFunctionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetFunctionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.GetFunctionRequest} GetFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetFunctionRequest.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.functions.v1.GetFunctionRequest();
+ 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 GetFunctionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.GetFunctionRequest} GetFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetFunctionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetFunctionRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetFunctionRequest.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 GetFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.GetFunctionRequest} GetFunctionRequest
+ */
+ GetFunctionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.GetFunctionRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.GetFunctionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetFunctionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.GetFunctionRequest} message GetFunctionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetFunctionRequest.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 GetFunctionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetFunctionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetFunctionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.GetFunctionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetFunctionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.GetFunctionRequest";
+ };
+
+ return GetFunctionRequest;
+ })();
+
+ v1.ListFunctionsRequest = (function() {
+
+ /**
+ * Properties of a ListFunctionsRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface IListFunctionsRequest
+ * @property {string|null} [parent] ListFunctionsRequest parent
+ * @property {number|null} [pageSize] ListFunctionsRequest pageSize
+ * @property {string|null} [pageToken] ListFunctionsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListFunctionsRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a ListFunctionsRequest.
+ * @implements IListFunctionsRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.IListFunctionsRequest=} [properties] Properties to set
+ */
+ function ListFunctionsRequest(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]];
+ }
+
+ /**
+ * ListFunctionsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @instance
+ */
+ ListFunctionsRequest.prototype.parent = "";
+
+ /**
+ * ListFunctionsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @instance
+ */
+ ListFunctionsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListFunctionsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @instance
+ */
+ ListFunctionsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListFunctionsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {google.cloud.functions.v1.IListFunctionsRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.ListFunctionsRequest} ListFunctionsRequest instance
+ */
+ ListFunctionsRequest.create = function create(properties) {
+ return new ListFunctionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListFunctionsRequest message. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {google.cloud.functions.v1.IListFunctionsRequest} message ListFunctionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFunctionsRequest.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 ListFunctionsRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {google.cloud.functions.v1.IListFunctionsRequest} message ListFunctionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFunctionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFunctionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.ListFunctionsRequest} ListFunctionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFunctionsRequest.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.functions.v1.ListFunctionsRequest();
+ 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 ListFunctionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.ListFunctionsRequest} ListFunctionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFunctionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFunctionsRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFunctionsRequest.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 ListFunctionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.ListFunctionsRequest} ListFunctionsRequest
+ */
+ ListFunctionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.ListFunctionsRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.ListFunctionsRequest();
+ 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 ListFunctionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {google.cloud.functions.v1.ListFunctionsRequest} message ListFunctionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFunctionsRequest.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 ListFunctionsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFunctionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFunctionsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.ListFunctionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFunctionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.ListFunctionsRequest";
+ };
+
+ return ListFunctionsRequest;
+ })();
+
+ v1.ListFunctionsResponse = (function() {
+
+ /**
+ * Properties of a ListFunctionsResponse.
+ * @memberof google.cloud.functions.v1
+ * @interface IListFunctionsResponse
+ * @property {Array.|null} [functions] ListFunctionsResponse functions
+ * @property {string|null} [nextPageToken] ListFunctionsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListFunctionsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListFunctionsResponse.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a ListFunctionsResponse.
+ * @implements IListFunctionsResponse
+ * @constructor
+ * @param {google.cloud.functions.v1.IListFunctionsResponse=} [properties] Properties to set
+ */
+ function ListFunctionsResponse(properties) {
+ this.functions = [];
+ 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]];
+ }
+
+ /**
+ * ListFunctionsResponse functions.
+ * @member {Array.} functions
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @instance
+ */
+ ListFunctionsResponse.prototype.functions = $util.emptyArray;
+
+ /**
+ * ListFunctionsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @instance
+ */
+ ListFunctionsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListFunctionsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @instance
+ */
+ ListFunctionsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListFunctionsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {google.cloud.functions.v1.IListFunctionsResponse=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.ListFunctionsResponse} ListFunctionsResponse instance
+ */
+ ListFunctionsResponse.create = function create(properties) {
+ return new ListFunctionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListFunctionsResponse message. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {google.cloud.functions.v1.IListFunctionsResponse} message ListFunctionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFunctionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.functions != null && message.functions.length)
+ for (var i = 0; i < message.functions.length; ++i)
+ $root.google.cloud.functions.v1.CloudFunction.encode(message.functions[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 ListFunctionsResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.ListFunctionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {google.cloud.functions.v1.IListFunctionsResponse} message ListFunctionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFunctionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFunctionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.ListFunctionsResponse} ListFunctionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFunctionsResponse.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.functions.v1.ListFunctionsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.functions && message.functions.length))
+ message.functions = [];
+ message.functions.push($root.google.cloud.functions.v1.CloudFunction.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 ListFunctionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.ListFunctionsResponse} ListFunctionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFunctionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFunctionsResponse message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFunctionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.functions != null && message.hasOwnProperty("functions")) {
+ if (!Array.isArray(message.functions))
+ return "functions: array expected";
+ for (var i = 0; i < message.functions.length; ++i) {
+ var error = $root.google.cloud.functions.v1.CloudFunction.verify(message.functions[i]);
+ if (error)
+ return "functions." + 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 ListFunctionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.ListFunctionsResponse} ListFunctionsResponse
+ */
+ ListFunctionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.ListFunctionsResponse)
+ return object;
+ var message = new $root.google.cloud.functions.v1.ListFunctionsResponse();
+ if (object.functions) {
+ if (!Array.isArray(object.functions))
+ throw TypeError(".google.cloud.functions.v1.ListFunctionsResponse.functions: array expected");
+ message.functions = [];
+ for (var i = 0; i < object.functions.length; ++i) {
+ if (typeof object.functions[i] !== "object")
+ throw TypeError(".google.cloud.functions.v1.ListFunctionsResponse.functions: object expected");
+ message.functions[i] = $root.google.cloud.functions.v1.CloudFunction.fromObject(object.functions[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.functions.v1.ListFunctionsResponse.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 ListFunctionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {google.cloud.functions.v1.ListFunctionsResponse} message ListFunctionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFunctionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.functions = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.functions && message.functions.length) {
+ object.functions = [];
+ for (var j = 0; j < message.functions.length; ++j)
+ object.functions[j] = $root.google.cloud.functions.v1.CloudFunction.toObject(message.functions[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 ListFunctionsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFunctionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFunctionsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.ListFunctionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFunctionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.ListFunctionsResponse";
+ };
+
+ return ListFunctionsResponse;
+ })();
+
+ v1.DeleteFunctionRequest = (function() {
+
+ /**
+ * Properties of a DeleteFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface IDeleteFunctionRequest
+ * @property {string|null} [name] DeleteFunctionRequest name
+ */
+
+ /**
+ * Constructs a new DeleteFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a DeleteFunctionRequest.
+ * @implements IDeleteFunctionRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.IDeleteFunctionRequest=} [properties] Properties to set
+ */
+ function DeleteFunctionRequest(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]];
+ }
+
+ /**
+ * DeleteFunctionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @instance
+ */
+ DeleteFunctionRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteFunctionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IDeleteFunctionRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.DeleteFunctionRequest} DeleteFunctionRequest instance
+ */
+ DeleteFunctionRequest.create = function create(properties) {
+ return new DeleteFunctionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.DeleteFunctionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IDeleteFunctionRequest} message DeleteFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFunctionRequest.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 DeleteFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.DeleteFunctionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.IDeleteFunctionRequest} message DeleteFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFunctionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteFunctionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.DeleteFunctionRequest} DeleteFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFunctionRequest.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.functions.v1.DeleteFunctionRequest();
+ 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 DeleteFunctionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.DeleteFunctionRequest} DeleteFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFunctionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteFunctionRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteFunctionRequest.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 DeleteFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.DeleteFunctionRequest} DeleteFunctionRequest
+ */
+ DeleteFunctionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.DeleteFunctionRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.DeleteFunctionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteFunctionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.DeleteFunctionRequest} message DeleteFunctionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteFunctionRequest.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 DeleteFunctionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteFunctionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteFunctionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.DeleteFunctionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteFunctionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.DeleteFunctionRequest";
+ };
+
+ return DeleteFunctionRequest;
+ })();
+
+ v1.CallFunctionRequest = (function() {
+
+ /**
+ * Properties of a CallFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface ICallFunctionRequest
+ * @property {string|null} [name] CallFunctionRequest name
+ * @property {string|null} [data] CallFunctionRequest data
+ */
+
+ /**
+ * Constructs a new CallFunctionRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a CallFunctionRequest.
+ * @implements ICallFunctionRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.ICallFunctionRequest=} [properties] Properties to set
+ */
+ function CallFunctionRequest(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]];
+ }
+
+ /**
+ * CallFunctionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @instance
+ */
+ CallFunctionRequest.prototype.name = "";
+
+ /**
+ * CallFunctionRequest data.
+ * @member {string} data
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @instance
+ */
+ CallFunctionRequest.prototype.data = "";
+
+ /**
+ * Creates a new CallFunctionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.ICallFunctionRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.CallFunctionRequest} CallFunctionRequest instance
+ */
+ CallFunctionRequest.create = function create(properties) {
+ return new CallFunctionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CallFunctionRequest message. Does not implicitly {@link google.cloud.functions.v1.CallFunctionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.ICallFunctionRequest} message CallFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CallFunctionRequest.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.data != null && Object.hasOwnProperty.call(message, "data"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.data);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CallFunctionRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CallFunctionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.ICallFunctionRequest} message CallFunctionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CallFunctionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CallFunctionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.CallFunctionRequest} CallFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CallFunctionRequest.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.functions.v1.CallFunctionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.data = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CallFunctionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.CallFunctionRequest} CallFunctionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CallFunctionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CallFunctionRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CallFunctionRequest.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.data != null && message.hasOwnProperty("data"))
+ if (!$util.isString(message.data))
+ return "data: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CallFunctionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.CallFunctionRequest} CallFunctionRequest
+ */
+ CallFunctionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.CallFunctionRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.CallFunctionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.data != null)
+ message.data = String(object.data);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CallFunctionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {google.cloud.functions.v1.CallFunctionRequest} message CallFunctionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CallFunctionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.data = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.data != null && message.hasOwnProperty("data"))
+ object.data = message.data;
+ return object;
+ };
+
+ /**
+ * Converts this CallFunctionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CallFunctionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CallFunctionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.CallFunctionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CallFunctionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.CallFunctionRequest";
+ };
+
+ return CallFunctionRequest;
+ })();
+
+ v1.CallFunctionResponse = (function() {
+
+ /**
+ * Properties of a CallFunctionResponse.
+ * @memberof google.cloud.functions.v1
+ * @interface ICallFunctionResponse
+ * @property {string|null} [executionId] CallFunctionResponse executionId
+ * @property {string|null} [result] CallFunctionResponse result
+ * @property {string|null} [error] CallFunctionResponse error
+ */
+
+ /**
+ * Constructs a new CallFunctionResponse.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a CallFunctionResponse.
+ * @implements ICallFunctionResponse
+ * @constructor
+ * @param {google.cloud.functions.v1.ICallFunctionResponse=} [properties] Properties to set
+ */
+ function CallFunctionResponse(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]];
+ }
+
+ /**
+ * CallFunctionResponse executionId.
+ * @member {string} executionId
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @instance
+ */
+ CallFunctionResponse.prototype.executionId = "";
+
+ /**
+ * CallFunctionResponse result.
+ * @member {string} result
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @instance
+ */
+ CallFunctionResponse.prototype.result = "";
+
+ /**
+ * CallFunctionResponse error.
+ * @member {string} error
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @instance
+ */
+ CallFunctionResponse.prototype.error = "";
+
+ /**
+ * Creates a new CallFunctionResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {google.cloud.functions.v1.ICallFunctionResponse=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.CallFunctionResponse} CallFunctionResponse instance
+ */
+ CallFunctionResponse.create = function create(properties) {
+ return new CallFunctionResponse(properties);
+ };
+
+ /**
+ * Encodes the specified CallFunctionResponse message. Does not implicitly {@link google.cloud.functions.v1.CallFunctionResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {google.cloud.functions.v1.ICallFunctionResponse} message CallFunctionResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CallFunctionResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.executionId);
+ if (message.result != null && Object.hasOwnProperty.call(message, "result"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.result);
+ if (message.error != null && Object.hasOwnProperty.call(message, "error"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.error);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CallFunctionResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.CallFunctionResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {google.cloud.functions.v1.ICallFunctionResponse} message CallFunctionResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CallFunctionResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CallFunctionResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.CallFunctionResponse} CallFunctionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CallFunctionResponse.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.functions.v1.CallFunctionResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.executionId = reader.string();
+ break;
+ }
+ case 2: {
+ message.result = reader.string();
+ break;
+ }
+ case 3: {
+ message.error = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CallFunctionResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.CallFunctionResponse} CallFunctionResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CallFunctionResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CallFunctionResponse message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CallFunctionResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.executionId != null && message.hasOwnProperty("executionId"))
+ if (!$util.isString(message.executionId))
+ return "executionId: string expected";
+ if (message.result != null && message.hasOwnProperty("result"))
+ if (!$util.isString(message.result))
+ return "result: string expected";
+ if (message.error != null && message.hasOwnProperty("error"))
+ if (!$util.isString(message.error))
+ return "error: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CallFunctionResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.CallFunctionResponse} CallFunctionResponse
+ */
+ CallFunctionResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.CallFunctionResponse)
+ return object;
+ var message = new $root.google.cloud.functions.v1.CallFunctionResponse();
+ if (object.executionId != null)
+ message.executionId = String(object.executionId);
+ if (object.result != null)
+ message.result = String(object.result);
+ if (object.error != null)
+ message.error = String(object.error);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CallFunctionResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {google.cloud.functions.v1.CallFunctionResponse} message CallFunctionResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CallFunctionResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.executionId = "";
+ object.result = "";
+ object.error = "";
+ }
+ if (message.executionId != null && message.hasOwnProperty("executionId"))
+ object.executionId = message.executionId;
+ if (message.result != null && message.hasOwnProperty("result"))
+ object.result = message.result;
+ if (message.error != null && message.hasOwnProperty("error"))
+ object.error = message.error;
+ return object;
+ };
+
+ /**
+ * Converts this CallFunctionResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CallFunctionResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CallFunctionResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.CallFunctionResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CallFunctionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.CallFunctionResponse";
+ };
+
+ return CallFunctionResponse;
+ })();
+
+ v1.GenerateUploadUrlRequest = (function() {
+
+ /**
+ * Properties of a GenerateUploadUrlRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface IGenerateUploadUrlRequest
+ * @property {string|null} [parent] GenerateUploadUrlRequest parent
+ * @property {string|null} [kmsKeyName] GenerateUploadUrlRequest kmsKeyName
+ */
+
+ /**
+ * Constructs a new GenerateUploadUrlRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a GenerateUploadUrlRequest.
+ * @implements IGenerateUploadUrlRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlRequest=} [properties] Properties to set
+ */
+ function GenerateUploadUrlRequest(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]];
+ }
+
+ /**
+ * GenerateUploadUrlRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @instance
+ */
+ GenerateUploadUrlRequest.prototype.parent = "";
+
+ /**
+ * GenerateUploadUrlRequest kmsKeyName.
+ * @member {string} kmsKeyName
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @instance
+ */
+ GenerateUploadUrlRequest.prototype.kmsKeyName = "";
+
+ /**
+ * Creates a new GenerateUploadUrlRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlRequest} GenerateUploadUrlRequest instance
+ */
+ GenerateUploadUrlRequest.create = function create(properties) {
+ return new GenerateUploadUrlRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlRequest} message GenerateUploadUrlRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateUploadUrlRequest.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.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GenerateUploadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlRequest} message GenerateUploadUrlRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateUploadUrlRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlRequest} GenerateUploadUrlRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateUploadUrlRequest.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.functions.v1.GenerateUploadUrlRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.kmsKeyName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GenerateUploadUrlRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlRequest} GenerateUploadUrlRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateUploadUrlRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GenerateUploadUrlRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GenerateUploadUrlRequest.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.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ if (!$util.isString(message.kmsKeyName))
+ return "kmsKeyName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GenerateUploadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlRequest} GenerateUploadUrlRequest
+ */
+ GenerateUploadUrlRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.GenerateUploadUrlRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.GenerateUploadUrlRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.kmsKeyName != null)
+ message.kmsKeyName = String(object.kmsKeyName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.GenerateUploadUrlRequest} message GenerateUploadUrlRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GenerateUploadUrlRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.kmsKeyName = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ object.kmsKeyName = message.kmsKeyName;
+ return object;
+ };
+
+ /**
+ * Converts this GenerateUploadUrlRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GenerateUploadUrlRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GenerateUploadUrlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.GenerateUploadUrlRequest";
+ };
+
+ return GenerateUploadUrlRequest;
+ })();
+
+ v1.GenerateUploadUrlResponse = (function() {
+
+ /**
+ * Properties of a GenerateUploadUrlResponse.
+ * @memberof google.cloud.functions.v1
+ * @interface IGenerateUploadUrlResponse
+ * @property {string|null} [uploadUrl] GenerateUploadUrlResponse uploadUrl
+ */
+
+ /**
+ * Constructs a new GenerateUploadUrlResponse.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a GenerateUploadUrlResponse.
+ * @implements IGenerateUploadUrlResponse
+ * @constructor
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlResponse=} [properties] Properties to set
+ */
+ function GenerateUploadUrlResponse(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]];
+ }
+
+ /**
+ * GenerateUploadUrlResponse uploadUrl.
+ * @member {string} uploadUrl
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @instance
+ */
+ GenerateUploadUrlResponse.prototype.uploadUrl = "";
+
+ /**
+ * Creates a new GenerateUploadUrlResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlResponse=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlResponse} GenerateUploadUrlResponse instance
+ */
+ GenerateUploadUrlResponse.create = function create(properties) {
+ return new GenerateUploadUrlResponse(properties);
+ };
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlResponse} message GenerateUploadUrlResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateUploadUrlResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.uploadUrl != null && Object.hasOwnProperty.call(message, "uploadUrl"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.uploadUrl);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GenerateUploadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateUploadUrlResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateUploadUrlResponse} message GenerateUploadUrlResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateUploadUrlResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlResponse} GenerateUploadUrlResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateUploadUrlResponse.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.functions.v1.GenerateUploadUrlResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.uploadUrl = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GenerateUploadUrlResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlResponse} GenerateUploadUrlResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateUploadUrlResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GenerateUploadUrlResponse message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GenerateUploadUrlResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.uploadUrl != null && message.hasOwnProperty("uploadUrl"))
+ if (!$util.isString(message.uploadUrl))
+ return "uploadUrl: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GenerateUploadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.GenerateUploadUrlResponse} GenerateUploadUrlResponse
+ */
+ GenerateUploadUrlResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.GenerateUploadUrlResponse)
+ return object;
+ var message = new $root.google.cloud.functions.v1.GenerateUploadUrlResponse();
+ if (object.uploadUrl != null)
+ message.uploadUrl = String(object.uploadUrl);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GenerateUploadUrlResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.GenerateUploadUrlResponse} message GenerateUploadUrlResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GenerateUploadUrlResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.uploadUrl = "";
+ if (message.uploadUrl != null && message.hasOwnProperty("uploadUrl"))
+ object.uploadUrl = message.uploadUrl;
+ return object;
+ };
+
+ /**
+ * Converts this GenerateUploadUrlResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GenerateUploadUrlResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GenerateUploadUrlResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.GenerateUploadUrlResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GenerateUploadUrlResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.GenerateUploadUrlResponse";
+ };
+
+ return GenerateUploadUrlResponse;
+ })();
+
+ v1.GenerateDownloadUrlRequest = (function() {
+
+ /**
+ * Properties of a GenerateDownloadUrlRequest.
+ * @memberof google.cloud.functions.v1
+ * @interface IGenerateDownloadUrlRequest
+ * @property {string|null} [name] GenerateDownloadUrlRequest name
+ * @property {number|Long|null} [versionId] GenerateDownloadUrlRequest versionId
+ */
+
+ /**
+ * Constructs a new GenerateDownloadUrlRequest.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a GenerateDownloadUrlRequest.
+ * @implements IGenerateDownloadUrlRequest
+ * @constructor
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest=} [properties] Properties to set
+ */
+ function GenerateDownloadUrlRequest(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]];
+ }
+
+ /**
+ * GenerateDownloadUrlRequest name.
+ * @member {string} name
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @instance
+ */
+ GenerateDownloadUrlRequest.prototype.name = "";
+
+ /**
+ * GenerateDownloadUrlRequest versionId.
+ * @member {number|Long} versionId
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @instance
+ */
+ GenerateDownloadUrlRequest.prototype.versionId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
+
+ /**
+ * Creates a new GenerateDownloadUrlRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlRequest} GenerateDownloadUrlRequest instance
+ */
+ GenerateDownloadUrlRequest.create = function create(properties) {
+ return new GenerateDownloadUrlRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest} message GenerateDownloadUrlRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateDownloadUrlRequest.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.versionId != null && Object.hasOwnProperty.call(message, "versionId"))
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.versionId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GenerateDownloadUrlRequest message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest} message GenerateDownloadUrlRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateDownloadUrlRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlRequest} GenerateDownloadUrlRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateDownloadUrlRequest.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.functions.v1.GenerateDownloadUrlRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.versionId = reader.uint64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GenerateDownloadUrlRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlRequest} GenerateDownloadUrlRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateDownloadUrlRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GenerateDownloadUrlRequest message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GenerateDownloadUrlRequest.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.versionId != null && message.hasOwnProperty("versionId"))
+ if (!$util.isInteger(message.versionId) && !(message.versionId && $util.isInteger(message.versionId.low) && $util.isInteger(message.versionId.high)))
+ return "versionId: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a GenerateDownloadUrlRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlRequest} GenerateDownloadUrlRequest
+ */
+ GenerateDownloadUrlRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.GenerateDownloadUrlRequest)
+ return object;
+ var message = new $root.google.cloud.functions.v1.GenerateDownloadUrlRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.versionId != null)
+ if ($util.Long)
+ (message.versionId = $util.Long.fromValue(object.versionId)).unsigned = true;
+ else if (typeof object.versionId === "string")
+ message.versionId = parseInt(object.versionId, 10);
+ else if (typeof object.versionId === "number")
+ message.versionId = object.versionId;
+ else if (typeof object.versionId === "object")
+ message.versionId = new $util.LongBits(object.versionId.low >>> 0, object.versionId.high >>> 0).toNumber(true);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {google.cloud.functions.v1.GenerateDownloadUrlRequest} message GenerateDownloadUrlRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GenerateDownloadUrlRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, true);
+ object.versionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.versionId = options.longs === String ? "0" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.versionId != null && message.hasOwnProperty("versionId"))
+ if (typeof message.versionId === "number")
+ object.versionId = options.longs === String ? String(message.versionId) : message.versionId;
+ else
+ object.versionId = options.longs === String ? $util.Long.prototype.toString.call(message.versionId) : options.longs === Number ? new $util.LongBits(message.versionId.low >>> 0, message.versionId.high >>> 0).toNumber(true) : message.versionId;
+ return object;
+ };
+
+ /**
+ * Converts this GenerateDownloadUrlRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GenerateDownloadUrlRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GenerateDownloadUrlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.GenerateDownloadUrlRequest";
+ };
+
+ return GenerateDownloadUrlRequest;
+ })();
+
+ v1.GenerateDownloadUrlResponse = (function() {
+
+ /**
+ * Properties of a GenerateDownloadUrlResponse.
+ * @memberof google.cloud.functions.v1
+ * @interface IGenerateDownloadUrlResponse
+ * @property {string|null} [downloadUrl] GenerateDownloadUrlResponse downloadUrl
+ */
+
+ /**
+ * Constructs a new GenerateDownloadUrlResponse.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents a GenerateDownloadUrlResponse.
+ * @implements IGenerateDownloadUrlResponse
+ * @constructor
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlResponse=} [properties] Properties to set
+ */
+ function GenerateDownloadUrlResponse(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]];
+ }
+
+ /**
+ * GenerateDownloadUrlResponse downloadUrl.
+ * @member {string} downloadUrl
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @instance
+ */
+ GenerateDownloadUrlResponse.prototype.downloadUrl = "";
+
+ /**
+ * Creates a new GenerateDownloadUrlResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlResponse=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlResponse} GenerateDownloadUrlResponse instance
+ */
+ GenerateDownloadUrlResponse.create = function create(properties) {
+ return new GenerateDownloadUrlResponse(properties);
+ };
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlResponse} message GenerateDownloadUrlResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateDownloadUrlResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.downloadUrl != null && Object.hasOwnProperty.call(message, "downloadUrl"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.downloadUrl);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GenerateDownloadUrlResponse message, length delimited. Does not implicitly {@link google.cloud.functions.v1.GenerateDownloadUrlResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.IGenerateDownloadUrlResponse} message GenerateDownloadUrlResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GenerateDownloadUrlResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlResponse} GenerateDownloadUrlResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateDownloadUrlResponse.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.functions.v1.GenerateDownloadUrlResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.downloadUrl = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GenerateDownloadUrlResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlResponse} GenerateDownloadUrlResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GenerateDownloadUrlResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GenerateDownloadUrlResponse message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GenerateDownloadUrlResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl"))
+ if (!$util.isString(message.downloadUrl))
+ return "downloadUrl: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GenerateDownloadUrlResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.GenerateDownloadUrlResponse} GenerateDownloadUrlResponse
+ */
+ GenerateDownloadUrlResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.GenerateDownloadUrlResponse)
+ return object;
+ var message = new $root.google.cloud.functions.v1.GenerateDownloadUrlResponse();
+ if (object.downloadUrl != null)
+ message.downloadUrl = String(object.downloadUrl);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GenerateDownloadUrlResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {google.cloud.functions.v1.GenerateDownloadUrlResponse} message GenerateDownloadUrlResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GenerateDownloadUrlResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.downloadUrl = "";
+ if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl"))
+ object.downloadUrl = message.downloadUrl;
+ return object;
+ };
+
+ /**
+ * Converts this GenerateDownloadUrlResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GenerateDownloadUrlResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GenerateDownloadUrlResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.GenerateDownloadUrlResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GenerateDownloadUrlResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.GenerateDownloadUrlResponse";
+ };
+
+ return GenerateDownloadUrlResponse;
+ })();
+
+ /**
+ * OperationType enum.
+ * @name google.cloud.functions.v1.OperationType
+ * @enum {number}
+ * @property {number} OPERATION_UNSPECIFIED=0 OPERATION_UNSPECIFIED value
+ * @property {number} CREATE_FUNCTION=1 CREATE_FUNCTION value
+ * @property {number} UPDATE_FUNCTION=2 UPDATE_FUNCTION value
+ * @property {number} DELETE_FUNCTION=3 DELETE_FUNCTION value
+ */
+ v1.OperationType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "OPERATION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATE_FUNCTION"] = 1;
+ values[valuesById[2] = "UPDATE_FUNCTION"] = 2;
+ values[valuesById[3] = "DELETE_FUNCTION"] = 3;
+ return values;
+ })();
+
+ v1.OperationMetadataV1 = (function() {
+
+ /**
+ * Properties of an OperationMetadataV1.
+ * @memberof google.cloud.functions.v1
+ * @interface IOperationMetadataV1
+ * @property {string|null} [target] OperationMetadataV1 target
+ * @property {google.cloud.functions.v1.OperationType|null} [type] OperationMetadataV1 type
+ * @property {google.protobuf.IAny|null} [request] OperationMetadataV1 request
+ * @property {number|Long|null} [versionId] OperationMetadataV1 versionId
+ * @property {google.protobuf.ITimestamp|null} [updateTime] OperationMetadataV1 updateTime
+ * @property {string|null} [buildId] OperationMetadataV1 buildId
+ * @property {string|null} [sourceToken] OperationMetadataV1 sourceToken
+ * @property {string|null} [buildName] OperationMetadataV1 buildName
+ */
+
+ /**
+ * Constructs a new OperationMetadataV1.
+ * @memberof google.cloud.functions.v1
+ * @classdesc Represents an OperationMetadataV1.
+ * @implements IOperationMetadataV1
+ * @constructor
+ * @param {google.cloud.functions.v1.IOperationMetadataV1=} [properties] Properties to set
+ */
+ function OperationMetadataV1(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]];
+ }
+
+ /**
+ * OperationMetadataV1 target.
+ * @member {string} target
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.target = "";
+
+ /**
+ * OperationMetadataV1 type.
+ * @member {google.cloud.functions.v1.OperationType} type
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.type = 0;
+
+ /**
+ * OperationMetadataV1 request.
+ * @member {google.protobuf.IAny|null|undefined} request
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.request = null;
+
+ /**
+ * OperationMetadataV1 versionId.
+ * @member {number|Long} versionId
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.versionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * OperationMetadataV1 updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.updateTime = null;
+
+ /**
+ * OperationMetadataV1 buildId.
+ * @member {string} buildId
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.buildId = "";
+
+ /**
+ * OperationMetadataV1 sourceToken.
+ * @member {string} sourceToken
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.sourceToken = "";
+
+ /**
+ * OperationMetadataV1 buildName.
+ * @member {string} buildName
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ */
+ OperationMetadataV1.prototype.buildName = "";
+
+ /**
+ * Creates a new OperationMetadataV1 instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {google.cloud.functions.v1.IOperationMetadataV1=} [properties] Properties to set
+ * @returns {google.cloud.functions.v1.OperationMetadataV1} OperationMetadataV1 instance
+ */
+ OperationMetadataV1.create = function create(properties) {
+ return new OperationMetadataV1(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadataV1 message. Does not implicitly {@link google.cloud.functions.v1.OperationMetadataV1.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {google.cloud.functions.v1.IOperationMetadataV1} message OperationMetadataV1 message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadataV1.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.target);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
+ if (message.request != null && Object.hasOwnProperty.call(message, "request"))
+ $root.google.protobuf.Any.encode(message.request, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.versionId != null && Object.hasOwnProperty.call(message, "versionId"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.versionId);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.buildId != null && Object.hasOwnProperty.call(message, "buildId"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.buildId);
+ if (message.sourceToken != null && Object.hasOwnProperty.call(message, "sourceToken"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.sourceToken);
+ if (message.buildName != null && Object.hasOwnProperty.call(message, "buildName"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.buildName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadataV1 message, length delimited. Does not implicitly {@link google.cloud.functions.v1.OperationMetadataV1.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {google.cloud.functions.v1.IOperationMetadataV1} message OperationMetadataV1 message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadataV1.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadataV1 message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v1.OperationMetadataV1} OperationMetadataV1
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadataV1.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.functions.v1.OperationMetadataV1();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.target = reader.string();
+ break;
+ }
+ case 2: {
+ message.type = reader.int32();
+ break;
+ }
+ case 3: {
+ message.request = $root.google.protobuf.Any.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.versionId = reader.int64();
+ break;
+ }
+ case 5: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.buildId = reader.string();
+ break;
+ }
+ case 7: {
+ message.sourceToken = reader.string();
+ break;
+ }
+ case 8: {
+ message.buildName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadataV1 message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v1.OperationMetadataV1} OperationMetadataV1
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadataV1.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadataV1 message.
+ * @function verify
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadataV1.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.target != null && message.hasOwnProperty("target"))
+ if (!$util.isString(message.target))
+ return "target: string expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.request != null && message.hasOwnProperty("request")) {
+ var error = $root.google.protobuf.Any.verify(message.request);
+ if (error)
+ return "request." + error;
+ }
+ if (message.versionId != null && message.hasOwnProperty("versionId"))
+ if (!$util.isInteger(message.versionId) && !(message.versionId && $util.isInteger(message.versionId.low) && $util.isInteger(message.versionId.high)))
+ return "versionId: integer|Long expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.buildId != null && message.hasOwnProperty("buildId"))
+ if (!$util.isString(message.buildId))
+ return "buildId: string expected";
+ if (message.sourceToken != null && message.hasOwnProperty("sourceToken"))
+ if (!$util.isString(message.sourceToken))
+ return "sourceToken: string expected";
+ if (message.buildName != null && message.hasOwnProperty("buildName"))
+ if (!$util.isString(message.buildName))
+ return "buildName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadataV1 message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v1.OperationMetadataV1} OperationMetadataV1
+ */
+ OperationMetadataV1.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v1.OperationMetadataV1)
+ return object;
+ var message = new $root.google.cloud.functions.v1.OperationMetadataV1();
+ if (object.target != null)
+ message.target = String(object.target);
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "OPERATION_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "CREATE_FUNCTION":
+ case 1:
+ message.type = 1;
+ break;
+ case "UPDATE_FUNCTION":
+ case 2:
+ message.type = 2;
+ break;
+ case "DELETE_FUNCTION":
+ case 3:
+ message.type = 3;
+ break;
+ }
+ if (object.request != null) {
+ if (typeof object.request !== "object")
+ throw TypeError(".google.cloud.functions.v1.OperationMetadataV1.request: object expected");
+ message.request = $root.google.protobuf.Any.fromObject(object.request);
+ }
+ if (object.versionId != null)
+ if ($util.Long)
+ (message.versionId = $util.Long.fromValue(object.versionId)).unsigned = false;
+ else if (typeof object.versionId === "string")
+ message.versionId = parseInt(object.versionId, 10);
+ else if (typeof object.versionId === "number")
+ message.versionId = object.versionId;
+ else if (typeof object.versionId === "object")
+ message.versionId = new $util.LongBits(object.versionId.low >>> 0, object.versionId.high >>> 0).toNumber();
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.functions.v1.OperationMetadataV1.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.buildId != null)
+ message.buildId = String(object.buildId);
+ if (object.sourceToken != null)
+ message.sourceToken = String(object.sourceToken);
+ if (object.buildName != null)
+ message.buildName = String(object.buildName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadataV1 message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {google.cloud.functions.v1.OperationMetadataV1} message OperationMetadataV1
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadataV1.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.target = "";
+ object.type = options.enums === String ? "OPERATION_UNSPECIFIED" : 0;
+ object.request = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.versionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.versionId = options.longs === String ? "0" : 0;
+ object.updateTime = null;
+ object.buildId = "";
+ object.sourceToken = "";
+ object.buildName = "";
+ }
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = message.target;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.cloud.functions.v1.OperationType[message.type] === undefined ? message.type : $root.google.cloud.functions.v1.OperationType[message.type] : message.type;
+ if (message.request != null && message.hasOwnProperty("request"))
+ object.request = $root.google.protobuf.Any.toObject(message.request, options);
+ if (message.versionId != null && message.hasOwnProperty("versionId"))
+ if (typeof message.versionId === "number")
+ object.versionId = options.longs === String ? String(message.versionId) : message.versionId;
+ else
+ object.versionId = options.longs === String ? $util.Long.prototype.toString.call(message.versionId) : options.longs === Number ? new $util.LongBits(message.versionId.low >>> 0, message.versionId.high >>> 0).toNumber() : message.versionId;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.buildId != null && message.hasOwnProperty("buildId"))
+ object.buildId = message.buildId;
+ if (message.sourceToken != null && message.hasOwnProperty("sourceToken"))
+ object.sourceToken = message.sourceToken;
+ if (message.buildName != null && message.hasOwnProperty("buildName"))
+ object.buildName = message.buildName;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadataV1 to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadataV1.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadataV1
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v1.OperationMetadataV1
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadataV1.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v1.OperationMetadataV1";
+ };
+
+ return OperationMetadataV1;
+ })();
+
+ return v1;
+ })();
+
+ functions.v2 = (function() {
+
+ /**
+ * Namespace v2.
+ * @memberof google.cloud.functions
+ * @namespace
+ */
+ var v2 = {};
+
+ v2.FunctionService = (function() {
+
+ /**
+ * Constructs a new FunctionService service.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a FunctionService
+ * @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 FunctionService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (FunctionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FunctionService;
+
+ /**
+ * Creates new FunctionService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @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 {FunctionService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ FunctionService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|getFunction}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef GetFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v2.Function} [response] Function
+ */
+
+ /**
+ * Calls GetFunction.
+ * @function getFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IGetFunctionRequest} request GetFunctionRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.GetFunctionCallback} callback Node-style callback called with the error, if any, and Function
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.getFunction = function getFunction(request, callback) {
+ return this.rpcCall(getFunction, $root.google.cloud.functions.v2.GetFunctionRequest, $root.google.cloud.functions.v2.Function, request, callback);
+ }, "name", { value: "GetFunction" });
+
+ /**
+ * Calls GetFunction.
+ * @function getFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IGetFunctionRequest} request GetFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|listFunctions}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef ListFunctionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v2.ListFunctionsResponse} [response] ListFunctionsResponse
+ */
+
+ /**
+ * Calls ListFunctions.
+ * @function listFunctions
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IListFunctionsRequest} request ListFunctionsRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.ListFunctionsCallback} callback Node-style callback called with the error, if any, and ListFunctionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.listFunctions = function listFunctions(request, callback) {
+ return this.rpcCall(listFunctions, $root.google.cloud.functions.v2.ListFunctionsRequest, $root.google.cloud.functions.v2.ListFunctionsResponse, request, callback);
+ }, "name", { value: "ListFunctions" });
+
+ /**
+ * Calls ListFunctions.
+ * @function listFunctions
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IListFunctionsRequest} request ListFunctionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|createFunction}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef CreateFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateFunction.
+ * @function createFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.ICreateFunctionRequest} request CreateFunctionRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.CreateFunctionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.createFunction = function createFunction(request, callback) {
+ return this.rpcCall(createFunction, $root.google.cloud.functions.v2.CreateFunctionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateFunction" });
+
+ /**
+ * Calls CreateFunction.
+ * @function createFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.ICreateFunctionRequest} request CreateFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|updateFunction}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef UpdateFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateFunction.
+ * @function updateFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IUpdateFunctionRequest} request UpdateFunctionRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.UpdateFunctionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.updateFunction = function updateFunction(request, callback) {
+ return this.rpcCall(updateFunction, $root.google.cloud.functions.v2.UpdateFunctionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateFunction" });
+
+ /**
+ * Calls UpdateFunction.
+ * @function updateFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IUpdateFunctionRequest} request UpdateFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|deleteFunction}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef DeleteFunctionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteFunction.
+ * @function deleteFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IDeleteFunctionRequest} request DeleteFunctionRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.DeleteFunctionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.deleteFunction = function deleteFunction(request, callback) {
+ return this.rpcCall(deleteFunction, $root.google.cloud.functions.v2.DeleteFunctionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteFunction" });
+
+ /**
+ * Calls DeleteFunction.
+ * @function deleteFunction
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IDeleteFunctionRequest} request DeleteFunctionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|generateUploadUrl}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef GenerateUploadUrlCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v2.GenerateUploadUrlResponse} [response] GenerateUploadUrlResponse
+ */
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @function generateUploadUrl
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IGenerateUploadUrlRequest} request GenerateUploadUrlRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.GenerateUploadUrlCallback} callback Node-style callback called with the error, if any, and GenerateUploadUrlResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.generateUploadUrl = function generateUploadUrl(request, callback) {
+ return this.rpcCall(generateUploadUrl, $root.google.cloud.functions.v2.GenerateUploadUrlRequest, $root.google.cloud.functions.v2.GenerateUploadUrlResponse, request, callback);
+ }, "name", { value: "GenerateUploadUrl" });
+
+ /**
+ * Calls GenerateUploadUrl.
+ * @function generateUploadUrl
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IGenerateUploadUrlRequest} request GenerateUploadUrlRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|generateDownloadUrl}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef GenerateDownloadUrlCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v2.GenerateDownloadUrlResponse} [response] GenerateDownloadUrlResponse
+ */
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @function generateDownloadUrl
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IGenerateDownloadUrlRequest} request GenerateDownloadUrlRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.GenerateDownloadUrlCallback} callback Node-style callback called with the error, if any, and GenerateDownloadUrlResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.generateDownloadUrl = function generateDownloadUrl(request, callback) {
+ return this.rpcCall(generateDownloadUrl, $root.google.cloud.functions.v2.GenerateDownloadUrlRequest, $root.google.cloud.functions.v2.GenerateDownloadUrlResponse, request, callback);
+ }, "name", { value: "GenerateDownloadUrl" });
+
+ /**
+ * Calls GenerateDownloadUrl.
+ * @function generateDownloadUrl
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IGenerateDownloadUrlRequest} request GenerateDownloadUrlRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.functions.v2.FunctionService|listRuntimes}.
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @typedef ListRuntimesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.functions.v2.ListRuntimesResponse} [response] ListRuntimesResponse
+ */
+
+ /**
+ * Calls ListRuntimes.
+ * @function listRuntimes
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IListRuntimesRequest} request ListRuntimesRequest message or plain object
+ * @param {google.cloud.functions.v2.FunctionService.ListRuntimesCallback} callback Node-style callback called with the error, if any, and ListRuntimesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(FunctionService.prototype.listRuntimes = function listRuntimes(request, callback) {
+ return this.rpcCall(listRuntimes, $root.google.cloud.functions.v2.ListRuntimesRequest, $root.google.cloud.functions.v2.ListRuntimesResponse, request, callback);
+ }, "name", { value: "ListRuntimes" });
+
+ /**
+ * Calls ListRuntimes.
+ * @function listRuntimes
+ * @memberof google.cloud.functions.v2.FunctionService
+ * @instance
+ * @param {google.cloud.functions.v2.IListRuntimesRequest} request ListRuntimesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return FunctionService;
+ })();
+
+ /**
+ * Environment enum.
+ * @name google.cloud.functions.v2.Environment
+ * @enum {number}
+ * @property {number} ENVIRONMENT_UNSPECIFIED=0 ENVIRONMENT_UNSPECIFIED value
+ * @property {number} GEN_1=1 GEN_1 value
+ * @property {number} GEN_2=2 GEN_2 value
+ */
+ v2.Environment = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ENVIRONMENT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "GEN_1"] = 1;
+ values[valuesById[2] = "GEN_2"] = 2;
+ return values;
+ })();
+
+ v2.Function = (function() {
+
+ /**
+ * Properties of a Function.
+ * @memberof google.cloud.functions.v2
+ * @interface IFunction
+ * @property {string|null} [name] Function name
+ * @property {google.cloud.functions.v2.Environment|null} [environment] Function environment
+ * @property {string|null} [description] Function description
+ * @property {google.cloud.functions.v2.IBuildConfig|null} [buildConfig] Function buildConfig
+ * @property {google.cloud.functions.v2.IServiceConfig|null} [serviceConfig] Function serviceConfig
+ * @property {google.cloud.functions.v2.IEventTrigger|null} [eventTrigger] Function eventTrigger
+ * @property {google.cloud.functions.v2.Function.State|null} [state] Function state
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Function updateTime
+ * @property {Object.|null} [labels] Function labels
+ * @property {Array.|null} [stateMessages] Function stateMessages
+ */
+
+ /**
+ * Constructs a new Function.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a Function.
+ * @implements IFunction
+ * @constructor
+ * @param {google.cloud.functions.v2.IFunction=} [properties] Properties to set
+ */
+ function Function(properties) {
+ this.labels = {};
+ this.stateMessages = [];
+ 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]];
+ }
+
+ /**
+ * Function name.
+ * @member {string} name
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.name = "";
+
+ /**
+ * Function environment.
+ * @member {google.cloud.functions.v2.Environment} environment
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.environment = 0;
+
+ /**
+ * Function description.
+ * @member {string} description
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.description = "";
+
+ /**
+ * Function buildConfig.
+ * @member {google.cloud.functions.v2.IBuildConfig|null|undefined} buildConfig
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.buildConfig = null;
+
+ /**
+ * Function serviceConfig.
+ * @member {google.cloud.functions.v2.IServiceConfig|null|undefined} serviceConfig
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.serviceConfig = null;
+
+ /**
+ * Function eventTrigger.
+ * @member {google.cloud.functions.v2.IEventTrigger|null|undefined} eventTrigger
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.eventTrigger = null;
+
+ /**
+ * Function state.
+ * @member {google.cloud.functions.v2.Function.State} state
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.state = 0;
+
+ /**
+ * Function updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.updateTime = null;
+
+ /**
+ * Function labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.labels = $util.emptyObject;
+
+ /**
+ * Function stateMessages.
+ * @member {Array.} stateMessages
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ */
+ Function.prototype.stateMessages = $util.emptyArray;
+
+ /**
+ * Creates a new Function instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {google.cloud.functions.v2.IFunction=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.Function} Function instance
+ */
+ Function.create = function create(properties) {
+ return new Function(properties);
+ };
+
+ /**
+ * Encodes the specified Function message. Does not implicitly {@link google.cloud.functions.v2.Function.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {google.cloud.functions.v2.IFunction} message Function message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Function.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.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.buildConfig != null && Object.hasOwnProperty.call(message, "buildConfig"))
+ $root.google.cloud.functions.v2.BuildConfig.encode(message.buildConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.serviceConfig != null && Object.hasOwnProperty.call(message, "serviceConfig"))
+ $root.google.cloud.functions.v2.ServiceConfig.encode(message.serviceConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.eventTrigger != null && Object.hasOwnProperty.call(message, "eventTrigger"))
+ $root.google.cloud.functions.v2.EventTrigger.encode(message.eventTrigger, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state);
+ 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.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.stateMessages != null && message.stateMessages.length)
+ for (var i = 0; i < message.stateMessages.length; ++i)
+ $root.google.cloud.functions.v2.StateMessage.encode(message.stateMessages[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.environment);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Function message, length delimited. Does not implicitly {@link google.cloud.functions.v2.Function.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {google.cloud.functions.v2.IFunction} message Function message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Function.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Function message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.Function} Function
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Function.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.functions.v2.Function(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 10: {
+ message.environment = reader.int32();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.buildConfig = $root.google.cloud.functions.v2.BuildConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.serviceConfig = $root.google.cloud.functions.v2.ServiceConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.eventTrigger = $root.google.cloud.functions.v2.EventTrigger.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.state = reader.int32();
+ break;
+ }
+ case 7: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ 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 9: {
+ if (!(message.stateMessages && message.stateMessages.length))
+ message.stateMessages = [];
+ message.stateMessages.push($root.google.cloud.functions.v2.StateMessage.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Function message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.Function} Function
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Function.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Function message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Function.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.environment != null && message.hasOwnProperty("environment"))
+ switch (message.environment) {
+ default:
+ return "environment: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.buildConfig != null && message.hasOwnProperty("buildConfig")) {
+ var error = $root.google.cloud.functions.v2.BuildConfig.verify(message.buildConfig);
+ if (error)
+ return "buildConfig." + error;
+ }
+ if (message.serviceConfig != null && message.hasOwnProperty("serviceConfig")) {
+ var error = $root.google.cloud.functions.v2.ServiceConfig.verify(message.serviceConfig);
+ if (error)
+ return "serviceConfig." + error;
+ }
+ if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) {
+ var error = $root.google.cloud.functions.v2.EventTrigger.verify(message.eventTrigger);
+ if (error)
+ return "eventTrigger." + error;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.stateMessages != null && message.hasOwnProperty("stateMessages")) {
+ if (!Array.isArray(message.stateMessages))
+ return "stateMessages: array expected";
+ for (var i = 0; i < message.stateMessages.length; ++i) {
+ var error = $root.google.cloud.functions.v2.StateMessage.verify(message.stateMessages[i]);
+ if (error)
+ return "stateMessages." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Function message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.Function} Function
+ */
+ Function.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.Function)
+ return object;
+ var message = new $root.google.cloud.functions.v2.Function();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.environment) {
+ default:
+ if (typeof object.environment === "number") {
+ message.environment = object.environment;
+ break;
+ }
+ break;
+ case "ENVIRONMENT_UNSPECIFIED":
+ case 0:
+ message.environment = 0;
+ break;
+ case "GEN_1":
+ case 1:
+ message.environment = 1;
+ break;
+ case "GEN_2":
+ case 2:
+ message.environment = 2;
+ break;
+ }
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.buildConfig != null) {
+ if (typeof object.buildConfig !== "object")
+ throw TypeError(".google.cloud.functions.v2.Function.buildConfig: object expected");
+ message.buildConfig = $root.google.cloud.functions.v2.BuildConfig.fromObject(object.buildConfig);
+ }
+ if (object.serviceConfig != null) {
+ if (typeof object.serviceConfig !== "object")
+ throw TypeError(".google.cloud.functions.v2.Function.serviceConfig: object expected");
+ message.serviceConfig = $root.google.cloud.functions.v2.ServiceConfig.fromObject(object.serviceConfig);
+ }
+ if (object.eventTrigger != null) {
+ if (typeof object.eventTrigger !== "object")
+ throw TypeError(".google.cloud.functions.v2.Function.eventTrigger: object expected");
+ message.eventTrigger = $root.google.cloud.functions.v2.EventTrigger.fromObject(object.eventTrigger);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "FAILED":
+ case 2:
+ message.state = 2;
+ break;
+ case "DEPLOYING":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ case "UNKNOWN":
+ case 5:
+ message.state = 5;
+ break;
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.functions.v2.Function.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.functions.v2.Function.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.stateMessages) {
+ if (!Array.isArray(object.stateMessages))
+ throw TypeError(".google.cloud.functions.v2.Function.stateMessages: array expected");
+ message.stateMessages = [];
+ for (var i = 0; i < object.stateMessages.length; ++i) {
+ if (typeof object.stateMessages[i] !== "object")
+ throw TypeError(".google.cloud.functions.v2.Function.stateMessages: object expected");
+ message.stateMessages[i] = $root.google.cloud.functions.v2.StateMessage.fromObject(object.stateMessages[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Function message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {google.cloud.functions.v2.Function} message Function
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Function.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.stateMessages = [];
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.buildConfig = null;
+ object.serviceConfig = null;
+ object.eventTrigger = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.updateTime = null;
+ object.environment = options.enums === String ? "ENVIRONMENT_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.buildConfig != null && message.hasOwnProperty("buildConfig"))
+ object.buildConfig = $root.google.cloud.functions.v2.BuildConfig.toObject(message.buildConfig, options);
+ if (message.serviceConfig != null && message.hasOwnProperty("serviceConfig"))
+ object.serviceConfig = $root.google.cloud.functions.v2.ServiceConfig.toObject(message.serviceConfig, options);
+ if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger"))
+ object.eventTrigger = $root.google.cloud.functions.v2.EventTrigger.toObject(message.eventTrigger, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.functions.v2.Function.State[message.state] === undefined ? message.state : $root.google.cloud.functions.v2.Function.State[message.state] : message.state;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.stateMessages && message.stateMessages.length) {
+ object.stateMessages = [];
+ for (var j = 0; j < message.stateMessages.length; ++j)
+ object.stateMessages[j] = $root.google.cloud.functions.v2.StateMessage.toObject(message.stateMessages[j], options);
+ }
+ if (message.environment != null && message.hasOwnProperty("environment"))
+ object.environment = options.enums === String ? $root.google.cloud.functions.v2.Environment[message.environment] === undefined ? message.environment : $root.google.cloud.functions.v2.Environment[message.environment] : message.environment;
+ return object;
+ };
+
+ /**
+ * Converts this Function to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.Function
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Function.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Function
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.Function
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Function.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.Function";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.functions.v2.Function.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} FAILED=2 FAILED value
+ * @property {number} DEPLOYING=3 DEPLOYING value
+ * @property {number} DELETING=4 DELETING value
+ * @property {number} UNKNOWN=5 UNKNOWN value
+ */
+ Function.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "FAILED"] = 2;
+ values[valuesById[3] = "DEPLOYING"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ values[valuesById[5] = "UNKNOWN"] = 5;
+ return values;
+ })();
+
+ return Function;
+ })();
+
+ v2.StateMessage = (function() {
+
+ /**
+ * Properties of a StateMessage.
+ * @memberof google.cloud.functions.v2
+ * @interface IStateMessage
+ * @property {google.cloud.functions.v2.StateMessage.Severity|null} [severity] StateMessage severity
+ * @property {string|null} [type] StateMessage type
+ * @property {string|null} [message] StateMessage message
+ */
+
+ /**
+ * Constructs a new StateMessage.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a StateMessage.
+ * @implements IStateMessage
+ * @constructor
+ * @param {google.cloud.functions.v2.IStateMessage=} [properties] Properties to set
+ */
+ function StateMessage(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]];
+ }
+
+ /**
+ * StateMessage severity.
+ * @member {google.cloud.functions.v2.StateMessage.Severity} severity
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @instance
+ */
+ StateMessage.prototype.severity = 0;
+
+ /**
+ * StateMessage type.
+ * @member {string} type
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @instance
+ */
+ StateMessage.prototype.type = "";
+
+ /**
+ * StateMessage message.
+ * @member {string} message
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @instance
+ */
+ StateMessage.prototype.message = "";
+
+ /**
+ * Creates a new StateMessage instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {google.cloud.functions.v2.IStateMessage=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.StateMessage} StateMessage instance
+ */
+ StateMessage.create = function create(properties) {
+ return new StateMessage(properties);
+ };
+
+ /**
+ * Encodes the specified StateMessage message. Does not implicitly {@link google.cloud.functions.v2.StateMessage.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {google.cloud.functions.v2.IStateMessage} message StateMessage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StateMessage.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.severity != null && Object.hasOwnProperty.call(message, "severity"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.severity);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.type);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified StateMessage message, length delimited. Does not implicitly {@link google.cloud.functions.v2.StateMessage.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {google.cloud.functions.v2.IStateMessage} message StateMessage message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StateMessage.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.StateMessage} StateMessage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StateMessage.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.functions.v2.StateMessage();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.severity = reader.int32();
+ break;
+ }
+ case 2: {
+ message.type = reader.string();
+ break;
+ }
+ case 3: {
+ message.message = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a StateMessage message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.StateMessage} StateMessage
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StateMessage.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StateMessage message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StateMessage.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ switch (message.severity) {
+ default:
+ return "severity: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.message != null && message.hasOwnProperty("message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a StateMessage message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.StateMessage} StateMessage
+ */
+ StateMessage.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.StateMessage)
+ return object;
+ var message = new $root.google.cloud.functions.v2.StateMessage();
+ switch (object.severity) {
+ default:
+ if (typeof object.severity === "number") {
+ message.severity = object.severity;
+ break;
+ }
+ break;
+ case "SEVERITY_UNSPECIFIED":
+ case 0:
+ message.severity = 0;
+ break;
+ case "ERROR":
+ case 1:
+ message.severity = 1;
+ break;
+ case "WARNING":
+ case 2:
+ message.severity = 2;
+ break;
+ case "INFO":
+ case 3:
+ message.severity = 3;
+ break;
+ }
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.message != null)
+ message.message = String(object.message);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a StateMessage message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {google.cloud.functions.v2.StateMessage} message StateMessage
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StateMessage.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0;
+ object.type = "";
+ object.message = "";
+ }
+ if (message.severity != null && message.hasOwnProperty("severity"))
+ object.severity = options.enums === String ? $root.google.cloud.functions.v2.StateMessage.Severity[message.severity] === undefined ? message.severity : $root.google.cloud.functions.v2.StateMessage.Severity[message.severity] : message.severity;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.message != null && message.hasOwnProperty("message"))
+ object.message = message.message;
+ return object;
+ };
+
+ /**
+ * Converts this StateMessage to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StateMessage.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for StateMessage
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.StateMessage
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ StateMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.StateMessage";
+ };
+
+ /**
+ * Severity enum.
+ * @name google.cloud.functions.v2.StateMessage.Severity
+ * @enum {number}
+ * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value
+ * @property {number} ERROR=1 ERROR value
+ * @property {number} WARNING=2 WARNING value
+ * @property {number} INFO=3 INFO value
+ */
+ StateMessage.Severity = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ERROR"] = 1;
+ values[valuesById[2] = "WARNING"] = 2;
+ values[valuesById[3] = "INFO"] = 3;
+ return values;
+ })();
+
+ return StateMessage;
+ })();
+
+ v2.StorageSource = (function() {
+
+ /**
+ * Properties of a StorageSource.
+ * @memberof google.cloud.functions.v2
+ * @interface IStorageSource
+ * @property {string|null} [bucket] StorageSource bucket
+ * @property {string|null} [object] StorageSource object
+ * @property {number|Long|null} [generation] StorageSource generation
+ */
+
+ /**
+ * Constructs a new StorageSource.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a StorageSource.
+ * @implements IStorageSource
+ * @constructor
+ * @param {google.cloud.functions.v2.IStorageSource=} [properties] Properties to set
+ */
+ function StorageSource(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]];
+ }
+
+ /**
+ * StorageSource bucket.
+ * @member {string} bucket
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @instance
+ */
+ StorageSource.prototype.bucket = "";
+
+ /**
+ * StorageSource object.
+ * @member {string} object
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @instance
+ */
+ StorageSource.prototype.object = "";
+
+ /**
+ * StorageSource generation.
+ * @member {number|Long} generation
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @instance
+ */
+ StorageSource.prototype.generation = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Creates a new StorageSource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {google.cloud.functions.v2.IStorageSource=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.StorageSource} StorageSource instance
+ */
+ StorageSource.create = function create(properties) {
+ return new StorageSource(properties);
+ };
+
+ /**
+ * Encodes the specified StorageSource message. Does not implicitly {@link google.cloud.functions.v2.StorageSource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {google.cloud.functions.v2.IStorageSource} message StorageSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StorageSource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucket);
+ if (message.object != null && Object.hasOwnProperty.call(message, "object"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.object);
+ if (message.generation != null && Object.hasOwnProperty.call(message, "generation"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.generation);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified StorageSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2.StorageSource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {google.cloud.functions.v2.IStorageSource} message StorageSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StorageSource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.StorageSource} StorageSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StorageSource.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.functions.v2.StorageSource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.bucket = reader.string();
+ break;
+ }
+ case 2: {
+ message.object = reader.string();
+ break;
+ }
+ case 3: {
+ message.generation = reader.int64();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a StorageSource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.StorageSource} StorageSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StorageSource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StorageSource message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StorageSource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.bucket != null && message.hasOwnProperty("bucket"))
+ if (!$util.isString(message.bucket))
+ return "bucket: string expected";
+ if (message.object != null && message.hasOwnProperty("object"))
+ if (!$util.isString(message.object))
+ return "object: string expected";
+ if (message.generation != null && message.hasOwnProperty("generation"))
+ if (!$util.isInteger(message.generation) && !(message.generation && $util.isInteger(message.generation.low) && $util.isInteger(message.generation.high)))
+ return "generation: integer|Long expected";
+ return null;
+ };
+
+ /**
+ * Creates a StorageSource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.StorageSource} StorageSource
+ */
+ StorageSource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.StorageSource)
+ return object;
+ var message = new $root.google.cloud.functions.v2.StorageSource();
+ if (object.bucket != null)
+ message.bucket = String(object.bucket);
+ if (object.object != null)
+ message.object = String(object.object);
+ if (object.generation != null)
+ if ($util.Long)
+ (message.generation = $util.Long.fromValue(object.generation)).unsigned = false;
+ else if (typeof object.generation === "string")
+ message.generation = parseInt(object.generation, 10);
+ else if (typeof object.generation === "number")
+ message.generation = object.generation;
+ else if (typeof object.generation === "object")
+ message.generation = new $util.LongBits(object.generation.low >>> 0, object.generation.high >>> 0).toNumber();
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a StorageSource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {google.cloud.functions.v2.StorageSource} message StorageSource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StorageSource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.bucket = "";
+ object.object = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.generation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.generation = options.longs === String ? "0" : 0;
+ }
+ if (message.bucket != null && message.hasOwnProperty("bucket"))
+ object.bucket = message.bucket;
+ if (message.object != null && message.hasOwnProperty("object"))
+ object.object = message.object;
+ if (message.generation != null && message.hasOwnProperty("generation"))
+ if (typeof message.generation === "number")
+ object.generation = options.longs === String ? String(message.generation) : message.generation;
+ else
+ object.generation = options.longs === String ? $util.Long.prototype.toString.call(message.generation) : options.longs === Number ? new $util.LongBits(message.generation.low >>> 0, message.generation.high >>> 0).toNumber() : message.generation;
+ return object;
+ };
+
+ /**
+ * Converts this StorageSource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StorageSource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for StorageSource
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.StorageSource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ StorageSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.StorageSource";
+ };
+
+ return StorageSource;
+ })();
+
+ v2.RepoSource = (function() {
+
+ /**
+ * Properties of a RepoSource.
+ * @memberof google.cloud.functions.v2
+ * @interface IRepoSource
+ * @property {string|null} [branchName] RepoSource branchName
+ * @property {string|null} [tagName] RepoSource tagName
+ * @property {string|null} [commitSha] RepoSource commitSha
+ * @property {string|null} [projectId] RepoSource projectId
+ * @property {string|null} [repoName] RepoSource repoName
+ * @property {string|null} [dir] RepoSource dir
+ * @property {boolean|null} [invertRegex] RepoSource invertRegex
+ */
+
+ /**
+ * Constructs a new RepoSource.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a RepoSource.
+ * @implements IRepoSource
+ * @constructor
+ * @param {google.cloud.functions.v2.IRepoSource=} [properties] Properties to set
+ */
+ function RepoSource(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]];
+ }
+
+ /**
+ * RepoSource branchName.
+ * @member {string|null|undefined} branchName
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ RepoSource.prototype.branchName = null;
+
+ /**
+ * RepoSource tagName.
+ * @member {string|null|undefined} tagName
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ RepoSource.prototype.tagName = null;
+
+ /**
+ * RepoSource commitSha.
+ * @member {string|null|undefined} commitSha
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ RepoSource.prototype.commitSha = null;
+
+ /**
+ * RepoSource projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ RepoSource.prototype.projectId = "";
+
+ /**
+ * RepoSource repoName.
+ * @member {string} repoName
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ RepoSource.prototype.repoName = "";
+
+ /**
+ * RepoSource dir.
+ * @member {string} dir
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ RepoSource.prototype.dir = "";
+
+ /**
+ * RepoSource invertRegex.
+ * @member {boolean} invertRegex
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ RepoSource.prototype.invertRegex = false;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * RepoSource revision.
+ * @member {"branchName"|"tagName"|"commitSha"|undefined} revision
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ */
+ Object.defineProperty(RepoSource.prototype, "revision", {
+ get: $util.oneOfGetter($oneOfFields = ["branchName", "tagName", "commitSha"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new RepoSource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {google.cloud.functions.v2.IRepoSource=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.RepoSource} RepoSource instance
+ */
+ RepoSource.create = function create(properties) {
+ return new RepoSource(properties);
+ };
+
+ /**
+ * Encodes the specified RepoSource message. Does not implicitly {@link google.cloud.functions.v2.RepoSource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {google.cloud.functions.v2.IRepoSource} message RepoSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RepoSource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.repoName != null && Object.hasOwnProperty.call(message, "repoName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.repoName);
+ if (message.branchName != null && Object.hasOwnProperty.call(message, "branchName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.branchName);
+ if (message.tagName != null && Object.hasOwnProperty.call(message, "tagName"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.tagName);
+ if (message.commitSha != null && Object.hasOwnProperty.call(message, "commitSha"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.commitSha);
+ if (message.dir != null && Object.hasOwnProperty.call(message, "dir"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.dir);
+ if (message.invertRegex != null && Object.hasOwnProperty.call(message, "invertRegex"))
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.invertRegex);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RepoSource message, length delimited. Does not implicitly {@link google.cloud.functions.v2.RepoSource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {google.cloud.functions.v2.IRepoSource} message RepoSource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RepoSource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.RepoSource} RepoSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RepoSource.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.functions.v2.RepoSource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 3: {
+ message.branchName = reader.string();
+ break;
+ }
+ case 4: {
+ message.tagName = reader.string();
+ break;
+ }
+ case 5: {
+ message.commitSha = reader.string();
+ break;
+ }
+ case 1: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 2: {
+ message.repoName = reader.string();
+ break;
+ }
+ case 6: {
+ message.dir = reader.string();
+ break;
+ }
+ case 7: {
+ message.invertRegex = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RepoSource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.RepoSource} RepoSource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RepoSource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RepoSource message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RepoSource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.branchName != null && message.hasOwnProperty("branchName")) {
+ properties.revision = 1;
+ if (!$util.isString(message.branchName))
+ return "branchName: string expected";
+ }
+ if (message.tagName != null && message.hasOwnProperty("tagName")) {
+ if (properties.revision === 1)
+ return "revision: multiple values";
+ properties.revision = 1;
+ if (!$util.isString(message.tagName))
+ return "tagName: string expected";
+ }
+ if (message.commitSha != null && message.hasOwnProperty("commitSha")) {
+ if (properties.revision === 1)
+ return "revision: multiple values";
+ properties.revision = 1;
+ if (!$util.isString(message.commitSha))
+ return "commitSha: string expected";
+ }
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.repoName != null && message.hasOwnProperty("repoName"))
+ if (!$util.isString(message.repoName))
+ return "repoName: string expected";
+ if (message.dir != null && message.hasOwnProperty("dir"))
+ if (!$util.isString(message.dir))
+ return "dir: string expected";
+ if (message.invertRegex != null && message.hasOwnProperty("invertRegex"))
+ if (typeof message.invertRegex !== "boolean")
+ return "invertRegex: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a RepoSource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.RepoSource} RepoSource
+ */
+ RepoSource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.RepoSource)
+ return object;
+ var message = new $root.google.cloud.functions.v2.RepoSource();
+ if (object.branchName != null)
+ message.branchName = String(object.branchName);
+ if (object.tagName != null)
+ message.tagName = String(object.tagName);
+ if (object.commitSha != null)
+ message.commitSha = String(object.commitSha);
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.repoName != null)
+ message.repoName = String(object.repoName);
+ if (object.dir != null)
+ message.dir = String(object.dir);
+ if (object.invertRegex != null)
+ message.invertRegex = Boolean(object.invertRegex);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RepoSource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {google.cloud.functions.v2.RepoSource} message RepoSource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RepoSource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.repoName = "";
+ object.dir = "";
+ object.invertRegex = false;
+ }
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.repoName != null && message.hasOwnProperty("repoName"))
+ object.repoName = message.repoName;
+ if (message.branchName != null && message.hasOwnProperty("branchName")) {
+ object.branchName = message.branchName;
+ if (options.oneofs)
+ object.revision = "branchName";
+ }
+ if (message.tagName != null && message.hasOwnProperty("tagName")) {
+ object.tagName = message.tagName;
+ if (options.oneofs)
+ object.revision = "tagName";
+ }
+ if (message.commitSha != null && message.hasOwnProperty("commitSha")) {
+ object.commitSha = message.commitSha;
+ if (options.oneofs)
+ object.revision = "commitSha";
+ }
+ if (message.dir != null && message.hasOwnProperty("dir"))
+ object.dir = message.dir;
+ if (message.invertRegex != null && message.hasOwnProperty("invertRegex"))
+ object.invertRegex = message.invertRegex;
+ return object;
+ };
+
+ /**
+ * Converts this RepoSource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RepoSource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RepoSource
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.RepoSource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RepoSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.RepoSource";
+ };
+
+ return RepoSource;
+ })();
+
+ v2.Source = (function() {
+
+ /**
+ * Properties of a Source.
+ * @memberof google.cloud.functions.v2
+ * @interface ISource
+ * @property {google.cloud.functions.v2.IStorageSource|null} [storageSource] Source storageSource
+ * @property {google.cloud.functions.v2.IRepoSource|null} [repoSource] Source repoSource
+ */
+
+ /**
+ * Constructs a new Source.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a Source.
+ * @implements ISource
+ * @constructor
+ * @param {google.cloud.functions.v2.ISource=} [properties] Properties to set
+ */
+ function Source(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]];
+ }
+
+ /**
+ * Source storageSource.
+ * @member {google.cloud.functions.v2.IStorageSource|null|undefined} storageSource
+ * @memberof google.cloud.functions.v2.Source
+ * @instance
+ */
+ Source.prototype.storageSource = null;
+
+ /**
+ * Source repoSource.
+ * @member {google.cloud.functions.v2.IRepoSource|null|undefined} repoSource
+ * @memberof google.cloud.functions.v2.Source
+ * @instance
+ */
+ Source.prototype.repoSource = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Source source.
+ * @member {"storageSource"|"repoSource"|undefined} source
+ * @memberof google.cloud.functions.v2.Source
+ * @instance
+ */
+ Object.defineProperty(Source.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["storageSource", "repoSource"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {google.cloud.functions.v2.ISource=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.Source} Source instance
+ */
+ Source.create = function create(properties) {
+ return new Source(properties);
+ };
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.functions.v2.Source.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {google.cloud.functions.v2.ISource} message Source message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Source.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.storageSource != null && Object.hasOwnProperty.call(message, "storageSource"))
+ $root.google.cloud.functions.v2.StorageSource.encode(message.storageSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.repoSource != null && Object.hasOwnProperty.call(message, "repoSource"))
+ $root.google.cloud.functions.v2.RepoSource.encode(message.repoSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.functions.v2.Source.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {google.cloud.functions.v2.ISource} message Source message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Source.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.Source} Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Source.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.functions.v2.Source();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.storageSource = $root.google.cloud.functions.v2.StorageSource.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.repoSource = $root.google.cloud.functions.v2.RepoSource.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.Source} Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Source.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Source message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Source.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.storageSource != null && message.hasOwnProperty("storageSource")) {
+ properties.source = 1;
+ {
+ var error = $root.google.cloud.functions.v2.StorageSource.verify(message.storageSource);
+ if (error)
+ return "storageSource." + error;
+ }
+ }
+ if (message.repoSource != null && message.hasOwnProperty("repoSource")) {
+ if (properties.source === 1)
+ return "source: multiple values";
+ properties.source = 1;
+ {
+ var error = $root.google.cloud.functions.v2.RepoSource.verify(message.repoSource);
+ if (error)
+ return "repoSource." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.Source} Source
+ */
+ Source.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.Source)
+ return object;
+ var message = new $root.google.cloud.functions.v2.Source();
+ if (object.storageSource != null) {
+ if (typeof object.storageSource !== "object")
+ throw TypeError(".google.cloud.functions.v2.Source.storageSource: object expected");
+ message.storageSource = $root.google.cloud.functions.v2.StorageSource.fromObject(object.storageSource);
+ }
+ if (object.repoSource != null) {
+ if (typeof object.repoSource !== "object")
+ throw TypeError(".google.cloud.functions.v2.Source.repoSource: object expected");
+ message.repoSource = $root.google.cloud.functions.v2.RepoSource.fromObject(object.repoSource);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {google.cloud.functions.v2.Source} message Source
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Source.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.storageSource != null && message.hasOwnProperty("storageSource")) {
+ object.storageSource = $root.google.cloud.functions.v2.StorageSource.toObject(message.storageSource, options);
+ if (options.oneofs)
+ object.source = "storageSource";
+ }
+ if (message.repoSource != null && message.hasOwnProperty("repoSource")) {
+ object.repoSource = $root.google.cloud.functions.v2.RepoSource.toObject(message.repoSource, options);
+ if (options.oneofs)
+ object.source = "repoSource";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Source to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.Source
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Source.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Source
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.Source
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Source.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.Source";
+ };
+
+ return Source;
+ })();
+
+ v2.SourceProvenance = (function() {
+
+ /**
+ * Properties of a SourceProvenance.
+ * @memberof google.cloud.functions.v2
+ * @interface ISourceProvenance
+ * @property {google.cloud.functions.v2.IStorageSource|null} [resolvedStorageSource] SourceProvenance resolvedStorageSource
+ * @property {google.cloud.functions.v2.IRepoSource|null} [resolvedRepoSource] SourceProvenance resolvedRepoSource
+ */
+
+ /**
+ * Constructs a new SourceProvenance.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a SourceProvenance.
+ * @implements ISourceProvenance
+ * @constructor
+ * @param {google.cloud.functions.v2.ISourceProvenance=} [properties] Properties to set
+ */
+ function SourceProvenance(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]];
+ }
+
+ /**
+ * SourceProvenance resolvedStorageSource.
+ * @member {google.cloud.functions.v2.IStorageSource|null|undefined} resolvedStorageSource
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @instance
+ */
+ SourceProvenance.prototype.resolvedStorageSource = null;
+
+ /**
+ * SourceProvenance resolvedRepoSource.
+ * @member {google.cloud.functions.v2.IRepoSource|null|undefined} resolvedRepoSource
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @instance
+ */
+ SourceProvenance.prototype.resolvedRepoSource = null;
+
+ /**
+ * Creates a new SourceProvenance instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {google.cloud.functions.v2.ISourceProvenance=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.SourceProvenance} SourceProvenance instance
+ */
+ SourceProvenance.create = function create(properties) {
+ return new SourceProvenance(properties);
+ };
+
+ /**
+ * Encodes the specified SourceProvenance message. Does not implicitly {@link google.cloud.functions.v2.SourceProvenance.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {google.cloud.functions.v2.ISourceProvenance} message SourceProvenance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceProvenance.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.resolvedStorageSource != null && Object.hasOwnProperty.call(message, "resolvedStorageSource"))
+ $root.google.cloud.functions.v2.StorageSource.encode(message.resolvedStorageSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.resolvedRepoSource != null && Object.hasOwnProperty.call(message, "resolvedRepoSource"))
+ $root.google.cloud.functions.v2.RepoSource.encode(message.resolvedRepoSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SourceProvenance message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SourceProvenance.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {google.cloud.functions.v2.ISourceProvenance} message SourceProvenance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceProvenance.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.SourceProvenance} SourceProvenance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceProvenance.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.functions.v2.SourceProvenance();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.resolvedStorageSource = $root.google.cloud.functions.v2.StorageSource.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.resolvedRepoSource = $root.google.cloud.functions.v2.RepoSource.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SourceProvenance message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.SourceProvenance} SourceProvenance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceProvenance.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SourceProvenance message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SourceProvenance.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.resolvedStorageSource != null && message.hasOwnProperty("resolvedStorageSource")) {
+ var error = $root.google.cloud.functions.v2.StorageSource.verify(message.resolvedStorageSource);
+ if (error)
+ return "resolvedStorageSource." + error;
+ }
+ if (message.resolvedRepoSource != null && message.hasOwnProperty("resolvedRepoSource")) {
+ var error = $root.google.cloud.functions.v2.RepoSource.verify(message.resolvedRepoSource);
+ if (error)
+ return "resolvedRepoSource." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SourceProvenance message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.SourceProvenance} SourceProvenance
+ */
+ SourceProvenance.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.SourceProvenance)
+ return object;
+ var message = new $root.google.cloud.functions.v2.SourceProvenance();
+ if (object.resolvedStorageSource != null) {
+ if (typeof object.resolvedStorageSource !== "object")
+ throw TypeError(".google.cloud.functions.v2.SourceProvenance.resolvedStorageSource: object expected");
+ message.resolvedStorageSource = $root.google.cloud.functions.v2.StorageSource.fromObject(object.resolvedStorageSource);
+ }
+ if (object.resolvedRepoSource != null) {
+ if (typeof object.resolvedRepoSource !== "object")
+ throw TypeError(".google.cloud.functions.v2.SourceProvenance.resolvedRepoSource: object expected");
+ message.resolvedRepoSource = $root.google.cloud.functions.v2.RepoSource.fromObject(object.resolvedRepoSource);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SourceProvenance message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {google.cloud.functions.v2.SourceProvenance} message SourceProvenance
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SourceProvenance.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.resolvedStorageSource = null;
+ object.resolvedRepoSource = null;
+ }
+ if (message.resolvedStorageSource != null && message.hasOwnProperty("resolvedStorageSource"))
+ object.resolvedStorageSource = $root.google.cloud.functions.v2.StorageSource.toObject(message.resolvedStorageSource, options);
+ if (message.resolvedRepoSource != null && message.hasOwnProperty("resolvedRepoSource"))
+ object.resolvedRepoSource = $root.google.cloud.functions.v2.RepoSource.toObject(message.resolvedRepoSource, options);
+ return object;
+ };
+
+ /**
+ * Converts this SourceProvenance to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SourceProvenance.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SourceProvenance
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.SourceProvenance
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SourceProvenance.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.SourceProvenance";
+ };
+
+ return SourceProvenance;
+ })();
+
+ v2.BuildConfig = (function() {
+
+ /**
+ * Properties of a BuildConfig.
+ * @memberof google.cloud.functions.v2
+ * @interface IBuildConfig
+ * @property {string|null} [build] BuildConfig build
+ * @property {string|null} [runtime] BuildConfig runtime
+ * @property {string|null} [entryPoint] BuildConfig entryPoint
+ * @property {google.cloud.functions.v2.ISource|null} [source] BuildConfig source
+ * @property {google.cloud.functions.v2.ISourceProvenance|null} [sourceProvenance] BuildConfig sourceProvenance
+ * @property {string|null} [workerPool] BuildConfig workerPool
+ * @property {Object.|null} [environmentVariables] BuildConfig environmentVariables
+ * @property {string|null} [dockerRepository] BuildConfig dockerRepository
+ */
+
+ /**
+ * Constructs a new BuildConfig.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a BuildConfig.
+ * @implements IBuildConfig
+ * @constructor
+ * @param {google.cloud.functions.v2.IBuildConfig=} [properties] Properties to set
+ */
+ function BuildConfig(properties) {
+ this.environmentVariables = {};
+ 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]];
+ }
+
+ /**
+ * BuildConfig build.
+ * @member {string} build
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.build = "";
+
+ /**
+ * BuildConfig runtime.
+ * @member {string} runtime
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.runtime = "";
+
+ /**
+ * BuildConfig entryPoint.
+ * @member {string} entryPoint
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.entryPoint = "";
+
+ /**
+ * BuildConfig source.
+ * @member {google.cloud.functions.v2.ISource|null|undefined} source
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.source = null;
+
+ /**
+ * BuildConfig sourceProvenance.
+ * @member {google.cloud.functions.v2.ISourceProvenance|null|undefined} sourceProvenance
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.sourceProvenance = null;
+
+ /**
+ * BuildConfig workerPool.
+ * @member {string} workerPool
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.workerPool = "";
+
+ /**
+ * BuildConfig environmentVariables.
+ * @member {Object.} environmentVariables
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.environmentVariables = $util.emptyObject;
+
+ /**
+ * BuildConfig dockerRepository.
+ * @member {string} dockerRepository
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ */
+ BuildConfig.prototype.dockerRepository = "";
+
+ /**
+ * Creates a new BuildConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {google.cloud.functions.v2.IBuildConfig=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.BuildConfig} BuildConfig instance
+ */
+ BuildConfig.create = function create(properties) {
+ return new BuildConfig(properties);
+ };
+
+ /**
+ * Encodes the specified BuildConfig message. Does not implicitly {@link google.cloud.functions.v2.BuildConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {google.cloud.functions.v2.IBuildConfig} message BuildConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BuildConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.build != null && Object.hasOwnProperty.call(message, "build"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.build);
+ if (message.runtime != null && Object.hasOwnProperty.call(message, "runtime"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.runtime);
+ if (message.entryPoint != null && Object.hasOwnProperty.call(message, "entryPoint"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entryPoint);
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.google.cloud.functions.v2.Source.encode(message.source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.workerPool != null && Object.hasOwnProperty.call(message, "workerPool"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workerPool);
+ if (message.environmentVariables != null && Object.hasOwnProperty.call(message, "environmentVariables"))
+ for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim();
+ if (message.dockerRepository != null && Object.hasOwnProperty.call(message, "dockerRepository"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.dockerRepository);
+ if (message.sourceProvenance != null && Object.hasOwnProperty.call(message, "sourceProvenance"))
+ $root.google.cloud.functions.v2.SourceProvenance.encode(message.sourceProvenance, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BuildConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2.BuildConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {google.cloud.functions.v2.IBuildConfig} message BuildConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BuildConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.BuildConfig} BuildConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BuildConfig.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.functions.v2.BuildConfig(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.build = reader.string();
+ break;
+ }
+ case 2: {
+ message.runtime = reader.string();
+ break;
+ }
+ case 3: {
+ message.entryPoint = reader.string();
+ break;
+ }
+ case 4: {
+ message.source = $root.google.cloud.functions.v2.Source.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.sourceProvenance = $root.google.cloud.functions.v2.SourceProvenance.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.workerPool = reader.string();
+ break;
+ }
+ case 6: {
+ if (message.environmentVariables === $util.emptyObject)
+ message.environmentVariables = {};
+ 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.environmentVariables[key] = value;
+ break;
+ }
+ case 7: {
+ message.dockerRepository = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a BuildConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.BuildConfig} BuildConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BuildConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a BuildConfig message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ BuildConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.build != null && message.hasOwnProperty("build"))
+ if (!$util.isString(message.build))
+ return "build: string expected";
+ if (message.runtime != null && message.hasOwnProperty("runtime"))
+ if (!$util.isString(message.runtime))
+ return "runtime: string expected";
+ if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
+ if (!$util.isString(message.entryPoint))
+ return "entryPoint: string expected";
+ if (message.source != null && message.hasOwnProperty("source")) {
+ var error = $root.google.cloud.functions.v2.Source.verify(message.source);
+ if (error)
+ return "source." + error;
+ }
+ if (message.sourceProvenance != null && message.hasOwnProperty("sourceProvenance")) {
+ var error = $root.google.cloud.functions.v2.SourceProvenance.verify(message.sourceProvenance);
+ if (error)
+ return "sourceProvenance." + error;
+ }
+ if (message.workerPool != null && message.hasOwnProperty("workerPool"))
+ if (!$util.isString(message.workerPool))
+ return "workerPool: string expected";
+ if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) {
+ if (!$util.isObject(message.environmentVariables))
+ return "environmentVariables: object expected";
+ var key = Object.keys(message.environmentVariables);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.environmentVariables[key[i]]))
+ return "environmentVariables: string{k:string} expected";
+ }
+ if (message.dockerRepository != null && message.hasOwnProperty("dockerRepository"))
+ if (!$util.isString(message.dockerRepository))
+ return "dockerRepository: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a BuildConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.BuildConfig} BuildConfig
+ */
+ BuildConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.BuildConfig)
+ return object;
+ var message = new $root.google.cloud.functions.v2.BuildConfig();
+ if (object.build != null)
+ message.build = String(object.build);
+ if (object.runtime != null)
+ message.runtime = String(object.runtime);
+ if (object.entryPoint != null)
+ message.entryPoint = String(object.entryPoint);
+ if (object.source != null) {
+ if (typeof object.source !== "object")
+ throw TypeError(".google.cloud.functions.v2.BuildConfig.source: object expected");
+ message.source = $root.google.cloud.functions.v2.Source.fromObject(object.source);
+ }
+ if (object.sourceProvenance != null) {
+ if (typeof object.sourceProvenance !== "object")
+ throw TypeError(".google.cloud.functions.v2.BuildConfig.sourceProvenance: object expected");
+ message.sourceProvenance = $root.google.cloud.functions.v2.SourceProvenance.fromObject(object.sourceProvenance);
+ }
+ if (object.workerPool != null)
+ message.workerPool = String(object.workerPool);
+ if (object.environmentVariables) {
+ if (typeof object.environmentVariables !== "object")
+ throw TypeError(".google.cloud.functions.v2.BuildConfig.environmentVariables: object expected");
+ message.environmentVariables = {};
+ for (var keys = Object.keys(object.environmentVariables), i = 0; i < keys.length; ++i)
+ message.environmentVariables[keys[i]] = String(object.environmentVariables[keys[i]]);
+ }
+ if (object.dockerRepository != null)
+ message.dockerRepository = String(object.dockerRepository);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BuildConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {google.cloud.functions.v2.BuildConfig} message BuildConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BuildConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.environmentVariables = {};
+ if (options.defaults) {
+ object.build = "";
+ object.runtime = "";
+ object.entryPoint = "";
+ object.source = null;
+ object.workerPool = "";
+ object.dockerRepository = "";
+ object.sourceProvenance = null;
+ }
+ if (message.build != null && message.hasOwnProperty("build"))
+ object.build = message.build;
+ if (message.runtime != null && message.hasOwnProperty("runtime"))
+ object.runtime = message.runtime;
+ if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
+ object.entryPoint = message.entryPoint;
+ if (message.source != null && message.hasOwnProperty("source"))
+ object.source = $root.google.cloud.functions.v2.Source.toObject(message.source, options);
+ if (message.workerPool != null && message.hasOwnProperty("workerPool"))
+ object.workerPool = message.workerPool;
+ var keys2;
+ if (message.environmentVariables && (keys2 = Object.keys(message.environmentVariables)).length) {
+ object.environmentVariables = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.environmentVariables[keys2[j]] = message.environmentVariables[keys2[j]];
+ }
+ if (message.dockerRepository != null && message.hasOwnProperty("dockerRepository"))
+ object.dockerRepository = message.dockerRepository;
+ if (message.sourceProvenance != null && message.hasOwnProperty("sourceProvenance"))
+ object.sourceProvenance = $root.google.cloud.functions.v2.SourceProvenance.toObject(message.sourceProvenance, options);
+ return object;
+ };
+
+ /**
+ * Converts this BuildConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BuildConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for BuildConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.BuildConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ BuildConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.BuildConfig";
+ };
+
+ return BuildConfig;
+ })();
+
+ v2.ServiceConfig = (function() {
+
+ /**
+ * Properties of a ServiceConfig.
+ * @memberof google.cloud.functions.v2
+ * @interface IServiceConfig
+ * @property {string|null} [service] ServiceConfig service
+ * @property {number|null} [timeoutSeconds] ServiceConfig timeoutSeconds
+ * @property {string|null} [availableMemory] ServiceConfig availableMemory
+ * @property {Object.|null} [environmentVariables] ServiceConfig environmentVariables
+ * @property {number|null} [maxInstanceCount] ServiceConfig maxInstanceCount
+ * @property {number|null} [minInstanceCount] ServiceConfig minInstanceCount
+ * @property {string|null} [vpcConnector] ServiceConfig vpcConnector
+ * @property {google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings|null} [vpcConnectorEgressSettings] ServiceConfig vpcConnectorEgressSettings
+ * @property {google.cloud.functions.v2.ServiceConfig.IngressSettings|null} [ingressSettings] ServiceConfig ingressSettings
+ * @property {string|null} [uri] ServiceConfig uri
+ * @property {string|null} [serviceAccountEmail] ServiceConfig serviceAccountEmail
+ * @property {boolean|null} [allTrafficOnLatestRevision] ServiceConfig allTrafficOnLatestRevision
+ * @property {Array.|null} [secretEnvironmentVariables] ServiceConfig secretEnvironmentVariables
+ * @property {Array.|null} [secretVolumes] ServiceConfig secretVolumes
+ * @property {string|null} [revision] ServiceConfig revision
+ */
+
+ /**
+ * Constructs a new ServiceConfig.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a ServiceConfig.
+ * @implements IServiceConfig
+ * @constructor
+ * @param {google.cloud.functions.v2.IServiceConfig=} [properties] Properties to set
+ */
+ function ServiceConfig(properties) {
+ this.environmentVariables = {};
+ this.secretEnvironmentVariables = [];
+ this.secretVolumes = [];
+ 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]];
+ }
+
+ /**
+ * ServiceConfig service.
+ * @member {string} service
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.service = "";
+
+ /**
+ * ServiceConfig timeoutSeconds.
+ * @member {number} timeoutSeconds
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.timeoutSeconds = 0;
+
+ /**
+ * ServiceConfig availableMemory.
+ * @member {string} availableMemory
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.availableMemory = "";
+
+ /**
+ * ServiceConfig environmentVariables.
+ * @member {Object.} environmentVariables
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.environmentVariables = $util.emptyObject;
+
+ /**
+ * ServiceConfig maxInstanceCount.
+ * @member {number} maxInstanceCount
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.maxInstanceCount = 0;
+
+ /**
+ * ServiceConfig minInstanceCount.
+ * @member {number} minInstanceCount
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.minInstanceCount = 0;
+
+ /**
+ * ServiceConfig vpcConnector.
+ * @member {string} vpcConnector
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.vpcConnector = "";
+
+ /**
+ * ServiceConfig vpcConnectorEgressSettings.
+ * @member {google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings} vpcConnectorEgressSettings
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.vpcConnectorEgressSettings = 0;
+
+ /**
+ * ServiceConfig ingressSettings.
+ * @member {google.cloud.functions.v2.ServiceConfig.IngressSettings} ingressSettings
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.ingressSettings = 0;
+
+ /**
+ * ServiceConfig uri.
+ * @member {string} uri
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.uri = "";
+
+ /**
+ * ServiceConfig serviceAccountEmail.
+ * @member {string} serviceAccountEmail
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.serviceAccountEmail = "";
+
+ /**
+ * ServiceConfig allTrafficOnLatestRevision.
+ * @member {boolean} allTrafficOnLatestRevision
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.allTrafficOnLatestRevision = false;
+
+ /**
+ * ServiceConfig secretEnvironmentVariables.
+ * @member {Array.} secretEnvironmentVariables
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.secretEnvironmentVariables = $util.emptyArray;
+
+ /**
+ * ServiceConfig secretVolumes.
+ * @member {Array.} secretVolumes
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.secretVolumes = $util.emptyArray;
+
+ /**
+ * ServiceConfig revision.
+ * @member {string} revision
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ */
+ ServiceConfig.prototype.revision = "";
+
+ /**
+ * Creates a new ServiceConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {google.cloud.functions.v2.IServiceConfig=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.ServiceConfig} ServiceConfig instance
+ */
+ ServiceConfig.create = function create(properties) {
+ return new ServiceConfig(properties);
+ };
+
+ /**
+ * Encodes the specified ServiceConfig message. Does not implicitly {@link google.cloud.functions.v2.ServiceConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {google.cloud.functions.v2.IServiceConfig} message ServiceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ServiceConfig.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.timeoutSeconds != null && Object.hasOwnProperty.call(message, "timeoutSeconds"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.timeoutSeconds);
+ if (message.environmentVariables != null && Object.hasOwnProperty.call(message, "environmentVariables"))
+ for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim();
+ if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxInstanceCount);
+ if (message.vpcConnector != null && Object.hasOwnProperty.call(message, "vpcConnector"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.vpcConnector);
+ if (message.vpcConnectorEgressSettings != null && Object.hasOwnProperty.call(message, "vpcConnectorEgressSettings"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.vpcConnectorEgressSettings);
+ if (message.ingressSettings != null && Object.hasOwnProperty.call(message, "ingressSettings"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.ingressSettings);
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.uri);
+ if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.serviceAccountEmail);
+ if (message.minInstanceCount != null && Object.hasOwnProperty.call(message, "minInstanceCount"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int32(message.minInstanceCount);
+ if (message.availableMemory != null && Object.hasOwnProperty.call(message, "availableMemory"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.availableMemory);
+ if (message.allTrafficOnLatestRevision != null && Object.hasOwnProperty.call(message, "allTrafficOnLatestRevision"))
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.allTrafficOnLatestRevision);
+ if (message.secretEnvironmentVariables != null && message.secretEnvironmentVariables.length)
+ for (var i = 0; i < message.secretEnvironmentVariables.length; ++i)
+ $root.google.cloud.functions.v2.SecretEnvVar.encode(message.secretEnvironmentVariables[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
+ if (message.revision != null && Object.hasOwnProperty.call(message, "revision"))
+ writer.uint32(/* id 18, wireType 2 =*/146).string(message.revision);
+ if (message.secretVolumes != null && message.secretVolumes.length)
+ for (var i = 0; i < message.secretVolumes.length; ++i)
+ $root.google.cloud.functions.v2.SecretVolume.encode(message.secretVolumes[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ServiceConfig message, length delimited. Does not implicitly {@link google.cloud.functions.v2.ServiceConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {google.cloud.functions.v2.IServiceConfig} message ServiceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ServiceConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.ServiceConfig} ServiceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ServiceConfig.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.functions.v2.ServiceConfig(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.service = reader.string();
+ break;
+ }
+ case 2: {
+ message.timeoutSeconds = reader.int32();
+ break;
+ }
+ case 13: {
+ message.availableMemory = reader.string();
+ break;
+ }
+ case 4: {
+ if (message.environmentVariables === $util.emptyObject)
+ message.environmentVariables = {};
+ 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.environmentVariables[key] = value;
+ break;
+ }
+ case 5: {
+ message.maxInstanceCount = reader.int32();
+ break;
+ }
+ case 12: {
+ message.minInstanceCount = reader.int32();
+ break;
+ }
+ case 6: {
+ message.vpcConnector = reader.string();
+ break;
+ }
+ case 7: {
+ message.vpcConnectorEgressSettings = reader.int32();
+ break;
+ }
+ case 8: {
+ message.ingressSettings = reader.int32();
+ break;
+ }
+ case 9: {
+ message.uri = reader.string();
+ break;
+ }
+ case 10: {
+ message.serviceAccountEmail = reader.string();
+ break;
+ }
+ case 16: {
+ message.allTrafficOnLatestRevision = reader.bool();
+ break;
+ }
+ case 17: {
+ if (!(message.secretEnvironmentVariables && message.secretEnvironmentVariables.length))
+ message.secretEnvironmentVariables = [];
+ message.secretEnvironmentVariables.push($root.google.cloud.functions.v2.SecretEnvVar.decode(reader, reader.uint32()));
+ break;
+ }
+ case 19: {
+ if (!(message.secretVolumes && message.secretVolumes.length))
+ message.secretVolumes = [];
+ message.secretVolumes.push($root.google.cloud.functions.v2.SecretVolume.decode(reader, reader.uint32()));
+ break;
+ }
+ case 18: {
+ message.revision = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ServiceConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.ServiceConfig} ServiceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ServiceConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ServiceConfig message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ServiceConfig.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.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds"))
+ if (!$util.isInteger(message.timeoutSeconds))
+ return "timeoutSeconds: integer expected";
+ if (message.availableMemory != null && message.hasOwnProperty("availableMemory"))
+ if (!$util.isString(message.availableMemory))
+ return "availableMemory: string expected";
+ if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) {
+ if (!$util.isObject(message.environmentVariables))
+ return "environmentVariables: object expected";
+ var key = Object.keys(message.environmentVariables);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.environmentVariables[key[i]]))
+ return "environmentVariables: string{k:string} expected";
+ }
+ if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount"))
+ if (!$util.isInteger(message.maxInstanceCount))
+ return "maxInstanceCount: integer expected";
+ if (message.minInstanceCount != null && message.hasOwnProperty("minInstanceCount"))
+ if (!$util.isInteger(message.minInstanceCount))
+ return "minInstanceCount: integer expected";
+ if (message.vpcConnector != null && message.hasOwnProperty("vpcConnector"))
+ if (!$util.isString(message.vpcConnector))
+ return "vpcConnector: string expected";
+ if (message.vpcConnectorEgressSettings != null && message.hasOwnProperty("vpcConnectorEgressSettings"))
+ switch (message.vpcConnectorEgressSettings) {
+ default:
+ return "vpcConnectorEgressSettings: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.ingressSettings != null && message.hasOwnProperty("ingressSettings"))
+ switch (message.ingressSettings) {
+ default:
+ return "ingressSettings: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ if (!$util.isString(message.uri))
+ return "uri: string expected";
+ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail"))
+ if (!$util.isString(message.serviceAccountEmail))
+ return "serviceAccountEmail: string expected";
+ if (message.allTrafficOnLatestRevision != null && message.hasOwnProperty("allTrafficOnLatestRevision"))
+ if (typeof message.allTrafficOnLatestRevision !== "boolean")
+ return "allTrafficOnLatestRevision: boolean expected";
+ if (message.secretEnvironmentVariables != null && message.hasOwnProperty("secretEnvironmentVariables")) {
+ if (!Array.isArray(message.secretEnvironmentVariables))
+ return "secretEnvironmentVariables: array expected";
+ for (var i = 0; i < message.secretEnvironmentVariables.length; ++i) {
+ var error = $root.google.cloud.functions.v2.SecretEnvVar.verify(message.secretEnvironmentVariables[i]);
+ if (error)
+ return "secretEnvironmentVariables." + error;
+ }
+ }
+ if (message.secretVolumes != null && message.hasOwnProperty("secretVolumes")) {
+ if (!Array.isArray(message.secretVolumes))
+ return "secretVolumes: array expected";
+ for (var i = 0; i < message.secretVolumes.length; ++i) {
+ var error = $root.google.cloud.functions.v2.SecretVolume.verify(message.secretVolumes[i]);
+ if (error)
+ return "secretVolumes." + error;
+ }
+ }
+ if (message.revision != null && message.hasOwnProperty("revision"))
+ if (!$util.isString(message.revision))
+ return "revision: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ServiceConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.ServiceConfig} ServiceConfig
+ */
+ ServiceConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.ServiceConfig)
+ return object;
+ var message = new $root.google.cloud.functions.v2.ServiceConfig();
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.timeoutSeconds != null)
+ message.timeoutSeconds = object.timeoutSeconds | 0;
+ if (object.availableMemory != null)
+ message.availableMemory = String(object.availableMemory);
+ if (object.environmentVariables) {
+ if (typeof object.environmentVariables !== "object")
+ throw TypeError(".google.cloud.functions.v2.ServiceConfig.environmentVariables: object expected");
+ message.environmentVariables = {};
+ for (var keys = Object.keys(object.environmentVariables), i = 0; i < keys.length; ++i)
+ message.environmentVariables[keys[i]] = String(object.environmentVariables[keys[i]]);
+ }
+ if (object.maxInstanceCount != null)
+ message.maxInstanceCount = object.maxInstanceCount | 0;
+ if (object.minInstanceCount != null)
+ message.minInstanceCount = object.minInstanceCount | 0;
+ if (object.vpcConnector != null)
+ message.vpcConnector = String(object.vpcConnector);
+ switch (object.vpcConnectorEgressSettings) {
+ default:
+ if (typeof object.vpcConnectorEgressSettings === "number") {
+ message.vpcConnectorEgressSettings = object.vpcConnectorEgressSettings;
+ break;
+ }
+ break;
+ case "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED":
+ case 0:
+ message.vpcConnectorEgressSettings = 0;
+ break;
+ case "PRIVATE_RANGES_ONLY":
+ case 1:
+ message.vpcConnectorEgressSettings = 1;
+ break;
+ case "ALL_TRAFFIC":
+ case 2:
+ message.vpcConnectorEgressSettings = 2;
+ break;
+ }
+ switch (object.ingressSettings) {
+ default:
+ if (typeof object.ingressSettings === "number") {
+ message.ingressSettings = object.ingressSettings;
+ break;
+ }
+ break;
+ case "INGRESS_SETTINGS_UNSPECIFIED":
+ case 0:
+ message.ingressSettings = 0;
+ break;
+ case "ALLOW_ALL":
+ case 1:
+ message.ingressSettings = 1;
+ break;
+ case "ALLOW_INTERNAL_ONLY":
+ case 2:
+ message.ingressSettings = 2;
+ break;
+ case "ALLOW_INTERNAL_AND_GCLB":
+ case 3:
+ message.ingressSettings = 3;
+ break;
+ }
+ if (object.uri != null)
+ message.uri = String(object.uri);
+ if (object.serviceAccountEmail != null)
+ message.serviceAccountEmail = String(object.serviceAccountEmail);
+ if (object.allTrafficOnLatestRevision != null)
+ message.allTrafficOnLatestRevision = Boolean(object.allTrafficOnLatestRevision);
+ if (object.secretEnvironmentVariables) {
+ if (!Array.isArray(object.secretEnvironmentVariables))
+ throw TypeError(".google.cloud.functions.v2.ServiceConfig.secretEnvironmentVariables: array expected");
+ message.secretEnvironmentVariables = [];
+ for (var i = 0; i < object.secretEnvironmentVariables.length; ++i) {
+ if (typeof object.secretEnvironmentVariables[i] !== "object")
+ throw TypeError(".google.cloud.functions.v2.ServiceConfig.secretEnvironmentVariables: object expected");
+ message.secretEnvironmentVariables[i] = $root.google.cloud.functions.v2.SecretEnvVar.fromObject(object.secretEnvironmentVariables[i]);
+ }
+ }
+ if (object.secretVolumes) {
+ if (!Array.isArray(object.secretVolumes))
+ throw TypeError(".google.cloud.functions.v2.ServiceConfig.secretVolumes: array expected");
+ message.secretVolumes = [];
+ for (var i = 0; i < object.secretVolumes.length; ++i) {
+ if (typeof object.secretVolumes[i] !== "object")
+ throw TypeError(".google.cloud.functions.v2.ServiceConfig.secretVolumes: object expected");
+ message.secretVolumes[i] = $root.google.cloud.functions.v2.SecretVolume.fromObject(object.secretVolumes[i]);
+ }
+ }
+ if (object.revision != null)
+ message.revision = String(object.revision);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ServiceConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {google.cloud.functions.v2.ServiceConfig} message ServiceConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ServiceConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.secretEnvironmentVariables = [];
+ object.secretVolumes = [];
+ }
+ if (options.objects || options.defaults)
+ object.environmentVariables = {};
+ if (options.defaults) {
+ object.service = "";
+ object.timeoutSeconds = 0;
+ object.maxInstanceCount = 0;
+ object.vpcConnector = "";
+ object.vpcConnectorEgressSettings = options.enums === String ? "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED" : 0;
+ object.ingressSettings = options.enums === String ? "INGRESS_SETTINGS_UNSPECIFIED" : 0;
+ object.uri = "";
+ object.serviceAccountEmail = "";
+ object.minInstanceCount = 0;
+ object.availableMemory = "";
+ object.allTrafficOnLatestRevision = false;
+ object.revision = "";
+ }
+ if (message.service != null && message.hasOwnProperty("service"))
+ object.service = message.service;
+ if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds"))
+ object.timeoutSeconds = message.timeoutSeconds;
+ var keys2;
+ if (message.environmentVariables && (keys2 = Object.keys(message.environmentVariables)).length) {
+ object.environmentVariables = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.environmentVariables[keys2[j]] = message.environmentVariables[keys2[j]];
+ }
+ if (message.maxInstanceCount != null && message.hasOwnProperty("maxInstanceCount"))
+ object.maxInstanceCount = message.maxInstanceCount;
+ if (message.vpcConnector != null && message.hasOwnProperty("vpcConnector"))
+ object.vpcConnector = message.vpcConnector;
+ if (message.vpcConnectorEgressSettings != null && message.hasOwnProperty("vpcConnectorEgressSettings"))
+ object.vpcConnectorEgressSettings = options.enums === String ? $root.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings[message.vpcConnectorEgressSettings] === undefined ? message.vpcConnectorEgressSettings : $root.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings[message.vpcConnectorEgressSettings] : message.vpcConnectorEgressSettings;
+ if (message.ingressSettings != null && message.hasOwnProperty("ingressSettings"))
+ object.ingressSettings = options.enums === String ? $root.google.cloud.functions.v2.ServiceConfig.IngressSettings[message.ingressSettings] === undefined ? message.ingressSettings : $root.google.cloud.functions.v2.ServiceConfig.IngressSettings[message.ingressSettings] : message.ingressSettings;
+ if (message.uri != null && message.hasOwnProperty("uri"))
+ object.uri = message.uri;
+ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail"))
+ object.serviceAccountEmail = message.serviceAccountEmail;
+ if (message.minInstanceCount != null && message.hasOwnProperty("minInstanceCount"))
+ object.minInstanceCount = message.minInstanceCount;
+ if (message.availableMemory != null && message.hasOwnProperty("availableMemory"))
+ object.availableMemory = message.availableMemory;
+ if (message.allTrafficOnLatestRevision != null && message.hasOwnProperty("allTrafficOnLatestRevision"))
+ object.allTrafficOnLatestRevision = message.allTrafficOnLatestRevision;
+ if (message.secretEnvironmentVariables && message.secretEnvironmentVariables.length) {
+ object.secretEnvironmentVariables = [];
+ for (var j = 0; j < message.secretEnvironmentVariables.length; ++j)
+ object.secretEnvironmentVariables[j] = $root.google.cloud.functions.v2.SecretEnvVar.toObject(message.secretEnvironmentVariables[j], options);
+ }
+ if (message.revision != null && message.hasOwnProperty("revision"))
+ object.revision = message.revision;
+ if (message.secretVolumes && message.secretVolumes.length) {
+ object.secretVolumes = [];
+ for (var j = 0; j < message.secretVolumes.length; ++j)
+ object.secretVolumes[j] = $root.google.cloud.functions.v2.SecretVolume.toObject(message.secretVolumes[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ServiceConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ServiceConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ServiceConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.ServiceConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ServiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.ServiceConfig";
+ };
+
+ /**
+ * VpcConnectorEgressSettings enum.
+ * @name google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings
+ * @enum {number}
+ * @property {number} VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED=0 VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED value
+ * @property {number} PRIVATE_RANGES_ONLY=1 PRIVATE_RANGES_ONLY value
+ * @property {number} ALL_TRAFFIC=2 ALL_TRAFFIC value
+ */
+ ServiceConfig.VpcConnectorEgressSettings = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PRIVATE_RANGES_ONLY"] = 1;
+ values[valuesById[2] = "ALL_TRAFFIC"] = 2;
+ return values;
+ })();
+
+ /**
+ * IngressSettings enum.
+ * @name google.cloud.functions.v2.ServiceConfig.IngressSettings
+ * @enum {number}
+ * @property {number} INGRESS_SETTINGS_UNSPECIFIED=0 INGRESS_SETTINGS_UNSPECIFIED value
+ * @property {number} ALLOW_ALL=1 ALLOW_ALL value
+ * @property {number} ALLOW_INTERNAL_ONLY=2 ALLOW_INTERNAL_ONLY value
+ * @property {number} ALLOW_INTERNAL_AND_GCLB=3 ALLOW_INTERNAL_AND_GCLB value
+ */
+ ServiceConfig.IngressSettings = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "INGRESS_SETTINGS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ALLOW_ALL"] = 1;
+ values[valuesById[2] = "ALLOW_INTERNAL_ONLY"] = 2;
+ values[valuesById[3] = "ALLOW_INTERNAL_AND_GCLB"] = 3;
+ return values;
+ })();
+
+ return ServiceConfig;
+ })();
+
+ v2.SecretEnvVar = (function() {
+
+ /**
+ * Properties of a SecretEnvVar.
+ * @memberof google.cloud.functions.v2
+ * @interface ISecretEnvVar
+ * @property {string|null} [key] SecretEnvVar key
+ * @property {string|null} [projectId] SecretEnvVar projectId
+ * @property {string|null} [secret] SecretEnvVar secret
+ * @property {string|null} [version] SecretEnvVar version
+ */
+
+ /**
+ * Constructs a new SecretEnvVar.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a SecretEnvVar.
+ * @implements ISecretEnvVar
+ * @constructor
+ * @param {google.cloud.functions.v2.ISecretEnvVar=} [properties] Properties to set
+ */
+ function SecretEnvVar(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]];
+ }
+
+ /**
+ * SecretEnvVar key.
+ * @member {string} key
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.key = "";
+
+ /**
+ * SecretEnvVar projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.projectId = "";
+
+ /**
+ * SecretEnvVar secret.
+ * @member {string} secret
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.secret = "";
+
+ /**
+ * SecretEnvVar version.
+ * @member {string} version
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @instance
+ */
+ SecretEnvVar.prototype.version = "";
+
+ /**
+ * Creates a new SecretEnvVar instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v2.ISecretEnvVar=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.SecretEnvVar} SecretEnvVar instance
+ */
+ SecretEnvVar.create = function create(properties) {
+ return new SecretEnvVar(properties);
+ };
+
+ /**
+ * Encodes the specified SecretEnvVar message. Does not implicitly {@link google.cloud.functions.v2.SecretEnvVar.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v2.ISecretEnvVar} message SecretEnvVar message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretEnvVar.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectId);
+ if (message.secret != null && Object.hasOwnProperty.call(message, "secret"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.secret);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.version);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SecretEnvVar message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SecretEnvVar.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v2.ISecretEnvVar} message SecretEnvVar message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretEnvVar.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.SecretEnvVar} SecretEnvVar
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretEnvVar.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.functions.v2.SecretEnvVar();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.key = reader.string();
+ break;
+ }
+ case 2: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 3: {
+ message.secret = reader.string();
+ break;
+ }
+ case 4: {
+ message.version = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SecretEnvVar message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.SecretEnvVar} SecretEnvVar
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretEnvVar.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SecretEnvVar message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SecretEnvVar.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (!$util.isString(message.key))
+ return "key: string expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ if (!$util.isString(message.secret))
+ return "secret: string expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SecretEnvVar message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.SecretEnvVar} SecretEnvVar
+ */
+ SecretEnvVar.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.SecretEnvVar)
+ return object;
+ var message = new $root.google.cloud.functions.v2.SecretEnvVar();
+ if (object.key != null)
+ message.key = String(object.key);
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.secret != null)
+ message.secret = String(object.secret);
+ if (object.version != null)
+ message.version = String(object.version);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SecretEnvVar message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {google.cloud.functions.v2.SecretEnvVar} message SecretEnvVar
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SecretEnvVar.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.key = "";
+ object.projectId = "";
+ object.secret = "";
+ object.version = "";
+ }
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ object.secret = message.secret;
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ return object;
+ };
+
+ /**
+ * Converts this SecretEnvVar to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SecretEnvVar.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SecretEnvVar
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.SecretEnvVar
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SecretEnvVar.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.SecretEnvVar";
+ };
+
+ return SecretEnvVar;
+ })();
+
+ v2.SecretVolume = (function() {
+
+ /**
+ * Properties of a SecretVolume.
+ * @memberof google.cloud.functions.v2
+ * @interface ISecretVolume
+ * @property {string|null} [mountPath] SecretVolume mountPath
+ * @property {string|null} [projectId] SecretVolume projectId
+ * @property {string|null} [secret] SecretVolume secret
+ * @property {Array.|null} [versions] SecretVolume versions
+ */
+
+ /**
+ * Constructs a new SecretVolume.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents a SecretVolume.
+ * @implements ISecretVolume
+ * @constructor
+ * @param {google.cloud.functions.v2.ISecretVolume=} [properties] Properties to set
+ */
+ function SecretVolume(properties) {
+ this.versions = [];
+ 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]];
+ }
+
+ /**
+ * SecretVolume mountPath.
+ * @member {string} mountPath
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.mountPath = "";
+
+ /**
+ * SecretVolume projectId.
+ * @member {string} projectId
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.projectId = "";
+
+ /**
+ * SecretVolume secret.
+ * @member {string} secret
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.secret = "";
+
+ /**
+ * SecretVolume versions.
+ * @member {Array.} versions
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @instance
+ */
+ SecretVolume.prototype.versions = $util.emptyArray;
+
+ /**
+ * Creates a new SecretVolume instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v2.ISecretVolume=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.SecretVolume} SecretVolume instance
+ */
+ SecretVolume.create = function create(properties) {
+ return new SecretVolume(properties);
+ };
+
+ /**
+ * Encodes the specified SecretVolume message. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v2.ISecretVolume} message SecretVolume message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVolume.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.mountPath != null && Object.hasOwnProperty.call(message, "mountPath"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.mountPath);
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectId);
+ if (message.secret != null && Object.hasOwnProperty.call(message, "secret"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.secret);
+ if (message.versions != null && message.versions.length)
+ for (var i = 0; i < message.versions.length; ++i)
+ $root.google.cloud.functions.v2.SecretVolume.SecretVersion.encode(message.versions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SecretVolume message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v2.ISecretVolume} message SecretVolume message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVolume.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.SecretVolume} SecretVolume
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVolume.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.functions.v2.SecretVolume();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.mountPath = reader.string();
+ break;
+ }
+ case 2: {
+ message.projectId = reader.string();
+ break;
+ }
+ case 3: {
+ message.secret = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.versions && message.versions.length))
+ message.versions = [];
+ message.versions.push($root.google.cloud.functions.v2.SecretVolume.SecretVersion.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SecretVolume message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.SecretVolume} SecretVolume
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVolume.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SecretVolume message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SecretVolume.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
+ if (!$util.isString(message.mountPath))
+ return "mountPath: string expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ if (!$util.isString(message.secret))
+ return "secret: string expected";
+ if (message.versions != null && message.hasOwnProperty("versions")) {
+ if (!Array.isArray(message.versions))
+ return "versions: array expected";
+ for (var i = 0; i < message.versions.length; ++i) {
+ var error = $root.google.cloud.functions.v2.SecretVolume.SecretVersion.verify(message.versions[i]);
+ if (error)
+ return "versions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a SecretVolume message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.SecretVolume} SecretVolume
+ */
+ SecretVolume.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.SecretVolume)
+ return object;
+ var message = new $root.google.cloud.functions.v2.SecretVolume();
+ if (object.mountPath != null)
+ message.mountPath = String(object.mountPath);
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.secret != null)
+ message.secret = String(object.secret);
+ if (object.versions) {
+ if (!Array.isArray(object.versions))
+ throw TypeError(".google.cloud.functions.v2.SecretVolume.versions: array expected");
+ message.versions = [];
+ for (var i = 0; i < object.versions.length; ++i) {
+ if (typeof object.versions[i] !== "object")
+ throw TypeError(".google.cloud.functions.v2.SecretVolume.versions: object expected");
+ message.versions[i] = $root.google.cloud.functions.v2.SecretVolume.SecretVersion.fromObject(object.versions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SecretVolume message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {google.cloud.functions.v2.SecretVolume} message SecretVolume
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SecretVolume.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.versions = [];
+ if (options.defaults) {
+ object.mountPath = "";
+ object.projectId = "";
+ object.secret = "";
+ }
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
+ object.mountPath = message.mountPath;
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.secret != null && message.hasOwnProperty("secret"))
+ object.secret = message.secret;
+ if (message.versions && message.versions.length) {
+ object.versions = [];
+ for (var j = 0; j < message.versions.length; ++j)
+ object.versions[j] = $root.google.cloud.functions.v2.SecretVolume.SecretVersion.toObject(message.versions[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this SecretVolume to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SecretVolume.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SecretVolume
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SecretVolume.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.SecretVolume";
+ };
+
+ SecretVolume.SecretVersion = (function() {
+
+ /**
+ * Properties of a SecretVersion.
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @interface ISecretVersion
+ * @property {string|null} [version] SecretVersion version
+ * @property {string|null} [path] SecretVersion path
+ */
+
+ /**
+ * Constructs a new SecretVersion.
+ * @memberof google.cloud.functions.v2.SecretVolume
+ * @classdesc Represents a SecretVersion.
+ * @implements ISecretVersion
+ * @constructor
+ * @param {google.cloud.functions.v2.SecretVolume.ISecretVersion=} [properties] Properties to set
+ */
+ function SecretVersion(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]];
+ }
+
+ /**
+ * SecretVersion version.
+ * @member {string} version
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @instance
+ */
+ SecretVersion.prototype.version = "";
+
+ /**
+ * SecretVersion path.
+ * @member {string} path
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @instance
+ */
+ SecretVersion.prototype.path = "";
+
+ /**
+ * Creates a new SecretVersion instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v2.SecretVolume.ISecretVersion=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.SecretVolume.SecretVersion} SecretVersion instance
+ */
+ SecretVersion.create = function create(properties) {
+ return new SecretVersion(properties);
+ };
+
+ /**
+ * Encodes the specified SecretVersion message. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.SecretVersion.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v2.SecretVolume.ISecretVersion} message SecretVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVersion.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SecretVersion message, length delimited. Does not implicitly {@link google.cloud.functions.v2.SecretVolume.SecretVersion.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v2.SecretVolume.ISecretVersion} message SecretVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SecretVersion.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.SecretVolume.SecretVersion} SecretVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVersion.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.functions.v2.SecretVolume.SecretVersion();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SecretVersion message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.SecretVolume.SecretVersion} SecretVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SecretVersion.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SecretVersion message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SecretVersion.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SecretVersion message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.SecretVolume.SecretVersion} SecretVersion
+ */
+ SecretVersion.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.SecretVolume.SecretVersion)
+ return object;
+ var message = new $root.google.cloud.functions.v2.SecretVolume.SecretVersion();
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SecretVersion message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {google.cloud.functions.v2.SecretVolume.SecretVersion} message SecretVersion
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SecretVersion.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.path = "";
+ }
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this SecretVersion to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SecretVersion.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SecretVersion
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.SecretVolume.SecretVersion
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SecretVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.SecretVolume.SecretVersion";
+ };
+
+ return SecretVersion;
+ })();
+
+ return SecretVolume;
+ })();
+
+ v2.EventTrigger = (function() {
+
+ /**
+ * Properties of an EventTrigger.
+ * @memberof google.cloud.functions.v2
+ * @interface IEventTrigger
+ * @property {string|null} [trigger] EventTrigger trigger
+ * @property {string|null} [triggerRegion] EventTrigger triggerRegion
+ * @property {string|null} [eventType] EventTrigger eventType
+ * @property {Array.|null} [eventFilters] EventTrigger eventFilters
+ * @property {string|null} [pubsubTopic] EventTrigger pubsubTopic
+ * @property {string|null} [serviceAccountEmail] EventTrigger serviceAccountEmail
+ * @property {google.cloud.functions.v2.EventTrigger.RetryPolicy|null} [retryPolicy] EventTrigger retryPolicy
+ * @property {string|null} [channel] EventTrigger channel
+ */
+
+ /**
+ * Constructs a new EventTrigger.
+ * @memberof google.cloud.functions.v2
+ * @classdesc Represents an EventTrigger.
+ * @implements IEventTrigger
+ * @constructor
+ * @param {google.cloud.functions.v2.IEventTrigger=} [properties] Properties to set
+ */
+ function EventTrigger(properties) {
+ this.eventFilters = [];
+ 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]];
+ }
+
+ /**
+ * EventTrigger trigger.
+ * @member {string} trigger
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.trigger = "";
+
+ /**
+ * EventTrigger triggerRegion.
+ * @member {string} triggerRegion
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.triggerRegion = "";
+
+ /**
+ * EventTrigger eventType.
+ * @member {string} eventType
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.eventType = "";
+
+ /**
+ * EventTrigger eventFilters.
+ * @member {Array.} eventFilters
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.eventFilters = $util.emptyArray;
+
+ /**
+ * EventTrigger pubsubTopic.
+ * @member {string} pubsubTopic
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.pubsubTopic = "";
+
+ /**
+ * EventTrigger serviceAccountEmail.
+ * @member {string} serviceAccountEmail
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.serviceAccountEmail = "";
+
+ /**
+ * EventTrigger retryPolicy.
+ * @member {google.cloud.functions.v2.EventTrigger.RetryPolicy} retryPolicy
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.retryPolicy = 0;
+
+ /**
+ * EventTrigger channel.
+ * @member {string} channel
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ */
+ EventTrigger.prototype.channel = "";
+
+ /**
+ * Creates a new EventTrigger instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v2.IEventTrigger=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.EventTrigger} EventTrigger instance
+ */
+ EventTrigger.create = function create(properties) {
+ return new EventTrigger(properties);
+ };
+
+ /**
+ * Encodes the specified EventTrigger message. Does not implicitly {@link google.cloud.functions.v2.EventTrigger.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v2.IEventTrigger} message EventTrigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventTrigger.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.trigger != null && Object.hasOwnProperty.call(message, "trigger"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.trigger);
+ if (message.triggerRegion != null && Object.hasOwnProperty.call(message, "triggerRegion"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerRegion);
+ if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventType);
+ if (message.eventFilters != null && message.eventFilters.length)
+ for (var i = 0; i < message.eventFilters.length; ++i)
+ $root.google.cloud.functions.v2.EventFilter.encode(message.eventFilters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.pubsubTopic != null && Object.hasOwnProperty.call(message, "pubsubTopic"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.pubsubTopic);
+ if (message.serviceAccountEmail != null && Object.hasOwnProperty.call(message, "serviceAccountEmail"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccountEmail);
+ if (message.retryPolicy != null && Object.hasOwnProperty.call(message, "retryPolicy"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.retryPolicy);
+ if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.channel);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EventTrigger message, length delimited. Does not implicitly {@link google.cloud.functions.v2.EventTrigger.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v2.IEventTrigger} message EventTrigger message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventTrigger.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.EventTrigger} EventTrigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventTrigger.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.functions.v2.EventTrigger();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.trigger = reader.string();
+ break;
+ }
+ case 2: {
+ message.triggerRegion = reader.string();
+ break;
+ }
+ case 3: {
+ message.eventType = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.eventFilters && message.eventFilters.length))
+ message.eventFilters = [];
+ message.eventFilters.push($root.google.cloud.functions.v2.EventFilter.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ message.pubsubTopic = reader.string();
+ break;
+ }
+ case 6: {
+ message.serviceAccountEmail = reader.string();
+ break;
+ }
+ case 7: {
+ message.retryPolicy = reader.int32();
+ break;
+ }
+ case 8: {
+ message.channel = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EventTrigger message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.EventTrigger} EventTrigger
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventTrigger.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EventTrigger message.
+ * @function verify
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EventTrigger.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.trigger != null && message.hasOwnProperty("trigger"))
+ if (!$util.isString(message.trigger))
+ return "trigger: string expected";
+ if (message.triggerRegion != null && message.hasOwnProperty("triggerRegion"))
+ if (!$util.isString(message.triggerRegion))
+ return "triggerRegion: string expected";
+ if (message.eventType != null && message.hasOwnProperty("eventType"))
+ if (!$util.isString(message.eventType))
+ return "eventType: string expected";
+ 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.functions.v2.EventFilter.verify(message.eventFilters[i]);
+ if (error)
+ return "eventFilters." + error;
+ }
+ }
+ if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic"))
+ if (!$util.isString(message.pubsubTopic))
+ return "pubsubTopic: string expected";
+ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail"))
+ if (!$util.isString(message.serviceAccountEmail))
+ return "serviceAccountEmail: string expected";
+ if (message.retryPolicy != null && message.hasOwnProperty("retryPolicy"))
+ switch (message.retryPolicy) {
+ default:
+ return "retryPolicy: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.channel != null && message.hasOwnProperty("channel"))
+ if (!$util.isString(message.channel))
+ return "channel: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EventTrigger message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.EventTrigger} EventTrigger
+ */
+ EventTrigger.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.EventTrigger)
+ return object;
+ var message = new $root.google.cloud.functions.v2.EventTrigger();
+ if (object.trigger != null)
+ message.trigger = String(object.trigger);
+ if (object.triggerRegion != null)
+ message.triggerRegion = String(object.triggerRegion);
+ if (object.eventType != null)
+ message.eventType = String(object.eventType);
+ if (object.eventFilters) {
+ if (!Array.isArray(object.eventFilters))
+ throw TypeError(".google.cloud.functions.v2.EventTrigger.eventFilters: array expected");
+ message.eventFilters = [];
+ for (var i = 0; i < object.eventFilters.length; ++i) {
+ if (typeof object.eventFilters[i] !== "object")
+ throw TypeError(".google.cloud.functions.v2.EventTrigger.eventFilters: object expected");
+ message.eventFilters[i] = $root.google.cloud.functions.v2.EventFilter.fromObject(object.eventFilters[i]);
+ }
+ }
+ if (object.pubsubTopic != null)
+ message.pubsubTopic = String(object.pubsubTopic);
+ if (object.serviceAccountEmail != null)
+ message.serviceAccountEmail = String(object.serviceAccountEmail);
+ switch (object.retryPolicy) {
+ default:
+ if (typeof object.retryPolicy === "number") {
+ message.retryPolicy = object.retryPolicy;
+ break;
+ }
+ break;
+ case "RETRY_POLICY_UNSPECIFIED":
+ case 0:
+ message.retryPolicy = 0;
+ break;
+ case "RETRY_POLICY_DO_NOT_RETRY":
+ case 1:
+ message.retryPolicy = 1;
+ break;
+ case "RETRY_POLICY_RETRY":
+ case 2:
+ message.retryPolicy = 2;
+ break;
+ }
+ if (object.channel != null)
+ message.channel = String(object.channel);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EventTrigger message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {google.cloud.functions.v2.EventTrigger} message EventTrigger
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EventTrigger.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.eventFilters = [];
+ if (options.defaults) {
+ object.trigger = "";
+ object.triggerRegion = "";
+ object.eventType = "";
+ object.pubsubTopic = "";
+ object.serviceAccountEmail = "";
+ object.retryPolicy = options.enums === String ? "RETRY_POLICY_UNSPECIFIED" : 0;
+ object.channel = "";
+ }
+ if (message.trigger != null && message.hasOwnProperty("trigger"))
+ object.trigger = message.trigger;
+ if (message.triggerRegion != null && message.hasOwnProperty("triggerRegion"))
+ object.triggerRegion = message.triggerRegion;
+ if (message.eventType != null && message.hasOwnProperty("eventType"))
+ object.eventType = message.eventType;
+ if (message.eventFilters && message.eventFilters.length) {
+ object.eventFilters = [];
+ for (var j = 0; j < message.eventFilters.length; ++j)
+ object.eventFilters[j] = $root.google.cloud.functions.v2.EventFilter.toObject(message.eventFilters[j], options);
+ }
+ if (message.pubsubTopic != null && message.hasOwnProperty("pubsubTopic"))
+ object.pubsubTopic = message.pubsubTopic;
+ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail"))
+ object.serviceAccountEmail = message.serviceAccountEmail;
+ if (message.retryPolicy != null && message.hasOwnProperty("retryPolicy"))
+ object.retryPolicy = options.enums === String ? $root.google.cloud.functions.v2.EventTrigger.RetryPolicy[message.retryPolicy] === undefined ? message.retryPolicy : $root.google.cloud.functions.v2.EventTrigger.RetryPolicy[message.retryPolicy] : message.retryPolicy;
+ if (message.channel != null && message.hasOwnProperty("channel"))
+ object.channel = message.channel;
+ return object;
+ };
+
+ /**
+ * Converts this EventTrigger to JSON.
+ * @function toJSON
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EventTrigger.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EventTrigger
+ * @function getTypeUrl
+ * @memberof google.cloud.functions.v2.EventTrigger
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EventTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.functions.v2.EventTrigger";
+ };
+
+ /**
+ * RetryPolicy enum.
+ * @name google.cloud.functions.v2.EventTrigger.RetryPolicy
+ * @enum {number}
+ * @property {number} RETRY_POLICY_UNSPECIFIED=0 RETRY_POLICY_UNSPECIFIED value
+ * @property {number} RETRY_POLICY_DO_NOT_RETRY=1 RETRY_POLICY_DO_NOT_RETRY value
+ * @property {number} RETRY_POLICY_RETRY=2 RETRY_POLICY_RETRY value
+ */
+ EventTrigger.RetryPolicy = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RETRY_POLICY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "RETRY_POLICY_DO_NOT_RETRY"] = 1;
+ values[valuesById[2] = "RETRY_POLICY_RETRY"] = 2;
+ return values;
+ })();
+
+ return EventTrigger;
+ })();
+
+ v2.EventFilter = (function() {
+
+ /**
+ * Properties of an EventFilter.
+ * @memberof google.cloud.functions.v2
+ * @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.functions.v2
+ * @classdesc Represents an EventFilter.
+ * @implements IEventFilter
+ * @constructor
+ * @param {google.cloud.functions.v2.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.functions.v2.EventFilter
+ * @instance
+ */
+ EventFilter.prototype.attribute = "";
+
+ /**
+ * EventFilter value.
+ * @member {string} value
+ * @memberof google.cloud.functions.v2.EventFilter
+ * @instance
+ */
+ EventFilter.prototype.value = "";
+
+ /**
+ * EventFilter operator.
+ * @member {string} operator
+ * @memberof google.cloud.functions.v2.EventFilter
+ * @instance
+ */
+ EventFilter.prototype.operator = "";
+
+ /**
+ * Creates a new EventFilter instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.functions.v2.EventFilter
+ * @static
+ * @param {google.cloud.functions.v2.IEventFilter=} [properties] Properties to set
+ * @returns {google.cloud.functions.v2.EventFilter} EventFilter instance
+ */
+ EventFilter.create = function create(properties) {
+ return new EventFilter(properties);
+ };
+
+ /**
+ * Encodes the specified EventFilter message. Does not implicitly {@link google.cloud.functions.v2.EventFilter.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.functions.v2.EventFilter
+ * @static
+ * @param {google.cloud.functions.v2.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.functions.v2.EventFilter.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.functions.v2.EventFilter
+ * @static
+ * @param {google.cloud.functions.v2.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.functions.v2.EventFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.functions.v2.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.functions.v2.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.functions.v2.EventFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.functions.v2.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.functions.v2.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.functions.v2.EventFilter
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.functions.v2.EventFilter} EventFilter
+ */
+ EventFilter.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.functions.v2.EventFilter)
+ return object;
+ var message = new $root.google.cloud.functions.v2.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.functions.v2.EventFilter
+ * @static
+ * @param {google.cloud.functions.v2.EventFilter} message EventFilter
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.