diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 8f07de4286b..4415c028214 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -74,6 +74,7 @@
"packages/google-cloud-networksecurity": "1.0.2",
"packages/google-cloud-notebooks": "2.1.2",
"packages/google-cloud-optimization": "2.1.1",
+ "packages/google-cloud-orchestration-airflow-service": "2.1.2",
"packages/google-cloud-orgpolicy": "2.0.3",
"packages/google-cloud-osconfig": "2.1.2",
"packages/google-cloud-oslogin": "4.0.4",
diff --git a/packages/google-cloud-orchestration-airflow-service/.OwlBot.yaml b/packages/google-cloud-orchestration-airflow-service/.OwlBot.yaml
new file mode 100644
index 00000000000..4721939d54e
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.OwlBot.yaml
@@ -0,0 +1,20 @@
+# 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.
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/orchestration/airflow/service/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-orchestration-airflow-service/$1
diff --git a/packages/google-cloud-orchestration-airflow-service/.eslintignore b/packages/google-cloud-orchestration-airflow-service/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-orchestration-airflow-service/.eslintrc.json b/packages/google-cloud-orchestration-airflow-service/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/.gitattributes b/packages/google-cloud-orchestration-airflow-service/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.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-orchestration-airflow-service/.gitignore b/packages/google-cloud-orchestration-airflow-service/.gitignore
new file mode 100644
index 00000000000..5d32b23782f
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.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-orchestration-airflow-service/.jsdoc.js b/packages/google-cloud-orchestration-airflow-service/.jsdoc.js
new file mode 100644
index 00000000000..4eacd7d3697
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.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/orchestration-airflow',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-orchestration-airflow-service/.mocharc.js b/packages/google-cloud-orchestration-airflow-service/.mocharc.js
new file mode 100644
index 00000000000..cdb7b752160
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.mocharc.js
@@ -0,0 +1,29 @@
+// 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.
+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-orchestration-airflow-service/.nycrc b/packages/google-cloud-orchestration-airflow-service/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.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-orchestration-airflow-service/.prettierignore b/packages/google-cloud-orchestration-airflow-service/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-orchestration-airflow-service/.prettierrc.js b/packages/google-cloud-orchestration-airflow-service/.prettierrc.js
new file mode 100644
index 00000000000..d546a4ad546
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.prettierrc.js
@@ -0,0 +1,17 @@
+// 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.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/.repo-metadata.json b/packages/google-cloud-orchestration-airflow-service/.repo-metadata.json
new file mode 100644
index 00000000000..dd040da59b6
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "orchestration-airflow",
+ "name_pretty": "Cloud Composer",
+ "api_description": "is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure.",
+ "product_documentation": "https://cloud.google.com/composer/docs",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/orchestration-airflow/latest",
+ "api_id": "composer.googleapis.com",
+ "distribution_name": "@google-cloud/orchestration-airflow",
+ "release_level": "stable",
+ "default_version": "v1",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "requires_billing": true,
+ "issue_tracker": "https://issuetracker.google.com/issues/new?component=460446",
+ "api_shortname": "composer",
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md b/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md
new file mode 100644
index 00000000000..afcfbf7aa46
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md
@@ -0,0 +1,51 @@
+# Changelog
+
+## [2.1.2](https://github.com/googleapis/nodejs-orchestration-airflow/compare/v2.1.1...v2.1.2) (2022-11-15)
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#76](https://github.com/googleapis/nodejs-orchestration-airflow/issues/76)) ([5d9c78a](https://github.com/googleapis/nodejs-orchestration-airflow/commit/5d9c78a81d9ae07244f696ac7a9d211964fd62b2))
+* Preserve default values in x-goog-request-params header ([#69](https://github.com/googleapis/nodejs-orchestration-airflow/issues/69)) ([cdef154](https://github.com/googleapis/nodejs-orchestration-airflow/commit/cdef154d8a51c446cdc16b61660f18e6123b8168))
+* Regenerated protos JS and TS definitions ([#79](https://github.com/googleapis/nodejs-orchestration-airflow/issues/79)) ([b0ef563](https://github.com/googleapis/nodejs-orchestration-airflow/commit/b0ef56303b2e61a7a1a8fb505916682631e8beec))
+
+## [2.1.1](https://github.com/googleapis/nodejs-orchestration-airflow/compare/v2.1.0...v2.1.1) (2022-09-01)
+
+
+### Bug Fixes
+
+* Allow passing gax instance to client constructor ([#68](https://github.com/googleapis/nodejs-orchestration-airflow/issues/68)) ([f757a98](https://github.com/googleapis/nodejs-orchestration-airflow/commit/f757a988851df8a5ebb47c77625a4a2ced3e5e02))
+* Better support for fallback mode ([#63](https://github.com/googleapis/nodejs-orchestration-airflow/issues/63)) ([51899a8](https://github.com/googleapis/nodejs-orchestration-airflow/commit/51899a81a2556081ab6b6c7f3b2ab141e16a636a))
+* Change import long to require ([#64](https://github.com/googleapis/nodejs-orchestration-airflow/issues/64)) ([b7a1b79](https://github.com/googleapis/nodejs-orchestration-airflow/commit/b7a1b794912552bd33fe7cd341eec6a48ce11676))
+* Do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-orchestration-airflow/issues/1553)) ([#67](https://github.com/googleapis/nodejs-orchestration-airflow/issues/67)) ([b51775f](https://github.com/googleapis/nodejs-orchestration-airflow/commit/b51775fdbf36544855469c0b5773611826f4a197))
+* Remove pip install statements ([#1546](https://github.com/googleapis/nodejs-orchestration-airflow/issues/1546)) ([#66](https://github.com/googleapis/nodejs-orchestration-airflow/issues/66)) ([a2c7e4c](https://github.com/googleapis/nodejs-orchestration-airflow/commit/a2c7e4c221aaed03b13d83e50ff4e94de56bd876))
+
+## [2.1.0](https://github.com/googleapis/nodejs-orchestration-airflow/compare/v2.0.0...v2.1.0) (2022-06-30)
+
+
+### Features
+
+* support regapic LRO ([#51](https://github.com/googleapis/nodejs-orchestration-airflow/issues/51)) ([6061472](https://github.com/googleapis/nodejs-orchestration-airflow/commit/60614729ab1fbc7885d2b07baff89cb8e052d2fa))
+
+## [2.0.0](https://github.com/googleapis/nodejs-orchestration-airflow/compare/v1.0.0...v2.0.0) (2022-06-10)
+
+
+### ⚠ BREAKING CHANGES
+
+* update library to use Node 12 (#46)
+
+### Build System
+
+* update library to use Node 12 ([#46](https://github.com/googleapis/nodejs-orchestration-airflow/issues/46)) ([8050138](https://github.com/googleapis/nodejs-orchestration-airflow/commit/8050138459f45ca557dee0a38ecc82962c4b8da2))
+
+## 1.0.0 (2021-09-30)
+
+
+### ⚠ BREAKING CHANGES
+
+* initial release of orchestration-airflow (#2)
+
+### Features
+
+* initial files ([c858e85](https://www.github.com/googleapis/nodejs-orchestration-airflow/commit/c858e85019906ff6741aa1e3033c50050305798c))
+* initial release of orchestration-airflow ([#2](https://www.github.com/googleapis/nodejs-orchestration-airflow/issues/2)) ([bd968d9](https://www.github.com/googleapis/nodejs-orchestration-airflow/commit/bd968d975db183f98c476bc208cae47d37593d54))
diff --git a/packages/google-cloud-orchestration-airflow-service/CODE_OF_CONDUCT.md b/packages/google-cloud-orchestration-airflow-service/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/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-orchestration-airflow-service/CONTRIBUTING.md b/packages/google-cloud-orchestration-airflow-service/CONTRIBUTING.md
new file mode 100644
index 00000000000..0d98693afb7
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/CONTRIBUTING.md
@@ -0,0 +1,76 @@
+# How to become a contributor and submit your own code
+
+**Table of contents**
+
+* [Contributor License Agreements](#contributor-license-agreements)
+* [Contributing a patch](#contributing-a-patch)
+* [Running the tests](#running-the-tests)
+* [Releasing the library](#releasing-the-library)
+
+## Contributor License Agreements
+
+We'd love to accept your sample apps and patches! Before we can take them, we
+have to jump a couple of legal hurdles.
+
+Please fill out either the individual or corporate Contributor License Agreement
+(CLA).
+
+ * If you are an individual writing original source code and you're sure you
+ own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
+ * If you work for a company that wants to allow you to contribute your work,
+ then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
+
+Follow either of the two links above to access the appropriate CLA and
+instructions for how to sign and return it. Once we receive it, we'll be able to
+accept your pull requests.
+
+## Contributing A Patch
+
+1. Submit an issue describing your proposed change to the repo in question.
+1. The repo owner will respond to your issue promptly.
+1. If your proposed change is accepted, and you haven't already done so, sign a
+ Contributor License Agreement (see details above).
+1. Fork the desired repo, develop and test your code changes.
+1. Ensure that your code adheres to the existing style in the code to which
+ you are contributing.
+1. Ensure that your code has an appropriate set of tests which all pass.
+1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling.
+1. Submit a pull request.
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Cloud Composer 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=composer.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-orchestration-airflow-service/LICENSE b/packages/google-cloud-orchestration-airflow-service/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/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-orchestration-airflow-service/README.md b/packages/google-cloud-orchestration-airflow-service/README.md
new file mode 100644
index 00000000000..4b2db70d863
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/README.md
@@ -0,0 +1,176 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Cloud Composer: Node.js Client](https://github.com/googleapis/google-cloud-node)
+
+[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
+[![npm version](https://img.shields.io/npm/v/@google-cloud/orchestration-airflow.svg)](https://www.npmjs.org/package/@google-cloud/orchestration-airflow)
+
+
+
+
+orchestration-airflow client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-orchestration-airflow-service/CHANGELOG.md).
+
+* [Cloud Composer Node.js Client API Reference][client-docs]
+* [Cloud Composer Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-orchestration-airflow-service](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-orchestration-airflow-service)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+ * [Using the client library](#using-the-client-library)
+* [Samples](#samples)
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Cloud Composer 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/orchestration-airflow
+```
+
+
+### 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 {ImageVersionsClient} = require('@google-cloud/orchestration-airflow');
+
+// TODO(developer): replace with your prefered project ID.
+// const projectId = 'my-project'
+
+// Creates a client
+// eslint-disable-next-line no-unused-vars
+const client = new ImageVersionsClient();
+
+async function listImageVersions() {
+ const [versions] = await client.listImageVersions({
+ parent: `projects/${projectId}/locations/${location}`,
+ });
+ console.info(versions);
+}
+listImageVersions();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Environments.create_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_environment.js,samples/README.md) |
+| Environments.delete_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.delete_environment.js,samples/README.md) |
+| Environments.get_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.get_environment.js,samples/README.md) |
+| Environments.list_environments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_environments.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.list_environments.js,samples/README.md) |
+| Environments.update_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.update_environment.js,samples/README.md) |
+| Image_versions.list_image_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/image_versions.list_image_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1/image_versions.list_image_versions.js,samples/README.md) |
+| Environments.check_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.check_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.check_upgrade.js,samples/README.md) |
+| Environments.create_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.create_environment.js,samples/README.md) |
+| Environments.delete_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_environment.js,samples/README.md) |
+| Environments.get_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.get_environment.js,samples/README.md) |
+| Environments.list_environments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_environments.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.list_environments.js,samples/README.md) |
+| Environments.restart_web_server | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.restart_web_server.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.restart_web_server.js,samples/README.md) |
+| Environments.update_environment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_environment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.update_environment.js,samples/README.md) |
+| Image_versions.list_image_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/image_versions.list_image_versions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/image_versions.list_image_versions.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/quickstart.js,samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-orchestration-airflow-service/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-orchestration-airflow-service/samples/test/quickstart.js,samples/README.md) |
+
+
+
+The [Cloud Composer 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/orchestration-airflow@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/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/orchestration-airflow/latest
+[product-docs]: https://cloud.google.com/composer/docs
+[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=composer.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-orchestration-airflow-service/linkinator.config.json b/packages/google-cloud-orchestration-airflow-service/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/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-orchestration-airflow-service/package.json b/packages/google-cloud-orchestration-airflow-service/package.json
new file mode 100644
index 00000000000..36faa1b53da
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/package.json
@@ -0,0 +1,71 @@
+{
+ "name": "@google-cloud/orchestration-airflow",
+ "version": "2.1.2",
+ "description": "orchestration-airflow client for Node.js",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-orchestration-airflow-service",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "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 orchestration-airflow",
+ "orchestration-airflow",
+ "orchestration-airflow service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^3.5.2"
+ },
+ "devDependencies": {
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^18.0.0",
+ "@types/sinon": "^10.0.0",
+ "c8": "^7.7.2",
+ "gts": "^3.1.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^2.0.0",
+ "jsdoc-region-tag": "^2.0.0",
+ "linkinator": "^4.0.0",
+ "mocha": "^9.2.2",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^14.0.0",
+ "ts-loader": "^9.1.2",
+ "typescript": "^4.6.4",
+ "webpack": "^5.36.2",
+ "webpack-cli": "^4.7.0"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-orchestration-airflow-service"
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto
new file mode 100644
index 00000000000..0579d51acf6
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/environments.proto
@@ -0,0 +1,730 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.orchestration.airflow.service.v1;
+
+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/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1;service";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.orchestration.airflow.service.v1";
+
+// Managed Apache Airflow Environments.
+service Environments {
+ option (google.api.default_host) = "composer.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Create a new environment.
+ rpc CreateEnvironment(CreateEnvironmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/environments"
+ body: "environment"
+ };
+ option (google.api.method_signature) = "parent,environment";
+ option (google.longrunning.operation_info) = {
+ response_type: "Environment"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1.OperationMetadata"
+ };
+ }
+
+ // Get an existing environment.
+ rpc GetEnvironment(GetEnvironmentRequest) returns (Environment) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/environments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List environments.
+ rpc ListEnvironments(ListEnvironmentsRequest) returns (ListEnvironmentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/environments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Update an environment.
+ rpc UpdateEnvironment(UpdateEnvironmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{name=projects/*/locations/*/environments/*}"
+ body: "environment"
+ };
+ option (google.api.method_signature) = "name,environment,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Environment"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1.OperationMetadata"
+ };
+ }
+
+ // Delete an environment.
+ rpc DeleteEnvironment(DeleteEnvironmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/environments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1.OperationMetadata"
+ };
+ }
+}
+
+// Create a new environment.
+message CreateEnvironmentRequest {
+ // The parent must be of the form
+ // "projects/{projectId}/locations/{locationId}".
+ string parent = 1;
+
+ // The environment to create.
+ Environment environment = 2;
+}
+
+// Get an environment.
+message GetEnvironmentRequest {
+ // The resource name of the environment to get, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string name = 1;
+}
+
+// List environments in a project and location.
+message ListEnvironmentsRequest {
+ // List environments in the given project and location, in the form:
+ // "projects/{projectId}/locations/{locationId}"
+ string parent = 1;
+
+ // The maximum number of environments to return.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+}
+
+// The environments in a project and location.
+message ListEnvironmentsResponse {
+ // The list of environments returned by a ListEnvironmentsRequest.
+ repeated Environment environments = 1;
+
+ // The page token used to query for the next page if one exists.
+ string next_page_token = 2;
+}
+
+// Delete an environment.
+message DeleteEnvironmentRequest {
+ // The environment to delete, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string name = 1;
+}
+
+// Update an environment.
+message UpdateEnvironmentRequest {
+ // The relative resource name of the environment to update, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string name = 2;
+
+ // A patch environment. Fields specified by the `updateMask` will be copied
+ // from the patch environment into the environment under update.
+ Environment environment = 1;
+
+ // Required. A comma-separated list of paths, relative to `Environment`, of
+ // fields to update.
+ // For example, to set the version of scikit-learn to install in the
+ // environment to 0.19.0 and to remove an existing installation of
+ // numpy, the `updateMask` parameter would include the following two
+ // `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and
+ // "config.softwareConfig.pypiPackages.numpy". The included patch
+ // environment would specify the scikit-learn version as follows:
+ //
+ // {
+ // "config":{
+ // "softwareConfig":{
+ // "pypiPackages":{
+ // "scikit-learn":"==0.19.0"
+ // }
+ // }
+ // }
+ // }
+ //
+ // Note that in the above example, any existing PyPI packages
+ // other than scikit-learn and numpy will be unaffected.
+ //
+ // Only one update type may be included in a single request's `updateMask`.
+ // For example, one cannot update both the PyPI packages and
+ // labels in the same request. However, it is possible to update multiple
+ // members of a map field simultaneously in the same request. For example,
+ // to set the labels "label1" and "label2" while clearing "label3" (assuming
+ // it already exists), one can
+ // provide the paths "labels.label1", "labels.label2", and "labels.label3"
+ // and populate the patch environment as follows:
+ //
+ // {
+ // "labels":{
+ // "label1":"new-label1-value"
+ // "label2":"new-label2-value"
+ // }
+ // }
+ //
+ // Note that in the above example, any existing labels that are not
+ // included in the `updateMask` will be unaffected.
+ //
+ // It is also possible to replace an entire map field by providing the
+ // map field's path in the `updateMask`. The new value of the field will
+ // be that which is provided in the patch environment. For example, to
+ // delete all pre-existing user-specified PyPI packages and
+ // install botocore at version 1.7.14, the `updateMask` would contain
+ // the path "config.softwareConfig.pypiPackages", and
+ // the patch environment would be the following:
+ //
+ // {
+ // "config":{
+ // "softwareConfig":{
+ // "pypiPackages":{
+ // "botocore":"==1.7.14"
+ // }
+ // }
+ // }
+ // }
+ //
+ // **Note:** Only the following fields can be updated:
+ //
+ // * `config.softwareConfig.pypiPackages`
+ // * Replace all custom custom PyPI packages. If a replacement
+ // package map is not included in `environment`, all custom
+ // PyPI packages are cleared. It is an error to provide both
+ // this mask and a mask specifying an individual package.
+ // * `config.softwareConfig.pypiPackages.`packagename
+ // * Update the custom PyPI package *packagename*,
+ // preserving other packages. To delete the package, include it in
+ // `updateMask`, and omit the mapping for it in
+ // `environment.config.softwareConfig.pypiPackages`. It is an error
+ // to provide both a mask of this form and the
+ // `config.softwareConfig.pypiPackages` mask.
+ // * `labels`
+ // * Replace all environment labels. If a replacement labels map is not
+ // included in `environment`, all labels are cleared. It is an error to
+ // provide both this mask and a mask specifying one or more individual
+ // labels.
+ // * `labels.`labelName
+ // * Set the label named *labelName*, while preserving other
+ // labels. To delete the label, include it in `updateMask` and omit its
+ // mapping in `environment.labels`. It is an error to provide both a
+ // mask of this form and the `labels` mask.
+ // * `config.nodeCount`
+ // * Horizontally scale the number of nodes in the environment. An integer
+ // greater than or equal to 3 must be provided in the `config.nodeCount`
+ // field.
+ // * `config.webServerNetworkAccessControl`
+ // * Replace the environment's current `WebServerNetworkAccessControl`.
+ // * `config.databaseConfig`
+ // * Replace the environment's current `DatabaseConfig`.
+ // * `config.webServerConfig`
+ // * Replace the environment's current `WebServerConfig`.
+ // * `config.softwareConfig.airflowConfigOverrides`
+ // * Replace all Apache Airflow config overrides. If a replacement config
+ // overrides map is not included in `environment`, all config overrides
+ // are cleared.
+ // It is an error to provide both this mask and a mask specifying one or
+ // more individual config overrides.
+ // * `config.softwareConfig.airflowConfigOverrides.`section-name
+ // * Override the Apache Airflow config property *name* in the
+ // section named *section*, preserving other properties. To
+ // delete the property override, include it in `updateMask` and omit its
+ // mapping in
+ // `environment.config.softwareConfig.airflowConfigOverrides`.
+ // It is an error to provide both a mask of this form and the
+ // `config.softwareConfig.airflowConfigOverrides` mask.
+ // * `config.softwareConfig.envVariables`
+ // * Replace all environment variables. If a replacement environment
+ // variable map is not included in `environment`, all custom environment
+ // variables are cleared.
+ // It is an error to provide both this mask and a mask specifying one or
+ // more individual environment variables.
+ google.protobuf.FieldMask update_mask = 3;
+}
+
+// Configuration information for an environment.
+message EnvironmentConfig {
+ // Output only. The Kubernetes Engine cluster used to run this environment.
+ string gke_cluster = 1;
+
+ // Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud
+ // Storage objects reside in a flat namespace, a hierarchical file tree
+ // can be simulated using "/"-delimited object name prefixes. DAG objects for
+ // this environment reside in a simulated directory with the given prefix.
+ string dag_gcs_prefix = 2;
+
+ // The number of nodes in the Kubernetes Engine cluster that will be
+ // used to run this environment.
+ int32 node_count = 3;
+
+ // The configuration settings for software inside the environment.
+ SoftwareConfig software_config = 4;
+
+ // The configuration used for the Kubernetes Engine cluster.
+ NodeConfig node_config = 5;
+
+ // The configuration used for the Private IP Cloud Composer environment.
+ PrivateEnvironmentConfig private_environment_config = 7;
+
+ // Optional. The network-level access control policy for the Airflow web server. If
+ // unspecified, no network-level access restrictions will be applied.
+ WebServerNetworkAccessControl web_server_network_access_control = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The configuration settings for Cloud SQL instance used internally by Apache
+ // Airflow software.
+ DatabaseConfig database_config = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The configuration settings for the Airflow web server App Engine instance.
+ WebServerConfig web_server_config = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The encryption options for the Cloud Composer environment
+ // and its dependencies. Cannot be updated.
+ EncryptionConfig encryption_config = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
+ // [Airflow web
+ // interface](/composer/docs/how-to/accessing/airflow-web-interface)).
+ string airflow_uri = 6;
+}
+
+// Network-level access control policy for the Airflow web server.
+message WebServerNetworkAccessControl {
+ // Allowed IP range with user-provided description.
+ message AllowedIpRange {
+ // IP address or range, defined using CIDR notation, of requests that this
+ // rule applies to.
+ // Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
+ // or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
+ //
+ // IP range prefixes should be properly truncated. For example,
+ // `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
+ // `2001:db8::1/32` should be truncated to `2001:db8::/32`.
+ string value = 1;
+
+ // Optional. User-provided description. It must contain at most 300 characters.
+ string description = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // A collection of allowed IP ranges with descriptions.
+ repeated AllowedIpRange allowed_ip_ranges = 1;
+}
+
+// The configuration of Cloud SQL instance that is used by the Apache Airflow
+// software.
+message DatabaseConfig {
+ // Optional. Cloud SQL machine type used by Airflow database.
+ // It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
+ // or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
+ string machine_type = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration settings for the Airflow web server App Engine instance.
+message WebServerConfig {
+ // Optional. Machine type on which Airflow web server is running.
+ // It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or
+ // composer-n1-webserver-8.
+ // If not specified, composer-n1-webserver-2 will be used.
+ // Value custom is returned only in response, if Airflow web server parameters
+ // were manually changed to a non-standard values.
+ string machine_type = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The encryption options for the Cloud Composer environment
+// and its dependencies.
+message EncryptionConfig {
+ // Optional. Customer-managed Encryption Key available through Google's Key Management
+ // Service. Cannot be updated.
+ // If not specified, Google-managed key will be used.
+ string kms_key_name = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Specifies the selection and configuration of software inside the environment.
+message SoftwareConfig {
+ // The version of the software running in the environment.
+ // This encapsulates both the version of Cloud Composer functionality and the
+ // version of Apache Airflow. It must match the regular expression
+ // `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
+ // When used as input, the server also checks if the provided version is
+ // supported and denies the request for an unsupported version.
+ //
+ // The Cloud Composer portion of the version is a
+ // [semantic version](https://semver.org) or `latest`. When the patch version
+ // is omitted, the current Cloud Composer patch version is selected.
+ // When `latest` is provided instead of an explicit version number,
+ // the server replaces `latest` with the current Cloud Composer version
+ // and stores that version number in the same field.
+ //
+ // The portion of the image version that follows *airflow-* is an
+ // official Apache Airflow repository
+ // [release name](https://github.com/apache/incubator-airflow/releases).
+ //
+ // See also [Version
+ // List](/composer/docs/concepts/versioning/composer-versions).
+ string image_version = 1;
+
+ // Optional. Apache Airflow configuration properties to override.
+ //
+ // Property keys contain the section and property names, separated by a
+ // hyphen, for example "core-dags_are_paused_at_creation". Section names must
+ // not contain hyphens ("-"), opening square brackets ("["), or closing
+ // square brackets ("]"). The property name must not be empty and must not
+ // contain an equals sign ("=") or semicolon (";"). Section and property names
+ // must not contain a period ("."). Apache Airflow configuration property
+ // names must be written in
+ // [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
+ // contain any character, and can be written in any lower/upper case format.
+ //
+ // Certain Apache Airflow configuration property values are
+ // [blocked](/composer/docs/concepts/airflow-configurations),
+ // and cannot be overridden.
+ map airflow_config_overrides = 2;
+
+ // Optional. Custom Python Package Index (PyPI) packages to be installed in
+ // the environment.
+ //
+ // Keys refer to the lowercase package name such as "numpy"
+ // and values are the lowercase extras and version specifier such as
+ // "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a
+ // package without pinning it to a version specifier, use the empty string as
+ // the value.
+ map pypi_packages = 3;
+
+ // Optional. Additional environment variables to provide to the Apache Airflow
+ // scheduler, worker, and webserver processes.
+ //
+ // Environment variable names must match the regular expression
+ // `[a-zA-Z_][a-zA-Z0-9_]*`. They cannot specify Apache Airflow
+ // software configuration overrides (they cannot match the regular expression
+ // `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
+ // following reserved names:
+ //
+ // * `AIRFLOW_HOME`
+ // * `C_FORCE_ROOT`
+ // * `CONTAINER_NAME`
+ // * `DAGS_FOLDER`
+ // * `GCP_PROJECT`
+ // * `GCS_BUCKET`
+ // * `GKE_CLUSTER_NAME`
+ // * `SQL_DATABASE`
+ // * `SQL_INSTANCE`
+ // * `SQL_PASSWORD`
+ // * `SQL_PROJECT`
+ // * `SQL_REGION`
+ // * `SQL_USER`
+ map env_variables = 4;
+
+ // Optional. The major version of Python used to run the Apache Airflow
+ // scheduler, worker, and webserver processes.
+ //
+ // Can be set to '2' or '3'. If not specified, the default is '3'. Cannot be
+ // updated.
+ string python_version = 6;
+}
+
+// Configuration for controlling how IPs are allocated in the
+// GKE cluster running the Apache Airflow software.
+message IPAllocationPolicy {
+ // Optional. Whether or not to enable Alias IPs in the GKE cluster.
+ // If `true`, a VPC-native cluster is created.
+ bool use_ip_aliases = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Configuration of allocating IP addresses for pods in the GKE cluster.
+ oneof cluster_ip_allocation {
+ // Optional. The name of the GKE cluster's secondary range used to allocate
+ // IP addresses to pods.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ string cluster_secondary_range_name = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The IP address range used to allocate IP addresses to pods in
+ // the GKE cluster.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ //
+ // Set to blank to have GKE choose a range with the default size.
+ //
+ // Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
+ // netmask.
+ //
+ // Set to a
+ // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+ // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+ // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+ // to use.
+ string cluster_ipv4_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Configuration of allocating IP addresses for services in the GKE cluster.
+ oneof services_ip_allocation {
+ // Optional. The name of the services' secondary range used to allocate
+ // IP addresses to the GKE cluster.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ string services_secondary_range_name = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The IP address range of the services IP addresses in this
+ // GKE cluster.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ //
+ // Set to blank to have GKE choose a range with the default size.
+ //
+ // Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
+ // netmask.
+ //
+ // Set to a
+ // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+ // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+ // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+ // to use.
+ string services_ipv4_cidr_block = 5 [(google.api.field_behavior) = OPTIONAL];
+ }
+}
+
+// The configuration information for the Kubernetes Engine nodes running
+// the Apache Airflow software.
+message NodeConfig {
+ // Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
+ // to deploy the VMs used to run the Apache Airflow software, specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/zones/{zoneId}".
+ //
+ // This `location` must belong to the enclosing environment's project and
+ // location. If both this field and `nodeConfig.machineType` are specified,
+ // `nodeConfig.machineType` must belong to this `location`; if both are
+ // unspecified, the service will pick a zone in the Compute Engine region
+ // corresponding to the Cloud Composer location, and propagate that choice to
+ // both fields. If only one field (`location` or `nodeConfig.machineType`) is
+ // specified, the location information from the specified field will be
+ // propagated to the unspecified field.
+ string location = 1;
+
+ // Optional. The Compute Engine
+ // [machine type](/compute/docs/machine-types) used for cluster instances,
+ // specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}".
+ //
+ // The `machineType` must belong to the enclosing environment's project and
+ // location. If both this field and `nodeConfig.location` are specified,
+ // this `machineType` must belong to the `nodeConfig.location`; if both are
+ // unspecified, the service will pick a zone in the Compute Engine region
+ // corresponding to the Cloud Composer location, and propagate that choice to
+ // both fields. If exactly one of this field and `nodeConfig.location` is
+ // specified, the location information from the specified field will be
+ // propagated to the unspecified field.
+ //
+ // The `machineTypeId` must not be a [shared-core machine
+ // type](/compute/docs/machine-types#sharedcore).
+ //
+ // If this field is unspecified, the `machineTypeId` defaults
+ // to "n1-standard-1".
+ string machine_type = 2;
+
+ // Optional. The Compute Engine network to be used for machine
+ // communications, specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/global/networks/{networkId}".
+ //
+ // If unspecified, the "default" network ID in the environment's project is
+ // used. If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
+ // is provided, `nodeConfig.subnetwork` must also be provided. For
+ // [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
+ // `nodeConfig.subnetwork`.
+ string network = 3;
+
+ // Optional. The Compute Engine subnetwork to be used for machine
+ // communications, specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}"
+ //
+ // If a subnetwork is provided, `nodeConfig.network` must also be provided,
+ // and the subnetwork must belong to the enclosing environment's project and
+ // location.
+ string subnetwork = 4;
+
+ // Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
+ // If unspecified, defaults to 100GB. Cannot be updated.
+ int32 disk_size_gb = 5;
+
+ // Optional. The set of Google API scopes to be made available on all
+ // node VMs. If `oauth_scopes` is empty, defaults to
+ // ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated.
+ repeated string oauth_scopes = 6;
+
+ // Optional. The Google Cloud Platform Service Account to be used by the node
+ // VMs. If a service account is not specified, the "default" Compute Engine
+ // service account is used. Cannot be updated.
+ string service_account = 7;
+
+ // Optional. The list of instance tags applied to all node VMs. Tags are used
+ // to identify valid sources or targets for network firewalls. Each tag within
+ // the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
+ // Cannot be updated.
+ repeated string tags = 8;
+
+ // Optional. The configuration for controlling how IPs are allocated in the GKE cluster.
+ IPAllocationPolicy ip_allocation_policy = 9 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Configuration options for the private GKE cluster in a Cloud Composer
+// environment.
+message PrivateClusterConfig {
+ // Optional. If `true`, access to the public endpoint of the GKE cluster is
+ // denied.
+ bool enable_private_endpoint = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
+ // left blank, the default value of '172.16.0.0/23' is used.
+ string master_ipv4_cidr_block = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The IP range in CIDR notation to use for the hosted master network. This
+ // range is used for assigning internal IP addresses to the GKE cluster
+ // master or set of masters and to the internal load balancer virtual IP.
+ // This range must not overlap with any other ranges in use
+ // within the cluster's network.
+ string master_ipv4_reserved_range = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The configuration information for configuring a Private IP Cloud Composer
+// environment.
+message PrivateEnvironmentConfig {
+ // Optional. If `true`, a Private IP Cloud Composer environment is created.
+ // If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be
+ // set to true.
+ bool enable_private_environment = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Configuration for the private GKE cluster for a Private IP
+ // Cloud Composer environment.
+ PrivateClusterConfig private_cluster_config = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The CIDR block from which IP range for web server will be reserved. Needs
+ // to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and
+ // `cloud_sql_ipv4_cidr_block`.
+ string web_server_ipv4_cidr_block = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The CIDR block from which IP range in tenant project will be reserved for
+ // Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
+ string cloud_sql_ipv4_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The IP range reserved for the tenant project's App Engine VMs.
+ string web_server_ipv4_reserved_range = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// An environment for running orchestration tasks.
+message Environment {
+ option (google.api.resource) = {
+ type: "composer.googleapis.com/Environment"
+ pattern: "projects/{project}/locations/{location}/environments/{environment}"
+ };
+
+ // State of the environment.
+ enum State {
+ // The state of the environment is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The environment is in the process of being created.
+ CREATING = 1;
+
+ // The environment is currently running and healthy. It is ready for use.
+ RUNNING = 2;
+
+ // The environment is being updated. It remains usable but cannot receive
+ // additional update requests or be deleted at this time.
+ UPDATING = 3;
+
+ // The environment is undergoing deletion. It cannot be used.
+ DELETING = 4;
+
+ // The environment has encountered an error and cannot be used.
+ ERROR = 5;
+ }
+
+ // The resource name of the environment, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ //
+ // EnvironmentId must start with a lowercase letter followed by up to 63
+ // lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+ string name = 1;
+
+ // Configuration parameters for this environment.
+ EnvironmentConfig config = 2;
+
+ // Output only. The UUID (Universally Unique IDentifier) associated with this environment.
+ // This value is generated when the environment is created.
+ string uuid = 3;
+
+ // The current state of the environment.
+ State state = 4;
+
+ // Output only. The time at which this environment was created.
+ google.protobuf.Timestamp create_time = 5;
+
+ // Output only. The time at which this environment was last modified.
+ google.protobuf.Timestamp update_time = 6;
+
+ // Optional. User-defined labels for this environment.
+ // The labels map can contain no more than 64 entries. Entries of the labels
+ // map are UTF8 strings that comply with the following restrictions:
+ //
+ // * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
+ // * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
+ // * Both keys and values are additionally constrained to be <= 128 bytes in
+ // size.
+ map labels = 7;
+}
+
+// Message containing information about the result of an upgrade check
+// operation.
+message CheckUpgradeResponse {
+ // Whether there were python modules conflict during image build.
+ enum ConflictResult {
+ // It is unknown whether build had conflicts or not.
+ CONFLICT_RESULT_UNSPECIFIED = 0;
+
+ // There were python packages conflicts.
+ CONFLICT = 1;
+
+ // There were no python packages conflicts.
+ NO_CONFLICT = 2;
+ }
+
+ // Output only. Url for a docker build log of an upgraded image.
+ string build_log_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether build has succeeded or failed on modules conflicts.
+ ConflictResult contains_pypi_modules_conflict = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Extract from a docker image build log containing information about pypi
+ // modules conflicts.
+ string pypi_conflict_build_log_extract = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Composer image for which the build was happening.
+ string image_version = 5;
+
+ // Pypi dependencies specified in the environment configuration, at the time
+ // when the build was triggered.
+ map pypi_dependencies = 6;
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/image_versions.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/image_versions.proto
new file mode 100644
index 00000000000..ea65c8d8541
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/image_versions.proto
@@ -0,0 +1,88 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.orchestration.airflow.service.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/type/date.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1;service";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.orchestration.airflow.service.v1";
+
+// Readonly service to query available ImageVersions.
+service ImageVersions {
+ option (google.api.default_host) = "composer.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // List ImageVersions for provided location.
+ rpc ListImageVersions(ListImageVersionsRequest) returns (ListImageVersionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/imageVersions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// List ImageVersions in a project and location.
+message ListImageVersionsRequest {
+ // List ImageVersions in the given project and location, in the form:
+ // "projects/{projectId}/locations/{locationId}"
+ string parent = 1;
+
+ // The maximum number of image_versions to return.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+
+ // Whether or not image versions from old releases should be included.
+ bool include_past_releases = 4;
+}
+
+// The ImageVersions in a project and location.
+message ListImageVersionsResponse {
+ // The list of supported ImageVersions in a location.
+ repeated ImageVersion image_versions = 1;
+
+ // The page token used to query for the next page if one exists.
+ string next_page_token = 2;
+}
+
+// ImageVersion information
+message ImageVersion {
+ // The string identifier of the ImageVersion, in the form:
+ // "composer-x.y.z-airflow-a.b(.c)"
+ string image_version_id = 1;
+
+ // Whether this is the default ImageVersion used by Composer during
+ // environment creation if no input ImageVersion is specified.
+ bool is_default = 2;
+
+ // supported python versions
+ repeated string supported_python_versions = 3;
+
+ // The date of the version release.
+ google.type.Date release_date = 4;
+
+ // Whether it is impossible to create an environment with the image version.
+ bool creation_disabled = 5;
+
+ // Whether it is impossible to upgrade an environment running with the image
+ // version.
+ bool upgrade_disabled = 6;
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/operations.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/operations.proto
new file mode 100644
index 00000000000..9bb3a05dd10
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1/operations.proto
@@ -0,0 +1,87 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.orchestration.airflow.service.v1;
+
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1;service";
+option java_multiple_files = true;
+option java_outer_classname = "OperationsProto";
+option java_package = "com.google.cloud.orchestration.airflow.service.v1";
+
+// Metadata describing an operation.
+message OperationMetadata {
+ // An enum describing the overall state of an operation.
+ enum State {
+ option allow_alias = true;
+
+ // Unused.
+ STATE_UNSPECIFIED = 0;
+
+ // The operation has been created but is not yet started.
+ PENDING = 1;
+
+ // The operation is underway.
+ RUNNING = 2;
+
+ // The operation completed successfully.
+ SUCCEEDED = 3;
+
+ SUCCESSFUL = 3;
+
+ // The operation is no longer running but did not succeed.
+ FAILED = 4;
+ }
+
+ // Type of longrunning operation.
+ enum Type {
+ // Unused.
+ TYPE_UNSPECIFIED = 0;
+
+ // A resource creation operation.
+ CREATE = 1;
+
+ // A resource deletion operation.
+ DELETE = 2;
+
+ // A resource update operation.
+ UPDATE = 3;
+
+ // A resource check operation.
+ CHECK = 4;
+ }
+
+ // Output only. The current operation state.
+ State state = 1;
+
+ // Output only. The type of operation being performed.
+ Type operation_type = 2;
+
+ // Output only. The resource being operated on, as a [relative resource name](
+ // /apis/design/resource_names#relative_resource_name).
+ string resource = 3;
+
+ // Output only. The UUID of the resource being operated on.
+ string resource_uuid = 4;
+
+ // Output only. The time the operation was submitted to the server.
+ google.protobuf.Timestamp create_time = 5;
+
+ // Output only. The time when the operation terminated, regardless of its success.
+ // This field is unset if the operation is still ongoing.
+ google.protobuf.Timestamp end_time = 6;
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto
new file mode 100644
index 00000000000..a96a417fc91
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/environments.proto
@@ -0,0 +1,972 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.orchestration.airflow.service.v1beta1;
+
+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/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1;service";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.orchestration.airflow.service.v1beta1";
+
+// Managed Apache Airflow Environments.
+service Environments {
+ option (google.api.default_host) = "composer.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Create a new environment.
+ rpc CreateEnvironment(CreateEnvironmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{parent=projects/*/locations/*}/environments"
+ body: "environment"
+ };
+ option (google.api.method_signature) = "parent,environment";
+ option (google.longrunning.operation_info) = {
+ response_type: "Environment"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata"
+ };
+ }
+
+ // Get an existing environment.
+ rpc GetEnvironment(GetEnvironmentRequest) returns (Environment) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/environments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // List environments.
+ rpc ListEnvironments(ListEnvironmentsRequest) returns (ListEnvironmentsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*}/environments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Update an environment.
+ rpc UpdateEnvironment(UpdateEnvironmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1beta1/{name=projects/*/locations/*/environments/*}"
+ body: "environment"
+ };
+ option (google.api.method_signature) = "name,environment,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Environment"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata"
+ };
+ }
+
+ // Delete an environment.
+ rpc DeleteEnvironment(DeleteEnvironmentRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/environments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata"
+ };
+ }
+
+ // Restart Airflow web server.
+ rpc RestartWebServer(RestartWebServerRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{name=projects/*/locations/*/environments/*}:restartWebServer"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "Environment"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata"
+ };
+ }
+
+ // Check if an upgrade operation on the environment will succeed.
+ //
+ // In case of problems detailed info can be found in the returned Operation.
+ rpc CheckUpgrade(CheckUpgradeRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1beta1/{environment=projects/*/locations/*/environments/*}:checkUpgrade"
+ body: "*"
+ };
+ option (google.longrunning.operation_info) = {
+ response_type: "google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse"
+ metadata_type: "google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata"
+ };
+ }
+}
+
+// Create a new environment.
+message CreateEnvironmentRequest {
+ // The parent must be of the form
+ // "projects/{projectId}/locations/{locationId}".
+ string parent = 1;
+
+ // The environment to create.
+ Environment environment = 2;
+}
+
+// Get an environment.
+message GetEnvironmentRequest {
+ // The resource name of the environment to get, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string name = 1;
+}
+
+// List environments in a project and location.
+message ListEnvironmentsRequest {
+ // List environments in the given project and location, in the form:
+ // "projects/{projectId}/locations/{locationId}"
+ string parent = 1;
+
+ // The maximum number of environments to return.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+}
+
+// The environments in a project and location.
+message ListEnvironmentsResponse {
+ // The list of environments returned by a ListEnvironmentsRequest.
+ repeated Environment environments = 1;
+
+ // The page token used to query for the next page if one exists.
+ string next_page_token = 2;
+}
+
+// Delete an environment.
+message DeleteEnvironmentRequest {
+ // The environment to delete, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string name = 1;
+}
+
+// Update an environment.
+message UpdateEnvironmentRequest {
+ // The relative resource name of the environment to update, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string name = 2;
+
+ // A patch environment. Fields specified by the `updateMask` will be copied
+ // from the patch environment into the environment under update.
+ Environment environment = 1;
+
+ // Required. A comma-separated list of paths, relative to `Environment`, of
+ // fields to update.
+ // For example, to set the version of scikit-learn to install in the
+ // environment to 0.19.0 and to remove an existing installation of
+ // argparse, the `updateMask` parameter would include the following two
+ // `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and
+ // "config.softwareConfig.pypiPackages.argparse". The included patch
+ // environment would specify the scikit-learn version as follows:
+ //
+ // {
+ // "config":{
+ // "softwareConfig":{
+ // "pypiPackages":{
+ // "scikit-learn":"==0.19.0"
+ // }
+ // }
+ // }
+ // }
+ //
+ // Note that in the above example, any existing PyPI packages
+ // other than scikit-learn and argparse will be unaffected.
+ //
+ // Only one update type may be included in a single request's `updateMask`.
+ // For example, one cannot update both the PyPI packages and
+ // labels in the same request. However, it is possible to update multiple
+ // members of a map field simultaneously in the same request. For example,
+ // to set the labels "label1" and "label2" while clearing "label3" (assuming
+ // it already exists), one can
+ // provide the paths "labels.label1", "labels.label2", and "labels.label3"
+ // and populate the patch environment as follows:
+ //
+ // {
+ // "labels":{
+ // "label1":"new-label1-value"
+ // "label2":"new-label2-value"
+ // }
+ // }
+ //
+ // Note that in the above example, any existing labels that are not
+ // included in the `updateMask` will be unaffected.
+ //
+ // It is also possible to replace an entire map field by providing the
+ // map field's path in the `updateMask`. The new value of the field will
+ // be that which is provided in the patch environment. For example, to
+ // delete all pre-existing user-specified PyPI packages and
+ // install botocore at version 1.7.14, the `updateMask` would contain
+ // the path "config.softwareConfig.pypiPackages", and
+ // the patch environment would be the following:
+ //
+ // {
+ // "config":{
+ // "softwareConfig":{
+ // "pypiPackages":{
+ // "botocore":"==1.7.14"
+ // }
+ // }
+ // }
+ // }
+ //
+ // **Note:** Only the following fields can be updated:
+ //
+ // * `config.softwareConfig.pypiPackages`
+ // * Replace all custom custom PyPI packages. If a replacement
+ // package map is not included in `environment`, all custom
+ // PyPI packages are cleared. It is an error to provide both
+ // this mask and a mask specifying an individual package.
+ // * `config.softwareConfig.pypiPackages.`packagename
+ // * Update the custom PyPI package *packagename*,
+ // preserving other packages. To delete the package, include it in
+ // `updateMask`, and omit the mapping for it in
+ // `environment.config.softwareConfig.pypiPackages`. It is an error
+ // to provide both a mask of this form and the
+ // `config.softwareConfig.pypiPackages` mask.
+ // * `labels`
+ // * Replace all environment labels. If a replacement labels map is not
+ // included in `environment`, all labels are cleared. It is an error to
+ // provide both this mask and a mask specifying one or more individual
+ // labels.
+ // * `labels.`labelName
+ // * Set the label named *labelName*, while preserving other
+ // labels. To delete the label, include it in `updateMask` and omit its
+ // mapping in `environment.labels`. It is an error to provide both a
+ // mask of this form and the `labels` mask.
+ // * `config.nodeCount`
+ // * Horizontally scale the number of nodes in the environment. An integer
+ // greater than or equal to 3 must be provided in the `config.nodeCount`
+ // field. * `config.webServerNetworkAccessControl`
+ // * Replace the environment's current WebServerNetworkAccessControl.
+ // * `config.softwareConfig.airflowConfigOverrides`
+ // * Replace all Apache Airflow config overrides. If a replacement config
+ // overrides map is not included in `environment`, all config overrides
+ // are cleared.
+ // It is an error to provide both this mask and a mask specifying one or
+ // more individual config overrides.
+ // * `config.softwareConfig.airflowConfigOverrides.`section-name
+ // * Override the Apache Airflow config property *name* in the
+ // section named *section*, preserving other properties. To
+ // delete the property override, include it in `updateMask` and omit its
+ // mapping in
+ // `environment.config.softwareConfig.airflowConfigOverrides`.
+ // It is an error to provide both a mask of this form and the
+ // `config.softwareConfig.airflowConfigOverrides` mask.
+ // * `config.softwareConfig.envVariables`
+ // * Replace all environment variables. If a replacement environment
+ // variable map is not included in `environment`, all custom environment
+ // variables are cleared.
+ // It is an error to provide both this mask and a mask specifying one or
+ // more individual environment variables.
+ // * `config.softwareConfig.imageVersion`
+ // * Upgrade the version of the environment in-place. Refer to
+ // `SoftwareConfig.image_version` for information on how to format the
+ // new image version. Additionally, the new image version cannot effect
+ // a version downgrade and must match the current image version's
+ // Composer major version and Airflow major and minor versions. Consult
+ // the [Cloud Composer Version
+ // List](https://cloud.google.com/composer/docs/concepts/versioning/composer-versions)
+ // for valid values.
+ // * `config.softwareConfig.schedulerCount`
+ // * Horizontally scale the number of schedulers in Airflow. A positive
+ // integer not greater than the number of nodes must be provided in the
+ // `config.softwareConfig.schedulerCount` field. * `config.databaseConfig.machineType`
+ // * Cloud SQL machine type used by Airflow database.
+ // It has to be one of: db-n1-standard-2, db-n1-standard-4,
+ // db-n1-standard-8 or db-n1-standard-16. * `config.webServerConfig.machineType`
+ // * Machine type on which Airflow web server is running.
+ // It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4
+ // or composer-n1-webserver-8. * `config.maintenanceWindow`
+ // * Maintenance window during which Cloud Composer components may be
+ // under maintenance.
+ google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Restart Airflow web server.
+message RestartWebServerRequest {
+ // The resource name of the environment to restart the web server for, in the
+ // form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string name = 1;
+}
+
+// Configuration information for an environment.
+message EnvironmentConfig {
+ // The size of the Cloud Composer environment.
+ enum EnvironmentSize {
+ // The size of the environment is unspecified.
+ ENVIRONMENT_SIZE_UNSPECIFIED = 0;
+
+ // The environment size is small.
+ ENVIRONMENT_SIZE_SMALL = 1;
+
+ // The environment size is medium.
+ ENVIRONMENT_SIZE_MEDIUM = 2;
+
+ // The environment size is large.
+ ENVIRONMENT_SIZE_LARGE = 3;
+ }
+
+ // Output only. The Kubernetes Engine cluster used to run this environment.
+ string gke_cluster = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The Cloud Storage prefix of the DAGs for this environment. Although Cloud
+ // Storage objects reside in a flat namespace, a hierarchical file tree
+ // can be simulated using "/"-delimited object name prefixes. DAG objects for
+ // this environment reside in a simulated directory with the given prefix.
+ string dag_gcs_prefix = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The number of nodes in the Kubernetes Engine cluster that will be
+ // used to run this environment.
+ int32 node_count = 3;
+
+ // The configuration settings for software inside the environment.
+ SoftwareConfig software_config = 4;
+
+ // The configuration used for the Kubernetes Engine cluster.
+ NodeConfig node_config = 5;
+
+ // The configuration used for the Private IP Cloud Composer environment.
+ PrivateEnvironmentConfig private_environment_config = 7;
+
+ // Optional. The network-level access control policy for the Airflow web server. If
+ // unspecified, no network-level access restrictions will be applied.
+ WebServerNetworkAccessControl web_server_network_access_control = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The configuration settings for Cloud SQL instance used internally by Apache
+ // Airflow software.
+ DatabaseConfig database_config = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The configuration settings for the Airflow web server App Engine instance.
+ WebServerConfig web_server_config = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The URI of the Apache Airflow Web UI hosted within this environment (see
+ // [Airflow web
+ // interface](/composer/docs/how-to/accessing/airflow-web-interface)).
+ string airflow_uri = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The encryption options for the Cloud Composer environment and its
+ // dependencies. Cannot be updated.
+ EncryptionConfig encryption_config = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maintenance window is the period when Cloud Composer components may
+ // undergo maintenance. It is defined so that maintenance is not executed
+ // during peak hours or critical time periods.
+ //
+ // The system will not be under maintenance for every occurrence of this
+ // window, but when maintenance is planned, it will be scheduled
+ // during the window.
+ //
+ // The maintenance window period must encompass at least 12 hours per week.
+ // This may be split into multiple chunks, each with a size of
+ // at least 4 hours.
+ //
+ // If this value is omitted, Cloud Composer components may be subject to
+ // maintenance at any time.
+ MaintenanceWindow maintenance_window = 13 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The workloads configuration settings for the GKE cluster associated with
+ // the Cloud Composer environment. The GKE cluster runs Airflow scheduler, web
+ // server and workers workloads.
+ //
+ // This field is supported for Cloud Composer environments in versions
+ // composer-2.*.*-airflow-*.*.* and newer.
+ WorkloadsConfig workloads_config = 15 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The size of the Cloud Composer environment.
+ //
+ // This field is supported for Cloud Composer environments in versions
+ // composer-2.*.*-airflow-*.*.* and newer.
+ EnvironmentSize environment_size = 16 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Network-level access control policy for the Airflow web server.
+message WebServerNetworkAccessControl {
+ // Allowed IP range with user-provided description.
+ message AllowedIpRange {
+ // IP address or range, defined using CIDR notation, of requests that this
+ // rule applies to.
+ // Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
+ // or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
+ //
+ // IP range prefixes should be properly truncated. For example,
+ // `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
+ // `2001:db8::1/32` should be truncated to `2001:db8::/32`.
+ string value = 1;
+
+ // Optional. User-provided description. It must contain at most 300 characters.
+ string description = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // A collection of allowed IP ranges with descriptions.
+ repeated AllowedIpRange allowed_ip_ranges = 1;
+}
+
+// Specifies the selection and configuration of software inside the environment.
+message SoftwareConfig {
+ // The version of the software running in the environment.
+ // This encapsulates both the version of Cloud Composer functionality and the
+ // version of Apache Airflow. It must match the regular expression
+ // `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
+ // When used as input, the server also checks if the provided version is
+ // supported and denies the request for an unsupported version.
+ //
+ // The Cloud Composer portion of the version is a
+ // [semantic version](https://semver.org) or `latest`. When the patch version
+ // is omitted, the current Cloud Composer patch version is selected.
+ // When `latest` is provided instead of an explicit version number,
+ // the server replaces `latest` with the current Cloud Composer version
+ // and stores that version number in the same field.
+ //
+ // The portion of the image version that follows *airflow-* is an
+ // official Apache Airflow repository
+ // [release name](https://github.com/apache/incubator-airflow/releases).
+ //
+ // See also [Version
+ // List](/composer/docs/concepts/versioning/composer-versions).
+ string image_version = 1;
+
+ // Optional. Apache Airflow configuration properties to override.
+ //
+ // Property keys contain the section and property names, separated by a
+ // hyphen, for example "core-dags_are_paused_at_creation". Section names must
+ // not contain hyphens ("-"), opening square brackets ("["), or closing
+ // square brackets ("]"). The property name must not be empty and must not
+ // contain an equals sign ("=") or semicolon (";"). Section and property names
+ // must not contain a period ("."). Apache Airflow configuration property
+ // names must be written in
+ // [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can
+ // contain any character, and can be written in any lower/upper case format.
+ //
+ // Certain Apache Airflow configuration property values are
+ // [blocked](/composer/docs/concepts/airflow-configurations),
+ // and cannot be overridden.
+ map airflow_config_overrides = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Custom Python Package Index (PyPI) packages to be installed in
+ // the environment.
+ //
+ // Keys refer to the lowercase package name such as "numpy"
+ // and values are the lowercase extras and version specifier such as
+ // "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a
+ // package without pinning it to a version specifier, use the empty string as
+ // the value.
+ map pypi_packages = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Additional environment variables to provide to the Apache Airflow
+ // scheduler, worker, and webserver processes.
+ //
+ // Environment variable names must match the regular expression
+ // `[a-zA-Z_][a-zA-Z0-9_]*`. They cannot specify Apache Airflow
+ // software configuration overrides (they cannot match the regular expression
+ // `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the
+ // following reserved names:
+ //
+ // * `AIRFLOW_HOME`
+ // * `C_FORCE_ROOT`
+ // * `CONTAINER_NAME`
+ // * `DAGS_FOLDER`
+ // * `GCP_PROJECT`
+ // * `GCS_BUCKET`
+ // * `GKE_CLUSTER_NAME`
+ // * `SQL_DATABASE`
+ // * `SQL_INSTANCE`
+ // * `SQL_PASSWORD`
+ // * `SQL_PROJECT`
+ // * `SQL_REGION`
+ // * `SQL_USER`
+ map env_variables = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The major version of Python used to run the Apache Airflow
+ // scheduler, worker, and webserver processes.
+ //
+ // Can be set to '2' or '3'. If not specified, the default is '3'. Cannot be
+ // updated.
+ string python_version = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Configuration for controlling how IPs are allocated in the
+// GKE cluster.
+message IPAllocationPolicy {
+ // Optional. Whether or not to enable Alias IPs in the GKE cluster.
+ // If `true`, a VPC-native cluster is created.
+ bool use_ip_aliases = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The name of the cluster's secondary range used to allocate
+ // IP addresses to pods. Specify either `cluster_secondary_range_name`
+ // or `cluster_ipv4_cidr_block` but not both.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ string cluster_secondary_range_name = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The name of the services' secondary range used to allocate
+ // IP addresses to the cluster. Specify either `services_secondary_range_name`
+ // or `services_ipv4_cidr_block` but not both.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ string services_secondary_range_name = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The IP address range used to allocate IP addresses to pods in
+ // the cluster.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ //
+ //
+ // Set to blank to have GKE choose a range with the default size.
+ //
+ // Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
+ // netmask.
+ //
+ // Set to a
+ // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+ // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+ // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+ // to use.
+ // Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
+ // but not both.
+ string cluster_ipv4_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The IP address range of the services IP addresses in this
+ // cluster.
+ //
+ // This field is applicable only when `use_ip_aliases` is true.
+ //
+ //
+ // Set to blank to have GKE choose a range with the default size.
+ //
+ // Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific
+ // netmask.
+ //
+ // Set to a
+ // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+ // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+ // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+ // to use.
+ // Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
+ // but not both.
+ string services_ipv4_cidr_block = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration information for the Kubernetes Engine nodes running
+// the Apache Airflow software.
+message NodeConfig {
+ // Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which
+ // to deploy the VMs used to run the Apache Airflow software, specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/zones/{zoneId}".
+ //
+ // This `location` must belong to the enclosing environment's project and
+ // location. If both this field and `nodeConfig.machineType` are specified,
+ // `nodeConfig.machineType` must belong to this `location`; if both are
+ // unspecified, the service will pick a zone in the Compute Engine region
+ // corresponding to the Cloud Composer location, and propagate that choice to
+ // both fields. If only one field (`location` or `nodeConfig.machineType`) is
+ // specified, the location information from the specified field will be
+ // propagated to the unspecified field.
+ string location = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The Compute Engine
+ // [machine type](/compute/docs/machine-types) used for cluster instances,
+ // specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}".
+ //
+ // The `machineType` must belong to the enclosing environment's project and
+ // location. If both this field and `nodeConfig.location` are specified,
+ // this `machineType` must belong to the `nodeConfig.location`; if both are
+ // unspecified, the service will pick a zone in the Compute Engine region
+ // corresponding to the Cloud Composer location, and propagate that choice to
+ // both fields. If exactly one of this field and `nodeConfig.location` is
+ // specified, the location information from the specified field will be
+ // propagated to the unspecified field.
+ //
+ // The `machineTypeId` must not be a [shared-core machine
+ // type](/compute/docs/machine-types#sharedcore).
+ //
+ // If this field is unspecified, the `machineTypeId` defaults
+ // to "n1-standard-1".
+ string machine_type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The Compute Engine network to be used for machine
+ // communications, specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/global/networks/{networkId}".
+ //
+ // If unspecified, the default network in the environment's project is used.
+ // If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
+ // is provided, `nodeConfig.subnetwork` must also be provided. For
+ // [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
+ // `nodeConfig.subnetwork`.
+ string network = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The Compute Engine subnetwork to be used for machine
+ // communications, specified as a
+ // [relative resource
+ // name](/apis/design/resource_names#relative_resource_name). For example:
+ // "projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}"
+ //
+ // If a subnetwork is provided, `nodeConfig.network` must also be provided,
+ // and the subnetwork must belong to the enclosing environment's project and
+ // location.
+ string subnetwork = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The disk size in GB used for node VMs. Minimum size is 20GB.
+ // If unspecified, defaults to 100GB. Cannot be updated.
+ int32 disk_size_gb = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The set of Google API scopes to be made available on all
+ // node VMs. If `oauth_scopes` is empty, defaults to
+ // ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated.
+ repeated string oauth_scopes = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The Google Cloud Platform Service Account to be used by the workloads. If a
+ // service account is not specified, the "default" Compute Engine service
+ // account is used. Cannot be updated.
+ string service_account = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The list of instance tags applied to all node VMs. Tags are used
+ // to identify valid sources or targets for network firewalls. Each tag within
+ // the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
+ // Cannot be updated.
+ repeated string tags = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The IPAllocationPolicy fields for the GKE cluster.
+ IPAllocationPolicy ip_allocation_policy = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of pods per node in the Cloud Composer GKE cluster.
+ // The value must be between 8 and 110 and it can be set only if
+ // the environment is VPC-native.
+ // The default value is 32. Values of this field will be propagated both to
+ // the `default-pool` node pool of the newly created GKE cluster, and to the
+ // default "Maximum Pods per Node" value which is used for newly created
+ // node pools if their value is not explicitly set during node pool creation.
+ // For more information, see [Optimizing IP address allocation]
+ // (https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr).
+ // Cannot be updated.
+ int32 max_pods_per_node = 10 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Configuration options for the private GKE cluster in a Cloud Composer
+// environment.
+message PrivateClusterConfig {
+ // Optional. If `true`, access to the public endpoint of the GKE cluster is
+ // denied.
+ bool enable_private_endpoint = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The CIDR block from which IPv4 range for GKE master will be reserved. If
+ // left blank, the default value of '172.16.0.0/23' is used.
+ string master_ipv4_cidr_block = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The IP range in CIDR notation to use for the hosted master network. This
+ // range is used for assigning internal IP addresses to the cluster
+ // master or set of masters and to the internal load balancer virtual IP.
+ // This range must not overlap with any other ranges in use
+ // within the cluster's network.
+ string master_ipv4_reserved_range = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The configuration information for configuring a Private IP Cloud Composer
+// environment.
+message PrivateEnvironmentConfig {
+ // Optional. If `true`, a Private IP Cloud Composer environment is created.
+ // If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be
+ // set to true .
+ bool enable_private_environment = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Configuration for the private GKE cluster for a Private IP
+ // Cloud Composer environment.
+ PrivateClusterConfig private_cluster_config = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The CIDR block from which IP range for web server will be reserved. Needs
+ // to be disjoint from private_cluster_config.master_ipv4_cidr_block and
+ // cloud_sql_ipv4_cidr_block.
+ string web_server_ipv4_cidr_block = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The CIDR block from which IP range in tenant project will be reserved for
+ // Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
+ string cloud_sql_ipv4_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The IP range reserved for the tenant project's App Engine VMs.
+ string web_server_ipv4_reserved_range = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The CIDR block from which IP range for Cloud Composer Network in tenant
+ // project will be reserved. Needs to be disjoint from
+ // private_cluster_config.master_ipv4_cidr_block and
+ // cloud_sql_ipv4_cidr_block.
+ //
+ // This field is supported for Cloud Composer environments in versions
+ // composer-2.*.*-airflow-*.*.* and newer.
+ string cloud_composer_network_ipv4_cidr_block = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The IP range reserved for the tenant project's Cloud Composer network.
+ //
+ // This field is supported for Cloud Composer environments in versions
+ // composer-2.*.*-airflow-*.*.* and newer.
+ string cloud_composer_network_ipv4_reserved_range = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// The configuration of Cloud SQL instance that is used by the Apache Airflow
+// software.
+message DatabaseConfig {
+ // Optional. Cloud SQL machine type used by Airflow database.
+ // It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
+ // or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
+ string machine_type = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration settings for the Airflow web server App Engine instance.
+message WebServerConfig {
+ // Optional. Machine type on which Airflow web server is running.
+ // It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or
+ // composer-n1-webserver-8.
+ // If not specified, composer-n1-webserver-2 will be used.
+ // Value custom is returned only in response, if Airflow web server parameters
+ // were manually changed to a non-standard values.
+ string machine_type = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The encryption options for the Cloud Composer environment and its
+// dependencies.
+message EncryptionConfig {
+ // Optional. Customer-managed Encryption Key available through Google's Key Management
+ // Service. Cannot be updated.
+ // If not specified, Google-managed key will be used.
+ string kms_key_name = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The configuration settings for Cloud Composer maintenance window.
+// The following example:
+//
+// ```
+// {
+// "startTime":"2019-08-01T01:00:00Z"
+// "endTime":"2019-08-01T07:00:00Z"
+// "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE"
+// }
+// ```
+//
+// would define a maintenance window between 01 and 07 hours UTC during
+// each Tuesday and Wednesday.
+message MaintenanceWindow {
+ // Required. Start time of the first recurrence of the maintenance window.
+ google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Maintenance window end time. It is used only to calculate the duration of
+ // the maintenance window.
+ // The value for end_time must be in the future, relative to `start_time`.
+ google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Maintenance window recurrence. Format is a subset of
+ // [RFC-5545](https://tools.ietf.org/html/rfc5545) `RRULE`. The only allowed
+ // values for `FREQ` field are `FREQ=DAILY` and `FREQ=WEEKLY;BYDAY=...`
+ // Example values: `FREQ=WEEKLY;BYDAY=TU,WE`, `FREQ=DAILY`.
+ string recurrence = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// The Kubernetes workloads configuration for GKE cluster associated with the
+// Cloud Composer environment. Supported for Cloud Composer environments in
+// versions composer-2.*.*-airflow-*.*.* and newer.
+message WorkloadsConfig {
+ // Configuration for resources used by Airflow schedulers.
+ message SchedulerResource {
+ // Optional. CPU request and limit for a single Airflow scheduler replica.
+ float cpu = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Memory (GB) request and limit for a single Airflow scheduler replica.
+ float memory_gb = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Storage (GB) request and limit for a single Airflow scheduler replica.
+ float storage_gb = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The number of schedulers.
+ int32 count = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Configuration for resources used by Airflow web server.
+ message WebServerResource {
+ // Optional. CPU request and limit for Airflow web server.
+ float cpu = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Memory (GB) request and limit for Airflow web server.
+ float memory_gb = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Storage (GB) request and limit for Airflow web server.
+ float storage_gb = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Configuration for resources used by Airflow workers.
+ message WorkerResource {
+ // Optional. CPU request and limit for a single Airflow worker replica.
+ float cpu = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Memory (GB) request and limit for a single Airflow worker replica.
+ float memory_gb = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Storage (GB) request and limit for a single Airflow worker replica.
+ float storage_gb = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Minimum number of workers for autoscaling.
+ int32 min_count = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Maximum number of workers for autoscaling.
+ int32 max_count = 5 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. Resources used by Airflow schedulers.
+ SchedulerResource scheduler = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Resources used by Airflow web server.
+ WebServerResource web_server = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Resources used by Airflow workers.
+ WorkerResource worker = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// An environment for running orchestration tasks.
+message Environment {
+ option (google.api.resource) = {
+ type: "composer.googleapis.com/Environment"
+ pattern: "projects/{project}/locations/{location}/environments/{environment}"
+ };
+
+ // State of the environment.
+ enum State {
+ // The state of the environment is unknown.
+ STATE_UNSPECIFIED = 0;
+
+ // The environment is in the process of being created.
+ CREATING = 1;
+
+ // The environment is currently running and healthy. It is ready for use.
+ RUNNING = 2;
+
+ // The environment is being updated. It remains usable but cannot receive
+ // additional update requests or be deleted at this time.
+ UPDATING = 3;
+
+ // The environment is undergoing deletion. It cannot be used.
+ DELETING = 4;
+
+ // The environment has encountered an error and cannot be used.
+ ERROR = 5;
+ }
+
+ // The resource name of the environment, in the form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ //
+ // EnvironmentId must start with a lowercase letter followed by up to 63
+ // lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+ string name = 1;
+
+ // Configuration parameters for this environment.
+ EnvironmentConfig config = 2;
+
+ // Output only. The UUID (Universally Unique IDentifier) associated with this environment.
+ // This value is generated when the environment is created.
+ string uuid = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The current state of the environment.
+ State state = 4;
+
+ // Output only. The time at which this environment was created.
+ google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time at which this environment was last modified.
+ google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. User-defined labels for this environment.
+ // The labels map can contain no more than 64 entries. Entries of the labels
+ // map are UTF8 strings that comply with the following restrictions:
+ //
+ // * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
+ // * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
+ // * Both keys and values are additionally constrained to be <= 128 bytes in
+ // size.
+ map labels = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request to check whether image upgrade will succeed.
+message CheckUpgradeRequest {
+ // The resource name of the environment to check upgrade for, in the
+ // form:
+ // "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
+ string environment = 1;
+
+ // The version of the software running in the environment.
+ // This encapsulates both the version of Cloud Composer functionality and the
+ // version of Apache Airflow. It must match the regular expression
+ // `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
+ // When used as input, the server also checks if the provided version is
+ // supported and denies the request for an unsupported version.
+ //
+ // The Cloud Composer portion of the version is a
+ // [semantic version](https://semver.org) or `latest`. When the patch version
+ // is omitted, the current Cloud Composer patch version is selected.
+ // When `latest` is provided instead of an explicit version number,
+ // the server replaces `latest` with the current Cloud Composer version
+ // and stores that version number in the same field.
+ //
+ // The portion of the image version that follows `airflow-` is an
+ // official Apache Airflow repository
+ // [release name](https://github.com/apache/incubator-airflow/releases).
+ //
+ // See also [Version List]
+ // (/composer/docs/concepts/versioning/composer-versions).
+ string image_version = 2;
+}
+
+// Message containing information about the result of an upgrade check
+// operation.
+message CheckUpgradeResponse {
+ // Whether there were python modules conflict during image build.
+ enum ConflictResult {
+ // It is unknown whether build had conflicts or not.
+ CONFLICT_RESULT_UNSPECIFIED = 0;
+
+ // There were python packages conflicts.
+ CONFLICT = 1;
+
+ // There were no python packages conflicts.
+ NO_CONFLICT = 2;
+ }
+
+ // Output only. Url for a docker build log of an upgraded image.
+ string build_log_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Whether build has succeeded or failed on modules conflicts.
+ ConflictResult contains_pypi_modules_conflict = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Extract from a docker image build log containing information about pypi
+ // modules conflicts.
+ string pypi_conflict_build_log_extract = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Composer image for which the build was happening.
+ string image_version = 5;
+
+ // Pypi dependencies specified in the environment configuration, at the time
+ // when the build was triggered.
+ map pypi_dependencies = 6;
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto
new file mode 100644
index 00000000000..6a7d5f4c6df
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/image_versions.proto
@@ -0,0 +1,88 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.orchestration.airflow.service.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/type/date.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1;service";
+option java_multiple_files = true;
+option java_package = "com.google.cloud.orchestration.airflow.service.v1beta1";
+
+// Readonly service to query available ImageVersions.
+service ImageVersions {
+ option (google.api.default_host) = "composer.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // List ImageVersions for provided location.
+ rpc ListImageVersions(ListImageVersionsRequest) returns (ListImageVersionsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*}/imageVersions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// List ImageVersions in a project and location.
+message ListImageVersionsRequest {
+ // List ImageVersions in the given project and location, in the form:
+ // "projects/{projectId}/locations/{locationId}"
+ string parent = 1;
+
+ // The maximum number of image_versions to return.
+ int32 page_size = 2;
+
+ // The next_page_token value returned from a previous List request, if any.
+ string page_token = 3;
+
+ // Whether or not image versions from old releases should be included.
+ bool include_past_releases = 4;
+}
+
+// The ImageVersions in a project and location.
+message ListImageVersionsResponse {
+ // The list of supported ImageVersions in a location.
+ repeated ImageVersion image_versions = 1;
+
+ // The page token used to query for the next page if one exists.
+ string next_page_token = 2;
+}
+
+// Image Version information
+message ImageVersion {
+ // The string identifier of the ImageVersion, in the form:
+ // "composer-x.y.z-airflow-a.b(.c)"
+ string image_version_id = 1;
+
+ // Whether this is the default ImageVersion used by Composer during
+ // environment creation if no input ImageVersion is specified.
+ bool is_default = 2;
+
+ // supported python versions
+ repeated string supported_python_versions = 3;
+
+ // The date of the version release.
+ google.type.Date release_date = 4;
+
+ // Whether it is impossible to create an environment with the image version.
+ bool creation_disabled = 5;
+
+ // Whether it is impossible to upgrade an environment running with the image
+ // version.
+ bool upgrade_disabled = 6;
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/operations.proto b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/operations.proto
new file mode 100644
index 00000000000..5e5991f0c67
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/google/cloud/orchestration/airflow/service/v1beta1/operations.proto
@@ -0,0 +1,83 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.orchestration.airflow.service.v1beta1;
+
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1beta1;service";
+option java_multiple_files = true;
+option java_outer_classname = "OperationsProto";
+option java_package = "com.google.cloud.orchestration.airflow.service.v1beta1";
+
+// Metadata describing an operation.
+message OperationMetadata {
+ // An enum describing the overall state of an operation.
+ enum State {
+ // Unused.
+ STATE_UNSPECIFIED = 0;
+
+ // The operation has been created but is not yet started.
+ PENDING = 1;
+
+ // The operation is underway.
+ RUNNING = 2;
+
+ // The operation completed successfully.
+ SUCCESSFUL = 3;
+
+ // The operation is no longer running but did not succeed.
+ FAILED = 4;
+ }
+
+ // Type of longrunning operation.
+ enum Type {
+ // Unused.
+ TYPE_UNSPECIFIED = 0;
+
+ // A resource creation operation.
+ CREATE = 1;
+
+ // A resource deletion operation.
+ DELETE = 2;
+
+ // A resource update operation.
+ UPDATE = 3;
+
+ // A resource check operation.
+ CHECK = 4;
+ }
+
+ // Output only. The current operation state.
+ State state = 1;
+
+ // Output only. The type of operation being performed.
+ Type operation_type = 2;
+
+ // Output only. The resource being operated on, as a [relative resource name](
+ // /apis/design/resource_names#relative_resource_name).
+ string resource = 3;
+
+ // Output only. The UUID of the resource being operated on.
+ string resource_uuid = 4;
+
+ // Output only. The time the operation was submitted to the server.
+ google.protobuf.Timestamp create_time = 5;
+
+ // Output only. The time when the operation terminated, regardless of its success.
+ // This field is unset if the operation is still ongoing.
+ google.protobuf.Timestamp end_time = 6;
+}
diff --git a/packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts b/packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts
new file mode 100644
index 00000000000..bdac2dc56e8
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/protos.d.ts
@@ -0,0 +1,12238 @@
+// 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 orchestration. */
+ namespace orchestration {
+
+ /** Namespace airflow. */
+ namespace airflow {
+
+ /** Namespace service. */
+ namespace service {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents an Environments */
+ class Environments extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Environments 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 Environments 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): Environments;
+
+ /**
+ * Calls CreateEnvironment.
+ * @param request CreateEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createEnvironment(request: google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.CreateEnvironmentCallback): void;
+
+ /**
+ * Calls CreateEnvironment.
+ * @param request CreateEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public createEnvironment(request: google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest): Promise;
+
+ /**
+ * Calls GetEnvironment.
+ * @param request GetEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Environment
+ */
+ public getEnvironment(request: google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.GetEnvironmentCallback): void;
+
+ /**
+ * Calls GetEnvironment.
+ * @param request GetEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public getEnvironment(request: google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest): Promise;
+
+ /**
+ * Calls ListEnvironments.
+ * @param request ListEnvironmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse
+ */
+ public listEnvironments(request: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.ListEnvironmentsCallback): void;
+
+ /**
+ * Calls ListEnvironments.
+ * @param request ListEnvironmentsRequest message or plain object
+ * @returns Promise
+ */
+ public listEnvironments(request: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest): Promise;
+
+ /**
+ * Calls UpdateEnvironment.
+ * @param request UpdateEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.UpdateEnvironmentCallback): void;
+
+ /**
+ * Calls UpdateEnvironment.
+ * @param request UpdateEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest): Promise;
+
+ /**
+ * Calls DeleteEnvironment.
+ * @param request DeleteEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1.Environments.DeleteEnvironmentCallback): void;
+
+ /**
+ * Calls DeleteEnvironment.
+ * @param request DeleteEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest): Promise;
+ }
+
+ namespace Environments {
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|createEnvironment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|getEnvironment}.
+ * @param error Error, if any
+ * @param [response] Environment
+ */
+ type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.Environment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listEnvironments}.
+ * @param error Error, if any
+ * @param [response] ListEnvironmentsResponse
+ */
+ type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|updateEnvironment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|deleteEnvironment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a CreateEnvironmentRequest. */
+ interface ICreateEnvironmentRequest {
+
+ /** CreateEnvironmentRequest parent */
+ parent?: (string|null);
+
+ /** CreateEnvironmentRequest environment */
+ environment?: (google.cloud.orchestration.airflow.service.v1.IEnvironment|null);
+ }
+
+ /** Represents a CreateEnvironmentRequest. */
+ class CreateEnvironmentRequest implements ICreateEnvironmentRequest {
+
+ /**
+ * Constructs a new CreateEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest);
+
+ /** CreateEnvironmentRequest parent. */
+ public parent: string;
+
+ /** CreateEnvironmentRequest environment. */
+ public environment?: (google.cloud.orchestration.airflow.service.v1.IEnvironment|null);
+
+ /**
+ * Creates a new CreateEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest;
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest.verify|verify} messages.
+ * @param message CreateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest.verify|verify} messages.
+ * @param message CreateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.CreateEnvironmentRequest;
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.CreateEnvironmentRequest;
+
+ /**
+ * Verifies a CreateEnvironmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest;
+
+ /**
+ * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message CreateEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetEnvironmentRequest. */
+ interface IGetEnvironmentRequest {
+
+ /** GetEnvironmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetEnvironmentRequest. */
+ class GetEnvironmentRequest implements IGetEnvironmentRequest {
+
+ /**
+ * Constructs a new GetEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest);
+
+ /** GetEnvironmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest): google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest;
+
+ /**
+ * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest.verify|verify} messages.
+ * @param message GetEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest.verify|verify} messages.
+ * @param message GetEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.GetEnvironmentRequest;
+
+ /**
+ * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.GetEnvironmentRequest;
+
+ /**
+ * Verifies a GetEnvironmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest;
+
+ /**
+ * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message GetEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEnvironmentsRequest. */
+ interface IListEnvironmentsRequest {
+
+ /** ListEnvironmentsRequest parent */
+ parent?: (string|null);
+
+ /** ListEnvironmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListEnvironmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListEnvironmentsRequest. */
+ class ListEnvironmentsRequest implements IListEnvironmentsRequest {
+
+ /**
+ * Constructs a new ListEnvironmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest);
+
+ /** ListEnvironmentsRequest parent. */
+ public parent: string;
+
+ /** ListEnvironmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListEnvironmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListEnvironmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEnvironmentsRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest): google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest;
+
+ /**
+ * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest.verify|verify} messages.
+ * @param message ListEnvironmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest.verify|verify} messages.
+ * @param message ListEnvironmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEnvironmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEnvironmentsRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.ListEnvironmentsRequest;
+
+ /**
+ * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEnvironmentsRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.ListEnvironmentsRequest;
+
+ /**
+ * Verifies a ListEnvironmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEnvironmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest;
+
+ /**
+ * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified.
+ * @param message ListEnvironmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEnvironmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEnvironmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEnvironmentsResponse. */
+ interface IListEnvironmentsResponse {
+
+ /** ListEnvironmentsResponse environments */
+ environments?: (google.cloud.orchestration.airflow.service.v1.IEnvironment[]|null);
+
+ /** ListEnvironmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListEnvironmentsResponse. */
+ class ListEnvironmentsResponse implements IListEnvironmentsResponse {
+
+ /**
+ * Constructs a new ListEnvironmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse);
+
+ /** ListEnvironmentsResponse environments. */
+ public environments: google.cloud.orchestration.airflow.service.v1.IEnvironment[];
+
+ /** ListEnvironmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListEnvironmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEnvironmentsResponse instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse): google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse;
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse.verify|verify} messages.
+ * @param message ListEnvironmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse.verify|verify} messages.
+ * @param message ListEnvironmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEnvironmentsResponse
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.ListEnvironmentsResponse;
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEnvironmentsResponse
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.ListEnvironmentsResponse;
+
+ /**
+ * Verifies a ListEnvironmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEnvironmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse;
+
+ /**
+ * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified.
+ * @param message ListEnvironmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEnvironmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEnvironmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteEnvironmentRequest. */
+ interface IDeleteEnvironmentRequest {
+
+ /** DeleteEnvironmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteEnvironmentRequest. */
+ class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest {
+
+ /**
+ * Constructs a new DeleteEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest);
+
+ /** DeleteEnvironmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest): google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest;
+
+ /**
+ * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @param message DeleteEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @param message DeleteEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.DeleteEnvironmentRequest;
+
+ /**
+ * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.DeleteEnvironmentRequest;
+
+ /**
+ * Verifies a DeleteEnvironmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest;
+
+ /**
+ * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message DeleteEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateEnvironmentRequest. */
+ interface IUpdateEnvironmentRequest {
+
+ /** UpdateEnvironmentRequest name */
+ name?: (string|null);
+
+ /** UpdateEnvironmentRequest environment */
+ environment?: (google.cloud.orchestration.airflow.service.v1.IEnvironment|null);
+
+ /** UpdateEnvironmentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateEnvironmentRequest. */
+ class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest {
+
+ /**
+ * Constructs a new UpdateEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest);
+
+ /** UpdateEnvironmentRequest name. */
+ public name: string;
+
+ /** UpdateEnvironmentRequest environment. */
+ public environment?: (google.cloud.orchestration.airflow.service.v1.IEnvironment|null);
+
+ /** UpdateEnvironmentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest;
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @param message UpdateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @param message UpdateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.UpdateEnvironmentRequest;
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.UpdateEnvironmentRequest;
+
+ /**
+ * Verifies an UpdateEnvironmentRequest message.
+ * @param message Plain 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 UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest;
+
+ /**
+ * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message UpdateEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnvironmentConfig. */
+ interface IEnvironmentConfig {
+
+ /** EnvironmentConfig gkeCluster */
+ gkeCluster?: (string|null);
+
+ /** EnvironmentConfig dagGcsPrefix */
+ dagGcsPrefix?: (string|null);
+
+ /** EnvironmentConfig nodeCount */
+ nodeCount?: (number|null);
+
+ /** EnvironmentConfig softwareConfig */
+ softwareConfig?: (google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null);
+
+ /** EnvironmentConfig nodeConfig */
+ nodeConfig?: (google.cloud.orchestration.airflow.service.v1.INodeConfig|null);
+
+ /** EnvironmentConfig privateEnvironmentConfig */
+ privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null);
+
+ /** EnvironmentConfig webServerNetworkAccessControl */
+ webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null);
+
+ /** EnvironmentConfig databaseConfig */
+ databaseConfig?: (google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null);
+
+ /** EnvironmentConfig webServerConfig */
+ webServerConfig?: (google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null);
+
+ /** EnvironmentConfig encryptionConfig */
+ encryptionConfig?: (google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null);
+
+ /** EnvironmentConfig airflowUri */
+ airflowUri?: (string|null);
+ }
+
+ /** Represents an EnvironmentConfig. */
+ class EnvironmentConfig implements IEnvironmentConfig {
+
+ /**
+ * Constructs a new EnvironmentConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig);
+
+ /** EnvironmentConfig gkeCluster. */
+ public gkeCluster: string;
+
+ /** EnvironmentConfig dagGcsPrefix. */
+ public dagGcsPrefix: string;
+
+ /** EnvironmentConfig nodeCount. */
+ public nodeCount: number;
+
+ /** EnvironmentConfig softwareConfig. */
+ public softwareConfig?: (google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null);
+
+ /** EnvironmentConfig nodeConfig. */
+ public nodeConfig?: (google.cloud.orchestration.airflow.service.v1.INodeConfig|null);
+
+ /** EnvironmentConfig privateEnvironmentConfig. */
+ public privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null);
+
+ /** EnvironmentConfig webServerNetworkAccessControl. */
+ public webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null);
+
+ /** EnvironmentConfig databaseConfig. */
+ public databaseConfig?: (google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null);
+
+ /** EnvironmentConfig webServerConfig. */
+ public webServerConfig?: (google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null);
+
+ /** EnvironmentConfig encryptionConfig. */
+ public encryptionConfig?: (google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null);
+
+ /** EnvironmentConfig airflowUri. */
+ public airflowUri: string;
+
+ /**
+ * Creates a new EnvironmentConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnvironmentConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig;
+
+ /**
+ * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages.
+ * @param message EnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages.
+ * @param message EnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnvironmentConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.EnvironmentConfig;
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnvironmentConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.EnvironmentConfig;
+
+ /**
+ * Verifies an EnvironmentConfig message.
+ * @param message Plain 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 EnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnvironmentConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.EnvironmentConfig;
+
+ /**
+ * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified.
+ * @param message EnvironmentConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.EnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnvironmentConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnvironmentConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WebServerNetworkAccessControl. */
+ interface IWebServerNetworkAccessControl {
+
+ /** WebServerNetworkAccessControl allowedIpRanges */
+ allowedIpRanges?: (google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange[]|null);
+ }
+
+ /** Represents a WebServerNetworkAccessControl. */
+ class WebServerNetworkAccessControl implements IWebServerNetworkAccessControl {
+
+ /**
+ * Constructs a new WebServerNetworkAccessControl.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl);
+
+ /** WebServerNetworkAccessControl allowedIpRanges. */
+ public allowedIpRanges: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange[];
+
+ /**
+ * Creates a new WebServerNetworkAccessControl instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WebServerNetworkAccessControl instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl;
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @param message WebServerNetworkAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @param message WebServerNetworkAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WebServerNetworkAccessControl
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.WebServerNetworkAccessControl;
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WebServerNetworkAccessControl
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.WebServerNetworkAccessControl;
+
+ /**
+ * Verifies a WebServerNetworkAccessControl message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WebServerNetworkAccessControl
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl;
+
+ /**
+ * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified.
+ * @param message WebServerNetworkAccessControl
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WebServerNetworkAccessControl to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WebServerNetworkAccessControl
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace WebServerNetworkAccessControl {
+
+ /** Properties of an AllowedIpRange. */
+ interface IAllowedIpRange {
+
+ /** AllowedIpRange value */
+ value?: (string|null);
+
+ /** AllowedIpRange description */
+ description?: (string|null);
+ }
+
+ /** Represents an AllowedIpRange. */
+ class AllowedIpRange implements IAllowedIpRange {
+
+ /**
+ * Constructs a new AllowedIpRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange);
+
+ /** AllowedIpRange value. */
+ public value: string;
+
+ /** AllowedIpRange description. */
+ public description: string;
+
+ /**
+ * Creates a new AllowedIpRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AllowedIpRange instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @param message AllowedIpRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @param message AllowedIpRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AllowedIpRange
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AllowedIpRange
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Verifies an AllowedIpRange message.
+ * @param message Plain 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 AllowedIpRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AllowedIpRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified.
+ * @param message AllowedIpRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AllowedIpRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AllowedIpRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a DatabaseConfig. */
+ interface IDatabaseConfig {
+
+ /** DatabaseConfig machineType */
+ machineType?: (string|null);
+ }
+
+ /** Represents a DatabaseConfig. */
+ class DatabaseConfig implements IDatabaseConfig {
+
+ /**
+ * Constructs a new DatabaseConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig);
+
+ /** DatabaseConfig machineType. */
+ public machineType: string;
+
+ /**
+ * Creates a new DatabaseConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig): google.cloud.orchestration.airflow.service.v1.DatabaseConfig;
+
+ /**
+ * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages.
+ * @param message DatabaseConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages.
+ * @param message DatabaseConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.DatabaseConfig;
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.DatabaseConfig;
+
+ /**
+ * Verifies a DatabaseConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.DatabaseConfig;
+
+ /**
+ * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified.
+ * @param message DatabaseConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.DatabaseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WebServerConfig. */
+ interface IWebServerConfig {
+
+ /** WebServerConfig machineType */
+ machineType?: (string|null);
+ }
+
+ /** Represents a WebServerConfig. */
+ class WebServerConfig implements IWebServerConfig {
+
+ /**
+ * Constructs a new WebServerConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerConfig);
+
+ /** WebServerConfig machineType. */
+ public machineType: string;
+
+ /**
+ * Creates a new WebServerConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WebServerConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IWebServerConfig): google.cloud.orchestration.airflow.service.v1.WebServerConfig;
+
+ /**
+ * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages.
+ * @param message WebServerConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages.
+ * @param message WebServerConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WebServerConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.WebServerConfig;
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WebServerConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.WebServerConfig;
+
+ /**
+ * Verifies a WebServerConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WebServerConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.WebServerConfig;
+
+ /**
+ * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified.
+ * @param message WebServerConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.WebServerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WebServerConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WebServerConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EncryptionConfig. */
+ interface IEncryptionConfig {
+
+ /** EncryptionConfig kmsKeyName */
+ kmsKeyName?: (string|null);
+ }
+
+ /** Represents an EncryptionConfig. */
+ class EncryptionConfig implements IEncryptionConfig {
+
+ /**
+ * Constructs a new EncryptionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig);
+
+ /** EncryptionConfig kmsKeyName. */
+ public kmsKeyName: string;
+
+ /**
+ * Creates a new EncryptionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EncryptionConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig): google.cloud.orchestration.airflow.service.v1.EncryptionConfig;
+
+ /**
+ * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.EncryptionConfig;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.EncryptionConfig;
+
+ /**
+ * Verifies an EncryptionConfig message.
+ * @param message Plain 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 EncryptionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EncryptionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.EncryptionConfig;
+
+ /**
+ * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified.
+ * @param message EncryptionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.EncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EncryptionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EncryptionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SoftwareConfig. */
+ interface ISoftwareConfig {
+
+ /** SoftwareConfig imageVersion */
+ imageVersion?: (string|null);
+
+ /** SoftwareConfig airflowConfigOverrides */
+ airflowConfigOverrides?: ({ [k: string]: string }|null);
+
+ /** SoftwareConfig pypiPackages */
+ pypiPackages?: ({ [k: string]: string }|null);
+
+ /** SoftwareConfig envVariables */
+ envVariables?: ({ [k: string]: string }|null);
+
+ /** SoftwareConfig pythonVersion */
+ pythonVersion?: (string|null);
+ }
+
+ /** Represents a SoftwareConfig. */
+ class SoftwareConfig implements ISoftwareConfig {
+
+ /**
+ * Constructs a new SoftwareConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig);
+
+ /** SoftwareConfig imageVersion. */
+ public imageVersion: string;
+
+ /** SoftwareConfig airflowConfigOverrides. */
+ public airflowConfigOverrides: { [k: string]: string };
+
+ /** SoftwareConfig pypiPackages. */
+ public pypiPackages: { [k: string]: string };
+
+ /** SoftwareConfig envVariables. */
+ public envVariables: { [k: string]: string };
+
+ /** SoftwareConfig pythonVersion. */
+ public pythonVersion: string;
+
+ /**
+ * Creates a new SoftwareConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SoftwareConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig): google.cloud.orchestration.airflow.service.v1.SoftwareConfig;
+
+ /**
+ * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages.
+ * @param message SoftwareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages.
+ * @param message SoftwareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SoftwareConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.SoftwareConfig;
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SoftwareConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.SoftwareConfig;
+
+ /**
+ * Verifies a SoftwareConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SoftwareConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.SoftwareConfig;
+
+ /**
+ * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified.
+ * @param message SoftwareConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.SoftwareConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SoftwareConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SoftwareConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a IPAllocationPolicy. */
+ interface IIPAllocationPolicy {
+
+ /** IPAllocationPolicy useIpAliases */
+ useIpAliases?: (boolean|null);
+
+ /** IPAllocationPolicy clusterSecondaryRangeName */
+ clusterSecondaryRangeName?: (string|null);
+
+ /** IPAllocationPolicy clusterIpv4CidrBlock */
+ clusterIpv4CidrBlock?: (string|null);
+
+ /** IPAllocationPolicy servicesSecondaryRangeName */
+ servicesSecondaryRangeName?: (string|null);
+
+ /** IPAllocationPolicy servicesIpv4CidrBlock */
+ servicesIpv4CidrBlock?: (string|null);
+ }
+
+ /** Represents a IPAllocationPolicy. */
+ class IPAllocationPolicy implements IIPAllocationPolicy {
+
+ /**
+ * Constructs a new IPAllocationPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy);
+
+ /** IPAllocationPolicy useIpAliases. */
+ public useIpAliases: boolean;
+
+ /** IPAllocationPolicy clusterSecondaryRangeName. */
+ public clusterSecondaryRangeName?: (string|null);
+
+ /** IPAllocationPolicy clusterIpv4CidrBlock. */
+ public clusterIpv4CidrBlock?: (string|null);
+
+ /** IPAllocationPolicy servicesSecondaryRangeName. */
+ public servicesSecondaryRangeName?: (string|null);
+
+ /** IPAllocationPolicy servicesIpv4CidrBlock. */
+ public servicesIpv4CidrBlock?: (string|null);
+
+ /** IPAllocationPolicy clusterIpAllocation. */
+ public clusterIpAllocation?: ("clusterSecondaryRangeName"|"clusterIpv4CidrBlock");
+
+ /** IPAllocationPolicy servicesIpAllocation. */
+ public servicesIpAllocation?: ("servicesSecondaryRangeName"|"servicesIpv4CidrBlock");
+
+ /**
+ * Creates a new IPAllocationPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IPAllocationPolicy instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy;
+
+ /**
+ * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages.
+ * @param message IPAllocationPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages.
+ * @param message IPAllocationPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IPAllocationPolicy
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.IPAllocationPolicy;
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IPAllocationPolicy
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.IPAllocationPolicy;
+
+ /**
+ * Verifies a IPAllocationPolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IPAllocationPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy;
+
+ /**
+ * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified.
+ * @param message IPAllocationPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IPAllocationPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IPAllocationPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeConfig. */
+ interface INodeConfig {
+
+ /** NodeConfig location */
+ location?: (string|null);
+
+ /** NodeConfig machineType */
+ machineType?: (string|null);
+
+ /** NodeConfig network */
+ network?: (string|null);
+
+ /** NodeConfig subnetwork */
+ subnetwork?: (string|null);
+
+ /** NodeConfig diskSizeGb */
+ diskSizeGb?: (number|null);
+
+ /** NodeConfig oauthScopes */
+ oauthScopes?: (string[]|null);
+
+ /** NodeConfig serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** NodeConfig tags */
+ tags?: (string[]|null);
+
+ /** NodeConfig ipAllocationPolicy */
+ ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null);
+ }
+
+ /** Represents a NodeConfig. */
+ class NodeConfig implements INodeConfig {
+
+ /**
+ * Constructs a new NodeConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.INodeConfig);
+
+ /** NodeConfig location. */
+ public location: string;
+
+ /** NodeConfig machineType. */
+ public machineType: string;
+
+ /** NodeConfig network. */
+ public network: string;
+
+ /** NodeConfig subnetwork. */
+ public subnetwork: string;
+
+ /** NodeConfig diskSizeGb. */
+ public diskSizeGb: number;
+
+ /** NodeConfig oauthScopes. */
+ public oauthScopes: string[];
+
+ /** NodeConfig serviceAccount. */
+ public serviceAccount: string;
+
+ /** NodeConfig tags. */
+ public tags: string[];
+
+ /** NodeConfig ipAllocationPolicy. */
+ public ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null);
+
+ /**
+ * Creates a new NodeConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.INodeConfig): google.cloud.orchestration.airflow.service.v1.NodeConfig;
+
+ /**
+ * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages.
+ * @param message NodeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages.
+ * @param message NodeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.NodeConfig;
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.NodeConfig;
+
+ /**
+ * Verifies a NodeConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.NodeConfig;
+
+ /**
+ * Creates a plain object from a NodeConfig message. Also converts values to other types if specified.
+ * @param message NodeConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.NodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PrivateClusterConfig. */
+ interface IPrivateClusterConfig {
+
+ /** PrivateClusterConfig enablePrivateEndpoint */
+ enablePrivateEndpoint?: (boolean|null);
+
+ /** PrivateClusterConfig masterIpv4CidrBlock */
+ masterIpv4CidrBlock?: (string|null);
+
+ /** PrivateClusterConfig masterIpv4ReservedRange */
+ masterIpv4ReservedRange?: (string|null);
+ }
+
+ /** Represents a PrivateClusterConfig. */
+ class PrivateClusterConfig implements IPrivateClusterConfig {
+
+ /**
+ * Constructs a new PrivateClusterConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig);
+
+ /** PrivateClusterConfig enablePrivateEndpoint. */
+ public enablePrivateEndpoint: boolean;
+
+ /** PrivateClusterConfig masterIpv4CidrBlock. */
+ public masterIpv4CidrBlock: string;
+
+ /** PrivateClusterConfig masterIpv4ReservedRange. */
+ public masterIpv4ReservedRange: string;
+
+ /**
+ * Creates a new PrivateClusterConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrivateClusterConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig;
+
+ /**
+ * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages.
+ * @param message PrivateClusterConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages.
+ * @param message PrivateClusterConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrivateClusterConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.PrivateClusterConfig;
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrivateClusterConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.PrivateClusterConfig;
+
+ /**
+ * Verifies a PrivateClusterConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrivateClusterConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig;
+
+ /**
+ * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
+ * @param message PrivateClusterConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrivateClusterConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrivateClusterConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PrivateEnvironmentConfig. */
+ interface IPrivateEnvironmentConfig {
+
+ /** PrivateEnvironmentConfig enablePrivateEnvironment */
+ enablePrivateEnvironment?: (boolean|null);
+
+ /** PrivateEnvironmentConfig privateClusterConfig */
+ privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null);
+
+ /** PrivateEnvironmentConfig webServerIpv4CidrBlock */
+ webServerIpv4CidrBlock?: (string|null);
+
+ /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock */
+ cloudSqlIpv4CidrBlock?: (string|null);
+
+ /** PrivateEnvironmentConfig webServerIpv4ReservedRange */
+ webServerIpv4ReservedRange?: (string|null);
+ }
+
+ /** Represents a PrivateEnvironmentConfig. */
+ class PrivateEnvironmentConfig implements IPrivateEnvironmentConfig {
+
+ /**
+ * Constructs a new PrivateEnvironmentConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig);
+
+ /** PrivateEnvironmentConfig enablePrivateEnvironment. */
+ public enablePrivateEnvironment: boolean;
+
+ /** PrivateEnvironmentConfig privateClusterConfig. */
+ public privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null);
+
+ /** PrivateEnvironmentConfig webServerIpv4CidrBlock. */
+ public webServerIpv4CidrBlock: string;
+
+ /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock. */
+ public cloudSqlIpv4CidrBlock: string;
+
+ /** PrivateEnvironmentConfig webServerIpv4ReservedRange. */
+ public webServerIpv4ReservedRange: string;
+
+ /**
+ * Creates a new PrivateEnvironmentConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrivateEnvironmentConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig;
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @param message PrivateEnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @param message PrivateEnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrivateEnvironmentConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.PrivateEnvironmentConfig;
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrivateEnvironmentConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.PrivateEnvironmentConfig;
+
+ /**
+ * Verifies a PrivateEnvironmentConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrivateEnvironmentConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig;
+
+ /**
+ * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified.
+ * @param message PrivateEnvironmentConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrivateEnvironmentConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrivateEnvironmentConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Environment. */
+ interface IEnvironment {
+
+ /** Environment name */
+ name?: (string|null);
+
+ /** Environment config */
+ config?: (google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null);
+
+ /** Environment uuid */
+ uuid?: (string|null);
+
+ /** Environment state */
+ state?: (google.cloud.orchestration.airflow.service.v1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1.Environment.State|null);
+
+ /** Environment createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an Environment. */
+ class Environment implements IEnvironment {
+
+ /**
+ * Constructs a new Environment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironment);
+
+ /** Environment name. */
+ public name: string;
+
+ /** Environment config. */
+ public config?: (google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null);
+
+ /** Environment uuid. */
+ public uuid: string;
+
+ /** Environment state. */
+ public state: (google.cloud.orchestration.airflow.service.v1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1.Environment.State);
+
+ /** Environment createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new Environment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Environment instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IEnvironment): google.cloud.orchestration.airflow.service.v1.Environment;
+
+ /**
+ * Encodes the specified Environment message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages.
+ * @param message Environment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages.
+ * @param message Environment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Environment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Environment
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.Environment;
+
+ /**
+ * Decodes an Environment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Environment
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.Environment;
+
+ /**
+ * Verifies an Environment message.
+ * @param message Plain 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 Environment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Environment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.Environment;
+
+ /**
+ * Creates a plain object from an Environment message. Also converts values to other types if specified.
+ * @param message Environment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Environment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Environment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Environment {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ RUNNING = 2,
+ UPDATING = 3,
+ DELETING = 4,
+ ERROR = 5
+ }
+ }
+
+ /** Properties of a CheckUpgradeResponse. */
+ interface ICheckUpgradeResponse {
+
+ /** CheckUpgradeResponse buildLogUri */
+ buildLogUri?: (string|null);
+
+ /** CheckUpgradeResponse containsPypiModulesConflict */
+ containsPypiModulesConflict?: (google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|null);
+
+ /** CheckUpgradeResponse pypiConflictBuildLogExtract */
+ pypiConflictBuildLogExtract?: (string|null);
+
+ /** CheckUpgradeResponse imageVersion */
+ imageVersion?: (string|null);
+
+ /** CheckUpgradeResponse pypiDependencies */
+ pypiDependencies?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a CheckUpgradeResponse. */
+ class CheckUpgradeResponse implements ICheckUpgradeResponse {
+
+ /**
+ * Constructs a new CheckUpgradeResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse);
+
+ /** CheckUpgradeResponse buildLogUri. */
+ public buildLogUri: string;
+
+ /** CheckUpgradeResponse containsPypiModulesConflict. */
+ public containsPypiModulesConflict: (google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult);
+
+ /** CheckUpgradeResponse pypiConflictBuildLogExtract. */
+ public pypiConflictBuildLogExtract: string;
+
+ /** CheckUpgradeResponse imageVersion. */
+ public imageVersion: string;
+
+ /** CheckUpgradeResponse pypiDependencies. */
+ public pypiDependencies: { [k: string]: string };
+
+ /**
+ * Creates a new CheckUpgradeResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CheckUpgradeResponse instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse;
+
+ /**
+ * Encodes the specified CheckUpgradeResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages.
+ * @param message CheckUpgradeResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CheckUpgradeResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages.
+ * @param message CheckUpgradeResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CheckUpgradeResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CheckUpgradeResponse
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.CheckUpgradeResponse;
+
+ /**
+ * Decodes a CheckUpgradeResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CheckUpgradeResponse
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.CheckUpgradeResponse;
+
+ /**
+ * Verifies a CheckUpgradeResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CheckUpgradeResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CheckUpgradeResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse;
+
+ /**
+ * Creates a plain object from a CheckUpgradeResponse message. Also converts values to other types if specified.
+ * @param message CheckUpgradeResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CheckUpgradeResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CheckUpgradeResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CheckUpgradeResponse {
+
+ /** ConflictResult enum. */
+ enum ConflictResult {
+ CONFLICT_RESULT_UNSPECIFIED = 0,
+ CONFLICT = 1,
+ NO_CONFLICT = 2
+ }
+ }
+
+ /** Represents an ImageVersions */
+ class ImageVersions extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ImageVersions 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 ImageVersions 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): ImageVersions;
+
+ /**
+ * Calls ListImageVersions.
+ * @param request ListImageVersionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListImageVersionsResponse
+ */
+ public listImageVersions(request: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, callback: google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersionsCallback): void;
+
+ /**
+ * Calls ListImageVersions.
+ * @param request ListImageVersionsRequest message or plain object
+ * @returns Promise
+ */
+ public listImageVersions(request: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest): Promise;
+ }
+
+ namespace ImageVersions {
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.ImageVersions|listImageVersions}.
+ * @param error Error, if any
+ * @param [response] ListImageVersionsResponse
+ */
+ type ListImageVersionsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse) => void;
+ }
+
+ /** Properties of a ListImageVersionsRequest. */
+ interface IListImageVersionsRequest {
+
+ /** ListImageVersionsRequest parent */
+ parent?: (string|null);
+
+ /** ListImageVersionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListImageVersionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListImageVersionsRequest includePastReleases */
+ includePastReleases?: (boolean|null);
+ }
+
+ /** Represents a ListImageVersionsRequest. */
+ class ListImageVersionsRequest implements IListImageVersionsRequest {
+
+ /**
+ * Constructs a new ListImageVersionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest);
+
+ /** ListImageVersionsRequest parent. */
+ public parent: string;
+
+ /** ListImageVersionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListImageVersionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListImageVersionsRequest includePastReleases. */
+ public includePastReleases: boolean;
+
+ /**
+ * Creates a new ListImageVersionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListImageVersionsRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest;
+
+ /**
+ * Encodes the specified ListImageVersionsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages.
+ * @param message ListImageVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListImageVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages.
+ * @param message ListImageVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListImageVersionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListImageVersionsRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.ListImageVersionsRequest;
+
+ /**
+ * Decodes a ListImageVersionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListImageVersionsRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.ListImageVersionsRequest;
+
+ /**
+ * Verifies a ListImageVersionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListImageVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListImageVersionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest;
+
+ /**
+ * Creates a plain object from a ListImageVersionsRequest message. Also converts values to other types if specified.
+ * @param message ListImageVersionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListImageVersionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListImageVersionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListImageVersionsResponse. */
+ interface IListImageVersionsResponse {
+
+ /** ListImageVersionsResponse imageVersions */
+ imageVersions?: (google.cloud.orchestration.airflow.service.v1.IImageVersion[]|null);
+
+ /** ListImageVersionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListImageVersionsResponse. */
+ class ListImageVersionsResponse implements IListImageVersionsResponse {
+
+ /**
+ * Constructs a new ListImageVersionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse);
+
+ /** ListImageVersionsResponse imageVersions. */
+ public imageVersions: google.cloud.orchestration.airflow.service.v1.IImageVersion[];
+
+ /** ListImageVersionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListImageVersionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListImageVersionsResponse instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse;
+
+ /**
+ * Encodes the specified ListImageVersionsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages.
+ * @param message ListImageVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListImageVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages.
+ * @param message ListImageVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListImageVersionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListImageVersionsResponse
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.ListImageVersionsResponse;
+
+ /**
+ * Decodes a ListImageVersionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListImageVersionsResponse
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.ListImageVersionsResponse;
+
+ /**
+ * Verifies a ListImageVersionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListImageVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListImageVersionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse;
+
+ /**
+ * Creates a plain object from a ListImageVersionsResponse message. Also converts values to other types if specified.
+ * @param message ListImageVersionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListImageVersionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListImageVersionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageVersion. */
+ interface IImageVersion {
+
+ /** ImageVersion imageVersionId */
+ imageVersionId?: (string|null);
+
+ /** ImageVersion isDefault */
+ isDefault?: (boolean|null);
+
+ /** ImageVersion supportedPythonVersions */
+ supportedPythonVersions?: (string[]|null);
+
+ /** ImageVersion releaseDate */
+ releaseDate?: (google.type.IDate|null);
+
+ /** ImageVersion creationDisabled */
+ creationDisabled?: (boolean|null);
+
+ /** ImageVersion upgradeDisabled */
+ upgradeDisabled?: (boolean|null);
+ }
+
+ /** Represents an ImageVersion. */
+ class ImageVersion implements IImageVersion {
+
+ /**
+ * Constructs a new ImageVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IImageVersion);
+
+ /** ImageVersion imageVersionId. */
+ public imageVersionId: string;
+
+ /** ImageVersion isDefault. */
+ public isDefault: boolean;
+
+ /** ImageVersion supportedPythonVersions. */
+ public supportedPythonVersions: string[];
+
+ /** ImageVersion releaseDate. */
+ public releaseDate?: (google.type.IDate|null);
+
+ /** ImageVersion creationDisabled. */
+ public creationDisabled: boolean;
+
+ /** ImageVersion upgradeDisabled. */
+ public upgradeDisabled: boolean;
+
+ /**
+ * Creates a new ImageVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageVersion instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IImageVersion): google.cloud.orchestration.airflow.service.v1.ImageVersion;
+
+ /**
+ * Encodes the specified ImageVersion message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages.
+ * @param message ImageVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageVersion message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages.
+ * @param message ImageVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageVersion
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1.ImageVersion;
+
+ /**
+ * Decodes an ImageVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageVersion
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1.ImageVersion;
+
+ /**
+ * Verifies an ImageVersion message.
+ * @param message Plain 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 ImageVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.ImageVersion;
+
+ /**
+ * Creates a plain object from an ImageVersion message. Also converts values to other types if specified.
+ * @param message ImageVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.ImageVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata state */
+ state?: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|null);
+
+ /** OperationMetadata operationType */
+ operationType?: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|null);
+
+ /** OperationMetadata resource */
+ resource?: (string|null);
+
+ /** OperationMetadata resourceUuid */
+ resourceUuid?: (string|null);
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1.IOperationMetadata);
+
+ /** OperationMetadata state. */
+ public state: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.State);
+
+ /** OperationMetadata operationType. */
+ public operationType: (google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type);
+
+ /** OperationMetadata resource. */
+ public resource: string;
+
+ /** OperationMetadata resourceUuid. */
+ public resourceUuid: string;
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1.IOperationMetadata): google.cloud.orchestration.airflow.service.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OperationMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ RUNNING = 2,
+ SUCCEEDED = 3,
+ SUCCESSFUL = 3,
+ FAILED = 4
+ }
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ CREATE = 1,
+ DELETE = 2,
+ UPDATE = 3,
+ CHECK = 4
+ }
+ }
+ }
+
+ /** Namespace v1beta1. */
+ namespace v1beta1 {
+
+ /** Represents an Environments */
+ class Environments extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Environments 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 Environments 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): Environments;
+
+ /**
+ * Calls CreateEnvironment.
+ * @param request CreateEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironmentCallback): void;
+
+ /**
+ * Calls CreateEnvironment.
+ * @param request CreateEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public createEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest): Promise;
+
+ /**
+ * Calls GetEnvironment.
+ * @param request GetEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Environment
+ */
+ public getEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironmentCallback): void;
+
+ /**
+ * Calls GetEnvironment.
+ * @param request GetEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public getEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest): Promise;
+
+ /**
+ * Calls ListEnvironments.
+ * @param request ListEnvironmentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse
+ */
+ public listEnvironments(request: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironmentsCallback): void;
+
+ /**
+ * Calls ListEnvironments.
+ * @param request ListEnvironmentsRequest message or plain object
+ * @returns Promise
+ */
+ public listEnvironments(request: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest): Promise;
+
+ /**
+ * Calls UpdateEnvironment.
+ * @param request UpdateEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironmentCallback): void;
+
+ /**
+ * Calls UpdateEnvironment.
+ * @param request UpdateEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public updateEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest): Promise;
+
+ /**
+ * Calls DeleteEnvironment.
+ * @param request DeleteEnvironmentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironmentCallback): void;
+
+ /**
+ * Calls DeleteEnvironment.
+ * @param request DeleteEnvironmentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteEnvironment(request: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest): Promise;
+
+ /**
+ * Calls RestartWebServer.
+ * @param request RestartWebServerRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public restartWebServer(request: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServerCallback): void;
+
+ /**
+ * Calls RestartWebServer.
+ * @param request RestartWebServerRequest message or plain object
+ * @returns Promise
+ */
+ public restartWebServer(request: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest): Promise;
+
+ /**
+ * Calls CheckUpgrade.
+ * @param request CheckUpgradeRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public checkUpgrade(request: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgradeCallback): void;
+
+ /**
+ * Calls CheckUpgrade.
+ * @param request CheckUpgradeRequest message or plain object
+ * @returns Promise
+ */
+ public checkUpgrade(request: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest): Promise;
+ }
+
+ namespace Environments {
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createEnvironment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getEnvironment}.
+ * @param error Error, if any
+ * @param [response] Environment
+ */
+ type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.Environment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listEnvironments}.
+ * @param error Error, if any
+ * @param [response] ListEnvironmentsResponse
+ */
+ type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateEnvironment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteEnvironment}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|restartWebServer}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RestartWebServerCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|checkUpgrade}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CheckUpgradeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of a CreateEnvironmentRequest. */
+ interface ICreateEnvironmentRequest {
+
+ /** CreateEnvironmentRequest parent */
+ parent?: (string|null);
+
+ /** CreateEnvironmentRequest environment */
+ environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null);
+ }
+
+ /** Represents a CreateEnvironmentRequest. */
+ class CreateEnvironmentRequest implements ICreateEnvironmentRequest {
+
+ /**
+ * Constructs a new CreateEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest);
+
+ /** CreateEnvironmentRequest parent. */
+ public parent: string;
+
+ /** CreateEnvironmentRequest environment. */
+ public environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null);
+
+ /**
+ * Creates a new CreateEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest;
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages.
+ * @param message CreateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages.
+ * @param message CreateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest;
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest;
+
+ /**
+ * Verifies a CreateEnvironmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest;
+
+ /**
+ * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message CreateEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetEnvironmentRequest. */
+ interface IGetEnvironmentRequest {
+
+ /** GetEnvironmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetEnvironmentRequest. */
+ class GetEnvironmentRequest implements IGetEnvironmentRequest {
+
+ /**
+ * Constructs a new GetEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest);
+
+ /** GetEnvironmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest;
+
+ /**
+ * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages.
+ * @param message GetEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages.
+ * @param message GetEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.GetEnvironmentRequest;
+
+ /**
+ * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.GetEnvironmentRequest;
+
+ /**
+ * Verifies a GetEnvironmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest;
+
+ /**
+ * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message GetEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEnvironmentsRequest. */
+ interface IListEnvironmentsRequest {
+
+ /** ListEnvironmentsRequest parent */
+ parent?: (string|null);
+
+ /** ListEnvironmentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListEnvironmentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListEnvironmentsRequest. */
+ class ListEnvironmentsRequest implements IListEnvironmentsRequest {
+
+ /**
+ * Constructs a new ListEnvironmentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest);
+
+ /** ListEnvironmentsRequest parent. */
+ public parent: string;
+
+ /** ListEnvironmentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListEnvironmentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListEnvironmentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEnvironmentsRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest;
+
+ /**
+ * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages.
+ * @param message ListEnvironmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages.
+ * @param message ListEnvironmentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEnvironmentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEnvironmentsRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest;
+
+ /**
+ * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEnvironmentsRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest;
+
+ /**
+ * Verifies a ListEnvironmentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEnvironmentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest;
+
+ /**
+ * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified.
+ * @param message ListEnvironmentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEnvironmentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEnvironmentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEnvironmentsResponse. */
+ interface IListEnvironmentsResponse {
+
+ /** ListEnvironmentsResponse environments */
+ environments?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[]|null);
+
+ /** ListEnvironmentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListEnvironmentsResponse. */
+ class ListEnvironmentsResponse implements IListEnvironmentsResponse {
+
+ /**
+ * Constructs a new ListEnvironmentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse);
+
+ /** ListEnvironmentsResponse environments. */
+ public environments: google.cloud.orchestration.airflow.service.v1beta1.IEnvironment[];
+
+ /** ListEnvironmentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListEnvironmentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEnvironmentsResponse instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse;
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages.
+ * @param message ListEnvironmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages.
+ * @param message ListEnvironmentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEnvironmentsResponse
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse;
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEnvironmentsResponse
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse;
+
+ /**
+ * Verifies a ListEnvironmentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEnvironmentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse;
+
+ /**
+ * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified.
+ * @param message ListEnvironmentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEnvironmentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEnvironmentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteEnvironmentRequest. */
+ interface IDeleteEnvironmentRequest {
+
+ /** DeleteEnvironmentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteEnvironmentRequest. */
+ class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest {
+
+ /**
+ * Constructs a new DeleteEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest);
+
+ /** DeleteEnvironmentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest;
+
+ /**
+ * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @param message DeleteEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @param message DeleteEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest;
+
+ /**
+ * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest;
+
+ /**
+ * Verifies a DeleteEnvironmentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest;
+
+ /**
+ * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message DeleteEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateEnvironmentRequest. */
+ interface IUpdateEnvironmentRequest {
+
+ /** UpdateEnvironmentRequest name */
+ name?: (string|null);
+
+ /** UpdateEnvironmentRequest environment */
+ environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null);
+
+ /** UpdateEnvironmentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateEnvironmentRequest. */
+ class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest {
+
+ /**
+ * Constructs a new UpdateEnvironmentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest);
+
+ /** UpdateEnvironmentRequest name. */
+ public name: string;
+
+ /** UpdateEnvironmentRequest environment. */
+ public environment?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null);
+
+ /** UpdateEnvironmentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateEnvironmentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateEnvironmentRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest;
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @param message UpdateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @param message UpdateEnvironmentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateEnvironmentRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest;
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateEnvironmentRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest;
+
+ /**
+ * Verifies an UpdateEnvironmentRequest message.
+ * @param message Plain 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 UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateEnvironmentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest;
+
+ /**
+ * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified.
+ * @param message UpdateEnvironmentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateEnvironmentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateEnvironmentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestartWebServerRequest. */
+ interface IRestartWebServerRequest {
+
+ /** RestartWebServerRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a RestartWebServerRequest. */
+ class RestartWebServerRequest implements IRestartWebServerRequest {
+
+ /**
+ * Constructs a new RestartWebServerRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest);
+
+ /** RestartWebServerRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new RestartWebServerRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestartWebServerRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest;
+
+ /**
+ * Encodes the specified RestartWebServerRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages.
+ * @param message RestartWebServerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestartWebServerRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages.
+ * @param message RestartWebServerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestartWebServerRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestartWebServerRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.RestartWebServerRequest;
+
+ /**
+ * Decodes a RestartWebServerRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestartWebServerRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.RestartWebServerRequest;
+
+ /**
+ * Verifies a RestartWebServerRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RestartWebServerRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestartWebServerRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest;
+
+ /**
+ * Creates a plain object from a RestartWebServerRequest message. Also converts values to other types if specified.
+ * @param message RestartWebServerRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestartWebServerRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestartWebServerRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnvironmentConfig. */
+ interface IEnvironmentConfig {
+
+ /** EnvironmentConfig gkeCluster */
+ gkeCluster?: (string|null);
+
+ /** EnvironmentConfig dagGcsPrefix */
+ dagGcsPrefix?: (string|null);
+
+ /** EnvironmentConfig nodeCount */
+ nodeCount?: (number|null);
+
+ /** EnvironmentConfig softwareConfig */
+ softwareConfig?: (google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig|null);
+
+ /** EnvironmentConfig nodeConfig */
+ nodeConfig?: (google.cloud.orchestration.airflow.service.v1beta1.INodeConfig|null);
+
+ /** EnvironmentConfig privateEnvironmentConfig */
+ privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig|null);
+
+ /** EnvironmentConfig webServerNetworkAccessControl */
+ webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl|null);
+
+ /** EnvironmentConfig databaseConfig */
+ databaseConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig|null);
+
+ /** EnvironmentConfig webServerConfig */
+ webServerConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig|null);
+
+ /** EnvironmentConfig airflowUri */
+ airflowUri?: (string|null);
+
+ /** EnvironmentConfig encryptionConfig */
+ encryptionConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig|null);
+
+ /** EnvironmentConfig maintenanceWindow */
+ maintenanceWindow?: (google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow|null);
+
+ /** EnvironmentConfig workloadsConfig */
+ workloadsConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig|null);
+
+ /** EnvironmentConfig environmentSize */
+ environmentSize?: (google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize|null);
+ }
+
+ /** Represents an EnvironmentConfig. */
+ class EnvironmentConfig implements IEnvironmentConfig {
+
+ /**
+ * Constructs a new EnvironmentConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig);
+
+ /** EnvironmentConfig gkeCluster. */
+ public gkeCluster: string;
+
+ /** EnvironmentConfig dagGcsPrefix. */
+ public dagGcsPrefix: string;
+
+ /** EnvironmentConfig nodeCount. */
+ public nodeCount: number;
+
+ /** EnvironmentConfig softwareConfig. */
+ public softwareConfig?: (google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig|null);
+
+ /** EnvironmentConfig nodeConfig. */
+ public nodeConfig?: (google.cloud.orchestration.airflow.service.v1beta1.INodeConfig|null);
+
+ /** EnvironmentConfig privateEnvironmentConfig. */
+ public privateEnvironmentConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig|null);
+
+ /** EnvironmentConfig webServerNetworkAccessControl. */
+ public webServerNetworkAccessControl?: (google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl|null);
+
+ /** EnvironmentConfig databaseConfig. */
+ public databaseConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig|null);
+
+ /** EnvironmentConfig webServerConfig. */
+ public webServerConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig|null);
+
+ /** EnvironmentConfig airflowUri. */
+ public airflowUri: string;
+
+ /** EnvironmentConfig encryptionConfig. */
+ public encryptionConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig|null);
+
+ /** EnvironmentConfig maintenanceWindow. */
+ public maintenanceWindow?: (google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow|null);
+
+ /** EnvironmentConfig workloadsConfig. */
+ public workloadsConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig|null);
+
+ /** EnvironmentConfig environmentSize. */
+ public environmentSize: (google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize);
+
+ /**
+ * Creates a new EnvironmentConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnvironmentConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig): google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig;
+
+ /**
+ * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.verify|verify} messages.
+ * @param message EnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.verify|verify} messages.
+ * @param message EnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnvironmentConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.EnvironmentConfig;
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnvironmentConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.EnvironmentConfig;
+
+ /**
+ * Verifies an EnvironmentConfig message.
+ * @param message Plain 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 EnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnvironmentConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig;
+
+ /**
+ * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified.
+ * @param message EnvironmentConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnvironmentConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnvironmentConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnvironmentConfig {
+
+ /** EnvironmentSize enum. */
+ enum EnvironmentSize {
+ ENVIRONMENT_SIZE_UNSPECIFIED = 0,
+ ENVIRONMENT_SIZE_SMALL = 1,
+ ENVIRONMENT_SIZE_MEDIUM = 2,
+ ENVIRONMENT_SIZE_LARGE = 3
+ }
+ }
+
+ /** Properties of a WebServerNetworkAccessControl. */
+ interface IWebServerNetworkAccessControl {
+
+ /** WebServerNetworkAccessControl allowedIpRanges */
+ allowedIpRanges?: (google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange[]|null);
+ }
+
+ /** Represents a WebServerNetworkAccessControl. */
+ class WebServerNetworkAccessControl implements IWebServerNetworkAccessControl {
+
+ /**
+ * Constructs a new WebServerNetworkAccessControl.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl);
+
+ /** WebServerNetworkAccessControl allowedIpRanges. */
+ public allowedIpRanges: google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange[];
+
+ /**
+ * Creates a new WebServerNetworkAccessControl instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WebServerNetworkAccessControl instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl): google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl;
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @param message WebServerNetworkAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @param message WebServerNetworkAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WebServerNetworkAccessControl
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl;
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WebServerNetworkAccessControl
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl;
+
+ /**
+ * Verifies a WebServerNetworkAccessControl message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WebServerNetworkAccessControl
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl;
+
+ /**
+ * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified.
+ * @param message WebServerNetworkAccessControl
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WebServerNetworkAccessControl to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WebServerNetworkAccessControl
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace WebServerNetworkAccessControl {
+
+ /** Properties of an AllowedIpRange. */
+ interface IAllowedIpRange {
+
+ /** AllowedIpRange value */
+ value?: (string|null);
+
+ /** AllowedIpRange description */
+ description?: (string|null);
+ }
+
+ /** Represents an AllowedIpRange. */
+ class AllowedIpRange implements IAllowedIpRange {
+
+ /**
+ * Constructs a new AllowedIpRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange);
+
+ /** AllowedIpRange value. */
+ public value: string;
+
+ /** AllowedIpRange description. */
+ public description: string;
+
+ /**
+ * Creates a new AllowedIpRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AllowedIpRange instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange): google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @param message AllowedIpRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @param message AllowedIpRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AllowedIpRange
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AllowedIpRange
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Verifies an AllowedIpRange message.
+ * @param message Plain 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 AllowedIpRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AllowedIpRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange;
+
+ /**
+ * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified.
+ * @param message AllowedIpRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AllowedIpRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AllowedIpRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SoftwareConfig. */
+ interface ISoftwareConfig {
+
+ /** SoftwareConfig imageVersion */
+ imageVersion?: (string|null);
+
+ /** SoftwareConfig airflowConfigOverrides */
+ airflowConfigOverrides?: ({ [k: string]: string }|null);
+
+ /** SoftwareConfig pypiPackages */
+ pypiPackages?: ({ [k: string]: string }|null);
+
+ /** SoftwareConfig envVariables */
+ envVariables?: ({ [k: string]: string }|null);
+
+ /** SoftwareConfig pythonVersion */
+ pythonVersion?: (string|null);
+ }
+
+ /** Represents a SoftwareConfig. */
+ class SoftwareConfig implements ISoftwareConfig {
+
+ /**
+ * Constructs a new SoftwareConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig);
+
+ /** SoftwareConfig imageVersion. */
+ public imageVersion: string;
+
+ /** SoftwareConfig airflowConfigOverrides. */
+ public airflowConfigOverrides: { [k: string]: string };
+
+ /** SoftwareConfig pypiPackages. */
+ public pypiPackages: { [k: string]: string };
+
+ /** SoftwareConfig envVariables. */
+ public envVariables: { [k: string]: string };
+
+ /** SoftwareConfig pythonVersion. */
+ public pythonVersion: string;
+
+ /**
+ * Creates a new SoftwareConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SoftwareConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig): google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig;
+
+ /**
+ * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.verify|verify} messages.
+ * @param message SoftwareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.verify|verify} messages.
+ * @param message SoftwareConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SoftwareConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.SoftwareConfig;
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SoftwareConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.SoftwareConfig;
+
+ /**
+ * Verifies a SoftwareConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SoftwareConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig;
+
+ /**
+ * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified.
+ * @param message SoftwareConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SoftwareConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SoftwareConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a IPAllocationPolicy. */
+ interface IIPAllocationPolicy {
+
+ /** IPAllocationPolicy useIpAliases */
+ useIpAliases?: (boolean|null);
+
+ /** IPAllocationPolicy clusterSecondaryRangeName */
+ clusterSecondaryRangeName?: (string|null);
+
+ /** IPAllocationPolicy servicesSecondaryRangeName */
+ servicesSecondaryRangeName?: (string|null);
+
+ /** IPAllocationPolicy clusterIpv4CidrBlock */
+ clusterIpv4CidrBlock?: (string|null);
+
+ /** IPAllocationPolicy servicesIpv4CidrBlock */
+ servicesIpv4CidrBlock?: (string|null);
+ }
+
+ /** Represents a IPAllocationPolicy. */
+ class IPAllocationPolicy implements IIPAllocationPolicy {
+
+ /**
+ * Constructs a new IPAllocationPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy);
+
+ /** IPAllocationPolicy useIpAliases. */
+ public useIpAliases: boolean;
+
+ /** IPAllocationPolicy clusterSecondaryRangeName. */
+ public clusterSecondaryRangeName: string;
+
+ /** IPAllocationPolicy servicesSecondaryRangeName. */
+ public servicesSecondaryRangeName: string;
+
+ /** IPAllocationPolicy clusterIpv4CidrBlock. */
+ public clusterIpv4CidrBlock: string;
+
+ /** IPAllocationPolicy servicesIpv4CidrBlock. */
+ public servicesIpv4CidrBlock: string;
+
+ /**
+ * Creates a new IPAllocationPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IPAllocationPolicy instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy): google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy;
+
+ /**
+ * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.verify|verify} messages.
+ * @param message IPAllocationPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.verify|verify} messages.
+ * @param message IPAllocationPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IPAllocationPolicy
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.IPAllocationPolicy;
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IPAllocationPolicy
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.IPAllocationPolicy;
+
+ /**
+ * Verifies a IPAllocationPolicy message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IPAllocationPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy;
+
+ /**
+ * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified.
+ * @param message IPAllocationPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IPAllocationPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IPAllocationPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeConfig. */
+ interface INodeConfig {
+
+ /** NodeConfig location */
+ location?: (string|null);
+
+ /** NodeConfig machineType */
+ machineType?: (string|null);
+
+ /** NodeConfig network */
+ network?: (string|null);
+
+ /** NodeConfig subnetwork */
+ subnetwork?: (string|null);
+
+ /** NodeConfig diskSizeGb */
+ diskSizeGb?: (number|null);
+
+ /** NodeConfig oauthScopes */
+ oauthScopes?: (string[]|null);
+
+ /** NodeConfig serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** NodeConfig tags */
+ tags?: (string[]|null);
+
+ /** NodeConfig ipAllocationPolicy */
+ ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy|null);
+
+ /** NodeConfig maxPodsPerNode */
+ maxPodsPerNode?: (number|null);
+ }
+
+ /** Represents a NodeConfig. */
+ class NodeConfig implements INodeConfig {
+
+ /**
+ * Constructs a new NodeConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.INodeConfig);
+
+ /** NodeConfig location. */
+ public location: string;
+
+ /** NodeConfig machineType. */
+ public machineType: string;
+
+ /** NodeConfig network. */
+ public network: string;
+
+ /** NodeConfig subnetwork. */
+ public subnetwork: string;
+
+ /** NodeConfig diskSizeGb. */
+ public diskSizeGb: number;
+
+ /** NodeConfig oauthScopes. */
+ public oauthScopes: string[];
+
+ /** NodeConfig serviceAccount. */
+ public serviceAccount: string;
+
+ /** NodeConfig tags. */
+ public tags: string[];
+
+ /** NodeConfig ipAllocationPolicy. */
+ public ipAllocationPolicy?: (google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy|null);
+
+ /** NodeConfig maxPodsPerNode. */
+ public maxPodsPerNode: number;
+
+ /**
+ * Creates a new NodeConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.INodeConfig): google.cloud.orchestration.airflow.service.v1beta1.NodeConfig;
+
+ /**
+ * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.verify|verify} messages.
+ * @param message NodeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.verify|verify} messages.
+ * @param message NodeConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.orchestration.airflow.service.v1beta1.NodeConfig;
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.orchestration.airflow.service.v1beta1.NodeConfig;
+
+ /**
+ * Verifies a NodeConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.NodeConfig;
+
+ /**
+ * Creates a plain object from a NodeConfig message. Also converts values to other types if specified.
+ * @param message NodeConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.NodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PrivateClusterConfig. */
+ interface IPrivateClusterConfig {
+
+ /** PrivateClusterConfig enablePrivateEndpoint */
+ enablePrivateEndpoint?: (boolean|null);
+
+ /** PrivateClusterConfig masterIpv4CidrBlock */
+ masterIpv4CidrBlock?: (string|null);
+
+ /** PrivateClusterConfig masterIpv4ReservedRange */
+ masterIpv4ReservedRange?: (string|null);
+ }
+
+ /** Represents a PrivateClusterConfig. */
+ class PrivateClusterConfig implements IPrivateClusterConfig {
+
+ /**
+ * Constructs a new PrivateClusterConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig);
+
+ /** PrivateClusterConfig enablePrivateEndpoint. */
+ public enablePrivateEndpoint: boolean;
+
+ /** PrivateClusterConfig masterIpv4CidrBlock. */
+ public masterIpv4CidrBlock: string;
+
+ /** PrivateClusterConfig masterIpv4ReservedRange. */
+ public masterIpv4ReservedRange: string;
+
+ /**
+ * Creates a new PrivateClusterConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrivateClusterConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig): google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig;
+
+ /**
+ * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.verify|verify} messages.
+ * @param message PrivateClusterConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.verify|verify} messages.
+ * @param message PrivateClusterConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrivateClusterConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.PrivateClusterConfig;
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrivateClusterConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.PrivateClusterConfig;
+
+ /**
+ * Verifies a PrivateClusterConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrivateClusterConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig;
+
+ /**
+ * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
+ * @param message PrivateClusterConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrivateClusterConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrivateClusterConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PrivateEnvironmentConfig. */
+ interface IPrivateEnvironmentConfig {
+
+ /** PrivateEnvironmentConfig enablePrivateEnvironment */
+ enablePrivateEnvironment?: (boolean|null);
+
+ /** PrivateEnvironmentConfig privateClusterConfig */
+ privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null);
+
+ /** PrivateEnvironmentConfig webServerIpv4CidrBlock */
+ webServerIpv4CidrBlock?: (string|null);
+
+ /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock */
+ cloudSqlIpv4CidrBlock?: (string|null);
+
+ /** PrivateEnvironmentConfig webServerIpv4ReservedRange */
+ webServerIpv4ReservedRange?: (string|null);
+
+ /** PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock */
+ cloudComposerNetworkIpv4CidrBlock?: (string|null);
+
+ /** PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange */
+ cloudComposerNetworkIpv4ReservedRange?: (string|null);
+ }
+
+ /** Represents a PrivateEnvironmentConfig. */
+ class PrivateEnvironmentConfig implements IPrivateEnvironmentConfig {
+
+ /**
+ * Constructs a new PrivateEnvironmentConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig);
+
+ /** PrivateEnvironmentConfig enablePrivateEnvironment. */
+ public enablePrivateEnvironment: boolean;
+
+ /** PrivateEnvironmentConfig privateClusterConfig. */
+ public privateClusterConfig?: (google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null);
+
+ /** PrivateEnvironmentConfig webServerIpv4CidrBlock. */
+ public webServerIpv4CidrBlock: string;
+
+ /** PrivateEnvironmentConfig cloudSqlIpv4CidrBlock. */
+ public cloudSqlIpv4CidrBlock: string;
+
+ /** PrivateEnvironmentConfig webServerIpv4ReservedRange. */
+ public webServerIpv4ReservedRange: string;
+
+ /** PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock. */
+ public cloudComposerNetworkIpv4CidrBlock: string;
+
+ /** PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange. */
+ public cloudComposerNetworkIpv4ReservedRange: string;
+
+ /**
+ * Creates a new PrivateEnvironmentConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrivateEnvironmentConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig): google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig;
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @param message PrivateEnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @param message PrivateEnvironmentConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrivateEnvironmentConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig;
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrivateEnvironmentConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig;
+
+ /**
+ * Verifies a PrivateEnvironmentConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrivateEnvironmentConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig;
+
+ /**
+ * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified.
+ * @param message PrivateEnvironmentConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrivateEnvironmentConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PrivateEnvironmentConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DatabaseConfig. */
+ interface IDatabaseConfig {
+
+ /** DatabaseConfig machineType */
+ machineType?: (string|null);
+ }
+
+ /** Represents a DatabaseConfig. */
+ class DatabaseConfig implements IDatabaseConfig {
+
+ /**
+ * Constructs a new DatabaseConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig);
+
+ /** DatabaseConfig machineType. */
+ public machineType: string;
+
+ /**
+ * Creates a new DatabaseConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DatabaseConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig): google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig;
+
+ /**
+ * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.verify|verify} messages.
+ * @param message DatabaseConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.verify|verify} messages.
+ * @param message DatabaseConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DatabaseConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.DatabaseConfig;
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DatabaseConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.DatabaseConfig;
+
+ /**
+ * Verifies a DatabaseConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DatabaseConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig;
+
+ /**
+ * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified.
+ * @param message DatabaseConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DatabaseConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DatabaseConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WebServerConfig. */
+ interface IWebServerConfig {
+
+ /** WebServerConfig machineType */
+ machineType?: (string|null);
+ }
+
+ /** Represents a WebServerConfig. */
+ class WebServerConfig implements IWebServerConfig {
+
+ /**
+ * Constructs a new WebServerConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig);
+
+ /** WebServerConfig machineType. */
+ public machineType: string;
+
+ /**
+ * Creates a new WebServerConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WebServerConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig): google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig;
+
+ /**
+ * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.verify|verify} messages.
+ * @param message WebServerConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.verify|verify} messages.
+ * @param message WebServerConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WebServerConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.WebServerConfig;
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WebServerConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.WebServerConfig;
+
+ /**
+ * Verifies a WebServerConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WebServerConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig;
+
+ /**
+ * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified.
+ * @param message WebServerConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WebServerConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WebServerConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EncryptionConfig. */
+ interface IEncryptionConfig {
+
+ /** EncryptionConfig kmsKeyName */
+ kmsKeyName?: (string|null);
+ }
+
+ /** Represents an EncryptionConfig. */
+ class EncryptionConfig implements IEncryptionConfig {
+
+ /**
+ * Constructs a new EncryptionConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig);
+
+ /** EncryptionConfig kmsKeyName. */
+ public kmsKeyName: string;
+
+ /**
+ * Creates a new EncryptionConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EncryptionConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig): google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig;
+
+ /**
+ * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.verify|verify} messages.
+ * @param message EncryptionConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.EncryptionConfig;
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EncryptionConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.EncryptionConfig;
+
+ /**
+ * Verifies an EncryptionConfig message.
+ * @param message Plain 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 EncryptionConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EncryptionConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig;
+
+ /**
+ * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified.
+ * @param message EncryptionConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EncryptionConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EncryptionConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MaintenanceWindow. */
+ interface IMaintenanceWindow {
+
+ /** MaintenanceWindow startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MaintenanceWindow endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MaintenanceWindow recurrence */
+ recurrence?: (string|null);
+ }
+
+ /** Represents a MaintenanceWindow. */
+ class MaintenanceWindow implements IMaintenanceWindow {
+
+ /**
+ * Constructs a new MaintenanceWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow);
+
+ /** MaintenanceWindow startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** MaintenanceWindow endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** MaintenanceWindow recurrence. */
+ public recurrence: string;
+
+ /**
+ * Creates a new MaintenanceWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaintenanceWindow instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow): google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow;
+
+ /**
+ * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.MaintenanceWindow;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaintenanceWindow
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.MaintenanceWindow;
+
+ /**
+ * Verifies a MaintenanceWindow message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaintenanceWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow;
+
+ /**
+ * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
+ * @param message MaintenanceWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaintenanceWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MaintenanceWindow
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WorkloadsConfig. */
+ interface IWorkloadsConfig {
+
+ /** WorkloadsConfig scheduler */
+ scheduler?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null);
+
+ /** WorkloadsConfig webServer */
+ webServer?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null);
+
+ /** WorkloadsConfig worker */
+ worker?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null);
+ }
+
+ /** Represents a WorkloadsConfig. */
+ class WorkloadsConfig implements IWorkloadsConfig {
+
+ /**
+ * Constructs a new WorkloadsConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig);
+
+ /** WorkloadsConfig scheduler. */
+ public scheduler?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null);
+
+ /** WorkloadsConfig webServer. */
+ public webServer?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null);
+
+ /** WorkloadsConfig worker. */
+ public worker?: (google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null);
+
+ /**
+ * Creates a new WorkloadsConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WorkloadsConfig instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig;
+
+ /**
+ * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages.
+ * @param message WorkloadsConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages.
+ * @param message WorkloadsConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WorkloadsConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WorkloadsConfig
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.WorkloadsConfig;
+
+ /**
+ * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WorkloadsConfig
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.WorkloadsConfig;
+
+ /**
+ * Verifies a WorkloadsConfig message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WorkloadsConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig;
+
+ /**
+ * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified.
+ * @param message WorkloadsConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WorkloadsConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WorkloadsConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace WorkloadsConfig {
+
+ /** Properties of a SchedulerResource. */
+ interface ISchedulerResource {
+
+ /** SchedulerResource cpu */
+ cpu?: (number|null);
+
+ /** SchedulerResource memoryGb */
+ memoryGb?: (number|null);
+
+ /** SchedulerResource storageGb */
+ storageGb?: (number|null);
+
+ /** SchedulerResource count */
+ count?: (number|null);
+ }
+
+ /** Represents a SchedulerResource. */
+ class SchedulerResource implements ISchedulerResource {
+
+ /**
+ * Constructs a new SchedulerResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource);
+
+ /** SchedulerResource cpu. */
+ public cpu: number;
+
+ /** SchedulerResource memoryGb. */
+ public memoryGb: number;
+
+ /** SchedulerResource storageGb. */
+ public storageGb: number;
+
+ /** SchedulerResource count. */
+ public count: number;
+
+ /**
+ * Creates a new SchedulerResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SchedulerResource instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource;
+
+ /**
+ * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages.
+ * @param message SchedulerResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages.
+ * @param message SchedulerResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SchedulerResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SchedulerResource
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource;
+
+ /**
+ * Decodes a SchedulerResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SchedulerResource
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource;
+
+ /**
+ * Verifies a SchedulerResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SchedulerResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource;
+
+ /**
+ * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified.
+ * @param message SchedulerResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SchedulerResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SchedulerResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WebServerResource. */
+ interface IWebServerResource {
+
+ /** WebServerResource cpu */
+ cpu?: (number|null);
+
+ /** WebServerResource memoryGb */
+ memoryGb?: (number|null);
+
+ /** WebServerResource storageGb */
+ storageGb?: (number|null);
+ }
+
+ /** Represents a WebServerResource. */
+ class WebServerResource implements IWebServerResource {
+
+ /**
+ * Constructs a new WebServerResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource);
+
+ /** WebServerResource cpu. */
+ public cpu: number;
+
+ /** WebServerResource memoryGb. */
+ public memoryGb: number;
+
+ /** WebServerResource storageGb. */
+ public storageGb: number;
+
+ /**
+ * Creates a new WebServerResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WebServerResource instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource;
+
+ /**
+ * Encodes the specified WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages.
+ * @param message WebServerResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages.
+ * @param message WebServerResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WebServerResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WebServerResource
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource;
+
+ /**
+ * Decodes a WebServerResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WebServerResource
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource;
+
+ /**
+ * Verifies a WebServerResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WebServerResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WebServerResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource;
+
+ /**
+ * Creates a plain object from a WebServerResource message. Also converts values to other types if specified.
+ * @param message WebServerResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WebServerResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WebServerResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WorkerResource. */
+ interface IWorkerResource {
+
+ /** WorkerResource cpu */
+ cpu?: (number|null);
+
+ /** WorkerResource memoryGb */
+ memoryGb?: (number|null);
+
+ /** WorkerResource storageGb */
+ storageGb?: (number|null);
+
+ /** WorkerResource minCount */
+ minCount?: (number|null);
+
+ /** WorkerResource maxCount */
+ maxCount?: (number|null);
+ }
+
+ /** Represents a WorkerResource. */
+ class WorkerResource implements IWorkerResource {
+
+ /**
+ * Constructs a new WorkerResource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource);
+
+ /** WorkerResource cpu. */
+ public cpu: number;
+
+ /** WorkerResource memoryGb. */
+ public memoryGb: number;
+
+ /** WorkerResource storageGb. */
+ public storageGb: number;
+
+ /** WorkerResource minCount. */
+ public minCount: number;
+
+ /** WorkerResource maxCount. */
+ public maxCount: number;
+
+ /**
+ * Creates a new WorkerResource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WorkerResource instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource;
+
+ /**
+ * Encodes the specified WorkerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify|verify} messages.
+ * @param message WorkerResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WorkerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify|verify} messages.
+ * @param message WorkerResource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WorkerResource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WorkerResource
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource;
+
+ /**
+ * Decodes a WorkerResource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WorkerResource
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource;
+
+ /**
+ * Verifies a WorkerResource message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WorkerResource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WorkerResource
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource;
+
+ /**
+ * Creates a plain object from a WorkerResource message. Also converts values to other types if specified.
+ * @param message WorkerResource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WorkerResource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WorkerResource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Environment. */
+ interface IEnvironment {
+
+ /** Environment name */
+ name?: (string|null);
+
+ /** Environment config */
+ config?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig|null);
+
+ /** Environment uuid */
+ uuid?: (string|null);
+
+ /** Environment state */
+ state?: (google.cloud.orchestration.airflow.service.v1beta1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.Environment.State|null);
+
+ /** Environment createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment labels */
+ labels?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an Environment. */
+ class Environment implements IEnvironment {
+
+ /**
+ * Constructs a new Environment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IEnvironment);
+
+ /** Environment name. */
+ public name: string;
+
+ /** Environment config. */
+ public config?: (google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig|null);
+
+ /** Environment uuid. */
+ public uuid: string;
+
+ /** Environment state. */
+ public state: (google.cloud.orchestration.airflow.service.v1beta1.Environment.State|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.Environment.State);
+
+ /** Environment createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Environment labels. */
+ public labels: { [k: string]: string };
+
+ /**
+ * Creates a new Environment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Environment instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IEnvironment): google.cloud.orchestration.airflow.service.v1beta1.Environment;
+
+ /**
+ * Encodes the specified Environment message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.Environment.verify|verify} messages.
+ * @param message Environment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.Environment.verify|verify} messages.
+ * @param message Environment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Environment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Environment
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.Environment;
+
+ /**
+ * Decodes an Environment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Environment
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.Environment;
+
+ /**
+ * Verifies an Environment message.
+ * @param message Plain 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 Environment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Environment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.Environment;
+
+ /**
+ * Creates a plain object from an Environment message. Also converts values to other types if specified.
+ * @param message Environment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Environment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Environment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Environment {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ CREATING = 1,
+ RUNNING = 2,
+ UPDATING = 3,
+ DELETING = 4,
+ ERROR = 5
+ }
+ }
+
+ /** Properties of a CheckUpgradeRequest. */
+ interface ICheckUpgradeRequest {
+
+ /** CheckUpgradeRequest environment */
+ environment?: (string|null);
+
+ /** CheckUpgradeRequest imageVersion */
+ imageVersion?: (string|null);
+ }
+
+ /** Represents a CheckUpgradeRequest. */
+ class CheckUpgradeRequest implements ICheckUpgradeRequest {
+
+ /**
+ * Constructs a new CheckUpgradeRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest);
+
+ /** CheckUpgradeRequest environment. */
+ public environment: string;
+
+ /** CheckUpgradeRequest imageVersion. */
+ public imageVersion: string;
+
+ /**
+ * Creates a new CheckUpgradeRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CheckUpgradeRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest): google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest;
+
+ /**
+ * Encodes the specified CheckUpgradeRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest.verify|verify} messages.
+ * @param message CheckUpgradeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CheckUpgradeRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest.verify|verify} messages.
+ * @param message CheckUpgradeRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CheckUpgradeRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CheckUpgradeRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.CheckUpgradeRequest;
+
+ /**
+ * Decodes a CheckUpgradeRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CheckUpgradeRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.CheckUpgradeRequest;
+
+ /**
+ * Verifies a CheckUpgradeRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CheckUpgradeRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CheckUpgradeRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest;
+
+ /**
+ * Creates a plain object from a CheckUpgradeRequest message. Also converts values to other types if specified.
+ * @param message CheckUpgradeRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CheckUpgradeRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CheckUpgradeRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CheckUpgradeResponse. */
+ interface ICheckUpgradeResponse {
+
+ /** CheckUpgradeResponse buildLogUri */
+ buildLogUri?: (string|null);
+
+ /** CheckUpgradeResponse containsPypiModulesConflict */
+ containsPypiModulesConflict?: (google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse.ConflictResult|null);
+
+ /** CheckUpgradeResponse pypiConflictBuildLogExtract */
+ pypiConflictBuildLogExtract?: (string|null);
+
+ /** CheckUpgradeResponse imageVersion */
+ imageVersion?: (string|null);
+
+ /** CheckUpgradeResponse pypiDependencies */
+ pypiDependencies?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a CheckUpgradeResponse. */
+ class CheckUpgradeResponse implements ICheckUpgradeResponse {
+
+ /**
+ * Constructs a new CheckUpgradeResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse);
+
+ /** CheckUpgradeResponse buildLogUri. */
+ public buildLogUri: string;
+
+ /** CheckUpgradeResponse containsPypiModulesConflict. */
+ public containsPypiModulesConflict: (google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse.ConflictResult|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse.ConflictResult);
+
+ /** CheckUpgradeResponse pypiConflictBuildLogExtract. */
+ public pypiConflictBuildLogExtract: string;
+
+ /** CheckUpgradeResponse imageVersion. */
+ public imageVersion: string;
+
+ /** CheckUpgradeResponse pypiDependencies. */
+ public pypiDependencies: { [k: string]: string };
+
+ /**
+ * Creates a new CheckUpgradeResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CheckUpgradeResponse instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse): google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse;
+
+ /**
+ * Encodes the specified CheckUpgradeResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse.verify|verify} messages.
+ * @param message CheckUpgradeResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CheckUpgradeResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse.verify|verify} messages.
+ * @param message CheckUpgradeResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CheckUpgradeResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CheckUpgradeResponse
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.CheckUpgradeResponse;
+
+ /**
+ * Decodes a CheckUpgradeResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CheckUpgradeResponse
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.CheckUpgradeResponse;
+
+ /**
+ * Verifies a CheckUpgradeResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CheckUpgradeResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CheckUpgradeResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse;
+
+ /**
+ * Creates a plain object from a CheckUpgradeResponse message. Also converts values to other types if specified.
+ * @param message CheckUpgradeResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CheckUpgradeResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CheckUpgradeResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace CheckUpgradeResponse {
+
+ /** ConflictResult enum. */
+ enum ConflictResult {
+ CONFLICT_RESULT_UNSPECIFIED = 0,
+ CONFLICT = 1,
+ NO_CONFLICT = 2
+ }
+ }
+
+ /** Represents an ImageVersions */
+ class ImageVersions extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ImageVersions 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 ImageVersions 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): ImageVersions;
+
+ /**
+ * Calls ListImageVersions.
+ * @param request ListImageVersionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListImageVersionsResponse
+ */
+ public listImageVersions(request: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsRequest, callback: google.cloud.orchestration.airflow.service.v1beta1.ImageVersions.ListImageVersionsCallback): void;
+
+ /**
+ * Calls ListImageVersions.
+ * @param request ListImageVersionsRequest message or plain object
+ * @returns Promise
+ */
+ public listImageVersions(request: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsRequest): Promise;
+ }
+
+ namespace ImageVersions {
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.ImageVersions|listImageVersions}.
+ * @param error Error, if any
+ * @param [response] ListImageVersionsResponse
+ */
+ type ListImageVersionsCallback = (error: (Error|null), response?: google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse) => void;
+ }
+
+ /** Properties of a ListImageVersionsRequest. */
+ interface IListImageVersionsRequest {
+
+ /** ListImageVersionsRequest parent */
+ parent?: (string|null);
+
+ /** ListImageVersionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListImageVersionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListImageVersionsRequest includePastReleases */
+ includePastReleases?: (boolean|null);
+ }
+
+ /** Represents a ListImageVersionsRequest. */
+ class ListImageVersionsRequest implements IListImageVersionsRequest {
+
+ /**
+ * Constructs a new ListImageVersionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsRequest);
+
+ /** ListImageVersionsRequest parent. */
+ public parent: string;
+
+ /** ListImageVersionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListImageVersionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListImageVersionsRequest includePastReleases. */
+ public includePastReleases: boolean;
+
+ /**
+ * Creates a new ListImageVersionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListImageVersionsRequest instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsRequest): google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsRequest;
+
+ /**
+ * Encodes the specified ListImageVersionsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsRequest.verify|verify} messages.
+ * @param message ListImageVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListImageVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsRequest.verify|verify} messages.
+ * @param message ListImageVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListImageVersionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListImageVersionsRequest
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.ListImageVersionsRequest;
+
+ /**
+ * Decodes a ListImageVersionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListImageVersionsRequest
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.ListImageVersionsRequest;
+
+ /**
+ * Verifies a ListImageVersionsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListImageVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListImageVersionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsRequest;
+
+ /**
+ * Creates a plain object from a ListImageVersionsRequest message. Also converts values to other types if specified.
+ * @param message ListImageVersionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListImageVersionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListImageVersionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListImageVersionsResponse. */
+ interface IListImageVersionsResponse {
+
+ /** ListImageVersionsResponse imageVersions */
+ imageVersions?: (google.cloud.orchestration.airflow.service.v1beta1.IImageVersion[]|null);
+
+ /** ListImageVersionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListImageVersionsResponse. */
+ class ListImageVersionsResponse implements IListImageVersionsResponse {
+
+ /**
+ * Constructs a new ListImageVersionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsResponse);
+
+ /** ListImageVersionsResponse imageVersions. */
+ public imageVersions: google.cloud.orchestration.airflow.service.v1beta1.IImageVersion[];
+
+ /** ListImageVersionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListImageVersionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListImageVersionsResponse instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsResponse): google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse;
+
+ /**
+ * Encodes the specified ListImageVersionsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse.verify|verify} messages.
+ * @param message ListImageVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListImageVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse.verify|verify} messages.
+ * @param message ListImageVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IListImageVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListImageVersionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListImageVersionsResponse
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.ListImageVersionsResponse;
+
+ /**
+ * Decodes a ListImageVersionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListImageVersionsResponse
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.ListImageVersionsResponse;
+
+ /**
+ * Verifies a ListImageVersionsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListImageVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListImageVersionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse;
+
+ /**
+ * Creates a plain object from a ListImageVersionsResponse message. Also converts values to other types if specified.
+ * @param message ListImageVersionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListImageVersionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListImageVersionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ImageVersion. */
+ interface IImageVersion {
+
+ /** ImageVersion imageVersionId */
+ imageVersionId?: (string|null);
+
+ /** ImageVersion isDefault */
+ isDefault?: (boolean|null);
+
+ /** ImageVersion supportedPythonVersions */
+ supportedPythonVersions?: (string[]|null);
+
+ /** ImageVersion releaseDate */
+ releaseDate?: (google.type.IDate|null);
+
+ /** ImageVersion creationDisabled */
+ creationDisabled?: (boolean|null);
+
+ /** ImageVersion upgradeDisabled */
+ upgradeDisabled?: (boolean|null);
+ }
+
+ /** Represents an ImageVersion. */
+ class ImageVersion implements IImageVersion {
+
+ /**
+ * Constructs a new ImageVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IImageVersion);
+
+ /** ImageVersion imageVersionId. */
+ public imageVersionId: string;
+
+ /** ImageVersion isDefault. */
+ public isDefault: boolean;
+
+ /** ImageVersion supportedPythonVersions. */
+ public supportedPythonVersions: string[];
+
+ /** ImageVersion releaseDate. */
+ public releaseDate?: (google.type.IDate|null);
+
+ /** ImageVersion creationDisabled. */
+ public creationDisabled: boolean;
+
+ /** ImageVersion upgradeDisabled. */
+ public upgradeDisabled: boolean;
+
+ /**
+ * Creates a new ImageVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ImageVersion instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IImageVersion): google.cloud.orchestration.airflow.service.v1beta1.ImageVersion;
+
+ /**
+ * Encodes the specified ImageVersion message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ImageVersion.verify|verify} messages.
+ * @param message ImageVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.orchestration.airflow.service.v1beta1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ImageVersion message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ImageVersion.verify|verify} messages.
+ * @param message ImageVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.orchestration.airflow.service.v1beta1.IImageVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ImageVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ImageVersion
+ * @throws {Error} If the payload is not 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.orchestration.airflow.service.v1beta1.ImageVersion;
+
+ /**
+ * Decodes an ImageVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ImageVersion
+ * @throws {Error} If the payload 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.orchestration.airflow.service.v1beta1.ImageVersion;
+
+ /**
+ * Verifies an ImageVersion message.
+ * @param message Plain 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 ImageVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ImageVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.orchestration.airflow.service.v1beta1.ImageVersion;
+
+ /**
+ * Creates a plain object from an ImageVersion message. Also converts values to other types if specified.
+ * @param message ImageVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.orchestration.airflow.service.v1beta1.ImageVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ImageVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ImageVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata state */
+ state?: (google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State|null);
+
+ /** OperationMetadata operationType */
+ operationType?: (google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type|null);
+
+ /** OperationMetadata resource */
+ resource?: (string|null);
+
+ /** OperationMetadata resourceUuid */
+ resourceUuid?: (string|null);
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata);
+
+ /** OperationMetadata state. */
+ public state: (google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.State);
+
+ /** OperationMetadata operationType. */
+ public operationType: (google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type|keyof typeof google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata.Type);
+
+ /** OperationMetadata resource. */
+ public resource: string;
+
+ /** OperationMetadata resourceUuid. */
+ public resourceUuid: string;
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.orchestration.airflow.service.v1beta1.IOperationMetadata): google.cloud.orchestration.airflow.service.v1beta1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.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.orchestration.airflow.service.v1beta1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.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.orchestration.airflow.service.v1beta1.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.orchestration.airflow.service.v1beta1.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.orchestration.airflow.service.v1beta1.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.orchestration.airflow.service.v1beta1.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.orchestration.airflow.service.v1beta1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OperationMetadata {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ PENDING = 1,
+ RUNNING = 2,
+ SUCCESSFUL = 3,
+ FAILED = 4
+ }
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ CREATE = 1,
+ DELETE = 2,
+ UPDATE = 3,
+ CHECK = 4
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /** 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 an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** 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 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;
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** Properties of a Date. */
+ interface IDate {
+
+ /** Date year */
+ year?: (number|null);
+
+ /** Date month */
+ month?: (number|null);
+
+ /** Date day */
+ day?: (number|null);
+ }
+
+ /** Represents a Date. */
+ class Date implements IDate {
+
+ /**
+ * Constructs a new Date.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IDate);
+
+ /** Date year. */
+ public year: number;
+
+ /** Date month. */
+ public month: number;
+
+ /** Date day. */
+ public day: number;
+
+ /**
+ * Creates a new Date instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Date instance
+ */
+ public static create(properties?: google.type.IDate): google.type.Date;
+
+ /**
+ * Encodes the specified Date message. Does not implicitly {@link google.type.Date.verify|verify} messages.
+ * @param message Date message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Date message, length delimited. Does not implicitly {@link google.type.Date.verify|verify} messages.
+ * @param message Date message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Date message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Date
+ * @throws {Error} If the payload is not 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.Date;
+
+ /**
+ * Decodes a Date message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Date
+ * @throws {Error} If the payload 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.Date;
+
+ /**
+ * Verifies a Date message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Date message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Date
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Date;
+
+ /**
+ * Creates a plain object from a Date message. Also converts values to other types if specified.
+ * @param message Date
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Date to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Date
+ * @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-orchestration-airflow-service/protos/protos.js b/packages/google-cloud-orchestration-airflow-service/protos/protos.js
new file mode 100644
index 00000000000..b53b67125be
--- /dev/null
+++ b/packages/google-cloud-orchestration-airflow-service/protos/protos.js
@@ -0,0 +1,31085 @@
+// 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_orchestration_airflow_protos || ($protobuf.roots._google_cloud_orchestration_airflow_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.orchestration = (function() {
+
+ /**
+ * Namespace orchestration.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var orchestration = {};
+
+ orchestration.airflow = (function() {
+
+ /**
+ * Namespace airflow.
+ * @memberof google.cloud.orchestration
+ * @namespace
+ */
+ var airflow = {};
+
+ airflow.service = (function() {
+
+ /**
+ * Namespace service.
+ * @memberof google.cloud.orchestration.airflow
+ * @namespace
+ */
+ var service = {};
+
+ service.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.orchestration.airflow.service
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Environments = (function() {
+
+ /**
+ * Constructs a new Environments service.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an Environments
+ * @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 Environments(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments;
+
+ /**
+ * Creates new Environments service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @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 {Environments} RPC service. Useful where requests and/or responses are streamed.
+ */
+ Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|createEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @typedef CreateEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateEnvironment.
+ * @function createEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) {
+ return this.rpcCall(createEnvironment, $root.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateEnvironment" });
+
+ /**
+ * Calls CreateEnvironment.
+ * @function createEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|getEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @typedef GetEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.orchestration.airflow.service.v1.Environment} [response] Environment
+ */
+
+ /**
+ * Calls GetEnvironment.
+ * @function getEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) {
+ return this.rpcCall(getEnvironment, $root.google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest, $root.google.cloud.orchestration.airflow.service.v1.Environment, request, callback);
+ }, "name", { value: "GetEnvironment" });
+
+ /**
+ * Calls GetEnvironment.
+ * @function getEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|listEnvironments}.
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @typedef ListEnvironmentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse
+ */
+
+ /**
+ * Calls ListEnvironments.
+ * @function listEnvironments
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) {
+ return this.rpcCall(listEnvironments, $root.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest, $root.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse, request, callback);
+ }, "name", { value: "ListEnvironments" });
+
+ /**
+ * Calls ListEnvironments.
+ * @function listEnvironments
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|updateEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @typedef UpdateEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateEnvironment.
+ * @function updateEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) {
+ return this.rpcCall(updateEnvironment, $root.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateEnvironment" });
+
+ /**
+ * Calls UpdateEnvironment.
+ * @function updateEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.Environments|deleteEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @typedef DeleteEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteEnvironment.
+ * @function deleteEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) {
+ return this.rpcCall(deleteEnvironment, $root.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteEnvironment" });
+
+ /**
+ * Calls DeleteEnvironment.
+ * @function deleteEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return Environments;
+ })();
+
+ v1.CreateEnvironmentRequest = (function() {
+
+ /**
+ * Properties of a CreateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface ICreateEnvironmentRequest
+ * @property {string|null} [parent] CreateEnvironmentRequest parent
+ * @property {google.cloud.orchestration.airflow.service.v1.IEnvironment|null} [environment] CreateEnvironmentRequest environment
+ */
+
+ /**
+ * Constructs a new CreateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a CreateEnvironmentRequest.
+ * @implements ICreateEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest=} [properties] Properties to set
+ */
+ function CreateEnvironmentRequest(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]];
+ }
+
+ /**
+ * CreateEnvironmentRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @instance
+ */
+ CreateEnvironmentRequest.prototype.parent = "";
+
+ /**
+ * CreateEnvironmentRequest environment.
+ * @member {google.cloud.orchestration.airflow.service.v1.IEnvironment|null|undefined} environment
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @instance
+ */
+ CreateEnvironmentRequest.prototype.environment = null;
+
+ /**
+ * Creates a new CreateEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest} CreateEnvironmentRequest instance
+ */
+ CreateEnvironmentRequest.create = function create(properties) {
+ return new CreateEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateEnvironmentRequest.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.environment != null && Object.hasOwnProperty.call(message, "environment"))
+ $root.google.cloud.orchestration.airflow.service.v1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest} CreateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateEnvironmentRequest.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.orchestration.airflow.service.v1.CreateEnvironmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1.Environment.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest} CreateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateEnvironmentRequest.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.environment != null && message.hasOwnProperty("environment")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.Environment.verify(message.environment);
+ if (error)
+ return "environment." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest} CreateEnvironmentRequest
+ */
+ CreateEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.environment != null) {
+ if (typeof object.environment !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest.environment: object expected");
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1.Environment.fromObject(object.environment);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest} message CreateEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateEnvironmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.environment = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.environment != null && message.hasOwnProperty("environment"))
+ object.environment = $root.google.cloud.orchestration.airflow.service.v1.Environment.toObject(message.environment, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest";
+ };
+
+ return CreateEnvironmentRequest;
+ })();
+
+ v1.GetEnvironmentRequest = (function() {
+
+ /**
+ * Properties of a GetEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IGetEnvironmentRequest
+ * @property {string|null} [name] GetEnvironmentRequest name
+ */
+
+ /**
+ * Constructs a new GetEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a GetEnvironmentRequest.
+ * @implements IGetEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest=} [properties] Properties to set
+ */
+ function GetEnvironmentRequest(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]];
+ }
+
+ /**
+ * GetEnvironmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @instance
+ */
+ GetEnvironmentRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest} GetEnvironmentRequest instance
+ */
+ GetEnvironmentRequest.create = function create(properties) {
+ return new GetEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEnvironmentRequest.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 GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest} GetEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEnvironmentRequest.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.orchestration.airflow.service.v1.GetEnvironmentRequest();
+ 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 GetEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest} GetEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetEnvironmentRequest.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 GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest} GetEnvironmentRequest
+ */
+ GetEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest} message GetEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetEnvironmentRequest.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 GetEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest";
+ };
+
+ return GetEnvironmentRequest;
+ })();
+
+ v1.ListEnvironmentsRequest = (function() {
+
+ /**
+ * Properties of a ListEnvironmentsRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IListEnvironmentsRequest
+ * @property {string|null} [parent] ListEnvironmentsRequest parent
+ * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize
+ * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListEnvironmentsRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a ListEnvironmentsRequest.
+ * @implements IListEnvironmentsRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest=} [properties] Properties to set
+ */
+ function ListEnvironmentsRequest(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]];
+ }
+
+ /**
+ * ListEnvironmentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @instance
+ */
+ ListEnvironmentsRequest.prototype.parent = "";
+
+ /**
+ * ListEnvironmentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @instance
+ */
+ ListEnvironmentsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListEnvironmentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @instance
+ */
+ ListEnvironmentsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListEnvironmentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest} ListEnvironmentsRequest instance
+ */
+ ListEnvironmentsRequest.create = function create(properties) {
+ return new ListEnvironmentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsRequest.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 ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEnvironmentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest} ListEnvironmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsRequest.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.orchestration.airflow.service.v1.ListEnvironmentsRequest();
+ 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 ListEnvironmentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest} ListEnvironmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEnvironmentsRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEnvironmentsRequest.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 ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest} ListEnvironmentsRequest
+ */
+ ListEnvironmentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest();
+ 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 ListEnvironmentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest} message ListEnvironmentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEnvironmentsRequest.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 ListEnvironmentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEnvironmentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEnvironmentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEnvironmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest";
+ };
+
+ return ListEnvironmentsRequest;
+ })();
+
+ v1.ListEnvironmentsResponse = (function() {
+
+ /**
+ * Properties of a ListEnvironmentsResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IListEnvironmentsResponse
+ * @property {Array.|null} [environments] ListEnvironmentsResponse environments
+ * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListEnvironmentsResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a ListEnvironmentsResponse.
+ * @implements IListEnvironmentsResponse
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse=} [properties] Properties to set
+ */
+ function ListEnvironmentsResponse(properties) {
+ this.environments = [];
+ 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]];
+ }
+
+ /**
+ * ListEnvironmentsResponse environments.
+ * @member {Array.} environments
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @instance
+ */
+ ListEnvironmentsResponse.prototype.environments = $util.emptyArray;
+
+ /**
+ * ListEnvironmentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @instance
+ */
+ ListEnvironmentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListEnvironmentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse} ListEnvironmentsResponse instance
+ */
+ ListEnvironmentsResponse.create = function create(properties) {
+ return new ListEnvironmentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.environments != null && message.environments.length)
+ for (var i = 0; i < message.environments.length; ++i)
+ $root.google.cloud.orchestration.airflow.service.v1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse} ListEnvironmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsResponse.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.orchestration.airflow.service.v1.ListEnvironmentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.environments && message.environments.length))
+ message.environments = [];
+ message.environments.push($root.google.cloud.orchestration.airflow.service.v1.Environment.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse} ListEnvironmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEnvironmentsResponse message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEnvironmentsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.environments != null && message.hasOwnProperty("environments")) {
+ if (!Array.isArray(message.environments))
+ return "environments: array expected";
+ for (var i = 0; i < message.environments.length; ++i) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.Environment.verify(message.environments[i]);
+ if (error)
+ return "environments." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse} ListEnvironmentsResponse
+ */
+ ListEnvironmentsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse();
+ if (object.environments) {
+ if (!Array.isArray(object.environments))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse.environments: array expected");
+ message.environments = [];
+ for (var i = 0; i < object.environments.length; ++i) {
+ if (typeof object.environments[i] !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse.environments: object expected");
+ message.environments[i] = $root.google.cloud.orchestration.airflow.service.v1.Environment.fromObject(object.environments[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse} message ListEnvironmentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEnvironmentsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.environments = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.environments && message.environments.length) {
+ object.environments = [];
+ for (var j = 0; j < message.environments.length; ++j)
+ object.environments[j] = $root.google.cloud.orchestration.airflow.service.v1.Environment.toObject(message.environments[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListEnvironmentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEnvironmentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEnvironmentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEnvironmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse";
+ };
+
+ return ListEnvironmentsResponse;
+ })();
+
+ v1.DeleteEnvironmentRequest = (function() {
+
+ /**
+ * Properties of a DeleteEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IDeleteEnvironmentRequest
+ * @property {string|null} [name] DeleteEnvironmentRequest name
+ */
+
+ /**
+ * Constructs a new DeleteEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a DeleteEnvironmentRequest.
+ * @implements IDeleteEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest=} [properties] Properties to set
+ */
+ function DeleteEnvironmentRequest(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]];
+ }
+
+ /**
+ * DeleteEnvironmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @instance
+ */
+ DeleteEnvironmentRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance
+ */
+ DeleteEnvironmentRequest.create = function create(properties) {
+ return new DeleteEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEnvironmentRequest.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 DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest} DeleteEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEnvironmentRequest.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.orchestration.airflow.service.v1.DeleteEnvironmentRequest();
+ 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 DeleteEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest} DeleteEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteEnvironmentRequest.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 DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest} DeleteEnvironmentRequest
+ */
+ DeleteEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteEnvironmentRequest.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 DeleteEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest";
+ };
+
+ return DeleteEnvironmentRequest;
+ })();
+
+ v1.UpdateEnvironmentRequest = (function() {
+
+ /**
+ * Properties of an UpdateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IUpdateEnvironmentRequest
+ * @property {string|null} [name] UpdateEnvironmentRequest name
+ * @property {google.cloud.orchestration.airflow.service.v1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an UpdateEnvironmentRequest.
+ * @implements IUpdateEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest=} [properties] Properties to set
+ */
+ function UpdateEnvironmentRequest(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]];
+ }
+
+ /**
+ * UpdateEnvironmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @instance
+ */
+ UpdateEnvironmentRequest.prototype.name = "";
+
+ /**
+ * UpdateEnvironmentRequest environment.
+ * @member {google.cloud.orchestration.airflow.service.v1.IEnvironment|null|undefined} environment
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @instance
+ */
+ UpdateEnvironmentRequest.prototype.environment = null;
+
+ /**
+ * UpdateEnvironmentRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @instance
+ */
+ UpdateEnvironmentRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance
+ */
+ UpdateEnvironmentRequest.create = function create(properties) {
+ return new UpdateEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateEnvironmentRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
+ $root.google.cloud.orchestration.airflow.service.v1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest} UpdateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateEnvironmentRequest.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.orchestration.airflow.service.v1.UpdateEnvironmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ case 1: {
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1.Environment.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest} UpdateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateEnvironmentRequest.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")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.Environment.verify(message.environment);
+ if (error)
+ return "environment." + 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 UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest} UpdateEnvironmentRequest
+ */
+ UpdateEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.environment != null) {
+ if (typeof object.environment !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest.environment: object expected");
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1.Environment.fromObject(object.environment);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateEnvironmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.environment = null;
+ object.name = "";
+ object.updateMask = null;
+ }
+ if (message.environment != null && message.hasOwnProperty("environment"))
+ object.environment = $root.google.cloud.orchestration.airflow.service.v1.Environment.toObject(message.environment, options);
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest";
+ };
+
+ return UpdateEnvironmentRequest;
+ })();
+
+ v1.EnvironmentConfig = (function() {
+
+ /**
+ * Properties of an EnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IEnvironmentConfig
+ * @property {string|null} [gkeCluster] EnvironmentConfig gkeCluster
+ * @property {string|null} [dagGcsPrefix] EnvironmentConfig dagGcsPrefix
+ * @property {number|null} [nodeCount] EnvironmentConfig nodeCount
+ * @property {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null} [softwareConfig] EnvironmentConfig softwareConfig
+ * @property {google.cloud.orchestration.airflow.service.v1.INodeConfig|null} [nodeConfig] EnvironmentConfig nodeConfig
+ * @property {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null} [privateEnvironmentConfig] EnvironmentConfig privateEnvironmentConfig
+ * @property {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null} [webServerNetworkAccessControl] EnvironmentConfig webServerNetworkAccessControl
+ * @property {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null} [databaseConfig] EnvironmentConfig databaseConfig
+ * @property {google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null} [webServerConfig] EnvironmentConfig webServerConfig
+ * @property {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null} [encryptionConfig] EnvironmentConfig encryptionConfig
+ * @property {string|null} [airflowUri] EnvironmentConfig airflowUri
+ */
+
+ /**
+ * Constructs a new EnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an EnvironmentConfig.
+ * @implements IEnvironmentConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig=} [properties] Properties to set
+ */
+ function EnvironmentConfig(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]];
+ }
+
+ /**
+ * EnvironmentConfig gkeCluster.
+ * @member {string} gkeCluster
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.gkeCluster = "";
+
+ /**
+ * EnvironmentConfig dagGcsPrefix.
+ * @member {string} dagGcsPrefix
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.dagGcsPrefix = "";
+
+ /**
+ * EnvironmentConfig nodeCount.
+ * @member {number} nodeCount
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.nodeCount = 0;
+
+ /**
+ * EnvironmentConfig softwareConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig|null|undefined} softwareConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.softwareConfig = null;
+
+ /**
+ * EnvironmentConfig nodeConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1.INodeConfig|null|undefined} nodeConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.nodeConfig = null;
+
+ /**
+ * EnvironmentConfig privateEnvironmentConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig|null|undefined} privateEnvironmentConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.privateEnvironmentConfig = null;
+
+ /**
+ * EnvironmentConfig webServerNetworkAccessControl.
+ * @member {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl|null|undefined} webServerNetworkAccessControl
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.webServerNetworkAccessControl = null;
+
+ /**
+ * EnvironmentConfig databaseConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig|null|undefined} databaseConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.databaseConfig = null;
+
+ /**
+ * EnvironmentConfig webServerConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1.IWebServerConfig|null|undefined} webServerConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.webServerConfig = null;
+
+ /**
+ * EnvironmentConfig encryptionConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig|null|undefined} encryptionConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.encryptionConfig = null;
+
+ /**
+ * EnvironmentConfig airflowUri.
+ * @member {string} airflowUri
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.airflowUri = "";
+
+ /**
+ * Creates a new EnvironmentConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig instance
+ */
+ EnvironmentConfig.create = function create(properties) {
+ return new EnvironmentConfig(properties);
+ };
+
+ /**
+ * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnvironmentConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gkeCluster != null && Object.hasOwnProperty.call(message, "gkeCluster"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.gkeCluster);
+ if (message.dagGcsPrefix != null && Object.hasOwnProperty.call(message, "dagGcsPrefix"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.dagGcsPrefix);
+ if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.nodeCount);
+ if (message.softwareConfig != null && Object.hasOwnProperty.call(message, "softwareConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.encode(message.softwareConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.airflowUri != null && Object.hasOwnProperty.call(message, "airflowUri"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.airflowUri);
+ if (message.privateEnvironmentConfig != null && Object.hasOwnProperty.call(message, "privateEnvironmentConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.encode(message.privateEnvironmentConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.webServerNetworkAccessControl != null && Object.hasOwnProperty.call(message, "webServerNetworkAccessControl"))
+ $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.encode(message.webServerNetworkAccessControl, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.databaseConfig != null && Object.hasOwnProperty.call(message, "databaseConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.encode(message.databaseConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.webServerConfig != null && Object.hasOwnProperty.call(message, "webServerConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.encode(message.webServerConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnvironmentConfig.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.orchestration.airflow.service.v1.EnvironmentConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gkeCluster = reader.string();
+ break;
+ }
+ case 2: {
+ message.dagGcsPrefix = reader.string();
+ break;
+ }
+ case 3: {
+ message.nodeCount = reader.int32();
+ break;
+ }
+ case 4: {
+ message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.airflowUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnvironmentConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EnvironmentConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EnvironmentConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster"))
+ if (!$util.isString(message.gkeCluster))
+ return "gkeCluster: string expected";
+ if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix"))
+ if (!$util.isString(message.dagGcsPrefix))
+ return "dagGcsPrefix: string expected";
+ if (message.nodeCount != null && message.hasOwnProperty("nodeCount"))
+ if (!$util.isInteger(message.nodeCount))
+ return "nodeCount: integer expected";
+ if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify(message.softwareConfig);
+ if (error)
+ return "softwareConfig." + error;
+ }
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.verify(message.nodeConfig);
+ if (error)
+ return "nodeConfig." + error;
+ }
+ if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify(message.privateEnvironmentConfig);
+ if (error)
+ return "privateEnvironmentConfig." + error;
+ }
+ if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify(message.webServerNetworkAccessControl);
+ if (error)
+ return "webServerNetworkAccessControl." + error;
+ }
+ if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify(message.databaseConfig);
+ if (error)
+ return "databaseConfig." + error;
+ }
+ if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify(message.webServerConfig);
+ if (error)
+ return "webServerConfig." + error;
+ }
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify(message.encryptionConfig);
+ if (error)
+ return "encryptionConfig." + error;
+ }
+ if (message.airflowUri != null && message.hasOwnProperty("airflowUri"))
+ if (!$util.isString(message.airflowUri))
+ return "airflowUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} EnvironmentConfig
+ */
+ EnvironmentConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig();
+ if (object.gkeCluster != null)
+ message.gkeCluster = String(object.gkeCluster);
+ if (object.dagGcsPrefix != null)
+ message.dagGcsPrefix = String(object.dagGcsPrefix);
+ if (object.nodeCount != null)
+ message.nodeCount = object.nodeCount | 0;
+ if (object.softwareConfig != null) {
+ if (typeof object.softwareConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.softwareConfig: object expected");
+ message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.fromObject(object.softwareConfig);
+ }
+ if (object.nodeConfig != null) {
+ if (typeof object.nodeConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.nodeConfig: object expected");
+ message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.fromObject(object.nodeConfig);
+ }
+ if (object.privateEnvironmentConfig != null) {
+ if (typeof object.privateEnvironmentConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.privateEnvironmentConfig: object expected");
+ message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.fromObject(object.privateEnvironmentConfig);
+ }
+ if (object.webServerNetworkAccessControl != null) {
+ if (typeof object.webServerNetworkAccessControl !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.webServerNetworkAccessControl: object expected");
+ message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.fromObject(object.webServerNetworkAccessControl);
+ }
+ if (object.databaseConfig != null) {
+ if (typeof object.databaseConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.databaseConfig: object expected");
+ message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.fromObject(object.databaseConfig);
+ }
+ if (object.webServerConfig != null) {
+ if (typeof object.webServerConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.webServerConfig: object expected");
+ message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.fromObject(object.webServerConfig);
+ }
+ if (object.encryptionConfig != null) {
+ if (typeof object.encryptionConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.encryptionConfig: object expected");
+ message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.fromObject(object.encryptionConfig);
+ }
+ if (object.airflowUri != null)
+ message.airflowUri = String(object.airflowUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.EnvironmentConfig} message EnvironmentConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EnvironmentConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.gkeCluster = "";
+ object.dagGcsPrefix = "";
+ object.nodeCount = 0;
+ object.softwareConfig = null;
+ object.nodeConfig = null;
+ object.airflowUri = "";
+ object.privateEnvironmentConfig = null;
+ object.webServerNetworkAccessControl = null;
+ object.databaseConfig = null;
+ object.webServerConfig = null;
+ object.encryptionConfig = null;
+ }
+ if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster"))
+ object.gkeCluster = message.gkeCluster;
+ if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix"))
+ object.dagGcsPrefix = message.dagGcsPrefix;
+ if (message.nodeCount != null && message.hasOwnProperty("nodeCount"))
+ object.nodeCount = message.nodeCount;
+ if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig"))
+ object.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.toObject(message.softwareConfig, options);
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig"))
+ object.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1.NodeConfig.toObject(message.nodeConfig, options);
+ if (message.airflowUri != null && message.hasOwnProperty("airflowUri"))
+ object.airflowUri = message.airflowUri;
+ if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig"))
+ object.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.toObject(message.privateEnvironmentConfig, options);
+ if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl"))
+ object.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.toObject(message.webServerNetworkAccessControl, options);
+ if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig"))
+ object.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig.toObject(message.databaseConfig, options);
+ if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig"))
+ object.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig.toObject(message.webServerConfig, options);
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
+ object.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this EnvironmentConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EnvironmentConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EnvironmentConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.EnvironmentConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.EnvironmentConfig";
+ };
+
+ return EnvironmentConfig;
+ })();
+
+ v1.WebServerNetworkAccessControl = (function() {
+
+ /**
+ * Properties of a WebServerNetworkAccessControl.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IWebServerNetworkAccessControl
+ * @property {Array.|null} [allowedIpRanges] WebServerNetworkAccessControl allowedIpRanges
+ */
+
+ /**
+ * Constructs a new WebServerNetworkAccessControl.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a WebServerNetworkAccessControl.
+ * @implements IWebServerNetworkAccessControl
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl=} [properties] Properties to set
+ */
+ function WebServerNetworkAccessControl(properties) {
+ this.allowedIpRanges = [];
+ 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]];
+ }
+
+ /**
+ * WebServerNetworkAccessControl allowedIpRanges.
+ * @member {Array.} allowedIpRanges
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @instance
+ */
+ WebServerNetworkAccessControl.prototype.allowedIpRanges = $util.emptyArray;
+
+ /**
+ * Creates a new WebServerNetworkAccessControl instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl instance
+ */
+ WebServerNetworkAccessControl.create = function create(properties) {
+ return new WebServerNetworkAccessControl(properties);
+ };
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerNetworkAccessControl.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.allowedIpRanges != null && message.allowedIpRanges.length)
+ for (var i = 0; i < message.allowedIpRanges.length; ++i)
+ $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.encode(message.allowedIpRanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerNetworkAccessControl.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerNetworkAccessControl.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.orchestration.airflow.service.v1.WebServerNetworkAccessControl();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.allowedIpRanges && message.allowedIpRanges.length))
+ message.allowedIpRanges = [];
+ message.allowedIpRanges.push($root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerNetworkAccessControl.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WebServerNetworkAccessControl message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WebServerNetworkAccessControl.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.allowedIpRanges != null && message.hasOwnProperty("allowedIpRanges")) {
+ if (!Array.isArray(message.allowedIpRanges))
+ return "allowedIpRanges: array expected";
+ for (var i = 0; i < message.allowedIpRanges.length; ++i) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify(message.allowedIpRanges[i]);
+ if (error)
+ return "allowedIpRanges." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} WebServerNetworkAccessControl
+ */
+ WebServerNetworkAccessControl.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl();
+ if (object.allowedIpRanges) {
+ if (!Array.isArray(object.allowedIpRanges))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.allowedIpRanges: array expected");
+ message.allowedIpRanges = [];
+ for (var i = 0; i < object.allowedIpRanges.length; ++i) {
+ if (typeof object.allowedIpRanges[i] !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.allowedIpRanges: object expected");
+ message.allowedIpRanges[i] = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.fromObject(object.allowedIpRanges[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl} message WebServerNetworkAccessControl
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WebServerNetworkAccessControl.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.allowedIpRanges = [];
+ if (message.allowedIpRanges && message.allowedIpRanges.length) {
+ object.allowedIpRanges = [];
+ for (var j = 0; j < message.allowedIpRanges.length; ++j)
+ object.allowedIpRanges[j] = $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.toObject(message.allowedIpRanges[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this WebServerNetworkAccessControl to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WebServerNetworkAccessControl.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WebServerNetworkAccessControl
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WebServerNetworkAccessControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl";
+ };
+
+ WebServerNetworkAccessControl.AllowedIpRange = (function() {
+
+ /**
+ * Properties of an AllowedIpRange.
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @interface IAllowedIpRange
+ * @property {string|null} [value] AllowedIpRange value
+ * @property {string|null} [description] AllowedIpRange description
+ */
+
+ /**
+ * Constructs a new AllowedIpRange.
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl
+ * @classdesc Represents an AllowedIpRange.
+ * @implements IAllowedIpRange
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set
+ */
+ function AllowedIpRange(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]];
+ }
+
+ /**
+ * AllowedIpRange value.
+ * @member {string} value
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @instance
+ */
+ AllowedIpRange.prototype.value = "";
+
+ /**
+ * AllowedIpRange description.
+ * @member {string} description
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @instance
+ */
+ AllowedIpRange.prototype.description = "";
+
+ /**
+ * Creates a new AllowedIpRange instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange instance
+ */
+ AllowedIpRange.create = function create(properties) {
+ return new AllowedIpRange(properties);
+ };
+
+ /**
+ * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AllowedIpRange.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AllowedIpRange.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AllowedIpRange.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.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.value = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AllowedIpRange.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AllowedIpRange message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AllowedIpRange.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isString(message.value))
+ return "value: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AllowedIpRange message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange
+ */
+ AllowedIpRange.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange();
+ if (object.value != null)
+ message.value = String(object.value);
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange} message AllowedIpRange
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AllowedIpRange.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.value = "";
+ object.description = "";
+ }
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ return object;
+ };
+
+ /**
+ * Converts this AllowedIpRange to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AllowedIpRange.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AllowedIpRange
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AllowedIpRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange";
+ };
+
+ return AllowedIpRange;
+ })();
+
+ return WebServerNetworkAccessControl;
+ })();
+
+ v1.DatabaseConfig = (function() {
+
+ /**
+ * Properties of a DatabaseConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IDatabaseConfig
+ * @property {string|null} [machineType] DatabaseConfig machineType
+ */
+
+ /**
+ * Constructs a new DatabaseConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a DatabaseConfig.
+ * @implements IDatabaseConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig=} [properties] Properties to set
+ */
+ function DatabaseConfig(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]];
+ }
+
+ /**
+ * DatabaseConfig machineType.
+ * @member {string} machineType
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @instance
+ */
+ DatabaseConfig.prototype.machineType = "";
+
+ /**
+ * Creates a new DatabaseConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig instance
+ */
+ DatabaseConfig.create = function create(properties) {
+ return new DatabaseConfig(properties);
+ };
+
+ /**
+ * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig} message DatabaseConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.DatabaseConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IDatabaseConfig} message DatabaseConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseConfig.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.orchestration.airflow.service.v1.DatabaseConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.machineType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatabaseConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatabaseConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ if (!$util.isString(message.machineType))
+ return "machineType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} DatabaseConfig
+ */
+ DatabaseConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.DatabaseConfig();
+ if (object.machineType != null)
+ message.machineType = String(object.machineType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.DatabaseConfig} message DatabaseConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatabaseConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.machineType = "";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ object.machineType = message.machineType;
+ return object;
+ };
+
+ /**
+ * Converts this DatabaseConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatabaseConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatabaseConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.DatabaseConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatabaseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.DatabaseConfig";
+ };
+
+ return DatabaseConfig;
+ })();
+
+ v1.WebServerConfig = (function() {
+
+ /**
+ * Properties of a WebServerConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IWebServerConfig
+ * @property {string|null} [machineType] WebServerConfig machineType
+ */
+
+ /**
+ * Constructs a new WebServerConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a WebServerConfig.
+ * @implements IWebServerConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig=} [properties] Properties to set
+ */
+ function WebServerConfig(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]];
+ }
+
+ /**
+ * WebServerConfig machineType.
+ * @member {string} machineType
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @instance
+ */
+ WebServerConfig.prototype.machineType = "";
+
+ /**
+ * Creates a new WebServerConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig instance
+ */
+ WebServerConfig.create = function create(properties) {
+ return new WebServerConfig(properties);
+ };
+
+ /**
+ * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig} message WebServerConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.WebServerConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IWebServerConfig} message WebServerConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerConfig.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.orchestration.airflow.service.v1.WebServerConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.machineType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WebServerConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WebServerConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ if (!$util.isString(message.machineType))
+ return "machineType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.WebServerConfig} WebServerConfig
+ */
+ WebServerConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.WebServerConfig();
+ if (object.machineType != null)
+ message.machineType = String(object.machineType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.WebServerConfig} message WebServerConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WebServerConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.machineType = "";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ object.machineType = message.machineType;
+ return object;
+ };
+
+ /**
+ * Converts this WebServerConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WebServerConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WebServerConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.WebServerConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WebServerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.WebServerConfig";
+ };
+
+ return WebServerConfig;
+ })();
+
+ v1.EncryptionConfig = (function() {
+
+ /**
+ * Properties of an EncryptionConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IEncryptionConfig
+ * @property {string|null} [kmsKeyName] EncryptionConfig kmsKeyName
+ */
+
+ /**
+ * Constructs a new EncryptionConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an EncryptionConfig.
+ * @implements IEncryptionConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig=} [properties] Properties to set
+ */
+ function EncryptionConfig(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]];
+ }
+
+ /**
+ * EncryptionConfig kmsKeyName.
+ * @member {string} kmsKeyName
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @instance
+ */
+ EncryptionConfig.prototype.kmsKeyName = "";
+
+ /**
+ * Creates a new EncryptionConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig instance
+ */
+ EncryptionConfig.create = function create(properties) {
+ return new EncryptionConfig(properties);
+ };
+
+ /**
+ * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig} message EncryptionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kmsKeyName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.EncryptionConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEncryptionConfig} message EncryptionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfig.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.orchestration.airflow.service.v1.EncryptionConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.kmsKeyName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EncryptionConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EncryptionConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ if (!$util.isString(message.kmsKeyName))
+ return "kmsKeyName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} EncryptionConfig
+ */
+ EncryptionConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.EncryptionConfig();
+ if (object.kmsKeyName != null)
+ message.kmsKeyName = String(object.kmsKeyName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.EncryptionConfig} message EncryptionConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EncryptionConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.kmsKeyName = "";
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ object.kmsKeyName = message.kmsKeyName;
+ return object;
+ };
+
+ /**
+ * Converts this EncryptionConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EncryptionConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EncryptionConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.EncryptionConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.EncryptionConfig";
+ };
+
+ return EncryptionConfig;
+ })();
+
+ v1.SoftwareConfig = (function() {
+
+ /**
+ * Properties of a SoftwareConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface ISoftwareConfig
+ * @property {string|null} [imageVersion] SoftwareConfig imageVersion
+ * @property {Object.|null} [airflowConfigOverrides] SoftwareConfig airflowConfigOverrides
+ * @property {Object.|null} [pypiPackages] SoftwareConfig pypiPackages
+ * @property {Object.|null} [envVariables] SoftwareConfig envVariables
+ * @property {string|null} [pythonVersion] SoftwareConfig pythonVersion
+ */
+
+ /**
+ * Constructs a new SoftwareConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a SoftwareConfig.
+ * @implements ISoftwareConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig=} [properties] Properties to set
+ */
+ function SoftwareConfig(properties) {
+ this.airflowConfigOverrides = {};
+ this.pypiPackages = {};
+ this.envVariables = {};
+ 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]];
+ }
+
+ /**
+ * SoftwareConfig imageVersion.
+ * @member {string} imageVersion
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.imageVersion = "";
+
+ /**
+ * SoftwareConfig airflowConfigOverrides.
+ * @member {Object.} airflowConfigOverrides
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.airflowConfigOverrides = $util.emptyObject;
+
+ /**
+ * SoftwareConfig pypiPackages.
+ * @member {Object.} pypiPackages
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.pypiPackages = $util.emptyObject;
+
+ /**
+ * SoftwareConfig envVariables.
+ * @member {Object.} envVariables
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.envVariables = $util.emptyObject;
+
+ /**
+ * SoftwareConfig pythonVersion.
+ * @member {string} pythonVersion
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.pythonVersion = "";
+
+ /**
+ * Creates a new SoftwareConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig instance
+ */
+ SoftwareConfig.create = function create(properties) {
+ return new SoftwareConfig(properties);
+ };
+
+ /**
+ * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig} message SoftwareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SoftwareConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.imageVersion != null && Object.hasOwnProperty.call(message, "imageVersion"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageVersion);
+ if (message.airflowConfigOverrides != null && Object.hasOwnProperty.call(message, "airflowConfigOverrides"))
+ for (var keys = Object.keys(message.airflowConfigOverrides), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.airflowConfigOverrides[keys[i]]).ldelim();
+ if (message.pypiPackages != null && Object.hasOwnProperty.call(message, "pypiPackages"))
+ for (var keys = Object.keys(message.pypiPackages), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.pypiPackages[keys[i]]).ldelim();
+ if (message.envVariables != null && Object.hasOwnProperty.call(message, "envVariables"))
+ for (var keys = Object.keys(message.envVariables), 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.envVariables[keys[i]]).ldelim();
+ if (message.pythonVersion != null && Object.hasOwnProperty.call(message, "pythonVersion"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.pythonVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.SoftwareConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ISoftwareConfig} message SoftwareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SoftwareConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SoftwareConfig.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.orchestration.airflow.service.v1.SoftwareConfig(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.imageVersion = reader.string();
+ break;
+ }
+ case 2: {
+ if (message.airflowConfigOverrides === $util.emptyObject)
+ message.airflowConfigOverrides = {};
+ 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.airflowConfigOverrides[key] = value;
+ break;
+ }
+ case 3: {
+ if (message.pypiPackages === $util.emptyObject)
+ message.pypiPackages = {};
+ 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.pypiPackages[key] = value;
+ break;
+ }
+ case 4: {
+ if (message.envVariables === $util.emptyObject)
+ message.envVariables = {};
+ 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.envVariables[key] = value;
+ break;
+ }
+ case 6: {
+ message.pythonVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SoftwareConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SoftwareConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SoftwareConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.imageVersion != null && message.hasOwnProperty("imageVersion"))
+ if (!$util.isString(message.imageVersion))
+ return "imageVersion: string expected";
+ if (message.airflowConfigOverrides != null && message.hasOwnProperty("airflowConfigOverrides")) {
+ if (!$util.isObject(message.airflowConfigOverrides))
+ return "airflowConfigOverrides: object expected";
+ var key = Object.keys(message.airflowConfigOverrides);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.airflowConfigOverrides[key[i]]))
+ return "airflowConfigOverrides: string{k:string} expected";
+ }
+ if (message.pypiPackages != null && message.hasOwnProperty("pypiPackages")) {
+ if (!$util.isObject(message.pypiPackages))
+ return "pypiPackages: object expected";
+ var key = Object.keys(message.pypiPackages);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.pypiPackages[key[i]]))
+ return "pypiPackages: string{k:string} expected";
+ }
+ if (message.envVariables != null && message.hasOwnProperty("envVariables")) {
+ if (!$util.isObject(message.envVariables))
+ return "envVariables: object expected";
+ var key = Object.keys(message.envVariables);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.envVariables[key[i]]))
+ return "envVariables: string{k:string} expected";
+ }
+ if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion"))
+ if (!$util.isString(message.pythonVersion))
+ return "pythonVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} SoftwareConfig
+ */
+ SoftwareConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.SoftwareConfig();
+ if (object.imageVersion != null)
+ message.imageVersion = String(object.imageVersion);
+ if (object.airflowConfigOverrides) {
+ if (typeof object.airflowConfigOverrides !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.airflowConfigOverrides: object expected");
+ message.airflowConfigOverrides = {};
+ for (var keys = Object.keys(object.airflowConfigOverrides), i = 0; i < keys.length; ++i)
+ message.airflowConfigOverrides[keys[i]] = String(object.airflowConfigOverrides[keys[i]]);
+ }
+ if (object.pypiPackages) {
+ if (typeof object.pypiPackages !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.pypiPackages: object expected");
+ message.pypiPackages = {};
+ for (var keys = Object.keys(object.pypiPackages), i = 0; i < keys.length; ++i)
+ message.pypiPackages[keys[i]] = String(object.pypiPackages[keys[i]]);
+ }
+ if (object.envVariables) {
+ if (typeof object.envVariables !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.SoftwareConfig.envVariables: object expected");
+ message.envVariables = {};
+ for (var keys = Object.keys(object.envVariables), i = 0; i < keys.length; ++i)
+ message.envVariables[keys[i]] = String(object.envVariables[keys[i]]);
+ }
+ if (object.pythonVersion != null)
+ message.pythonVersion = String(object.pythonVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.SoftwareConfig} message SoftwareConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SoftwareConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults) {
+ object.airflowConfigOverrides = {};
+ object.pypiPackages = {};
+ object.envVariables = {};
+ }
+ if (options.defaults) {
+ object.imageVersion = "";
+ object.pythonVersion = "";
+ }
+ if (message.imageVersion != null && message.hasOwnProperty("imageVersion"))
+ object.imageVersion = message.imageVersion;
+ var keys2;
+ if (message.airflowConfigOverrides && (keys2 = Object.keys(message.airflowConfigOverrides)).length) {
+ object.airflowConfigOverrides = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.airflowConfigOverrides[keys2[j]] = message.airflowConfigOverrides[keys2[j]];
+ }
+ if (message.pypiPackages && (keys2 = Object.keys(message.pypiPackages)).length) {
+ object.pypiPackages = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.pypiPackages[keys2[j]] = message.pypiPackages[keys2[j]];
+ }
+ if (message.envVariables && (keys2 = Object.keys(message.envVariables)).length) {
+ object.envVariables = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.envVariables[keys2[j]] = message.envVariables[keys2[j]];
+ }
+ if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion"))
+ object.pythonVersion = message.pythonVersion;
+ return object;
+ };
+
+ /**
+ * Converts this SoftwareConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SoftwareConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SoftwareConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.SoftwareConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SoftwareConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.SoftwareConfig";
+ };
+
+ return SoftwareConfig;
+ })();
+
+ v1.IPAllocationPolicy = (function() {
+
+ /**
+ * Properties of a IPAllocationPolicy.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IIPAllocationPolicy
+ * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases
+ * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName
+ * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock
+ * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName
+ * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock
+ */
+
+ /**
+ * Constructs a new IPAllocationPolicy.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a IPAllocationPolicy.
+ * @implements IIPAllocationPolicy
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy=} [properties] Properties to set
+ */
+ function IPAllocationPolicy(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]];
+ }
+
+ /**
+ * IPAllocationPolicy useIpAliases.
+ * @member {boolean} useIpAliases
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.useIpAliases = false;
+
+ /**
+ * IPAllocationPolicy clusterSecondaryRangeName.
+ * @member {string|null|undefined} clusterSecondaryRangeName
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.clusterSecondaryRangeName = null;
+
+ /**
+ * IPAllocationPolicy clusterIpv4CidrBlock.
+ * @member {string|null|undefined} clusterIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.clusterIpv4CidrBlock = null;
+
+ /**
+ * IPAllocationPolicy servicesSecondaryRangeName.
+ * @member {string|null|undefined} servicesSecondaryRangeName
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.servicesSecondaryRangeName = null;
+
+ /**
+ * IPAllocationPolicy servicesIpv4CidrBlock.
+ * @member {string|null|undefined} servicesIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.servicesIpv4CidrBlock = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * IPAllocationPolicy clusterIpAllocation.
+ * @member {"clusterSecondaryRangeName"|"clusterIpv4CidrBlock"|undefined} clusterIpAllocation
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ */
+ Object.defineProperty(IPAllocationPolicy.prototype, "clusterIpAllocation", {
+ get: $util.oneOfGetter($oneOfFields = ["clusterSecondaryRangeName", "clusterIpv4CidrBlock"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * IPAllocationPolicy servicesIpAllocation.
+ * @member {"servicesSecondaryRangeName"|"servicesIpv4CidrBlock"|undefined} servicesIpAllocation
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ */
+ Object.defineProperty(IPAllocationPolicy.prototype, "servicesIpAllocation", {
+ get: $util.oneOfGetter($oneOfFields = ["servicesSecondaryRangeName", "servicesIpv4CidrBlock"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new IPAllocationPolicy instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy instance
+ */
+ IPAllocationPolicy.create = function create(properties) {
+ return new IPAllocationPolicy(properties);
+ };
+
+ /**
+ * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IPAllocationPolicy.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases);
+ if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterSecondaryRangeName);
+ if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.servicesSecondaryRangeName);
+ if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4CidrBlock);
+ if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.servicesIpv4CidrBlock);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IPAllocationPolicy.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.orchestration.airflow.service.v1.IPAllocationPolicy();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.useIpAliases = reader.bool();
+ break;
+ }
+ case 2: {
+ message.clusterSecondaryRangeName = reader.string();
+ break;
+ }
+ case 4: {
+ message.clusterIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 3: {
+ message.servicesSecondaryRangeName = reader.string();
+ break;
+ }
+ case 5: {
+ message.servicesIpv4CidrBlock = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a IPAllocationPolicy message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IPAllocationPolicy.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
+ if (typeof message.useIpAliases !== "boolean")
+ return "useIpAliases: boolean expected";
+ if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) {
+ properties.clusterIpAllocation = 1;
+ if (!$util.isString(message.clusterSecondaryRangeName))
+ return "clusterSecondaryRangeName: string expected";
+ }
+ if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) {
+ if (properties.clusterIpAllocation === 1)
+ return "clusterIpAllocation: multiple values";
+ properties.clusterIpAllocation = 1;
+ if (!$util.isString(message.clusterIpv4CidrBlock))
+ return "clusterIpv4CidrBlock: string expected";
+ }
+ if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) {
+ properties.servicesIpAllocation = 1;
+ if (!$util.isString(message.servicesSecondaryRangeName))
+ return "servicesSecondaryRangeName: string expected";
+ }
+ if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) {
+ if (properties.servicesIpAllocation === 1)
+ return "servicesIpAllocation: multiple values";
+ properties.servicesIpAllocation = 1;
+ if (!$util.isString(message.servicesIpv4CidrBlock))
+ return "servicesIpv4CidrBlock: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} IPAllocationPolicy
+ */
+ IPAllocationPolicy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy();
+ if (object.useIpAliases != null)
+ message.useIpAliases = Boolean(object.useIpAliases);
+ if (object.clusterSecondaryRangeName != null)
+ message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName);
+ if (object.clusterIpv4CidrBlock != null)
+ message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock);
+ if (object.servicesSecondaryRangeName != null)
+ message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName);
+ if (object.servicesIpv4CidrBlock != null)
+ message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy} message IPAllocationPolicy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IPAllocationPolicy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.useIpAliases = false;
+ if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
+ object.useIpAliases = message.useIpAliases;
+ if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) {
+ object.clusterSecondaryRangeName = message.clusterSecondaryRangeName;
+ if (options.oneofs)
+ object.clusterIpAllocation = "clusterSecondaryRangeName";
+ }
+ if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) {
+ object.servicesSecondaryRangeName = message.servicesSecondaryRangeName;
+ if (options.oneofs)
+ object.servicesIpAllocation = "servicesSecondaryRangeName";
+ }
+ if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) {
+ object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock;
+ if (options.oneofs)
+ object.clusterIpAllocation = "clusterIpv4CidrBlock";
+ }
+ if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) {
+ object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock;
+ if (options.oneofs)
+ object.servicesIpAllocation = "servicesIpv4CidrBlock";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this IPAllocationPolicy to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IPAllocationPolicy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IPAllocationPolicy
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IPAllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy";
+ };
+
+ return IPAllocationPolicy;
+ })();
+
+ v1.NodeConfig = (function() {
+
+ /**
+ * Properties of a NodeConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface INodeConfig
+ * @property {string|null} [location] NodeConfig location
+ * @property {string|null} [machineType] NodeConfig machineType
+ * @property {string|null} [network] NodeConfig network
+ * @property {string|null} [subnetwork] NodeConfig subnetwork
+ * @property {number|null} [diskSizeGb] NodeConfig diskSizeGb
+ * @property {Array.|null} [oauthScopes] NodeConfig oauthScopes
+ * @property {string|null} [serviceAccount] NodeConfig serviceAccount
+ * @property {Array.|null} [tags] NodeConfig tags
+ * @property {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null} [ipAllocationPolicy] NodeConfig ipAllocationPolicy
+ */
+
+ /**
+ * Constructs a new NodeConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a NodeConfig.
+ * @implements INodeConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig=} [properties] Properties to set
+ */
+ function NodeConfig(properties) {
+ this.oauthScopes = [];
+ this.tags = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * NodeConfig location.
+ * @member {string} location
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.location = "";
+
+ /**
+ * NodeConfig machineType.
+ * @member {string} machineType
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.machineType = "";
+
+ /**
+ * NodeConfig network.
+ * @member {string} network
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.network = "";
+
+ /**
+ * NodeConfig subnetwork.
+ * @member {string} subnetwork
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.subnetwork = "";
+
+ /**
+ * NodeConfig diskSizeGb.
+ * @member {number} diskSizeGb
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.diskSizeGb = 0;
+
+ /**
+ * NodeConfig oauthScopes.
+ * @member {Array.} oauthScopes
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.oauthScopes = $util.emptyArray;
+
+ /**
+ * NodeConfig serviceAccount.
+ * @member {string} serviceAccount
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.serviceAccount = "";
+
+ /**
+ * NodeConfig tags.
+ * @member {Array.} tags
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.tags = $util.emptyArray;
+
+ /**
+ * NodeConfig ipAllocationPolicy.
+ * @member {google.cloud.orchestration.airflow.service.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.ipAllocationPolicy = null;
+
+ /**
+ * Creates a new NodeConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig instance
+ */
+ NodeConfig.create = function create(properties) {
+ return new NodeConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig} message NodeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.location);
+ if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType);
+ if (message.network != null && Object.hasOwnProperty.call(message, "network"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.network);
+ if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.subnetwork);
+ if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.diskSizeGb);
+ if (message.oauthScopes != null && message.oauthScopes.length)
+ for (var i = 0; i < message.oauthScopes.length; ++i)
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.oauthScopes[i]);
+ if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.serviceAccount);
+ if (message.tags != null && message.tags.length)
+ for (var i = 0; i < message.tags.length; ++i)
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]);
+ if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy"))
+ $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.NodeConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.INodeConfig} message NodeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.NodeConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.location = reader.string();
+ break;
+ }
+ case 2: {
+ message.machineType = reader.string();
+ break;
+ }
+ case 3: {
+ message.network = reader.string();
+ break;
+ }
+ case 4: {
+ message.subnetwork = reader.string();
+ break;
+ }
+ case 5: {
+ message.diskSizeGb = reader.int32();
+ break;
+ }
+ case 6: {
+ if (!(message.oauthScopes && message.oauthScopes.length))
+ message.oauthScopes = [];
+ message.oauthScopes.push(reader.string());
+ break;
+ }
+ case 7: {
+ message.serviceAccount = reader.string();
+ break;
+ }
+ case 8: {
+ if (!(message.tags && message.tags.length))
+ message.tags = [];
+ message.tags.push(reader.string());
+ break;
+ }
+ case 9: {
+ message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ if (!$util.isString(message.machineType))
+ return "machineType: string expected";
+ if (message.network != null && message.hasOwnProperty("network"))
+ if (!$util.isString(message.network))
+ return "network: string expected";
+ if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
+ if (!$util.isString(message.subnetwork))
+ return "subnetwork: string expected";
+ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb"))
+ if (!$util.isInteger(message.diskSizeGb))
+ return "diskSizeGb: integer expected";
+ if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) {
+ if (!Array.isArray(message.oauthScopes))
+ return "oauthScopes: array expected";
+ for (var i = 0; i < message.oauthScopes.length; ++i)
+ if (!$util.isString(message.oauthScopes[i]))
+ return "oauthScopes: string[] expected";
+ }
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ if (!$util.isString(message.serviceAccount))
+ return "serviceAccount: string expected";
+ if (message.tags != null && message.hasOwnProperty("tags")) {
+ if (!Array.isArray(message.tags))
+ return "tags: array expected";
+ for (var i = 0; i < message.tags.length; ++i)
+ if (!$util.isString(message.tags[i]))
+ return "tags: string[] expected";
+ }
+ if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.verify(message.ipAllocationPolicy);
+ if (error)
+ return "ipAllocationPolicy." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.NodeConfig} NodeConfig
+ */
+ NodeConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.NodeConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.NodeConfig();
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.machineType != null)
+ message.machineType = String(object.machineType);
+ if (object.network != null)
+ message.network = String(object.network);
+ if (object.subnetwork != null)
+ message.subnetwork = String(object.subnetwork);
+ if (object.diskSizeGb != null)
+ message.diskSizeGb = object.diskSizeGb | 0;
+ if (object.oauthScopes) {
+ if (!Array.isArray(object.oauthScopes))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.oauthScopes: array expected");
+ message.oauthScopes = [];
+ for (var i = 0; i < object.oauthScopes.length; ++i)
+ message.oauthScopes[i] = String(object.oauthScopes[i]);
+ }
+ if (object.serviceAccount != null)
+ message.serviceAccount = String(object.serviceAccount);
+ if (object.tags) {
+ if (!Array.isArray(object.tags))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.tags: array expected");
+ message.tags = [];
+ for (var i = 0; i < object.tags.length; ++i)
+ message.tags[i] = String(object.tags[i]);
+ }
+ if (object.ipAllocationPolicy != null) {
+ if (typeof object.ipAllocationPolicy !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.NodeConfig.ipAllocationPolicy: object expected");
+ message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.NodeConfig} message NodeConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.oauthScopes = [];
+ object.tags = [];
+ }
+ if (options.defaults) {
+ object.location = "";
+ object.machineType = "";
+ object.network = "";
+ object.subnetwork = "";
+ object.diskSizeGb = 0;
+ object.serviceAccount = "";
+ object.ipAllocationPolicy = null;
+ }
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ object.machineType = message.machineType;
+ if (message.network != null && message.hasOwnProperty("network"))
+ object.network = message.network;
+ if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
+ object.subnetwork = message.subnetwork;
+ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb"))
+ object.diskSizeGb = message.diskSizeGb;
+ if (message.oauthScopes && message.oauthScopes.length) {
+ object.oauthScopes = [];
+ for (var j = 0; j < message.oauthScopes.length; ++j)
+ object.oauthScopes[j] = message.oauthScopes[j];
+ }
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ object.serviceAccount = message.serviceAccount;
+ if (message.tags && message.tags.length) {
+ object.tags = [];
+ for (var j = 0; j < message.tags.length; ++j)
+ object.tags[j] = message.tags[j];
+ }
+ if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy"))
+ object.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options);
+ return object;
+ };
+
+ /**
+ * Converts this NodeConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.NodeConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.NodeConfig";
+ };
+
+ return NodeConfig;
+ })();
+
+ v1.PrivateClusterConfig = (function() {
+
+ /**
+ * Properties of a PrivateClusterConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IPrivateClusterConfig
+ * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint
+ * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock
+ * @property {string|null} [masterIpv4ReservedRange] PrivateClusterConfig masterIpv4ReservedRange
+ */
+
+ /**
+ * Constructs a new PrivateClusterConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a PrivateClusterConfig.
+ * @implements IPrivateClusterConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig=} [properties] Properties to set
+ */
+ function PrivateClusterConfig(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]];
+ }
+
+ /**
+ * PrivateClusterConfig enablePrivateEndpoint.
+ * @member {boolean} enablePrivateEndpoint
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.enablePrivateEndpoint = false;
+
+ /**
+ * PrivateClusterConfig masterIpv4CidrBlock.
+ * @member {string} masterIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.masterIpv4CidrBlock = "";
+
+ /**
+ * PrivateClusterConfig masterIpv4ReservedRange.
+ * @member {string} masterIpv4ReservedRange
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.masterIpv4ReservedRange = "";
+
+ /**
+ * Creates a new PrivateClusterConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig instance
+ */
+ PrivateClusterConfig.create = function create(properties) {
+ return new PrivateClusterConfig(properties);
+ };
+
+ /**
+ * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateClusterConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEndpoint);
+ if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.masterIpv4CidrBlock);
+ if (message.masterIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "masterIpv4ReservedRange"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4ReservedRange);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateClusterConfig.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.orchestration.airflow.service.v1.PrivateClusterConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.enablePrivateEndpoint = reader.bool();
+ break;
+ }
+ case 2: {
+ message.masterIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 3: {
+ message.masterIpv4ReservedRange = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PrivateClusterConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PrivateClusterConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
+ if (typeof message.enablePrivateEndpoint !== "boolean")
+ return "enablePrivateEndpoint: boolean expected";
+ if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
+ if (!$util.isString(message.masterIpv4CidrBlock))
+ return "masterIpv4CidrBlock: string expected";
+ if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange"))
+ if (!$util.isString(message.masterIpv4ReservedRange))
+ return "masterIpv4ReservedRange: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} PrivateClusterConfig
+ */
+ PrivateClusterConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig();
+ if (object.enablePrivateEndpoint != null)
+ message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint);
+ if (object.masterIpv4CidrBlock != null)
+ message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock);
+ if (object.masterIpv4ReservedRange != null)
+ message.masterIpv4ReservedRange = String(object.masterIpv4ReservedRange);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig} message PrivateClusterConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PrivateClusterConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.enablePrivateEndpoint = false;
+ object.masterIpv4CidrBlock = "";
+ object.masterIpv4ReservedRange = "";
+ }
+ if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
+ object.enablePrivateEndpoint = message.enablePrivateEndpoint;
+ if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
+ object.masterIpv4CidrBlock = message.masterIpv4CidrBlock;
+ if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange"))
+ object.masterIpv4ReservedRange = message.masterIpv4ReservedRange;
+ return object;
+ };
+
+ /**
+ * Converts this PrivateClusterConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PrivateClusterConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PrivateClusterConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PrivateClusterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig";
+ };
+
+ return PrivateClusterConfig;
+ })();
+
+ v1.PrivateEnvironmentConfig = (function() {
+
+ /**
+ * Properties of a PrivateEnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IPrivateEnvironmentConfig
+ * @property {boolean|null} [enablePrivateEnvironment] PrivateEnvironmentConfig enablePrivateEnvironment
+ * @property {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null} [privateClusterConfig] PrivateEnvironmentConfig privateClusterConfig
+ * @property {string|null} [webServerIpv4CidrBlock] PrivateEnvironmentConfig webServerIpv4CidrBlock
+ * @property {string|null} [cloudSqlIpv4CidrBlock] PrivateEnvironmentConfig cloudSqlIpv4CidrBlock
+ * @property {string|null} [webServerIpv4ReservedRange] PrivateEnvironmentConfig webServerIpv4ReservedRange
+ */
+
+ /**
+ * Constructs a new PrivateEnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a PrivateEnvironmentConfig.
+ * @implements IPrivateEnvironmentConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig=} [properties] Properties to set
+ */
+ function PrivateEnvironmentConfig(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]];
+ }
+
+ /**
+ * PrivateEnvironmentConfig enablePrivateEnvironment.
+ * @member {boolean} enablePrivateEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.enablePrivateEnvironment = false;
+
+ /**
+ * PrivateEnvironmentConfig privateClusterConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.privateClusterConfig = null;
+
+ /**
+ * PrivateEnvironmentConfig webServerIpv4CidrBlock.
+ * @member {string} webServerIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.webServerIpv4CidrBlock = "";
+
+ /**
+ * PrivateEnvironmentConfig cloudSqlIpv4CidrBlock.
+ * @member {string} cloudSqlIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.cloudSqlIpv4CidrBlock = "";
+
+ /**
+ * PrivateEnvironmentConfig webServerIpv4ReservedRange.
+ * @member {string} webServerIpv4ReservedRange
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.webServerIpv4ReservedRange = "";
+
+ /**
+ * Creates a new PrivateEnvironmentConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig instance
+ */
+ PrivateEnvironmentConfig.create = function create(properties) {
+ return new PrivateEnvironmentConfig(properties);
+ };
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateEnvironmentConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enablePrivateEnvironment != null && Object.hasOwnProperty.call(message, "enablePrivateEnvironment"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEnvironment);
+ if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.webServerIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "webServerIpv4CidrBlock"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.webServerIpv4CidrBlock);
+ if (message.cloudSqlIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "cloudSqlIpv4CidrBlock"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.cloudSqlIpv4CidrBlock);
+ if (message.webServerIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "webServerIpv4ReservedRange"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.webServerIpv4ReservedRange);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateEnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateEnvironmentConfig.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.orchestration.airflow.service.v1.PrivateEnvironmentConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.enablePrivateEnvironment = reader.bool();
+ break;
+ }
+ case 2: {
+ message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.webServerIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 4: {
+ message.cloudSqlIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 5: {
+ message.webServerIpv4ReservedRange = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateEnvironmentConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PrivateEnvironmentConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PrivateEnvironmentConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment"))
+ if (typeof message.enablePrivateEnvironment !== "boolean")
+ return "enablePrivateEnvironment: boolean expected";
+ if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.verify(message.privateClusterConfig);
+ if (error)
+ return "privateClusterConfig." + error;
+ }
+ if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock"))
+ if (!$util.isString(message.webServerIpv4CidrBlock))
+ return "webServerIpv4CidrBlock: string expected";
+ if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock"))
+ if (!$util.isString(message.cloudSqlIpv4CidrBlock))
+ return "cloudSqlIpv4CidrBlock: string expected";
+ if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange"))
+ if (!$util.isString(message.webServerIpv4ReservedRange))
+ return "webServerIpv4ReservedRange: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} PrivateEnvironmentConfig
+ */
+ PrivateEnvironmentConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig();
+ if (object.enablePrivateEnvironment != null)
+ message.enablePrivateEnvironment = Boolean(object.enablePrivateEnvironment);
+ if (object.privateClusterConfig != null) {
+ if (typeof object.privateClusterConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig.privateClusterConfig: object expected");
+ message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.fromObject(object.privateClusterConfig);
+ }
+ if (object.webServerIpv4CidrBlock != null)
+ message.webServerIpv4CidrBlock = String(object.webServerIpv4CidrBlock);
+ if (object.cloudSqlIpv4CidrBlock != null)
+ message.cloudSqlIpv4CidrBlock = String(object.cloudSqlIpv4CidrBlock);
+ if (object.webServerIpv4ReservedRange != null)
+ message.webServerIpv4ReservedRange = String(object.webServerIpv4ReservedRange);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig} message PrivateEnvironmentConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PrivateEnvironmentConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.enablePrivateEnvironment = false;
+ object.privateClusterConfig = null;
+ object.webServerIpv4CidrBlock = "";
+ object.cloudSqlIpv4CidrBlock = "";
+ object.webServerIpv4ReservedRange = "";
+ }
+ if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment"))
+ object.enablePrivateEnvironment = message.enablePrivateEnvironment;
+ if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig"))
+ object.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, options);
+ if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock"))
+ object.webServerIpv4CidrBlock = message.webServerIpv4CidrBlock;
+ if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock"))
+ object.cloudSqlIpv4CidrBlock = message.cloudSqlIpv4CidrBlock;
+ if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange"))
+ object.webServerIpv4ReservedRange = message.webServerIpv4ReservedRange;
+ return object;
+ };
+
+ /**
+ * Converts this PrivateEnvironmentConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PrivateEnvironmentConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PrivateEnvironmentConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PrivateEnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig";
+ };
+
+ return PrivateEnvironmentConfig;
+ })();
+
+ v1.Environment = (function() {
+
+ /**
+ * Properties of an Environment.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IEnvironment
+ * @property {string|null} [name] Environment name
+ * @property {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null} [config] Environment config
+ * @property {string|null} [uuid] Environment uuid
+ * @property {google.cloud.orchestration.airflow.service.v1.Environment.State|null} [state] Environment state
+ * @property {google.protobuf.ITimestamp|null} [createTime] Environment createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime
+ * @property {Object.|null} [labels] Environment labels
+ */
+
+ /**
+ * Constructs a new Environment.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an Environment.
+ * @implements IEnvironment
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment=} [properties] Properties to set
+ */
+ function Environment(properties) {
+ this.labels = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Environment name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ */
+ Environment.prototype.name = "";
+
+ /**
+ * Environment config.
+ * @member {google.cloud.orchestration.airflow.service.v1.IEnvironmentConfig|null|undefined} config
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ */
+ Environment.prototype.config = null;
+
+ /**
+ * Environment uuid.
+ * @member {string} uuid
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ */
+ Environment.prototype.uuid = "";
+
+ /**
+ * Environment state.
+ * @member {google.cloud.orchestration.airflow.service.v1.Environment.State} state
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ */
+ Environment.prototype.state = 0;
+
+ /**
+ * Environment createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ */
+ Environment.prototype.createTime = null;
+
+ /**
+ * Environment updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ */
+ Environment.prototype.updateTime = null;
+
+ /**
+ * Environment labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ */
+ Environment.prototype.labels = $util.emptyObject;
+
+ /**
+ * Creates a new Environment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment instance
+ */
+ Environment.create = function create(properties) {
+ return new Environment(properties);
+ };
+
+ /**
+ * Encodes the specified Environment message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment} message Environment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Environment.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.config != null && Object.hasOwnProperty.call(message, "config"))
+ $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.uuid);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.Environment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IEnvironment} message Environment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Environment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Environment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Environment.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.orchestration.airflow.service.v1.Environment(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.uuid = reader.string();
+ break;
+ }
+ case 4: {
+ message.state = reader.int32();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Environment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Environment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Environment message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Environment.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.config != null && message.hasOwnProperty("config")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.verify(message.config);
+ if (error)
+ return "config." + error;
+ }
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
+ if (!$util.isString(message.uuid))
+ return "uuid: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Environment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.Environment} Environment
+ */
+ Environment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.Environment)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.Environment();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.config != null) {
+ if (typeof object.config !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.config: object expected");
+ message.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.fromObject(object.config);
+ }
+ if (object.uuid != null)
+ message.uuid = String(object.uuid);
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "CREATING":
+ case 1:
+ message.state = 1;
+ break;
+ case "RUNNING":
+ case 2:
+ message.state = 2;
+ break;
+ case "UPDATING":
+ case 3:
+ message.state = 3;
+ break;
+ case "DELETING":
+ case 4:
+ message.state = 4;
+ break;
+ case "ERROR":
+ case 5:
+ message.state = 5;
+ break;
+ }
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.Environment.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]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Environment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.Environment} message Environment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Environment.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.labels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.config = null;
+ object.uuid = "";
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.createTime = null;
+ object.updateTime = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.config != null && message.hasOwnProperty("config"))
+ object.config = $root.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.toObject(message.config, options);
+ if (message.uuid != null && message.hasOwnProperty("uuid"))
+ object.uuid = message.uuid;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.Environment.State[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1.Environment.State[message.state] : message.state;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Environment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Environment.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Environment
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.Environment
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.Environment";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.orchestration.airflow.service.v1.Environment.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} CREATING=1 CREATING value
+ * @property {number} RUNNING=2 RUNNING value
+ * @property {number} UPDATING=3 UPDATING value
+ * @property {number} DELETING=4 DELETING value
+ * @property {number} ERROR=5 ERROR value
+ */
+ Environment.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATING"] = 1;
+ values[valuesById[2] = "RUNNING"] = 2;
+ values[valuesById[3] = "UPDATING"] = 3;
+ values[valuesById[4] = "DELETING"] = 4;
+ values[valuesById[5] = "ERROR"] = 5;
+ return values;
+ })();
+
+ return Environment;
+ })();
+
+ v1.CheckUpgradeResponse = (function() {
+
+ /**
+ * Properties of a CheckUpgradeResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface ICheckUpgradeResponse
+ * @property {string|null} [buildLogUri] CheckUpgradeResponse buildLogUri
+ * @property {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult|null} [containsPypiModulesConflict] CheckUpgradeResponse containsPypiModulesConflict
+ * @property {string|null} [pypiConflictBuildLogExtract] CheckUpgradeResponse pypiConflictBuildLogExtract
+ * @property {string|null} [imageVersion] CheckUpgradeResponse imageVersion
+ * @property {Object.|null} [pypiDependencies] CheckUpgradeResponse pypiDependencies
+ */
+
+ /**
+ * Constructs a new CheckUpgradeResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a CheckUpgradeResponse.
+ * @implements ICheckUpgradeResponse
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse=} [properties] Properties to set
+ */
+ function CheckUpgradeResponse(properties) {
+ this.pypiDependencies = {};
+ 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]];
+ }
+
+ /**
+ * CheckUpgradeResponse buildLogUri.
+ * @member {string} buildLogUri
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @instance
+ */
+ CheckUpgradeResponse.prototype.buildLogUri = "";
+
+ /**
+ * CheckUpgradeResponse containsPypiModulesConflict.
+ * @member {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult} containsPypiModulesConflict
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @instance
+ */
+ CheckUpgradeResponse.prototype.containsPypiModulesConflict = 0;
+
+ /**
+ * CheckUpgradeResponse pypiConflictBuildLogExtract.
+ * @member {string} pypiConflictBuildLogExtract
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @instance
+ */
+ CheckUpgradeResponse.prototype.pypiConflictBuildLogExtract = "";
+
+ /**
+ * CheckUpgradeResponse imageVersion.
+ * @member {string} imageVersion
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @instance
+ */
+ CheckUpgradeResponse.prototype.imageVersion = "";
+
+ /**
+ * CheckUpgradeResponse pypiDependencies.
+ * @member {Object.} pypiDependencies
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @instance
+ */
+ CheckUpgradeResponse.prototype.pypiDependencies = $util.emptyObject;
+
+ /**
+ * Creates a new CheckUpgradeResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse instance
+ */
+ CheckUpgradeResponse.create = function create(properties) {
+ return new CheckUpgradeResponse(properties);
+ };
+
+ /**
+ * Encodes the specified CheckUpgradeResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse} message CheckUpgradeResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CheckUpgradeResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.buildLogUri != null && Object.hasOwnProperty.call(message, "buildLogUri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.buildLogUri);
+ if (message.pypiConflictBuildLogExtract != null && Object.hasOwnProperty.call(message, "pypiConflictBuildLogExtract"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pypiConflictBuildLogExtract);
+ if (message.containsPypiModulesConflict != null && Object.hasOwnProperty.call(message, "containsPypiModulesConflict"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.containsPypiModulesConflict);
+ if (message.imageVersion != null && Object.hasOwnProperty.call(message, "imageVersion"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageVersion);
+ if (message.pypiDependencies != null && Object.hasOwnProperty.call(message, "pypiDependencies"))
+ for (var keys = Object.keys(message.pypiDependencies), 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.pypiDependencies[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CheckUpgradeResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ICheckUpgradeResponse} message CheckUpgradeResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CheckUpgradeResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CheckUpgradeResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CheckUpgradeResponse.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.orchestration.airflow.service.v1.CheckUpgradeResponse(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.buildLogUri = reader.string();
+ break;
+ }
+ case 4: {
+ message.containsPypiModulesConflict = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pypiConflictBuildLogExtract = reader.string();
+ break;
+ }
+ case 5: {
+ message.imageVersion = reader.string();
+ break;
+ }
+ case 6: {
+ if (message.pypiDependencies === $util.emptyObject)
+ message.pypiDependencies = {};
+ 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.pypiDependencies[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CheckUpgradeResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CheckUpgradeResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CheckUpgradeResponse message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CheckUpgradeResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.buildLogUri != null && message.hasOwnProperty("buildLogUri"))
+ if (!$util.isString(message.buildLogUri))
+ return "buildLogUri: string expected";
+ if (message.containsPypiModulesConflict != null && message.hasOwnProperty("containsPypiModulesConflict"))
+ switch (message.containsPypiModulesConflict) {
+ default:
+ return "containsPypiModulesConflict: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.pypiConflictBuildLogExtract != null && message.hasOwnProperty("pypiConflictBuildLogExtract"))
+ if (!$util.isString(message.pypiConflictBuildLogExtract))
+ return "pypiConflictBuildLogExtract: string expected";
+ if (message.imageVersion != null && message.hasOwnProperty("imageVersion"))
+ if (!$util.isString(message.imageVersion))
+ return "imageVersion: string expected";
+ if (message.pypiDependencies != null && message.hasOwnProperty("pypiDependencies")) {
+ if (!$util.isObject(message.pypiDependencies))
+ return "pypiDependencies: object expected";
+ var key = Object.keys(message.pypiDependencies);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.pypiDependencies[key[i]]))
+ return "pypiDependencies: string{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CheckUpgradeResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} CheckUpgradeResponse
+ */
+ CheckUpgradeResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse();
+ if (object.buildLogUri != null)
+ message.buildLogUri = String(object.buildLogUri);
+ switch (object.containsPypiModulesConflict) {
+ default:
+ if (typeof object.containsPypiModulesConflict === "number") {
+ message.containsPypiModulesConflict = object.containsPypiModulesConflict;
+ break;
+ }
+ break;
+ case "CONFLICT_RESULT_UNSPECIFIED":
+ case 0:
+ message.containsPypiModulesConflict = 0;
+ break;
+ case "CONFLICT":
+ case 1:
+ message.containsPypiModulesConflict = 1;
+ break;
+ case "NO_CONFLICT":
+ case 2:
+ message.containsPypiModulesConflict = 2;
+ break;
+ }
+ if (object.pypiConflictBuildLogExtract != null)
+ message.pypiConflictBuildLogExtract = String(object.pypiConflictBuildLogExtract);
+ if (object.imageVersion != null)
+ message.imageVersion = String(object.imageVersion);
+ if (object.pypiDependencies) {
+ if (typeof object.pypiDependencies !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.pypiDependencies: object expected");
+ message.pypiDependencies = {};
+ for (var keys = Object.keys(object.pypiDependencies), i = 0; i < keys.length; ++i)
+ message.pypiDependencies[keys[i]] = String(object.pypiDependencies[keys[i]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CheckUpgradeResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse} message CheckUpgradeResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CheckUpgradeResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.pypiDependencies = {};
+ if (options.defaults) {
+ object.buildLogUri = "";
+ object.pypiConflictBuildLogExtract = "";
+ object.containsPypiModulesConflict = options.enums === String ? "CONFLICT_RESULT_UNSPECIFIED" : 0;
+ object.imageVersion = "";
+ }
+ if (message.buildLogUri != null && message.hasOwnProperty("buildLogUri"))
+ object.buildLogUri = message.buildLogUri;
+ if (message.pypiConflictBuildLogExtract != null && message.hasOwnProperty("pypiConflictBuildLogExtract"))
+ object.pypiConflictBuildLogExtract = message.pypiConflictBuildLogExtract;
+ if (message.containsPypiModulesConflict != null && message.hasOwnProperty("containsPypiModulesConflict"))
+ object.containsPypiModulesConflict = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult[message.containsPypiModulesConflict] === undefined ? message.containsPypiModulesConflict : $root.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult[message.containsPypiModulesConflict] : message.containsPypiModulesConflict;
+ if (message.imageVersion != null && message.hasOwnProperty("imageVersion"))
+ object.imageVersion = message.imageVersion;
+ var keys2;
+ if (message.pypiDependencies && (keys2 = Object.keys(message.pypiDependencies)).length) {
+ object.pypiDependencies = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.pypiDependencies[keys2[j]] = message.pypiDependencies[keys2[j]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CheckUpgradeResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CheckUpgradeResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CheckUpgradeResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CheckUpgradeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse";
+ };
+
+ /**
+ * ConflictResult enum.
+ * @name google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult
+ * @enum {number}
+ * @property {number} CONFLICT_RESULT_UNSPECIFIED=0 CONFLICT_RESULT_UNSPECIFIED value
+ * @property {number} CONFLICT=1 CONFLICT value
+ * @property {number} NO_CONFLICT=2 NO_CONFLICT value
+ */
+ CheckUpgradeResponse.ConflictResult = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CONFLICT_RESULT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CONFLICT"] = 1;
+ values[valuesById[2] = "NO_CONFLICT"] = 2;
+ return values;
+ })();
+
+ return CheckUpgradeResponse;
+ })();
+
+ v1.ImageVersions = (function() {
+
+ /**
+ * Constructs a new ImageVersions service.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an ImageVersions
+ * @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 ImageVersions(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ImageVersions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ImageVersions;
+
+ /**
+ * Creates new ImageVersions service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions
+ * @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 {ImageVersions} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ImageVersions.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1.ImageVersions|listImageVersions}.
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions
+ * @typedef ListImageVersionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} [response] ListImageVersionsResponse
+ */
+
+ /**
+ * Calls ListImageVersions.
+ * @function listImageVersions
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} request ListImageVersionsRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersionsCallback} callback Node-style callback called with the error, if any, and ListImageVersionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ImageVersions.prototype.listImageVersions = function listImageVersions(request, callback) {
+ return this.rpcCall(listImageVersions, $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest, $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse, request, callback);
+ }, "name", { value: "ListImageVersions" });
+
+ /**
+ * Calls ListImageVersions.
+ * @function listImageVersions
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersions
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} request ListImageVersionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ImageVersions;
+ })();
+
+ v1.ListImageVersionsRequest = (function() {
+
+ /**
+ * Properties of a ListImageVersionsRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IListImageVersionsRequest
+ * @property {string|null} [parent] ListImageVersionsRequest parent
+ * @property {number|null} [pageSize] ListImageVersionsRequest pageSize
+ * @property {string|null} [pageToken] ListImageVersionsRequest pageToken
+ * @property {boolean|null} [includePastReleases] ListImageVersionsRequest includePastReleases
+ */
+
+ /**
+ * Constructs a new ListImageVersionsRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a ListImageVersionsRequest.
+ * @implements IListImageVersionsRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest=} [properties] Properties to set
+ */
+ function ListImageVersionsRequest(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]];
+ }
+
+ /**
+ * ListImageVersionsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @instance
+ */
+ ListImageVersionsRequest.prototype.parent = "";
+
+ /**
+ * ListImageVersionsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @instance
+ */
+ ListImageVersionsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListImageVersionsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @instance
+ */
+ ListImageVersionsRequest.prototype.pageToken = "";
+
+ /**
+ * ListImageVersionsRequest includePastReleases.
+ * @member {boolean} includePastReleases
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @instance
+ */
+ ListImageVersionsRequest.prototype.includePastReleases = false;
+
+ /**
+ * Creates a new ListImageVersionsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest instance
+ */
+ ListImageVersionsRequest.create = function create(properties) {
+ return new ListImageVersionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListImageVersionsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} message ListImageVersionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListImageVersionsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.includePastReleases != null && Object.hasOwnProperty.call(message, "includePastReleases"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includePastReleases);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListImageVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsRequest} message ListImageVersionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListImageVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListImageVersionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListImageVersionsRequest.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.orchestration.airflow.service.v1.ListImageVersionsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.includePastReleases = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListImageVersionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListImageVersionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListImageVersionsRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListImageVersionsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.includePastReleases != null && message.hasOwnProperty("includePastReleases"))
+ if (typeof message.includePastReleases !== "boolean")
+ return "includePastReleases: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListImageVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} ListImageVersionsRequest
+ */
+ ListImageVersionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.includePastReleases != null)
+ message.includePastReleases = Boolean(object.includePastReleases);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListImageVersionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest} message ListImageVersionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListImageVersionsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.includePastReleases = false;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.includePastReleases != null && message.hasOwnProperty("includePastReleases"))
+ object.includePastReleases = message.includePastReleases;
+ return object;
+ };
+
+ /**
+ * Converts this ListImageVersionsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListImageVersionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListImageVersionsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListImageVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest";
+ };
+
+ return ListImageVersionsRequest;
+ })();
+
+ v1.ListImageVersionsResponse = (function() {
+
+ /**
+ * Properties of a ListImageVersionsResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IListImageVersionsResponse
+ * @property {Array.|null} [imageVersions] ListImageVersionsResponse imageVersions
+ * @property {string|null} [nextPageToken] ListImageVersionsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListImageVersionsResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents a ListImageVersionsResponse.
+ * @implements IListImageVersionsResponse
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse=} [properties] Properties to set
+ */
+ function ListImageVersionsResponse(properties) {
+ this.imageVersions = [];
+ 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]];
+ }
+
+ /**
+ * ListImageVersionsResponse imageVersions.
+ * @member {Array.} imageVersions
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @instance
+ */
+ ListImageVersionsResponse.prototype.imageVersions = $util.emptyArray;
+
+ /**
+ * ListImageVersionsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @instance
+ */
+ ListImageVersionsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListImageVersionsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse instance
+ */
+ ListImageVersionsResponse.create = function create(properties) {
+ return new ListImageVersionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListImageVersionsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse} message ListImageVersionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListImageVersionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.imageVersions != null && message.imageVersions.length)
+ for (var i = 0; i < message.imageVersions.length; ++i)
+ $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.encode(message.imageVersions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListImageVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IListImageVersionsResponse} message ListImageVersionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListImageVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListImageVersionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListImageVersionsResponse.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.orchestration.airflow.service.v1.ListImageVersionsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.imageVersions && message.imageVersions.length))
+ message.imageVersions = [];
+ message.imageVersions.push($root.google.cloud.orchestration.airflow.service.v1.ImageVersion.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListImageVersionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListImageVersionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListImageVersionsResponse message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListImageVersionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.imageVersions != null && message.hasOwnProperty("imageVersions")) {
+ if (!Array.isArray(message.imageVersions))
+ return "imageVersions: array expected";
+ for (var i = 0; i < message.imageVersions.length; ++i) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.verify(message.imageVersions[i]);
+ if (error)
+ return "imageVersions." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListImageVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} ListImageVersionsResponse
+ */
+ ListImageVersionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse();
+ if (object.imageVersions) {
+ if (!Array.isArray(object.imageVersions))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.imageVersions: array expected");
+ message.imageVersions = [];
+ for (var i = 0; i < object.imageVersions.length; ++i) {
+ if (typeof object.imageVersions[i] !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse.imageVersions: object expected");
+ message.imageVersions[i] = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.fromObject(object.imageVersions[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListImageVersionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse} message ListImageVersionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListImageVersionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.imageVersions = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.imageVersions && message.imageVersions.length) {
+ object.imageVersions = [];
+ for (var j = 0; j < message.imageVersions.length; ++j)
+ object.imageVersions[j] = $root.google.cloud.orchestration.airflow.service.v1.ImageVersion.toObject(message.imageVersions[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListImageVersionsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListImageVersionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListImageVersionsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListImageVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse";
+ };
+
+ return ListImageVersionsResponse;
+ })();
+
+ v1.ImageVersion = (function() {
+
+ /**
+ * Properties of an ImageVersion.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IImageVersion
+ * @property {string|null} [imageVersionId] ImageVersion imageVersionId
+ * @property {boolean|null} [isDefault] ImageVersion isDefault
+ * @property {Array.|null} [supportedPythonVersions] ImageVersion supportedPythonVersions
+ * @property {google.type.IDate|null} [releaseDate] ImageVersion releaseDate
+ * @property {boolean|null} [creationDisabled] ImageVersion creationDisabled
+ * @property {boolean|null} [upgradeDisabled] ImageVersion upgradeDisabled
+ */
+
+ /**
+ * Constructs a new ImageVersion.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an ImageVersion.
+ * @implements IImageVersion
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion=} [properties] Properties to set
+ */
+ function ImageVersion(properties) {
+ this.supportedPythonVersions = [];
+ 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]];
+ }
+
+ /**
+ * ImageVersion imageVersionId.
+ * @member {string} imageVersionId
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @instance
+ */
+ ImageVersion.prototype.imageVersionId = "";
+
+ /**
+ * ImageVersion isDefault.
+ * @member {boolean} isDefault
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @instance
+ */
+ ImageVersion.prototype.isDefault = false;
+
+ /**
+ * ImageVersion supportedPythonVersions.
+ * @member {Array.} supportedPythonVersions
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @instance
+ */
+ ImageVersion.prototype.supportedPythonVersions = $util.emptyArray;
+
+ /**
+ * ImageVersion releaseDate.
+ * @member {google.type.IDate|null|undefined} releaseDate
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @instance
+ */
+ ImageVersion.prototype.releaseDate = null;
+
+ /**
+ * ImageVersion creationDisabled.
+ * @member {boolean} creationDisabled
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @instance
+ */
+ ImageVersion.prototype.creationDisabled = false;
+
+ /**
+ * ImageVersion upgradeDisabled.
+ * @member {boolean} upgradeDisabled
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @instance
+ */
+ ImageVersion.prototype.upgradeDisabled = false;
+
+ /**
+ * Creates a new ImageVersion instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion instance
+ */
+ ImageVersion.create = function create(properties) {
+ return new ImageVersion(properties);
+ };
+
+ /**
+ * Encodes the specified ImageVersion message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion} message ImageVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageVersion.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.imageVersionId != null && Object.hasOwnProperty.call(message, "imageVersionId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageVersionId);
+ if (message.isDefault != null && Object.hasOwnProperty.call(message, "isDefault"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isDefault);
+ if (message.supportedPythonVersions != null && message.supportedPythonVersions.length)
+ for (var i = 0; i < message.supportedPythonVersions.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.supportedPythonVersions[i]);
+ if (message.releaseDate != null && Object.hasOwnProperty.call(message, "releaseDate"))
+ $root.google.type.Date.encode(message.releaseDate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.creationDisabled != null && Object.hasOwnProperty.call(message, "creationDisabled"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.creationDisabled);
+ if (message.upgradeDisabled != null && Object.hasOwnProperty.call(message, "upgradeDisabled"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.upgradeDisabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ImageVersion message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.ImageVersion.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IImageVersion} message ImageVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ImageVersion.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ImageVersion message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageVersion.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.orchestration.airflow.service.v1.ImageVersion();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.imageVersionId = reader.string();
+ break;
+ }
+ case 2: {
+ message.isDefault = reader.bool();
+ break;
+ }
+ case 3: {
+ if (!(message.supportedPythonVersions && message.supportedPythonVersions.length))
+ message.supportedPythonVersions = [];
+ message.supportedPythonVersions.push(reader.string());
+ break;
+ }
+ case 4: {
+ message.releaseDate = $root.google.type.Date.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.creationDisabled = reader.bool();
+ break;
+ }
+ case 6: {
+ message.upgradeDisabled = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ImageVersion message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ImageVersion.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ImageVersion message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ImageVersion.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.imageVersionId != null && message.hasOwnProperty("imageVersionId"))
+ if (!$util.isString(message.imageVersionId))
+ return "imageVersionId: string expected";
+ if (message.isDefault != null && message.hasOwnProperty("isDefault"))
+ if (typeof message.isDefault !== "boolean")
+ return "isDefault: boolean expected";
+ if (message.supportedPythonVersions != null && message.hasOwnProperty("supportedPythonVersions")) {
+ if (!Array.isArray(message.supportedPythonVersions))
+ return "supportedPythonVersions: array expected";
+ for (var i = 0; i < message.supportedPythonVersions.length; ++i)
+ if (!$util.isString(message.supportedPythonVersions[i]))
+ return "supportedPythonVersions: string[] expected";
+ }
+ if (message.releaseDate != null && message.hasOwnProperty("releaseDate")) {
+ var error = $root.google.type.Date.verify(message.releaseDate);
+ if (error)
+ return "releaseDate." + error;
+ }
+ if (message.creationDisabled != null && message.hasOwnProperty("creationDisabled"))
+ if (typeof message.creationDisabled !== "boolean")
+ return "creationDisabled: boolean expected";
+ if (message.upgradeDisabled != null && message.hasOwnProperty("upgradeDisabled"))
+ if (typeof message.upgradeDisabled !== "boolean")
+ return "upgradeDisabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an ImageVersion message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.ImageVersion} ImageVersion
+ */
+ ImageVersion.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.ImageVersion)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.ImageVersion();
+ if (object.imageVersionId != null)
+ message.imageVersionId = String(object.imageVersionId);
+ if (object.isDefault != null)
+ message.isDefault = Boolean(object.isDefault);
+ if (object.supportedPythonVersions) {
+ if (!Array.isArray(object.supportedPythonVersions))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.ImageVersion.supportedPythonVersions: array expected");
+ message.supportedPythonVersions = [];
+ for (var i = 0; i < object.supportedPythonVersions.length; ++i)
+ message.supportedPythonVersions[i] = String(object.supportedPythonVersions[i]);
+ }
+ if (object.releaseDate != null) {
+ if (typeof object.releaseDate !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.ImageVersion.releaseDate: object expected");
+ message.releaseDate = $root.google.type.Date.fromObject(object.releaseDate);
+ }
+ if (object.creationDisabled != null)
+ message.creationDisabled = Boolean(object.creationDisabled);
+ if (object.upgradeDisabled != null)
+ message.upgradeDisabled = Boolean(object.upgradeDisabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ImageVersion message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.ImageVersion} message ImageVersion
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ImageVersion.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.supportedPythonVersions = [];
+ if (options.defaults) {
+ object.imageVersionId = "";
+ object.isDefault = false;
+ object.releaseDate = null;
+ object.creationDisabled = false;
+ object.upgradeDisabled = false;
+ }
+ if (message.imageVersionId != null && message.hasOwnProperty("imageVersionId"))
+ object.imageVersionId = message.imageVersionId;
+ if (message.isDefault != null && message.hasOwnProperty("isDefault"))
+ object.isDefault = message.isDefault;
+ if (message.supportedPythonVersions && message.supportedPythonVersions.length) {
+ object.supportedPythonVersions = [];
+ for (var j = 0; j < message.supportedPythonVersions.length; ++j)
+ object.supportedPythonVersions[j] = message.supportedPythonVersions[j];
+ }
+ if (message.releaseDate != null && message.hasOwnProperty("releaseDate"))
+ object.releaseDate = $root.google.type.Date.toObject(message.releaseDate, options);
+ if (message.creationDisabled != null && message.hasOwnProperty("creationDisabled"))
+ object.creationDisabled = message.creationDisabled;
+ if (message.upgradeDisabled != null && message.hasOwnProperty("upgradeDisabled"))
+ object.upgradeDisabled = message.upgradeDisabled;
+ return object;
+ };
+
+ /**
+ * Converts this ImageVersion to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ImageVersion.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ImageVersion
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.ImageVersion
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ImageVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.ImageVersion";
+ };
+
+ return ImageVersion;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @interface IOperationMetadata
+ * @property {google.cloud.orchestration.airflow.service.v1.OperationMetadata.State|null} [state] OperationMetadata state
+ * @property {google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type|null} [operationType] OperationMetadata operationType
+ * @property {string|null} [resource] OperationMetadata resource
+ * @property {string|null} [resourceUuid] OperationMetadata resourceUuid
+ * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.orchestration.airflow.service.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata=} [properties] Properties to set
+ */
+ function OperationMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * OperationMetadata state.
+ * @member {google.cloud.orchestration.airflow.service.v1.OperationMetadata.State} state
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.state = 0;
+
+ /**
+ * OperationMetadata operationType.
+ * @member {google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type} operationType
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.operationType = 0;
+
+ /**
+ * OperationMetadata resource.
+ * @member {string} resource
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.resource = "";
+
+ /**
+ * OperationMetadata resourceUuid.
+ * @member {string} resourceUuid
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.resourceUuid = "";
+
+ /**
+ * OperationMetadata createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state);
+ if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.operationType);
+ if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource);
+ if (message.resourceUuid != null && Object.hasOwnProperty.call(message, "resourceUuid"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceUuid);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.state = reader.int32();
+ break;
+ }
+ case 2: {
+ message.operationType = reader.int32();
+ break;
+ }
+ case 3: {
+ message.resource = reader.string();
+ break;
+ }
+ case 4: {
+ message.resourceUuid = reader.string();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.operationType != null && message.hasOwnProperty("operationType"))
+ switch (message.operationType) {
+ default:
+ return "operationType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.resource != null && message.hasOwnProperty("resource"))
+ if (!$util.isString(message.resource))
+ return "resource: string expected";
+ if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid"))
+ if (!$util.isString(message.resourceUuid))
+ return "resourceUuid: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata();
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.state = 1;
+ break;
+ case "RUNNING":
+ case 2:
+ message.state = 2;
+ break;
+ case "SUCCEEDED":
+ case 3:
+ message.state = 3;
+ break;
+ case "SUCCESSFUL":
+ case 3:
+ message.state = 3;
+ break;
+ case "FAILED":
+ case 4:
+ message.state = 4;
+ break;
+ }
+ switch (object.operationType) {
+ default:
+ if (typeof object.operationType === "number") {
+ message.operationType = object.operationType;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.operationType = 0;
+ break;
+ case "CREATE":
+ case 1:
+ message.operationType = 1;
+ break;
+ case "DELETE":
+ case 2:
+ message.operationType = 2;
+ break;
+ case "UPDATE":
+ case 3:
+ message.operationType = 3;
+ break;
+ case "CHECK":
+ case 4:
+ message.operationType = 4;
+ break;
+ }
+ if (object.resource != null)
+ message.resource = String(object.resource);
+ if (object.resourceUuid != null)
+ message.resourceUuid = String(object.resourceUuid);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.OperationMetadata.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1.OperationMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1.OperationMetadata} message OperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ object.resource = "";
+ object.resourceUuid = "";
+ object.createTime = null;
+ object.endTime = null;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.State[message.state] === undefined ? message.state : $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.State[message.state] : message.state;
+ if (message.operationType != null && message.hasOwnProperty("operationType"))
+ object.operationType = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type[message.operationType] === undefined ? message.operationType : $root.google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type[message.operationType] : message.operationType;
+ if (message.resource != null && message.hasOwnProperty("resource"))
+ object.resource = message.resource;
+ if (message.resourceUuid != null && message.hasOwnProperty("resourceUuid"))
+ object.resourceUuid = message.resourceUuid;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1.OperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1.OperationMetadata";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.orchestration.airflow.service.v1.OperationMetadata.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} RUNNING=2 RUNNING value
+ * @property {number} SUCCEEDED=3 SUCCEEDED value
+ * @property {number} SUCCESSFUL=3 SUCCESSFUL value
+ * @property {number} FAILED=4 FAILED value
+ */
+ OperationMetadata.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "RUNNING"] = 2;
+ values[valuesById[3] = "SUCCEEDED"] = 3;
+ values["SUCCESSFUL"] = 3;
+ values[valuesById[4] = "FAILED"] = 4;
+ return values;
+ })();
+
+ /**
+ * Type enum.
+ * @name google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} CREATE=1 CREATE value
+ * @property {number} DELETE=2 DELETE value
+ * @property {number} UPDATE=3 UPDATE value
+ * @property {number} CHECK=4 CHECK value
+ */
+ OperationMetadata.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATE"] = 1;
+ values[valuesById[2] = "DELETE"] = 2;
+ values[valuesById[3] = "UPDATE"] = 3;
+ values[valuesById[4] = "CHECK"] = 4;
+ return values;
+ })();
+
+ return OperationMetadata;
+ })();
+
+ return v1;
+ })();
+
+ service.v1beta1 = (function() {
+
+ /**
+ * Namespace v1beta1.
+ * @memberof google.cloud.orchestration.airflow.service
+ * @namespace
+ */
+ var v1beta1 = {};
+
+ v1beta1.Environments = (function() {
+
+ /**
+ * Constructs a new Environments service.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents an Environments
+ * @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 Environments(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments;
+
+ /**
+ * Creates new Environments service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @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 {Environments} RPC service. Useful where requests and/or responses are streamed.
+ */
+ Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|createEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @typedef CreateEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateEnvironment.
+ * @function createEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) {
+ return this.rpcCall(createEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateEnvironment" });
+
+ /**
+ * Calls CreateEnvironment.
+ * @function createEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|getEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @typedef GetEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environment} [response] Environment
+ */
+
+ /**
+ * Calls GetEnvironment.
+ * @function getEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) {
+ return this.rpcCall(getEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.Environment, request, callback);
+ }, "name", { value: "GetEnvironment" });
+
+ /**
+ * Calls GetEnvironment.
+ * @function getEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|listEnvironments}.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @typedef ListEnvironmentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse
+ */
+
+ /**
+ * Calls ListEnvironments.
+ * @function listEnvironments
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) {
+ return this.rpcCall(listEnvironments, $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest, $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse, request, callback);
+ }, "name", { value: "ListEnvironments" });
+
+ /**
+ * Calls ListEnvironments.
+ * @function listEnvironments
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|updateEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @typedef UpdateEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateEnvironment.
+ * @function updateEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) {
+ return this.rpcCall(updateEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateEnvironment" });
+
+ /**
+ * Calls UpdateEnvironment.
+ * @function updateEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|deleteEnvironment}.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @typedef DeleteEnvironmentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteEnvironment.
+ * @function deleteEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) {
+ return this.rpcCall(deleteEnvironment, $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteEnvironment" });
+
+ /**
+ * Calls DeleteEnvironment.
+ * @function deleteEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|restartWebServer}.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @typedef RestartWebServerCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RestartWebServer.
+ * @function restartWebServer
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} request RestartWebServerRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServerCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.restartWebServer = function restartWebServer(request, callback) {
+ return this.rpcCall(restartWebServer, $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RestartWebServer" });
+
+ /**
+ * Calls RestartWebServer.
+ * @function restartWebServer
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} request RestartWebServerRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.orchestration.airflow.service.v1beta1.Environments|checkUpgrade}.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @typedef CheckUpgradeCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CheckUpgrade.
+ * @function checkUpgrade
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest} request CheckUpgradeRequest message or plain object
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgradeCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Environments.prototype.checkUpgrade = function checkUpgrade(request, callback) {
+ return this.rpcCall(checkUpgrade, $root.google.cloud.orchestration.airflow.service.v1beta1.CheckUpgradeRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CheckUpgrade" });
+
+ /**
+ * Calls CheckUpgrade.
+ * @function checkUpgrade
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.Environments
+ * @instance
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICheckUpgradeRequest} request CheckUpgradeRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return Environments;
+ })();
+
+ v1beta1.CreateEnvironmentRequest = (function() {
+
+ /**
+ * Properties of a CreateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface ICreateEnvironmentRequest
+ * @property {string|null} [parent] CreateEnvironmentRequest parent
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment
+ */
+
+ /**
+ * Constructs a new CreateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a CreateEnvironmentRequest.
+ * @implements ICreateEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest=} [properties] Properties to set
+ */
+ function CreateEnvironmentRequest(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]];
+ }
+
+ /**
+ * CreateEnvironmentRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @instance
+ */
+ CreateEnvironmentRequest.prototype.parent = "";
+
+ /**
+ * CreateEnvironmentRequest environment.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null|undefined} environment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @instance
+ */
+ CreateEnvironmentRequest.prototype.environment = null;
+
+ /**
+ * Creates a new CreateEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance
+ */
+ CreateEnvironmentRequest.create = function create(properties) {
+ return new CreateEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateEnvironmentRequest.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.environment != null && Object.hasOwnProperty.call(message, "environment"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateEnvironmentRequest.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.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateEnvironmentRequest.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.environment != null && message.hasOwnProperty("environment")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environment);
+ if (error)
+ return "environment." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} CreateEnvironmentRequest
+ */
+ CreateEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.environment != null) {
+ if (typeof object.environment !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest.environment: object expected");
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environment);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateEnvironmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.environment = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.environment != null && message.hasOwnProperty("environment"))
+ object.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environment, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.CreateEnvironmentRequest";
+ };
+
+ return CreateEnvironmentRequest;
+ })();
+
+ v1beta1.GetEnvironmentRequest = (function() {
+
+ /**
+ * Properties of a GetEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IGetEnvironmentRequest
+ * @property {string|null} [name] GetEnvironmentRequest name
+ */
+
+ /**
+ * Constructs a new GetEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a GetEnvironmentRequest.
+ * @implements IGetEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest=} [properties] Properties to set
+ */
+ function GetEnvironmentRequest(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]];
+ }
+
+ /**
+ * GetEnvironmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @instance
+ */
+ GetEnvironmentRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest instance
+ */
+ GetEnvironmentRequest.create = function create(properties) {
+ return new GetEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEnvironmentRequest.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 GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEnvironmentRequest.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.orchestration.airflow.service.v1beta1.GetEnvironmentRequest();
+ 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 GetEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetEnvironmentRequest.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 GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} GetEnvironmentRequest
+ */
+ GetEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest} message GetEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetEnvironmentRequest.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 GetEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.GetEnvironmentRequest";
+ };
+
+ return GetEnvironmentRequest;
+ })();
+
+ v1beta1.ListEnvironmentsRequest = (function() {
+
+ /**
+ * Properties of a ListEnvironmentsRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IListEnvironmentsRequest
+ * @property {string|null} [parent] ListEnvironmentsRequest parent
+ * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize
+ * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListEnvironmentsRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a ListEnvironmentsRequest.
+ * @implements IListEnvironmentsRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest=} [properties] Properties to set
+ */
+ function ListEnvironmentsRequest(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]];
+ }
+
+ /**
+ * ListEnvironmentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @instance
+ */
+ ListEnvironmentsRequest.prototype.parent = "";
+
+ /**
+ * ListEnvironmentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @instance
+ */
+ ListEnvironmentsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListEnvironmentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @instance
+ */
+ ListEnvironmentsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListEnvironmentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance
+ */
+ ListEnvironmentsRequest.create = function create(properties) {
+ return new ListEnvironmentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsRequest.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 ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEnvironmentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsRequest.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.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest();
+ 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 ListEnvironmentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEnvironmentsRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEnvironmentsRequest.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 ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} ListEnvironmentsRequest
+ */
+ ListEnvironmentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest();
+ 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 ListEnvironmentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEnvironmentsRequest.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 ListEnvironmentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEnvironmentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEnvironmentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEnvironmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsRequest";
+ };
+
+ return ListEnvironmentsRequest;
+ })();
+
+ v1beta1.ListEnvironmentsResponse = (function() {
+
+ /**
+ * Properties of a ListEnvironmentsResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IListEnvironmentsResponse
+ * @property {Array.|null} [environments] ListEnvironmentsResponse environments
+ * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListEnvironmentsResponse.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a ListEnvironmentsResponse.
+ * @implements IListEnvironmentsResponse
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse=} [properties] Properties to set
+ */
+ function ListEnvironmentsResponse(properties) {
+ this.environments = [];
+ 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]];
+ }
+
+ /**
+ * ListEnvironmentsResponse environments.
+ * @member {Array.} environments
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @instance
+ */
+ ListEnvironmentsResponse.prototype.environments = $util.emptyArray;
+
+ /**
+ * ListEnvironmentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @instance
+ */
+ ListEnvironmentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListEnvironmentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance
+ */
+ ListEnvironmentsResponse.create = function create(properties) {
+ return new ListEnvironmentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.environments != null && message.environments.length)
+ for (var i = 0; i < message.environments.length; ++i)
+ $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsResponse.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.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.environments && message.environments.length))
+ message.environments = [];
+ message.environments.push($root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEnvironmentsResponse message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEnvironmentsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.environments != null && message.hasOwnProperty("environments")) {
+ if (!Array.isArray(message.environments))
+ return "environments: array expected";
+ for (var i = 0; i < message.environments.length; ++i) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environments[i]);
+ if (error)
+ return "environments." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} ListEnvironmentsResponse
+ */
+ ListEnvironmentsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse();
+ if (object.environments) {
+ if (!Array.isArray(object.environments))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.environments: array expected");
+ message.environments = [];
+ for (var i = 0; i < object.environments.length; ++i) {
+ if (typeof object.environments[i] !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse.environments: object expected");
+ message.environments[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environments[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEnvironmentsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.environments = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.environments && message.environments.length) {
+ object.environments = [];
+ for (var j = 0; j < message.environments.length; ++j)
+ object.environments[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environments[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListEnvironmentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEnvironmentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEnvironmentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEnvironmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse";
+ };
+
+ return ListEnvironmentsResponse;
+ })();
+
+ v1beta1.DeleteEnvironmentRequest = (function() {
+
+ /**
+ * Properties of a DeleteEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IDeleteEnvironmentRequest
+ * @property {string|null} [name] DeleteEnvironmentRequest name
+ */
+
+ /**
+ * Constructs a new DeleteEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a DeleteEnvironmentRequest.
+ * @implements IDeleteEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest=} [properties] Properties to set
+ */
+ function DeleteEnvironmentRequest(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]];
+ }
+
+ /**
+ * DeleteEnvironmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @instance
+ */
+ DeleteEnvironmentRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance
+ */
+ DeleteEnvironmentRequest.create = function create(properties) {
+ return new DeleteEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEnvironmentRequest.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 DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEnvironmentRequest.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.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest();
+ 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 DeleteEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteEnvironmentRequest.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 DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest
+ */
+ DeleteEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteEnvironmentRequest.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 DeleteEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.DeleteEnvironmentRequest";
+ };
+
+ return DeleteEnvironmentRequest;
+ })();
+
+ v1beta1.UpdateEnvironmentRequest = (function() {
+
+ /**
+ * Properties of an UpdateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IUpdateEnvironmentRequest
+ * @property {string|null} [name] UpdateEnvironmentRequest name
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask
+ */
+
+ /**
+ * Constructs a new UpdateEnvironmentRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents an UpdateEnvironmentRequest.
+ * @implements IUpdateEnvironmentRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest=} [properties] Properties to set
+ */
+ function UpdateEnvironmentRequest(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]];
+ }
+
+ /**
+ * UpdateEnvironmentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @instance
+ */
+ UpdateEnvironmentRequest.prototype.name = "";
+
+ /**
+ * UpdateEnvironmentRequest environment.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IEnvironment|null|undefined} environment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @instance
+ */
+ UpdateEnvironmentRequest.prototype.environment = null;
+
+ /**
+ * UpdateEnvironmentRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @instance
+ */
+ UpdateEnvironmentRequest.prototype.updateMask = null;
+
+ /**
+ * Creates a new UpdateEnvironmentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance
+ */
+ UpdateEnvironmentRequest.create = function create(properties) {
+ return new UpdateEnvironmentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateEnvironmentRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateEnvironmentRequest.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.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ case 1: {
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateEnvironmentRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateEnvironmentRequest.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")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.verify(message.environment);
+ if (error)
+ return "environment." + 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 UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest
+ */
+ UpdateEnvironmentRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.environment != null) {
+ if (typeof object.environment !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.environment: object expected");
+ message.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.fromObject(object.environment);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateEnvironmentRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.environment = null;
+ object.name = "";
+ object.updateMask = null;
+ }
+ if (message.environment != null && message.hasOwnProperty("environment"))
+ object.environment = $root.google.cloud.orchestration.airflow.service.v1beta1.Environment.toObject(message.environment, options);
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateEnvironmentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateEnvironmentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateEnvironmentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.UpdateEnvironmentRequest";
+ };
+
+ return UpdateEnvironmentRequest;
+ })();
+
+ v1beta1.RestartWebServerRequest = (function() {
+
+ /**
+ * Properties of a RestartWebServerRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IRestartWebServerRequest
+ * @property {string|null} [name] RestartWebServerRequest name
+ */
+
+ /**
+ * Constructs a new RestartWebServerRequest.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a RestartWebServerRequest.
+ * @implements IRestartWebServerRequest
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest=} [properties] Properties to set
+ */
+ function RestartWebServerRequest(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]];
+ }
+
+ /**
+ * RestartWebServerRequest name.
+ * @member {string} name
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @instance
+ */
+ RestartWebServerRequest.prototype.name = "";
+
+ /**
+ * Creates a new RestartWebServerRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest instance
+ */
+ RestartWebServerRequest.create = function create(properties) {
+ return new RestartWebServerRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RestartWebServerRequest message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} message RestartWebServerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestartWebServerRequest.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 RestartWebServerRequest message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IRestartWebServerRequest} message RestartWebServerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RestartWebServerRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RestartWebServerRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestartWebServerRequest.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.orchestration.airflow.service.v1beta1.RestartWebServerRequest();
+ 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 RestartWebServerRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RestartWebServerRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RestartWebServerRequest message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RestartWebServerRequest.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 RestartWebServerRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} RestartWebServerRequest
+ */
+ RestartWebServerRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RestartWebServerRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest} message RestartWebServerRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RestartWebServerRequest.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 RestartWebServerRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RestartWebServerRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RestartWebServerRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RestartWebServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.RestartWebServerRequest";
+ };
+
+ return RestartWebServerRequest;
+ })();
+
+ v1beta1.EnvironmentConfig = (function() {
+
+ /**
+ * Properties of an EnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IEnvironmentConfig
+ * @property {string|null} [gkeCluster] EnvironmentConfig gkeCluster
+ * @property {string|null} [dagGcsPrefix] EnvironmentConfig dagGcsPrefix
+ * @property {number|null} [nodeCount] EnvironmentConfig nodeCount
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig|null} [softwareConfig] EnvironmentConfig softwareConfig
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.INodeConfig|null} [nodeConfig] EnvironmentConfig nodeConfig
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig|null} [privateEnvironmentConfig] EnvironmentConfig privateEnvironmentConfig
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl|null} [webServerNetworkAccessControl] EnvironmentConfig webServerNetworkAccessControl
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig|null} [databaseConfig] EnvironmentConfig databaseConfig
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig|null} [webServerConfig] EnvironmentConfig webServerConfig
+ * @property {string|null} [airflowUri] EnvironmentConfig airflowUri
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig|null} [encryptionConfig] EnvironmentConfig encryptionConfig
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow|null} [maintenanceWindow] EnvironmentConfig maintenanceWindow
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig|null} [workloadsConfig] EnvironmentConfig workloadsConfig
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize|null} [environmentSize] EnvironmentConfig environmentSize
+ */
+
+ /**
+ * Constructs a new EnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents an EnvironmentConfig.
+ * @implements IEnvironmentConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig=} [properties] Properties to set
+ */
+ function EnvironmentConfig(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]];
+ }
+
+ /**
+ * EnvironmentConfig gkeCluster.
+ * @member {string} gkeCluster
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.gkeCluster = "";
+
+ /**
+ * EnvironmentConfig dagGcsPrefix.
+ * @member {string} dagGcsPrefix
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.dagGcsPrefix = "";
+
+ /**
+ * EnvironmentConfig nodeCount.
+ * @member {number} nodeCount
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.nodeCount = 0;
+
+ /**
+ * EnvironmentConfig softwareConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig|null|undefined} softwareConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.softwareConfig = null;
+
+ /**
+ * EnvironmentConfig nodeConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.INodeConfig|null|undefined} nodeConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.nodeConfig = null;
+
+ /**
+ * EnvironmentConfig privateEnvironmentConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig|null|undefined} privateEnvironmentConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.privateEnvironmentConfig = null;
+
+ /**
+ * EnvironmentConfig webServerNetworkAccessControl.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl|null|undefined} webServerNetworkAccessControl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.webServerNetworkAccessControl = null;
+
+ /**
+ * EnvironmentConfig databaseConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig|null|undefined} databaseConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.databaseConfig = null;
+
+ /**
+ * EnvironmentConfig webServerConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig|null|undefined} webServerConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.webServerConfig = null;
+
+ /**
+ * EnvironmentConfig airflowUri.
+ * @member {string} airflowUri
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.airflowUri = "";
+
+ /**
+ * EnvironmentConfig encryptionConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig|null|undefined} encryptionConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.encryptionConfig = null;
+
+ /**
+ * EnvironmentConfig maintenanceWindow.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow|null|undefined} maintenanceWindow
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.maintenanceWindow = null;
+
+ /**
+ * EnvironmentConfig workloadsConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig|null|undefined} workloadsConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.workloadsConfig = null;
+
+ /**
+ * EnvironmentConfig environmentSize.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize} environmentSize
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ */
+ EnvironmentConfig.prototype.environmentSize = 0;
+
+ /**
+ * Creates a new EnvironmentConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig} EnvironmentConfig instance
+ */
+ EnvironmentConfig.create = function create(properties) {
+ return new EnvironmentConfig(properties);
+ };
+
+ /**
+ * Encodes the specified EnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnvironmentConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gkeCluster != null && Object.hasOwnProperty.call(message, "gkeCluster"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.gkeCluster);
+ if (message.dagGcsPrefix != null && Object.hasOwnProperty.call(message, "dagGcsPrefix"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.dagGcsPrefix);
+ if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.nodeCount);
+ if (message.softwareConfig != null && Object.hasOwnProperty.call(message, "softwareConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.encode(message.softwareConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.airflowUri != null && Object.hasOwnProperty.call(message, "airflowUri"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.airflowUri);
+ if (message.privateEnvironmentConfig != null && Object.hasOwnProperty.call(message, "privateEnvironmentConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.encode(message.privateEnvironmentConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.webServerNetworkAccessControl != null && Object.hasOwnProperty.call(message, "webServerNetworkAccessControl"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.encode(message.webServerNetworkAccessControl, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.databaseConfig != null && Object.hasOwnProperty.call(message, "databaseConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.encode(message.databaseConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.webServerConfig != null && Object.hasOwnProperty.call(message, "webServerConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.encode(message.webServerConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.maintenanceWindow != null && Object.hasOwnProperty.call(message, "maintenanceWindow"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.encode(message.maintenanceWindow, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.workloadsConfig != null && Object.hasOwnProperty.call(message, "workloadsConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.encode(message.workloadsConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.environmentSize != null && Object.hasOwnProperty.call(message, "environmentSize"))
+ writer.uint32(/* id 16, wireType 0 =*/128).int32(message.environmentSize);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEnvironmentConfig} message EnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig} EnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnvironmentConfig.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.orchestration.airflow.service.v1beta1.EnvironmentConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gkeCluster = reader.string();
+ break;
+ }
+ case 2: {
+ message.dagGcsPrefix = reader.string();
+ break;
+ }
+ case 3: {
+ message.nodeCount = reader.int32();
+ break;
+ }
+ case 4: {
+ message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.airflowUri = reader.string();
+ break;
+ }
+ case 12: {
+ message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.decode(reader, reader.uint32());
+ break;
+ }
+ case 15: {
+ message.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 16: {
+ message.environmentSize = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig} EnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EnvironmentConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EnvironmentConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EnvironmentConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster"))
+ if (!$util.isString(message.gkeCluster))
+ return "gkeCluster: string expected";
+ if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix"))
+ if (!$util.isString(message.dagGcsPrefix))
+ return "dagGcsPrefix: string expected";
+ if (message.nodeCount != null && message.hasOwnProperty("nodeCount"))
+ if (!$util.isInteger(message.nodeCount))
+ return "nodeCount: integer expected";
+ if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.verify(message.softwareConfig);
+ if (error)
+ return "softwareConfig." + error;
+ }
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.verify(message.nodeConfig);
+ if (error)
+ return "nodeConfig." + error;
+ }
+ if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.verify(message.privateEnvironmentConfig);
+ if (error)
+ return "privateEnvironmentConfig." + error;
+ }
+ if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.verify(message.webServerNetworkAccessControl);
+ if (error)
+ return "webServerNetworkAccessControl." + error;
+ }
+ if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.verify(message.databaseConfig);
+ if (error)
+ return "databaseConfig." + error;
+ }
+ if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.verify(message.webServerConfig);
+ if (error)
+ return "webServerConfig." + error;
+ }
+ if (message.airflowUri != null && message.hasOwnProperty("airflowUri"))
+ if (!$util.isString(message.airflowUri))
+ return "airflowUri: string expected";
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.verify(message.encryptionConfig);
+ if (error)
+ return "encryptionConfig." + error;
+ }
+ if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify(message.maintenanceWindow);
+ if (error)
+ return "maintenanceWindow." + error;
+ }
+ if (message.workloadsConfig != null && message.hasOwnProperty("workloadsConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify(message.workloadsConfig);
+ if (error)
+ return "workloadsConfig." + error;
+ }
+ if (message.environmentSize != null && message.hasOwnProperty("environmentSize"))
+ switch (message.environmentSize) {
+ default:
+ return "environmentSize: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an EnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig} EnvironmentConfig
+ */
+ EnvironmentConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig();
+ if (object.gkeCluster != null)
+ message.gkeCluster = String(object.gkeCluster);
+ if (object.dagGcsPrefix != null)
+ message.dagGcsPrefix = String(object.dagGcsPrefix);
+ if (object.nodeCount != null)
+ message.nodeCount = object.nodeCount | 0;
+ if (object.softwareConfig != null) {
+ if (typeof object.softwareConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.softwareConfig: object expected");
+ message.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.fromObject(object.softwareConfig);
+ }
+ if (object.nodeConfig != null) {
+ if (typeof object.nodeConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.nodeConfig: object expected");
+ message.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.fromObject(object.nodeConfig);
+ }
+ if (object.privateEnvironmentConfig != null) {
+ if (typeof object.privateEnvironmentConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.privateEnvironmentConfig: object expected");
+ message.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.fromObject(object.privateEnvironmentConfig);
+ }
+ if (object.webServerNetworkAccessControl != null) {
+ if (typeof object.webServerNetworkAccessControl !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.webServerNetworkAccessControl: object expected");
+ message.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.fromObject(object.webServerNetworkAccessControl);
+ }
+ if (object.databaseConfig != null) {
+ if (typeof object.databaseConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.databaseConfig: object expected");
+ message.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.fromObject(object.databaseConfig);
+ }
+ if (object.webServerConfig != null) {
+ if (typeof object.webServerConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.webServerConfig: object expected");
+ message.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.fromObject(object.webServerConfig);
+ }
+ if (object.airflowUri != null)
+ message.airflowUri = String(object.airflowUri);
+ if (object.encryptionConfig != null) {
+ if (typeof object.encryptionConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.encryptionConfig: object expected");
+ message.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.fromObject(object.encryptionConfig);
+ }
+ if (object.maintenanceWindow != null) {
+ if (typeof object.maintenanceWindow !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.maintenanceWindow: object expected");
+ message.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.fromObject(object.maintenanceWindow);
+ }
+ if (object.workloadsConfig != null) {
+ if (typeof object.workloadsConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.workloadsConfig: object expected");
+ message.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.fromObject(object.workloadsConfig);
+ }
+ switch (object.environmentSize) {
+ default:
+ if (typeof object.environmentSize === "number") {
+ message.environmentSize = object.environmentSize;
+ break;
+ }
+ break;
+ case "ENVIRONMENT_SIZE_UNSPECIFIED":
+ case 0:
+ message.environmentSize = 0;
+ break;
+ case "ENVIRONMENT_SIZE_SMALL":
+ case 1:
+ message.environmentSize = 1;
+ break;
+ case "ENVIRONMENT_SIZE_MEDIUM":
+ case 2:
+ message.environmentSize = 2;
+ break;
+ case "ENVIRONMENT_SIZE_LARGE":
+ case 3:
+ message.environmentSize = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EnvironmentConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig} message EnvironmentConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EnvironmentConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.gkeCluster = "";
+ object.dagGcsPrefix = "";
+ object.nodeCount = 0;
+ object.softwareConfig = null;
+ object.nodeConfig = null;
+ object.airflowUri = "";
+ object.privateEnvironmentConfig = null;
+ object.webServerNetworkAccessControl = null;
+ object.databaseConfig = null;
+ object.webServerConfig = null;
+ object.encryptionConfig = null;
+ object.maintenanceWindow = null;
+ object.workloadsConfig = null;
+ object.environmentSize = options.enums === String ? "ENVIRONMENT_SIZE_UNSPECIFIED" : 0;
+ }
+ if (message.gkeCluster != null && message.hasOwnProperty("gkeCluster"))
+ object.gkeCluster = message.gkeCluster;
+ if (message.dagGcsPrefix != null && message.hasOwnProperty("dagGcsPrefix"))
+ object.dagGcsPrefix = message.dagGcsPrefix;
+ if (message.nodeCount != null && message.hasOwnProperty("nodeCount"))
+ object.nodeCount = message.nodeCount;
+ if (message.softwareConfig != null && message.hasOwnProperty("softwareConfig"))
+ object.softwareConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.toObject(message.softwareConfig, options);
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig"))
+ object.nodeConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.toObject(message.nodeConfig, options);
+ if (message.airflowUri != null && message.hasOwnProperty("airflowUri"))
+ object.airflowUri = message.airflowUri;
+ if (message.privateEnvironmentConfig != null && message.hasOwnProperty("privateEnvironmentConfig"))
+ object.privateEnvironmentConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.toObject(message.privateEnvironmentConfig, options);
+ if (message.webServerNetworkAccessControl != null && message.hasOwnProperty("webServerNetworkAccessControl"))
+ object.webServerNetworkAccessControl = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.toObject(message.webServerNetworkAccessControl, options);
+ if (message.databaseConfig != null && message.hasOwnProperty("databaseConfig"))
+ object.databaseConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.toObject(message.databaseConfig, options);
+ if (message.webServerConfig != null && message.hasOwnProperty("webServerConfig"))
+ object.webServerConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.toObject(message.webServerConfig, options);
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
+ object.encryptionConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.toObject(message.encryptionConfig, options);
+ if (message.maintenanceWindow != null && message.hasOwnProperty("maintenanceWindow"))
+ object.maintenanceWindow = $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.toObject(message.maintenanceWindow, options);
+ if (message.workloadsConfig != null && message.hasOwnProperty("workloadsConfig"))
+ object.workloadsConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.toObject(message.workloadsConfig, options);
+ if (message.environmentSize != null && message.hasOwnProperty("environmentSize"))
+ object.environmentSize = options.enums === String ? $root.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize[message.environmentSize] === undefined ? message.environmentSize : $root.google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize[message.environmentSize] : message.environmentSize;
+ return object;
+ };
+
+ /**
+ * Converts this EnvironmentConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EnvironmentConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EnvironmentConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig";
+ };
+
+ /**
+ * EnvironmentSize enum.
+ * @name google.cloud.orchestration.airflow.service.v1beta1.EnvironmentConfig.EnvironmentSize
+ * @enum {number}
+ * @property {number} ENVIRONMENT_SIZE_UNSPECIFIED=0 ENVIRONMENT_SIZE_UNSPECIFIED value
+ * @property {number} ENVIRONMENT_SIZE_SMALL=1 ENVIRONMENT_SIZE_SMALL value
+ * @property {number} ENVIRONMENT_SIZE_MEDIUM=2 ENVIRONMENT_SIZE_MEDIUM value
+ * @property {number} ENVIRONMENT_SIZE_LARGE=3 ENVIRONMENT_SIZE_LARGE value
+ */
+ EnvironmentConfig.EnvironmentSize = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ENVIRONMENT_SIZE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ENVIRONMENT_SIZE_SMALL"] = 1;
+ values[valuesById[2] = "ENVIRONMENT_SIZE_MEDIUM"] = 2;
+ values[valuesById[3] = "ENVIRONMENT_SIZE_LARGE"] = 3;
+ return values;
+ })();
+
+ return EnvironmentConfig;
+ })();
+
+ v1beta1.WebServerNetworkAccessControl = (function() {
+
+ /**
+ * Properties of a WebServerNetworkAccessControl.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IWebServerNetworkAccessControl
+ * @property {Array.|null} [allowedIpRanges] WebServerNetworkAccessControl allowedIpRanges
+ */
+
+ /**
+ * Constructs a new WebServerNetworkAccessControl.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a WebServerNetworkAccessControl.
+ * @implements IWebServerNetworkAccessControl
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl=} [properties] Properties to set
+ */
+ function WebServerNetworkAccessControl(properties) {
+ this.allowedIpRanges = [];
+ 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]];
+ }
+
+ /**
+ * WebServerNetworkAccessControl allowedIpRanges.
+ * @member {Array.} allowedIpRanges
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @instance
+ */
+ WebServerNetworkAccessControl.prototype.allowedIpRanges = $util.emptyArray;
+
+ /**
+ * Creates a new WebServerNetworkAccessControl instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl} WebServerNetworkAccessControl instance
+ */
+ WebServerNetworkAccessControl.create = function create(properties) {
+ return new WebServerNetworkAccessControl(properties);
+ };
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerNetworkAccessControl.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.allowedIpRanges != null && message.allowedIpRanges.length)
+ for (var i = 0; i < message.allowedIpRanges.length; ++i)
+ $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.encode(message.allowedIpRanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WebServerNetworkAccessControl message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerNetworkAccessControl} message WebServerNetworkAccessControl message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerNetworkAccessControl.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl} WebServerNetworkAccessControl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerNetworkAccessControl.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.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.allowedIpRanges && message.allowedIpRanges.length))
+ message.allowedIpRanges = [];
+ message.allowedIpRanges.push($root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WebServerNetworkAccessControl message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl} WebServerNetworkAccessControl
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerNetworkAccessControl.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WebServerNetworkAccessControl message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WebServerNetworkAccessControl.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.allowedIpRanges != null && message.hasOwnProperty("allowedIpRanges")) {
+ if (!Array.isArray(message.allowedIpRanges))
+ return "allowedIpRanges: array expected";
+ for (var i = 0; i < message.allowedIpRanges.length; ++i) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.verify(message.allowedIpRanges[i]);
+ if (error)
+ return "allowedIpRanges." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WebServerNetworkAccessControl message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl} WebServerNetworkAccessControl
+ */
+ WebServerNetworkAccessControl.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl();
+ if (object.allowedIpRanges) {
+ if (!Array.isArray(object.allowedIpRanges))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.allowedIpRanges: array expected");
+ message.allowedIpRanges = [];
+ for (var i = 0; i < object.allowedIpRanges.length; ++i) {
+ if (typeof object.allowedIpRanges[i] !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.allowedIpRanges: object expected");
+ message.allowedIpRanges[i] = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.fromObject(object.allowedIpRanges[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WebServerNetworkAccessControl message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl} message WebServerNetworkAccessControl
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WebServerNetworkAccessControl.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.allowedIpRanges = [];
+ if (message.allowedIpRanges && message.allowedIpRanges.length) {
+ object.allowedIpRanges = [];
+ for (var j = 0; j < message.allowedIpRanges.length; ++j)
+ object.allowedIpRanges[j] = $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.toObject(message.allowedIpRanges[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this WebServerNetworkAccessControl to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WebServerNetworkAccessControl.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WebServerNetworkAccessControl
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WebServerNetworkAccessControl.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl";
+ };
+
+ WebServerNetworkAccessControl.AllowedIpRange = (function() {
+
+ /**
+ * Properties of an AllowedIpRange.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @interface IAllowedIpRange
+ * @property {string|null} [value] AllowedIpRange value
+ * @property {string|null} [description] AllowedIpRange description
+ */
+
+ /**
+ * Constructs a new AllowedIpRange.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl
+ * @classdesc Represents an AllowedIpRange.
+ * @implements IAllowedIpRange
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set
+ */
+ function AllowedIpRange(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]];
+ }
+
+ /**
+ * AllowedIpRange value.
+ * @member {string} value
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @instance
+ */
+ AllowedIpRange.prototype.value = "";
+
+ /**
+ * AllowedIpRange description.
+ * @member {string} description
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @instance
+ */
+ AllowedIpRange.prototype.description = "";
+
+ /**
+ * Creates a new AllowedIpRange instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange instance
+ */
+ AllowedIpRange.create = function create(properties) {
+ return new AllowedIpRange(properties);
+ };
+
+ /**
+ * Encodes the specified AllowedIpRange message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AllowedIpRange.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AllowedIpRange message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.IAllowedIpRange} message AllowedIpRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AllowedIpRange.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AllowedIpRange.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.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.value = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AllowedIpRange message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AllowedIpRange.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AllowedIpRange message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AllowedIpRange.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isString(message.value))
+ return "value: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AllowedIpRange message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange} AllowedIpRange
+ */
+ AllowedIpRange.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange();
+ if (object.value != null)
+ message.value = String(object.value);
+ if (object.description != null)
+ message.description = String(object.description);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AllowedIpRange message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange} message AllowedIpRange
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AllowedIpRange.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.value = "";
+ object.description = "";
+ }
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ return object;
+ };
+
+ /**
+ * Converts this AllowedIpRange to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AllowedIpRange.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AllowedIpRange
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AllowedIpRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WebServerNetworkAccessControl.AllowedIpRange";
+ };
+
+ return AllowedIpRange;
+ })();
+
+ return WebServerNetworkAccessControl;
+ })();
+
+ v1beta1.SoftwareConfig = (function() {
+
+ /**
+ * Properties of a SoftwareConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface ISoftwareConfig
+ * @property {string|null} [imageVersion] SoftwareConfig imageVersion
+ * @property {Object.|null} [airflowConfigOverrides] SoftwareConfig airflowConfigOverrides
+ * @property {Object.|null} [pypiPackages] SoftwareConfig pypiPackages
+ * @property {Object.|null} [envVariables] SoftwareConfig envVariables
+ * @property {string|null} [pythonVersion] SoftwareConfig pythonVersion
+ */
+
+ /**
+ * Constructs a new SoftwareConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a SoftwareConfig.
+ * @implements ISoftwareConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig=} [properties] Properties to set
+ */
+ function SoftwareConfig(properties) {
+ this.airflowConfigOverrides = {};
+ this.pypiPackages = {};
+ this.envVariables = {};
+ 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]];
+ }
+
+ /**
+ * SoftwareConfig imageVersion.
+ * @member {string} imageVersion
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.imageVersion = "";
+
+ /**
+ * SoftwareConfig airflowConfigOverrides.
+ * @member {Object.} airflowConfigOverrides
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.airflowConfigOverrides = $util.emptyObject;
+
+ /**
+ * SoftwareConfig pypiPackages.
+ * @member {Object.} pypiPackages
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.pypiPackages = $util.emptyObject;
+
+ /**
+ * SoftwareConfig envVariables.
+ * @member {Object.} envVariables
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.envVariables = $util.emptyObject;
+
+ /**
+ * SoftwareConfig pythonVersion.
+ * @member {string} pythonVersion
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @instance
+ */
+ SoftwareConfig.prototype.pythonVersion = "";
+
+ /**
+ * Creates a new SoftwareConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig} SoftwareConfig instance
+ */
+ SoftwareConfig.create = function create(properties) {
+ return new SoftwareConfig(properties);
+ };
+
+ /**
+ * Encodes the specified SoftwareConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig} message SoftwareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SoftwareConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.imageVersion != null && Object.hasOwnProperty.call(message, "imageVersion"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageVersion);
+ if (message.airflowConfigOverrides != null && Object.hasOwnProperty.call(message, "airflowConfigOverrides"))
+ for (var keys = Object.keys(message.airflowConfigOverrides), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.airflowConfigOverrides[keys[i]]).ldelim();
+ if (message.pypiPackages != null && Object.hasOwnProperty.call(message, "pypiPackages"))
+ for (var keys = Object.keys(message.pypiPackages), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.pypiPackages[keys[i]]).ldelim();
+ if (message.envVariables != null && Object.hasOwnProperty.call(message, "envVariables"))
+ for (var keys = Object.keys(message.envVariables), 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.envVariables[keys[i]]).ldelim();
+ if (message.pythonVersion != null && Object.hasOwnProperty.call(message, "pythonVersion"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.pythonVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SoftwareConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.ISoftwareConfig} message SoftwareConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SoftwareConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig} SoftwareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SoftwareConfig.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.orchestration.airflow.service.v1beta1.SoftwareConfig(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.imageVersion = reader.string();
+ break;
+ }
+ case 2: {
+ if (message.airflowConfigOverrides === $util.emptyObject)
+ message.airflowConfigOverrides = {};
+ 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.airflowConfigOverrides[key] = value;
+ break;
+ }
+ case 3: {
+ if (message.pypiPackages === $util.emptyObject)
+ message.pypiPackages = {};
+ 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.pypiPackages[key] = value;
+ break;
+ }
+ case 4: {
+ if (message.envVariables === $util.emptyObject)
+ message.envVariables = {};
+ 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.envVariables[key] = value;
+ break;
+ }
+ case 6: {
+ message.pythonVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SoftwareConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig} SoftwareConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SoftwareConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SoftwareConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SoftwareConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.imageVersion != null && message.hasOwnProperty("imageVersion"))
+ if (!$util.isString(message.imageVersion))
+ return "imageVersion: string expected";
+ if (message.airflowConfigOverrides != null && message.hasOwnProperty("airflowConfigOverrides")) {
+ if (!$util.isObject(message.airflowConfigOverrides))
+ return "airflowConfigOverrides: object expected";
+ var key = Object.keys(message.airflowConfigOverrides);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.airflowConfigOverrides[key[i]]))
+ return "airflowConfigOverrides: string{k:string} expected";
+ }
+ if (message.pypiPackages != null && message.hasOwnProperty("pypiPackages")) {
+ if (!$util.isObject(message.pypiPackages))
+ return "pypiPackages: object expected";
+ var key = Object.keys(message.pypiPackages);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.pypiPackages[key[i]]))
+ return "pypiPackages: string{k:string} expected";
+ }
+ if (message.envVariables != null && message.hasOwnProperty("envVariables")) {
+ if (!$util.isObject(message.envVariables))
+ return "envVariables: object expected";
+ var key = Object.keys(message.envVariables);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.envVariables[key[i]]))
+ return "envVariables: string{k:string} expected";
+ }
+ if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion"))
+ if (!$util.isString(message.pythonVersion))
+ return "pythonVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SoftwareConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig} SoftwareConfig
+ */
+ SoftwareConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig();
+ if (object.imageVersion != null)
+ message.imageVersion = String(object.imageVersion);
+ if (object.airflowConfigOverrides) {
+ if (typeof object.airflowConfigOverrides !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.airflowConfigOverrides: object expected");
+ message.airflowConfigOverrides = {};
+ for (var keys = Object.keys(object.airflowConfigOverrides), i = 0; i < keys.length; ++i)
+ message.airflowConfigOverrides[keys[i]] = String(object.airflowConfigOverrides[keys[i]]);
+ }
+ if (object.pypiPackages) {
+ if (typeof object.pypiPackages !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.pypiPackages: object expected");
+ message.pypiPackages = {};
+ for (var keys = Object.keys(object.pypiPackages), i = 0; i < keys.length; ++i)
+ message.pypiPackages[keys[i]] = String(object.pypiPackages[keys[i]]);
+ }
+ if (object.envVariables) {
+ if (typeof object.envVariables !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig.envVariables: object expected");
+ message.envVariables = {};
+ for (var keys = Object.keys(object.envVariables), i = 0; i < keys.length; ++i)
+ message.envVariables[keys[i]] = String(object.envVariables[keys[i]]);
+ }
+ if (object.pythonVersion != null)
+ message.pythonVersion = String(object.pythonVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SoftwareConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig} message SoftwareConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SoftwareConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults) {
+ object.airflowConfigOverrides = {};
+ object.pypiPackages = {};
+ object.envVariables = {};
+ }
+ if (options.defaults) {
+ object.imageVersion = "";
+ object.pythonVersion = "";
+ }
+ if (message.imageVersion != null && message.hasOwnProperty("imageVersion"))
+ object.imageVersion = message.imageVersion;
+ var keys2;
+ if (message.airflowConfigOverrides && (keys2 = Object.keys(message.airflowConfigOverrides)).length) {
+ object.airflowConfigOverrides = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.airflowConfigOverrides[keys2[j]] = message.airflowConfigOverrides[keys2[j]];
+ }
+ if (message.pypiPackages && (keys2 = Object.keys(message.pypiPackages)).length) {
+ object.pypiPackages = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.pypiPackages[keys2[j]] = message.pypiPackages[keys2[j]];
+ }
+ if (message.envVariables && (keys2 = Object.keys(message.envVariables)).length) {
+ object.envVariables = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.envVariables[keys2[j]] = message.envVariables[keys2[j]];
+ }
+ if (message.pythonVersion != null && message.hasOwnProperty("pythonVersion"))
+ object.pythonVersion = message.pythonVersion;
+ return object;
+ };
+
+ /**
+ * Converts this SoftwareConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SoftwareConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SoftwareConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SoftwareConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.SoftwareConfig";
+ };
+
+ return SoftwareConfig;
+ })();
+
+ v1beta1.IPAllocationPolicy = (function() {
+
+ /**
+ * Properties of a IPAllocationPolicy.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IIPAllocationPolicy
+ * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases
+ * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName
+ * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName
+ * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock
+ * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock
+ */
+
+ /**
+ * Constructs a new IPAllocationPolicy.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a IPAllocationPolicy.
+ * @implements IIPAllocationPolicy
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy=} [properties] Properties to set
+ */
+ function IPAllocationPolicy(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]];
+ }
+
+ /**
+ * IPAllocationPolicy useIpAliases.
+ * @member {boolean} useIpAliases
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.useIpAliases = false;
+
+ /**
+ * IPAllocationPolicy clusterSecondaryRangeName.
+ * @member {string} clusterSecondaryRangeName
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.clusterSecondaryRangeName = "";
+
+ /**
+ * IPAllocationPolicy servicesSecondaryRangeName.
+ * @member {string} servicesSecondaryRangeName
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.servicesSecondaryRangeName = "";
+
+ /**
+ * IPAllocationPolicy clusterIpv4CidrBlock.
+ * @member {string} clusterIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.clusterIpv4CidrBlock = "";
+
+ /**
+ * IPAllocationPolicy servicesIpv4CidrBlock.
+ * @member {string} servicesIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.servicesIpv4CidrBlock = "";
+
+ /**
+ * Creates a new IPAllocationPolicy instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy} IPAllocationPolicy instance
+ */
+ IPAllocationPolicy.create = function create(properties) {
+ return new IPAllocationPolicy(properties);
+ };
+
+ /**
+ * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IPAllocationPolicy.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases);
+ if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterSecondaryRangeName);
+ if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.servicesSecondaryRangeName);
+ if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4CidrBlock);
+ if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.servicesIpv4CidrBlock);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy} IPAllocationPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IPAllocationPolicy.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.orchestration.airflow.service.v1beta1.IPAllocationPolicy();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.useIpAliases = reader.bool();
+ break;
+ }
+ case 2: {
+ message.clusterSecondaryRangeName = reader.string();
+ break;
+ }
+ case 3: {
+ message.servicesSecondaryRangeName = reader.string();
+ break;
+ }
+ case 4: {
+ message.clusterIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 5: {
+ message.servicesIpv4CidrBlock = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy} IPAllocationPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a IPAllocationPolicy message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IPAllocationPolicy.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
+ if (typeof message.useIpAliases !== "boolean")
+ return "useIpAliases: boolean expected";
+ if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName"))
+ if (!$util.isString(message.clusterSecondaryRangeName))
+ return "clusterSecondaryRangeName: string expected";
+ if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName"))
+ if (!$util.isString(message.servicesSecondaryRangeName))
+ return "servicesSecondaryRangeName: string expected";
+ if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock"))
+ if (!$util.isString(message.clusterIpv4CidrBlock))
+ return "clusterIpv4CidrBlock: string expected";
+ if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock"))
+ if (!$util.isString(message.servicesIpv4CidrBlock))
+ return "servicesIpv4CidrBlock: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy} IPAllocationPolicy
+ */
+ IPAllocationPolicy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy();
+ if (object.useIpAliases != null)
+ message.useIpAliases = Boolean(object.useIpAliases);
+ if (object.clusterSecondaryRangeName != null)
+ message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName);
+ if (object.servicesSecondaryRangeName != null)
+ message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName);
+ if (object.clusterIpv4CidrBlock != null)
+ message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock);
+ if (object.servicesIpv4CidrBlock != null)
+ message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy} message IPAllocationPolicy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IPAllocationPolicy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.useIpAliases = false;
+ object.clusterSecondaryRangeName = "";
+ object.servicesSecondaryRangeName = "";
+ object.clusterIpv4CidrBlock = "";
+ object.servicesIpv4CidrBlock = "";
+ }
+ if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
+ object.useIpAliases = message.useIpAliases;
+ if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName"))
+ object.clusterSecondaryRangeName = message.clusterSecondaryRangeName;
+ if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName"))
+ object.servicesSecondaryRangeName = message.servicesSecondaryRangeName;
+ if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock"))
+ object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock;
+ if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock"))
+ object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock;
+ return object;
+ };
+
+ /**
+ * Converts this IPAllocationPolicy to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IPAllocationPolicy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IPAllocationPolicy
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IPAllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy";
+ };
+
+ return IPAllocationPolicy;
+ })();
+
+ v1beta1.NodeConfig = (function() {
+
+ /**
+ * Properties of a NodeConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface INodeConfig
+ * @property {string|null} [location] NodeConfig location
+ * @property {string|null} [machineType] NodeConfig machineType
+ * @property {string|null} [network] NodeConfig network
+ * @property {string|null} [subnetwork] NodeConfig subnetwork
+ * @property {number|null} [diskSizeGb] NodeConfig diskSizeGb
+ * @property {Array.|null} [oauthScopes] NodeConfig oauthScopes
+ * @property {string|null} [serviceAccount] NodeConfig serviceAccount
+ * @property {Array.|null} [tags] NodeConfig tags
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy|null} [ipAllocationPolicy] NodeConfig ipAllocationPolicy
+ * @property {number|null} [maxPodsPerNode] NodeConfig maxPodsPerNode
+ */
+
+ /**
+ * Constructs a new NodeConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a NodeConfig.
+ * @implements INodeConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.INodeConfig=} [properties] Properties to set
+ */
+ function NodeConfig(properties) {
+ this.oauthScopes = [];
+ this.tags = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * NodeConfig location.
+ * @member {string} location
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.location = "";
+
+ /**
+ * NodeConfig machineType.
+ * @member {string} machineType
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.machineType = "";
+
+ /**
+ * NodeConfig network.
+ * @member {string} network
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.network = "";
+
+ /**
+ * NodeConfig subnetwork.
+ * @member {string} subnetwork
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.subnetwork = "";
+
+ /**
+ * NodeConfig diskSizeGb.
+ * @member {number} diskSizeGb
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.diskSizeGb = 0;
+
+ /**
+ * NodeConfig oauthScopes.
+ * @member {Array.} oauthScopes
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.oauthScopes = $util.emptyArray;
+
+ /**
+ * NodeConfig serviceAccount.
+ * @member {string} serviceAccount
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.serviceAccount = "";
+
+ /**
+ * NodeConfig tags.
+ * @member {Array.} tags
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.tags = $util.emptyArray;
+
+ /**
+ * NodeConfig ipAllocationPolicy.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.ipAllocationPolicy = null;
+
+ /**
+ * NodeConfig maxPodsPerNode.
+ * @member {number} maxPodsPerNode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.maxPodsPerNode = 0;
+
+ /**
+ * Creates a new NodeConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.INodeConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.NodeConfig} NodeConfig instance
+ */
+ NodeConfig.create = function create(properties) {
+ return new NodeConfig(properties);
+ };
+
+ /**
+ * Encodes the specified NodeConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.INodeConfig} message NodeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.location);
+ if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.machineType);
+ if (message.network != null && Object.hasOwnProperty.call(message, "network"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.network);
+ if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.subnetwork);
+ if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.diskSizeGb);
+ if (message.oauthScopes != null && message.oauthScopes.length)
+ for (var i = 0; i < message.oauthScopes.length; ++i)
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.oauthScopes[i]);
+ if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.serviceAccount);
+ if (message.tags != null && message.tags.length)
+ for (var i = 0; i < message.tags.length; ++i)
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]);
+ if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode"))
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.maxPodsPerNode);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.INodeConfig} message NodeConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.NodeConfig} NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeConfig.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.location = reader.string();
+ break;
+ }
+ case 2: {
+ message.machineType = reader.string();
+ break;
+ }
+ case 3: {
+ message.network = reader.string();
+ break;
+ }
+ case 4: {
+ message.subnetwork = reader.string();
+ break;
+ }
+ case 5: {
+ message.diskSizeGb = reader.int32();
+ break;
+ }
+ case 6: {
+ if (!(message.oauthScopes && message.oauthScopes.length))
+ message.oauthScopes = [];
+ message.oauthScopes.push(reader.string());
+ break;
+ }
+ case 7: {
+ message.serviceAccount = reader.string();
+ break;
+ }
+ case 8: {
+ if (!(message.tags && message.tags.length))
+ message.tags = [];
+ message.tags.push(reader.string());
+ break;
+ }
+ case 9: {
+ message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.decode(reader, reader.uint32());
+ break;
+ }
+ case 10: {
+ message.maxPodsPerNode = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.NodeConfig} NodeConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ if (!$util.isString(message.machineType))
+ return "machineType: string expected";
+ if (message.network != null && message.hasOwnProperty("network"))
+ if (!$util.isString(message.network))
+ return "network: string expected";
+ if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
+ if (!$util.isString(message.subnetwork))
+ return "subnetwork: string expected";
+ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb"))
+ if (!$util.isInteger(message.diskSizeGb))
+ return "diskSizeGb: integer expected";
+ if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) {
+ if (!Array.isArray(message.oauthScopes))
+ return "oauthScopes: array expected";
+ for (var i = 0; i < message.oauthScopes.length; ++i)
+ if (!$util.isString(message.oauthScopes[i]))
+ return "oauthScopes: string[] expected";
+ }
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ if (!$util.isString(message.serviceAccount))
+ return "serviceAccount: string expected";
+ if (message.tags != null && message.hasOwnProperty("tags")) {
+ if (!Array.isArray(message.tags))
+ return "tags: array expected";
+ for (var i = 0; i < message.tags.length; ++i)
+ if (!$util.isString(message.tags[i]))
+ return "tags: string[] expected";
+ }
+ if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.verify(message.ipAllocationPolicy);
+ if (error)
+ return "ipAllocationPolicy." + error;
+ }
+ if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode"))
+ if (!$util.isInteger(message.maxPodsPerNode))
+ return "maxPodsPerNode: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.NodeConfig} NodeConfig
+ */
+ NodeConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.NodeConfig();
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.machineType != null)
+ message.machineType = String(object.machineType);
+ if (object.network != null)
+ message.network = String(object.network);
+ if (object.subnetwork != null)
+ message.subnetwork = String(object.subnetwork);
+ if (object.diskSizeGb != null)
+ message.diskSizeGb = object.diskSizeGb | 0;
+ if (object.oauthScopes) {
+ if (!Array.isArray(object.oauthScopes))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.oauthScopes: array expected");
+ message.oauthScopes = [];
+ for (var i = 0; i < object.oauthScopes.length; ++i)
+ message.oauthScopes[i] = String(object.oauthScopes[i]);
+ }
+ if (object.serviceAccount != null)
+ message.serviceAccount = String(object.serviceAccount);
+ if (object.tags) {
+ if (!Array.isArray(object.tags))
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.tags: array expected");
+ message.tags = [];
+ for (var i = 0; i < object.tags.length; ++i)
+ message.tags[i] = String(object.tags[i]);
+ }
+ if (object.ipAllocationPolicy != null) {
+ if (typeof object.ipAllocationPolicy !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.NodeConfig.ipAllocationPolicy: object expected");
+ message.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy);
+ }
+ if (object.maxPodsPerNode != null)
+ message.maxPodsPerNode = object.maxPodsPerNode | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.NodeConfig} message NodeConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.oauthScopes = [];
+ object.tags = [];
+ }
+ if (options.defaults) {
+ object.location = "";
+ object.machineType = "";
+ object.network = "";
+ object.subnetwork = "";
+ object.diskSizeGb = 0;
+ object.serviceAccount = "";
+ object.ipAllocationPolicy = null;
+ object.maxPodsPerNode = 0;
+ }
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ object.machineType = message.machineType;
+ if (message.network != null && message.hasOwnProperty("network"))
+ object.network = message.network;
+ if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
+ object.subnetwork = message.subnetwork;
+ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb"))
+ object.diskSizeGb = message.diskSizeGb;
+ if (message.oauthScopes && message.oauthScopes.length) {
+ object.oauthScopes = [];
+ for (var j = 0; j < message.oauthScopes.length; ++j)
+ object.oauthScopes[j] = message.oauthScopes[j];
+ }
+ if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount"))
+ object.serviceAccount = message.serviceAccount;
+ if (message.tags && message.tags.length) {
+ object.tags = [];
+ for (var j = 0; j < message.tags.length; ++j)
+ object.tags[j] = message.tags[j];
+ }
+ if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy"))
+ object.ipAllocationPolicy = $root.google.cloud.orchestration.airflow.service.v1beta1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options);
+ if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode"))
+ object.maxPodsPerNode = message.maxPodsPerNode;
+ return object;
+ };
+
+ /**
+ * Converts this NodeConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.NodeConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.NodeConfig";
+ };
+
+ return NodeConfig;
+ })();
+
+ v1beta1.PrivateClusterConfig = (function() {
+
+ /**
+ * Properties of a PrivateClusterConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IPrivateClusterConfig
+ * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint
+ * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock
+ * @property {string|null} [masterIpv4ReservedRange] PrivateClusterConfig masterIpv4ReservedRange
+ */
+
+ /**
+ * Constructs a new PrivateClusterConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a PrivateClusterConfig.
+ * @implements IPrivateClusterConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig=} [properties] Properties to set
+ */
+ function PrivateClusterConfig(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]];
+ }
+
+ /**
+ * PrivateClusterConfig enablePrivateEndpoint.
+ * @member {boolean} enablePrivateEndpoint
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.enablePrivateEndpoint = false;
+
+ /**
+ * PrivateClusterConfig masterIpv4CidrBlock.
+ * @member {string} masterIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.masterIpv4CidrBlock = "";
+
+ /**
+ * PrivateClusterConfig masterIpv4ReservedRange.
+ * @member {string} masterIpv4ReservedRange
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.masterIpv4ReservedRange = "";
+
+ /**
+ * Creates a new PrivateClusterConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig} PrivateClusterConfig instance
+ */
+ PrivateClusterConfig.create = function create(properties) {
+ return new PrivateClusterConfig(properties);
+ };
+
+ /**
+ * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateClusterConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEndpoint);
+ if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.masterIpv4CidrBlock);
+ if (message.masterIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "masterIpv4ReservedRange"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4ReservedRange);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig} PrivateClusterConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateClusterConfig.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.orchestration.airflow.service.v1beta1.PrivateClusterConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.enablePrivateEndpoint = reader.bool();
+ break;
+ }
+ case 2: {
+ message.masterIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 3: {
+ message.masterIpv4ReservedRange = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig} PrivateClusterConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PrivateClusterConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PrivateClusterConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
+ if (typeof message.enablePrivateEndpoint !== "boolean")
+ return "enablePrivateEndpoint: boolean expected";
+ if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
+ if (!$util.isString(message.masterIpv4CidrBlock))
+ return "masterIpv4CidrBlock: string expected";
+ if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange"))
+ if (!$util.isString(message.masterIpv4ReservedRange))
+ return "masterIpv4ReservedRange: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig} PrivateClusterConfig
+ */
+ PrivateClusterConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig();
+ if (object.enablePrivateEndpoint != null)
+ message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint);
+ if (object.masterIpv4CidrBlock != null)
+ message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock);
+ if (object.masterIpv4ReservedRange != null)
+ message.masterIpv4ReservedRange = String(object.masterIpv4ReservedRange);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig} message PrivateClusterConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PrivateClusterConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.enablePrivateEndpoint = false;
+ object.masterIpv4CidrBlock = "";
+ object.masterIpv4ReservedRange = "";
+ }
+ if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
+ object.enablePrivateEndpoint = message.enablePrivateEndpoint;
+ if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
+ object.masterIpv4CidrBlock = message.masterIpv4CidrBlock;
+ if (message.masterIpv4ReservedRange != null && message.hasOwnProperty("masterIpv4ReservedRange"))
+ object.masterIpv4ReservedRange = message.masterIpv4ReservedRange;
+ return object;
+ };
+
+ /**
+ * Converts this PrivateClusterConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PrivateClusterConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PrivateClusterConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PrivateClusterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig";
+ };
+
+ return PrivateClusterConfig;
+ })();
+
+ v1beta1.PrivateEnvironmentConfig = (function() {
+
+ /**
+ * Properties of a PrivateEnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IPrivateEnvironmentConfig
+ * @property {boolean|null} [enablePrivateEnvironment] PrivateEnvironmentConfig enablePrivateEnvironment
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null} [privateClusterConfig] PrivateEnvironmentConfig privateClusterConfig
+ * @property {string|null} [webServerIpv4CidrBlock] PrivateEnvironmentConfig webServerIpv4CidrBlock
+ * @property {string|null} [cloudSqlIpv4CidrBlock] PrivateEnvironmentConfig cloudSqlIpv4CidrBlock
+ * @property {string|null} [webServerIpv4ReservedRange] PrivateEnvironmentConfig webServerIpv4ReservedRange
+ * @property {string|null} [cloudComposerNetworkIpv4CidrBlock] PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock
+ * @property {string|null} [cloudComposerNetworkIpv4ReservedRange] PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange
+ */
+
+ /**
+ * Constructs a new PrivateEnvironmentConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a PrivateEnvironmentConfig.
+ * @implements IPrivateEnvironmentConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig=} [properties] Properties to set
+ */
+ function PrivateEnvironmentConfig(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]];
+ }
+
+ /**
+ * PrivateEnvironmentConfig enablePrivateEnvironment.
+ * @member {boolean} enablePrivateEnvironment
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.enablePrivateEnvironment = false;
+
+ /**
+ * PrivateEnvironmentConfig privateClusterConfig.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.IPrivateClusterConfig|null|undefined} privateClusterConfig
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.privateClusterConfig = null;
+
+ /**
+ * PrivateEnvironmentConfig webServerIpv4CidrBlock.
+ * @member {string} webServerIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.webServerIpv4CidrBlock = "";
+
+ /**
+ * PrivateEnvironmentConfig cloudSqlIpv4CidrBlock.
+ * @member {string} cloudSqlIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.cloudSqlIpv4CidrBlock = "";
+
+ /**
+ * PrivateEnvironmentConfig webServerIpv4ReservedRange.
+ * @member {string} webServerIpv4ReservedRange
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.webServerIpv4ReservedRange = "";
+
+ /**
+ * PrivateEnvironmentConfig cloudComposerNetworkIpv4CidrBlock.
+ * @member {string} cloudComposerNetworkIpv4CidrBlock
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.cloudComposerNetworkIpv4CidrBlock = "";
+
+ /**
+ * PrivateEnvironmentConfig cloudComposerNetworkIpv4ReservedRange.
+ * @member {string} cloudComposerNetworkIpv4ReservedRange
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ */
+ PrivateEnvironmentConfig.prototype.cloudComposerNetworkIpv4ReservedRange = "";
+
+ /**
+ * Creates a new PrivateEnvironmentConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig} PrivateEnvironmentConfig instance
+ */
+ PrivateEnvironmentConfig.create = function create(properties) {
+ return new PrivateEnvironmentConfig(properties);
+ };
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateEnvironmentConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enablePrivateEnvironment != null && Object.hasOwnProperty.call(message, "enablePrivateEnvironment"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateEnvironment);
+ if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.webServerIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "webServerIpv4CidrBlock"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.webServerIpv4CidrBlock);
+ if (message.cloudSqlIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "cloudSqlIpv4CidrBlock"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.cloudSqlIpv4CidrBlock);
+ if (message.webServerIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "webServerIpv4ReservedRange"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.webServerIpv4ReservedRange);
+ if (message.cloudComposerNetworkIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "cloudComposerNetworkIpv4CidrBlock"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.cloudComposerNetworkIpv4CidrBlock);
+ if (message.cloudComposerNetworkIpv4ReservedRange != null && Object.hasOwnProperty.call(message, "cloudComposerNetworkIpv4ReservedRange"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.cloudComposerNetworkIpv4ReservedRange);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PrivateEnvironmentConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IPrivateEnvironmentConfig} message PrivateEnvironmentConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PrivateEnvironmentConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig} PrivateEnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateEnvironmentConfig.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.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.enablePrivateEnvironment = reader.bool();
+ break;
+ }
+ case 2: {
+ message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.webServerIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 4: {
+ message.cloudSqlIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 5: {
+ message.webServerIpv4ReservedRange = reader.string();
+ break;
+ }
+ case 7: {
+ message.cloudComposerNetworkIpv4CidrBlock = reader.string();
+ break;
+ }
+ case 8: {
+ message.cloudComposerNetworkIpv4ReservedRange = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PrivateEnvironmentConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig} PrivateEnvironmentConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PrivateEnvironmentConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PrivateEnvironmentConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PrivateEnvironmentConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment"))
+ if (typeof message.enablePrivateEnvironment !== "boolean")
+ return "enablePrivateEnvironment: boolean expected";
+ if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.verify(message.privateClusterConfig);
+ if (error)
+ return "privateClusterConfig." + error;
+ }
+ if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock"))
+ if (!$util.isString(message.webServerIpv4CidrBlock))
+ return "webServerIpv4CidrBlock: string expected";
+ if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock"))
+ if (!$util.isString(message.cloudSqlIpv4CidrBlock))
+ return "cloudSqlIpv4CidrBlock: string expected";
+ if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange"))
+ if (!$util.isString(message.webServerIpv4ReservedRange))
+ return "webServerIpv4ReservedRange: string expected";
+ if (message.cloudComposerNetworkIpv4CidrBlock != null && message.hasOwnProperty("cloudComposerNetworkIpv4CidrBlock"))
+ if (!$util.isString(message.cloudComposerNetworkIpv4CidrBlock))
+ return "cloudComposerNetworkIpv4CidrBlock: string expected";
+ if (message.cloudComposerNetworkIpv4ReservedRange != null && message.hasOwnProperty("cloudComposerNetworkIpv4ReservedRange"))
+ if (!$util.isString(message.cloudComposerNetworkIpv4ReservedRange))
+ return "cloudComposerNetworkIpv4ReservedRange: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a PrivateEnvironmentConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig} PrivateEnvironmentConfig
+ */
+ PrivateEnvironmentConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig();
+ if (object.enablePrivateEnvironment != null)
+ message.enablePrivateEnvironment = Boolean(object.enablePrivateEnvironment);
+ if (object.privateClusterConfig != null) {
+ if (typeof object.privateClusterConfig !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig.privateClusterConfig: object expected");
+ message.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.fromObject(object.privateClusterConfig);
+ }
+ if (object.webServerIpv4CidrBlock != null)
+ message.webServerIpv4CidrBlock = String(object.webServerIpv4CidrBlock);
+ if (object.cloudSqlIpv4CidrBlock != null)
+ message.cloudSqlIpv4CidrBlock = String(object.cloudSqlIpv4CidrBlock);
+ if (object.webServerIpv4ReservedRange != null)
+ message.webServerIpv4ReservedRange = String(object.webServerIpv4ReservedRange);
+ if (object.cloudComposerNetworkIpv4CidrBlock != null)
+ message.cloudComposerNetworkIpv4CidrBlock = String(object.cloudComposerNetworkIpv4CidrBlock);
+ if (object.cloudComposerNetworkIpv4ReservedRange != null)
+ message.cloudComposerNetworkIpv4ReservedRange = String(object.cloudComposerNetworkIpv4ReservedRange);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PrivateEnvironmentConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig} message PrivateEnvironmentConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PrivateEnvironmentConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.enablePrivateEnvironment = false;
+ object.privateClusterConfig = null;
+ object.webServerIpv4CidrBlock = "";
+ object.cloudSqlIpv4CidrBlock = "";
+ object.webServerIpv4ReservedRange = "";
+ object.cloudComposerNetworkIpv4CidrBlock = "";
+ object.cloudComposerNetworkIpv4ReservedRange = "";
+ }
+ if (message.enablePrivateEnvironment != null && message.hasOwnProperty("enablePrivateEnvironment"))
+ object.enablePrivateEnvironment = message.enablePrivateEnvironment;
+ if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig"))
+ object.privateClusterConfig = $root.google.cloud.orchestration.airflow.service.v1beta1.PrivateClusterConfig.toObject(message.privateClusterConfig, options);
+ if (message.webServerIpv4CidrBlock != null && message.hasOwnProperty("webServerIpv4CidrBlock"))
+ object.webServerIpv4CidrBlock = message.webServerIpv4CidrBlock;
+ if (message.cloudSqlIpv4CidrBlock != null && message.hasOwnProperty("cloudSqlIpv4CidrBlock"))
+ object.cloudSqlIpv4CidrBlock = message.cloudSqlIpv4CidrBlock;
+ if (message.webServerIpv4ReservedRange != null && message.hasOwnProperty("webServerIpv4ReservedRange"))
+ object.webServerIpv4ReservedRange = message.webServerIpv4ReservedRange;
+ if (message.cloudComposerNetworkIpv4CidrBlock != null && message.hasOwnProperty("cloudComposerNetworkIpv4CidrBlock"))
+ object.cloudComposerNetworkIpv4CidrBlock = message.cloudComposerNetworkIpv4CidrBlock;
+ if (message.cloudComposerNetworkIpv4ReservedRange != null && message.hasOwnProperty("cloudComposerNetworkIpv4ReservedRange"))
+ object.cloudComposerNetworkIpv4ReservedRange = message.cloudComposerNetworkIpv4ReservedRange;
+ return object;
+ };
+
+ /**
+ * Converts this PrivateEnvironmentConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PrivateEnvironmentConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PrivateEnvironmentConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PrivateEnvironmentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.PrivateEnvironmentConfig";
+ };
+
+ return PrivateEnvironmentConfig;
+ })();
+
+ v1beta1.DatabaseConfig = (function() {
+
+ /**
+ * Properties of a DatabaseConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IDatabaseConfig
+ * @property {string|null} [machineType] DatabaseConfig machineType
+ */
+
+ /**
+ * Constructs a new DatabaseConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a DatabaseConfig.
+ * @implements IDatabaseConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig=} [properties] Properties to set
+ */
+ function DatabaseConfig(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]];
+ }
+
+ /**
+ * DatabaseConfig machineType.
+ * @member {string} machineType
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @instance
+ */
+ DatabaseConfig.prototype.machineType = "";
+
+ /**
+ * Creates a new DatabaseConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig} DatabaseConfig instance
+ */
+ DatabaseConfig.create = function create(properties) {
+ return new DatabaseConfig(properties);
+ };
+
+ /**
+ * Encodes the specified DatabaseConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig} message DatabaseConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DatabaseConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IDatabaseConfig} message DatabaseConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DatabaseConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig} DatabaseConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseConfig.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.orchestration.airflow.service.v1beta1.DatabaseConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.machineType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DatabaseConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig} DatabaseConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DatabaseConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DatabaseConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DatabaseConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ if (!$util.isString(message.machineType))
+ return "machineType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DatabaseConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig} DatabaseConfig
+ */
+ DatabaseConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig();
+ if (object.machineType != null)
+ message.machineType = String(object.machineType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DatabaseConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig} message DatabaseConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DatabaseConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.machineType = "";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ object.machineType = message.machineType;
+ return object;
+ };
+
+ /**
+ * Converts this DatabaseConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DatabaseConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DatabaseConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DatabaseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.DatabaseConfig";
+ };
+
+ return DatabaseConfig;
+ })();
+
+ v1beta1.WebServerConfig = (function() {
+
+ /**
+ * Properties of a WebServerConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IWebServerConfig
+ * @property {string|null} [machineType] WebServerConfig machineType
+ */
+
+ /**
+ * Constructs a new WebServerConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a WebServerConfig.
+ * @implements IWebServerConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig=} [properties] Properties to set
+ */
+ function WebServerConfig(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]];
+ }
+
+ /**
+ * WebServerConfig machineType.
+ * @member {string} machineType
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @instance
+ */
+ WebServerConfig.prototype.machineType = "";
+
+ /**
+ * Creates a new WebServerConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig} WebServerConfig instance
+ */
+ WebServerConfig.create = function create(properties) {
+ return new WebServerConfig(properties);
+ };
+
+ /**
+ * Encodes the specified WebServerConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig} message WebServerConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WebServerConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWebServerConfig} message WebServerConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig} WebServerConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerConfig.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.orchestration.airflow.service.v1beta1.WebServerConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.machineType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WebServerConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig} WebServerConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WebServerConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WebServerConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ if (!$util.isString(message.machineType))
+ return "machineType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a WebServerConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig} WebServerConfig
+ */
+ WebServerConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig();
+ if (object.machineType != null)
+ message.machineType = String(object.machineType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WebServerConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig} message WebServerConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WebServerConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.machineType = "";
+ if (message.machineType != null && message.hasOwnProperty("machineType"))
+ object.machineType = message.machineType;
+ return object;
+ };
+
+ /**
+ * Converts this WebServerConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WebServerConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WebServerConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WebServerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WebServerConfig";
+ };
+
+ return WebServerConfig;
+ })();
+
+ v1beta1.EncryptionConfig = (function() {
+
+ /**
+ * Properties of an EncryptionConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IEncryptionConfig
+ * @property {string|null} [kmsKeyName] EncryptionConfig kmsKeyName
+ */
+
+ /**
+ * Constructs a new EncryptionConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents an EncryptionConfig.
+ * @implements IEncryptionConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig=} [properties] Properties to set
+ */
+ function EncryptionConfig(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]];
+ }
+
+ /**
+ * EncryptionConfig kmsKeyName.
+ * @member {string} kmsKeyName
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @instance
+ */
+ EncryptionConfig.prototype.kmsKeyName = "";
+
+ /**
+ * Creates a new EncryptionConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} EncryptionConfig instance
+ */
+ EncryptionConfig.create = function create(properties) {
+ return new EncryptionConfig(properties);
+ };
+
+ /**
+ * Encodes the specified EncryptionConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig} message EncryptionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kmsKeyName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EncryptionConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IEncryptionConfig} message EncryptionConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfig.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.orchestration.airflow.service.v1beta1.EncryptionConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.kmsKeyName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EncryptionConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} EncryptionConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EncryptionConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EncryptionConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EncryptionConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ if (!$util.isString(message.kmsKeyName))
+ return "kmsKeyName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EncryptionConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} EncryptionConfig
+ */
+ EncryptionConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig();
+ if (object.kmsKeyName != null)
+ message.kmsKeyName = String(object.kmsKeyName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EncryptionConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig} message EncryptionConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EncryptionConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.kmsKeyName = "";
+ if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
+ object.kmsKeyName = message.kmsKeyName;
+ return object;
+ };
+
+ /**
+ * Converts this EncryptionConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EncryptionConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EncryptionConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EncryptionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.EncryptionConfig";
+ };
+
+ return EncryptionConfig;
+ })();
+
+ v1beta1.MaintenanceWindow = (function() {
+
+ /**
+ * Properties of a MaintenanceWindow.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IMaintenanceWindow
+ * @property {google.protobuf.ITimestamp|null} [startTime] MaintenanceWindow startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] MaintenanceWindow endTime
+ * @property {string|null} [recurrence] MaintenanceWindow recurrence
+ */
+
+ /**
+ * Constructs a new MaintenanceWindow.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a MaintenanceWindow.
+ * @implements IMaintenanceWindow
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow=} [properties] Properties to set
+ */
+ function MaintenanceWindow(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]];
+ }
+
+ /**
+ * MaintenanceWindow startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @instance
+ */
+ MaintenanceWindow.prototype.startTime = null;
+
+ /**
+ * MaintenanceWindow endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @instance
+ */
+ MaintenanceWindow.prototype.endTime = null;
+
+ /**
+ * MaintenanceWindow recurrence.
+ * @member {string} recurrence
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @instance
+ */
+ MaintenanceWindow.prototype.recurrence = "";
+
+ /**
+ * Creates a new MaintenanceWindow instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow instance
+ */
+ MaintenanceWindow.create = function create(properties) {
+ return new MaintenanceWindow(properties);
+ };
+
+ /**
+ * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MaintenanceWindow.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.recurrence);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MaintenanceWindow.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.orchestration.airflow.service.v1beta1.MaintenanceWindow();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.recurrence = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MaintenanceWindow message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MaintenanceWindow.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.recurrence != null && message.hasOwnProperty("recurrence"))
+ if (!$util.isString(message.recurrence))
+ return "recurrence: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} MaintenanceWindow
+ */
+ MaintenanceWindow.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow();
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.recurrence != null)
+ message.recurrence = String(object.recurrence);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow} message MaintenanceWindow
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MaintenanceWindow.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.startTime = null;
+ object.endTime = null;
+ object.recurrence = "";
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.recurrence != null && message.hasOwnProperty("recurrence"))
+ object.recurrence = message.recurrence;
+ return object;
+ };
+
+ /**
+ * Converts this MaintenanceWindow to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MaintenanceWindow.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MaintenanceWindow
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.MaintenanceWindow";
+ };
+
+ return MaintenanceWindow;
+ })();
+
+ v1beta1.WorkloadsConfig = (function() {
+
+ /**
+ * Properties of a WorkloadsConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @interface IWorkloadsConfig
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null} [scheduler] WorkloadsConfig scheduler
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null} [webServer] WorkloadsConfig webServer
+ * @property {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null} [worker] WorkloadsConfig worker
+ */
+
+ /**
+ * Constructs a new WorkloadsConfig.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1
+ * @classdesc Represents a WorkloadsConfig.
+ * @implements IWorkloadsConfig
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig=} [properties] Properties to set
+ */
+ function WorkloadsConfig(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]];
+ }
+
+ /**
+ * WorkloadsConfig scheduler.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource|null|undefined} scheduler
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @instance
+ */
+ WorkloadsConfig.prototype.scheduler = null;
+
+ /**
+ * WorkloadsConfig webServer.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource|null|undefined} webServer
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @instance
+ */
+ WorkloadsConfig.prototype.webServer = null;
+
+ /**
+ * WorkloadsConfig worker.
+ * @member {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWorkerResource|null|undefined} worker
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @instance
+ */
+ WorkloadsConfig.prototype.worker = null;
+
+ /**
+ * Creates a new WorkloadsConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig instance
+ */
+ WorkloadsConfig.create = function create(properties) {
+ return new WorkloadsConfig(properties);
+ };
+
+ /**
+ * Encodes the specified WorkloadsConfig message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkloadsConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.scheduler != null && Object.hasOwnProperty.call(message, "scheduler"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.encode(message.scheduler, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.webServer != null && Object.hasOwnProperty.call(message, "webServer"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.encode(message.webServer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.worker != null && Object.hasOwnProperty.call(message, "worker"))
+ $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.encode(message.worker, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WorkloadsConfig message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.IWorkloadsConfig} message WorkloadsConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WorkloadsConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WorkloadsConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkloadsConfig.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.orchestration.airflow.service.v1beta1.WorkloadsConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WorkloadsConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WorkloadsConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WorkloadsConfig message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ WorkloadsConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.scheduler != null && message.hasOwnProperty("scheduler")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify(message.scheduler);
+ if (error)
+ return "scheduler." + error;
+ }
+ if (message.webServer != null && message.hasOwnProperty("webServer")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify(message.webServer);
+ if (error)
+ return "webServer." + error;
+ }
+ if (message.worker != null && message.hasOwnProperty("worker")) {
+ var error = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.verify(message.worker);
+ if (error)
+ return "worker." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a WorkloadsConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} WorkloadsConfig
+ */
+ WorkloadsConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig();
+ if (object.scheduler != null) {
+ if (typeof object.scheduler !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.scheduler: object expected");
+ message.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.fromObject(object.scheduler);
+ }
+ if (object.webServer != null) {
+ if (typeof object.webServer !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.webServer: object expected");
+ message.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.fromObject(object.webServer);
+ }
+ if (object.worker != null) {
+ if (typeof object.worker !== "object")
+ throw TypeError(".google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.worker: object expected");
+ message.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.fromObject(object.worker);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a WorkloadsConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig} message WorkloadsConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ WorkloadsConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.scheduler = null;
+ object.webServer = null;
+ object.worker = null;
+ }
+ if (message.scheduler != null && message.hasOwnProperty("scheduler"))
+ object.scheduler = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.toObject(message.scheduler, options);
+ if (message.webServer != null && message.hasOwnProperty("webServer"))
+ object.webServer = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.toObject(message.webServer, options);
+ if (message.worker != null && message.hasOwnProperty("worker"))
+ object.worker = $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WorkerResource.toObject(message.worker, options);
+ return object;
+ };
+
+ /**
+ * Converts this WorkloadsConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ WorkloadsConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for WorkloadsConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ WorkloadsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig";
+ };
+
+ WorkloadsConfig.SchedulerResource = (function() {
+
+ /**
+ * Properties of a SchedulerResource.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @interface ISchedulerResource
+ * @property {number|null} [cpu] SchedulerResource cpu
+ * @property {number|null} [memoryGb] SchedulerResource memoryGb
+ * @property {number|null} [storageGb] SchedulerResource storageGb
+ * @property {number|null} [count] SchedulerResource count
+ */
+
+ /**
+ * Constructs a new SchedulerResource.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @classdesc Represents a SchedulerResource.
+ * @implements ISchedulerResource
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set
+ */
+ function SchedulerResource(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]];
+ }
+
+ /**
+ * SchedulerResource cpu.
+ * @member {number} cpu
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @instance
+ */
+ SchedulerResource.prototype.cpu = 0;
+
+ /**
+ * SchedulerResource memoryGb.
+ * @member {number} memoryGb
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @instance
+ */
+ SchedulerResource.prototype.memoryGb = 0;
+
+ /**
+ * SchedulerResource storageGb.
+ * @member {number} storageGb
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @instance
+ */
+ SchedulerResource.prototype.storageGb = 0;
+
+ /**
+ * SchedulerResource count.
+ * @member {number} count
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @instance
+ */
+ SchedulerResource.prototype.count = 0;
+
+ /**
+ * Creates a new SchedulerResource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource instance
+ */
+ SchedulerResource.create = function create(properties) {
+ return new SchedulerResource(properties);
+ };
+
+ /**
+ * Encodes the specified SchedulerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SchedulerResource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu);
+ if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb);
+ if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb);
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.count);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SchedulerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.ISchedulerResource} message SchedulerResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SchedulerResource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SchedulerResource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SchedulerResource.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.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.cpu = reader.float();
+ break;
+ }
+ case 2: {
+ message.memoryGb = reader.float();
+ break;
+ }
+ case 3: {
+ message.storageGb = reader.float();
+ break;
+ }
+ case 4: {
+ message.count = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SchedulerResource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SchedulerResource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SchedulerResource message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SchedulerResource.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.cpu != null && message.hasOwnProperty("cpu"))
+ if (typeof message.cpu !== "number")
+ return "cpu: number expected";
+ if (message.memoryGb != null && message.hasOwnProperty("memoryGb"))
+ if (typeof message.memoryGb !== "number")
+ return "memoryGb: number expected";
+ if (message.storageGb != null && message.hasOwnProperty("storageGb"))
+ if (typeof message.storageGb !== "number")
+ return "storageGb: number expected";
+ if (message.count != null && message.hasOwnProperty("count"))
+ if (!$util.isInteger(message.count))
+ return "count: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a SchedulerResource message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} SchedulerResource
+ */
+ SchedulerResource.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource)
+ return object;
+ var message = new $root.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource();
+ if (object.cpu != null)
+ message.cpu = Number(object.cpu);
+ if (object.memoryGb != null)
+ message.memoryGb = Number(object.memoryGb);
+ if (object.storageGb != null)
+ message.storageGb = Number(object.storageGb);
+ if (object.count != null)
+ message.count = object.count | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SchedulerResource message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource} message SchedulerResource
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SchedulerResource.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.cpu = 0;
+ object.memoryGb = 0;
+ object.storageGb = 0;
+ object.count = 0;
+ }
+ if (message.cpu != null && message.hasOwnProperty("cpu"))
+ object.cpu = options.json && !isFinite(message.cpu) ? String(message.cpu) : message.cpu;
+ if (message.memoryGb != null && message.hasOwnProperty("memoryGb"))
+ object.memoryGb = options.json && !isFinite(message.memoryGb) ? String(message.memoryGb) : message.memoryGb;
+ if (message.storageGb != null && message.hasOwnProperty("storageGb"))
+ object.storageGb = options.json && !isFinite(message.storageGb) ? String(message.storageGb) : message.storageGb;
+ if (message.count != null && message.hasOwnProperty("count"))
+ object.count = message.count;
+ return object;
+ };
+
+ /**
+ * Converts this SchedulerResource to JSON.
+ * @function toJSON
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SchedulerResource.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SchedulerResource
+ * @function getTypeUrl
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SchedulerResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource";
+ };
+
+ return SchedulerResource;
+ })();
+
+ WorkloadsConfig.WebServerResource = (function() {
+
+ /**
+ * Properties of a WebServerResource.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @interface IWebServerResource
+ * @property {number|null} [cpu] WebServerResource cpu
+ * @property {number|null} [memoryGb] WebServerResource memoryGb
+ * @property {number|null} [storageGb] WebServerResource storageGb
+ */
+
+ /**
+ * Constructs a new WebServerResource.
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig
+ * @classdesc Represents a WebServerResource.
+ * @implements IWebServerResource
+ * @constructor
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set
+ */
+ function WebServerResource(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]];
+ }
+
+ /**
+ * WebServerResource cpu.
+ * @member {number} cpu
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @instance
+ */
+ WebServerResource.prototype.cpu = 0;
+
+ /**
+ * WebServerResource memoryGb.
+ * @member {number} memoryGb
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @instance
+ */
+ WebServerResource.prototype.memoryGb = 0;
+
+ /**
+ * WebServerResource storageGb.
+ * @member {number} storageGb
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @instance
+ */
+ WebServerResource.prototype.storageGb = 0;
+
+ /**
+ * Creates a new WebServerResource instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource=} [properties] Properties to set
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource instance
+ */
+ WebServerResource.create = function create(properties) {
+ return new WebServerResource(properties);
+ };
+
+ /**
+ * Encodes the specified WebServerResource message. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerResource.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cpu != null && Object.hasOwnProperty.call(message, "cpu"))
+ writer.uint32(/* id 1, wireType 5 =*/13).float(message.cpu);
+ if (message.memoryGb != null && Object.hasOwnProperty.call(message, "memoryGb"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.memoryGb);
+ if (message.storageGb != null && Object.hasOwnProperty.call(message, "storageGb"))
+ writer.uint32(/* id 3, wireType 5 =*/29).float(message.storageGb);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified WebServerResource message, length delimited. Does not implicitly {@link google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @static
+ * @param {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.IWebServerResource} message WebServerResource message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ WebServerResource.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a WebServerResource message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerResource.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.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.cpu = reader.float();
+ break;
+ }
+ case 2: {
+ message.memoryGb = reader.float();
+ break;
+ }
+ case 3: {
+ message.storageGb = reader.float();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a WebServerResource message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource} WebServerResource
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ WebServerResource.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a WebServerResource message.
+ * @function verify
+ * @memberof google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.WebServerResource
+ * @static
+ * @param {Object.